Calcamaze

Margin Calculator

Calculate profit margin, markup, selling price or cost from any two of them — and see how margin and markup differ.

By Rabia Jameel

$
$

Result

Profit margin
40%
Markup
66.67%
Profit
$40.00
Selling price
$100.00
Cost
$60.00
Margin and markup equivalents
MarginMarkupPrice for a $60.00 cost
10%11.11%$66.67
20%25%$75.00
25%33.33%$80.00
30%42.86%$85.71
40%66.67%$100.00
50%100%$120.00
60%150%$150.00
75%300%$240.00

Margin and markup both describe profit, but against different bases. Margin is profit as a share of the selling price; markup is profit as a share of the cost. Enter any two of cost, price, margin and markup to get the rest, so you can set prices that hit a target margin without mixing the two up.

What is the difference between margin and markup?

Margin and markup both start from the same profit — selling price minus cost — but divide it by different numbers. Gross margin divides profit by the selling price, so it tells you what share of each sale you keep. Markup divides profit by the cost, so it tells you how much you added on top of what you paid.

Because the cost is always smaller than the price when you make a profit, markup is always the bigger percentage: a 50% markup is only a 33.3% margin, and a 100% markup (doubling the cost) is a 50% margin. Mixing them up is one of the most common pricing errors in small businesses — applying a 30% markup when you wanted a 30% margin leaves you with a margin of only 23%.

How to use the margin calculator

  1. Choose which two values you know.
  2. Enter them.
  3. Read the margin, markup, profit, price and cost.
  4. Use the table to translate a target margin into a markup.

Formula

Margin = (Price − Cost) ÷ Price × 100 · Markup = (Price − Cost) ÷ Cost × 100

To reach a target margin, Price = Cost ÷ (1 − margin). To apply a markup, Price = Cost × (1 + markup).

They convert into each other: markup = margin ÷ (1 − margin), and margin = markup ÷ (1 + markup), with both as decimals.

Worked examples

Buying at $60, selling at $100

I know the
Cost and price
Cost
60 $
Selling price
100 $
Profit margin
40%
Markup
66.67%
Profit
$40.00

Profit is $40. Margin = 40 ÷ 100 = 40%; markup = 40 ÷ 60 = 66.67%.

Pricing for a 35% margin

I know the
Cost and margin
Cost
26 $
Margin
35 %
Profit margin
35%
Markup
53.85%
Profit
$14.00

To keep 35% of the selling price, divide the cost by (1 − 0.35): $26 ÷ 0.65 = $40.00. That is a markup of 53.85%.

Working back from a retail price

I know the
Price and markup
Selling price
59.98 $
Markup
100 %
Profit margin
50%
Markup
100%
Profit
$29.99

A shop that doubles its cost (100% markup) and sells at $59.98 paid $59.98 ÷ 2 = $29.99, earning a margin of 50%.

Converting between margin and markup

Target marginMarkup neededMarkup appliedResulting margin
10%11.11%10%9.09%
20%25%25%20%
25%33.33%50%33.33%
30%42.86%75%42.86%
40%66.67%100%50%
50%100%200%66.67%

Converting margin to markup

A 40% margin means 40% of the price is profit. As a markup on cost it is 0.4 ÷ 0.6 = 66.7%. The two figures describe the same sale, so be clear which one a supplier or client means.

Common mistakes

  • Applying a markup percentage when you meant a margin. A 30% markup only gives a 23.08% margin.
  • Leaving out costs such as shipping, payment fees and packaging, which overstates the margin.
  • Expecting a 100% margin. Margin can never reach 100% unless the item cost nothing; markup has no upper limit.
  • Comparing your margin with a competitor’s markup — make sure both numbers use the same base.

Frequently asked questions

What is the difference between margin and markup?

They divide the same profit by different numbers. Buying at $60 and selling at $100 is a $40 profit: a 40% margin (of the $100 price) but a 66.67% markup (of the $60 cost). Markup is always the larger number.

Is this gross margin or net margin?

Gross margin, when the cost is the direct cost of the product. Net margin also subtracts overheads such as rent, wages and taxes, which this calculator does not know about.

Why can’t margin be over 100%?

Because profit can’t be more than the whole price. Markup, measured against cost, has no such limit.

Sources

  1. Principles of Accounting, Volume 2: Managerial Accounting, OpenStax, Rice University
  2. Principles of Accounting, Volume 1: Financial Accounting, OpenStax, Rice University

Written by Rabia Jameel · Last updated · Calculations checked by automated tests· Editorial policy