Business

Margin & Markup Calculator

Enter any two of cost, selling price, margin and markup to solve the rest, with margin and markup side by side.

By Nitin Raturi · Last reviewed

Your figures

How to use the Margin & Markup Calculator

Enter any two figures you know and read the other three.

  1. Choose which two figures you know.
  2. Enter the cost or selling price in rupees.
  3. Enter the second figure: the other price, a margin or a markup.
  4. Read the answer, then compare the margin and markup side by side.

Good to know

  • Keep cost and price on the same GST basis, usually both before GST.
  • Switching what you know keeps the current answer, so you can see it from another angle.

Enter any two figures. Keep cost and price on the same GST basis, usually before GST.

What you know

What you know

Pick the two figures you already have. The calculator works out the other three.

How to fill it in

  • Cost and selling price: find the margin and markup.
  • Cost with a margin or markup: find the selling price.
  • Selling price with a margin or markup: find the most you can pay.

Tip: Margin and markup together cannot give a rupee price, so one of the two values must be an amount.

Cost

What one unit costs you: the purchase price, or the cost to make it.

How to fill it in

  • Enter rupees as 800, 1,250 or 1.5k.
  • Allowed range: ₹0.01 to ₹10,00,00,00,00,000.
  • Use the same tax basis as the selling price, usually before GST.

Example

A cost of ₹800.00 sold at ₹1,000.00 leaves ₹200.00 profit.

Selling price

The price you charge for one unit.

How to fill it in

  • Enter rupees as 1000, 1,000 or 1k.
  • Allowed range: ₹0.01 to ₹10,00,00,00,00,000.
  • A price below cost gives a negative margin and markup.

Example

At ₹1,000.00, a 20% margin means the cost can be up to ₹800.00.

Margin on the selling price

20%

Cost ₹800.00 and selling price ₹1,000.00 leave ₹200.00 profit: a 20% margin on price, or a 25% markup on cost.

Cost
₹800.00
Selling price
₹1,000.00
Profit
₹200.00
Margin (on price)
20%
Markup (on cost)
25%

Per-unit gross figures. Margin divides profit by the selling price; markup divides it by cost. Overheads, discounts, returns and GST are not included. Displayed rupees round to paise.

How this calculator works

  1. Step 1Cost₹800.00What one unit costs you.
  2. Step 2Profit₹200.00Selling price minus cost.
  3. Step 3Margin20%Profit divided by the selling price.
  4. Step 4Markup25%Profit divided by the cost.

Margin and markup describe the same rupee profit. They differ only in what you divide by. Margin uses the selling price; markup uses the cost. That is why the markup figure is always the larger one when you make a profit.

Pick the two figures you know. With cost and price, the tool finds the profit and both percentages. With one amount and one percentage, it solves the missing amount first, then the rest.

Margin and markup alone cannot give a price, because they only fix the ratio of price to cost. One of your two inputs must be a rupee amount.

Worked example: one product

From cost and price to margin and markup
Profit
selling price − cost
Margin
profit ÷ selling price × 100
Markup
profit ÷ cost × 100
  • costCost of one unit ₹800.00
  • priceSelling price of one unit ₹1,000.00
  1. Profit₹1,000.00 − ₹800.00₹200.00
  2. Margin₹200.00 ÷ ₹1,000.00 × 10020%
  3. Markup₹200.00 ÷ ₹800.00 × 10025%

The same ₹200.00 profit is 20% of the price and 25% of the cost. Working backwards, a ₹1,000.00 price with a 20% margin means the cost can be at most ₹800.00.

Margin versus markup

  • 25% markup₹1,000.00Margin on that price: 20%.
  • 25% margin₹1,066.67Markup needed: 33.33%.
  • 20% markup₹960.00Margin on that price: 16.67%.

Typing a margin target into a markup formula undercharges. If you want a 25% margin on a ₹800.00 cost, the price must be ₹1,066.67, not ₹1,000.00.

  • 10% markup9.09% margin
  • 20% markup16.67% margin
  • 25% markup20% margin
  • 50% markup33.33% margin
  • 100% markup50% margin
Margin produced by common markups

The conversions are margin = markup ÷ (100 + markup) × 100 and markup = margin ÷ (100 − margin) × 100. Doubling the cost, a 100% markup, is only a 50% margin.

Read the result

The headline answers the figure you were missing; the table shows all five side by side.

Profit is per unit, in rupees. Margin tells you what share of each sale is left after the cost. Markup tells you how much you added to what you paid.

A negative figure is a loss. Selling a ₹800.00 item for ₹700.00 gives a -14.29% margin and a -12.5% markup.

Prices before or after GST

Keep cost and selling price on the same basis, usually both before GST.

For a GST-registered seller who claims input tax credit, GST collected is not your income. Enter cost and price before GST so the margin reflects what you keep.

If your prices include GST, remove it first with the GST calculator, using the rate that applies to your goods. This tool does not add or remove GST.

Assumptions and limits

  • OverheadsRent, salaries, delivery and marketing are not deducted.
  • TaxesGST and income tax are not added or removed.
  • DiscountsThe selling price is what you actually receive per unit.
  • RangesMargin -100% to 99%; markup -50% to 9,900%.

These are gross, per-unit figures. Net margin after all business costs needs your full accounts. No intermediate rounding is applied; displayed rupees round to paise.

Margin and markup describe the same profit from two bases. Discounts and tax change the final price.

To see how a discount cuts the price, use the discount calculator. The GST calculator adds or removes tax, and the break-even calculator finds the sales that cover fixed costs.

Common mistakes

  • Mistake: Adding a 25% markup to hit a 25% margin.

    Instead: Use cost plus margin mode, or convert the margin to a markup first.

  • Mistake: Mixing a GST-inclusive price with a GST-exclusive cost.

    Instead: Put both figures on the same tax basis before comparing.

  • Mistake: Treating gross margin as take-home profit.

    Instead: Subtract overheads separately to see what the business keeps.

  • Mistake: Comparing a supplier’s markup with a competitor’s margin.

    Instead: Convert both to the same measure first.

Checking the method

Every golden case is re-solved as a linear system and checked against two published examples.

Margin follows OpenStax’s gross profit margin ratio; markup follows OpenStax’s mark-up model. An independent script re-solves every case exactly, and the tests reproduce both OpenStax worked examples listed in the sources.

Read how we test our calculators, or browse more money calculators.

Frequently asked questions

What is the difference between margin and markup?

Both use the same profit. Margin divides it by the selling price; markup divides it by cost. A ₹800.00 cost sold at ₹1,000.00 is a 20% margin and a 25% markup.

How do I find the selling price for a target margin?

Divide the cost by one minus the margin as a decimal. A 25% margin on ₹800.00 needs ₹1,066.67. Choose Cost + margin in the calculator.

How do I convert markup to margin?

Margin = markup ÷ (100 + markup) × 100. Selling at double the cost, a 100% markup, is a 50% margin.

Why can I not enter just a margin and a markup?

They only fix the ratio between price and cost, so no rupee amount follows. One of the two figures you enter must be the cost or the selling price.

Should I enter prices with or without GST?

Use the same basis for both. For a GST-registered seller claiming input tax credit, enter both before GST, because the GST collected is not your income.

Is margin the same as profit?

This is gross margin per unit. It does not deduct rent, salaries, delivery or other overheads, so the business keeps less than the margin suggests.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 3 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.