DEV Community

Michael Lip
Michael Lip

Posted on • Originally published at zovo.one

Markup vs. Margin: The Pricing Mistake That Costs Thousands

I watched a freelancer friend lose $12,000 in profit over a year because he confused markup with margin. He wanted a 30% profit margin on his services. He applied a 30% markup to his costs. These are not the same thing, and the difference compounds with every invoice.

The formulas

Markup is the percentage added to cost to get the selling price:

Selling price = Cost * (1 + Markup%)
Markup% = (Selling price - Cost) / Cost * 100
Enter fullscreen mode Exit fullscreen mode

Margin is the percentage of the selling price that is profit:

Selling price = Cost / (1 - Margin%)
Margin% = (Selling price - Cost) / Selling price * 100
Enter fullscreen mode Exit fullscreen mode

The distinction: markup is relative to cost, margin is relative to price.

The math that trips people up

A 30% markup on a $100 cost:

Price = $100 * 1.30 = $130
Profit = $30
Actual margin = $30 / $130 = 23.1%
Enter fullscreen mode Exit fullscreen mode

A 30% margin on a $100 cost:

Price = $100 / (1 - 0.30) = $142.86
Profit = $42.86
Actual markup = $42.86 / $100 = 42.9%
Enter fullscreen mode Exit fullscreen mode

The freelancer who wanted 30% margins but applied 30% markups was earning 23.1% margins instead. On $200,000 in annual revenue, that is roughly $12,000 in lost profit.

The conversion between them

Margin = Markup / (1 + Markup)
Markup = Margin / (1 - Margin)
Enter fullscreen mode Exit fullscreen mode

Common equivalents worth memorizing:

Markup Margin
20% 16.7%
25% 20%
33.3% 25%
50% 33.3%
100% 50%

A 100% markup (doubling the cost) only produces a 50% margin. This surprises people, but it makes sense: if you buy something for $50 and sell it for $100, half the revenue is cost and half is profit. That is a 50% margin.

When to use each

Use margin when discussing profitability. Margin tells you what percentage of revenue you keep. Financial statements, investor discussions, and business planning use margin because it relates directly to revenue.

Use markup when setting prices. Markup tells you how much to add to your cost. Retail pricing, invoice calculations, and cost-plus contracts use markup because it relates directly to the cost basis.

The confusion arises because both are used in pricing conversations, often interchangeably. They are not interchangeable.

Keystone pricing

In retail, "keystone pricing" means a 100% markup (selling at double the wholesale cost). This produces a 50% gross margin, which historically covered operating expenses and left a reasonable net profit for retailers.

The formula for any target margin:

function priceForMargin(cost, targetMargin) {
  return cost / (1 - targetMargin / 100);
}

// Price for 40% margin on $50 cost
priceForMargin(50, 40); // $83.33
Enter fullscreen mode Exit fullscreen mode

Stacked markups

If your supply chain has multiple intermediaries, each applying their own markup, the final price compounds:

Manufacturer cost: $10
Distributor markup 20%: $10 * 1.20 = $12
Retailer markup 50%: $12 * 1.50 = $18
Enter fullscreen mode Exit fullscreen mode

The total effective markup from manufacturer to consumer is 80%, not 70% (20% + 50%). Markups multiply, they don't add.

Total markup = (1.20 * 1.50 - 1) * 100 = 80%
Total margin = ($18 - $10) / $18 = 44.4%
Enter fullscreen mode Exit fullscreen mode

Discounting and its effect on margin

A 20% discount does not reduce your margin by 20 percentage points. It reduces it by much more.

Original price: $100
Cost: $60
Margin: 40%

After 20% discount:
Sale price: $80
Cost: $60 (unchanged)
New margin: ($80 - $60) / $80 = 25%
Enter fullscreen mode Exit fullscreen mode

A 20% discount cut the margin from 40% to 25%, which is a 37.5% reduction in margin. This is why retailers are reluctant to discount despite customer pressure. The impact on profitability is much larger than the discount percentage suggests.

For running markup and margin calculations quickly, especially when comparing pricing strategies or evaluating discount impacts, I keep a markup calculator at zovo.one/free-tools/markup-calculator. It converts between markup and margin, calculates selling prices from either metric, and shows the profit impact of discounts. The math is simple, but getting it wrong is expensive.


I'm Michael Lip. I build free developer tools at zovo.one. 500+ tools, all private, all free.

Top comments (0)