Markup and margin both measure the gap between cost and price — but they're calculated differently, and mixing them up quietly destroys your actual profit. Here's the math, and where sellers consistently go wrong.

Here's a scenario that plays out every week on indie-business forums: someone sets their prices targeting a "40% margin," ships a few hundred units, checks their books three months later, and finds they're only keeping about 29 cents on every dollar. They're not bad at business. They're just using the wrong formula. Markup and margin feel interchangeable — they're both percentages, they both describe the gap between what you paid and what you charged — but they're divided by different things, and that difference compounds quickly across a product line.

The two formulas, side by side

Markup is profit as a percentage of cost:

Markup % = (Selling price − Cost) / Cost × 100

Margin (gross margin) is profit as a percentage of selling price:

Margin % = (Selling price − Cost) / Selling price × 100

Same numerator. Different denominator. That's the entire difference — and it's enough to make the numbers diverge significantly at any realistic price point.

Concrete example: you buy a thing for $10 and sell it for $15.

One $5 profit, two very different-looking percentages. A 50% markup and a 33% margin describe exactly the same transaction.

Where the numbers diverge

At low price points the gap looks academic. At higher costs or margins it doesn't.

Say you're manufacturing a product that costs $40 to make. You want to earn $20 on each unit.

Now push the cost to $100 and the same $50 profit target:

Still a 17-percentage-point gap between the two. That gap doesn't shrink as costs rise — it stays proportional. Which is exactly why the confusion is so durable: the formulas always produce two plausible-looking numbers for the same deal, and neither one announces which it is.

The classic mistake (and why it costs real money)

The most common error: you want a 30% margin on a product that costs you $50, so you calculate:

Selling price = $50 + (50 × 0.30) = $50 + $15 = $65

That's a 30% markup. Your actual gross margin is $15 / $65 = 23%. You targeted 30, you got 23, and every invoice you send is quietly 7 percentage points worse than you thought.

The correct way to reach a 30% margin on a $50 cost:

Selling price = Cost / (1 − Margin %)
             = $50 / (1 − 0.30)
             = $50 / 0.70
             = $71.43

That extra $6.43 per unit doesn't feel significant until you multiply by volume. At 500 units a month, the markup-vs-margin confusion is costing you over $3,200 in margin you thought you had. At 5,000 units, it's $32,000.

"Markup (or price spread) is the difference between the selling price of a good or service and its cost. It is expressed as a percentage over the cost."

— Wikipedia, "Markup (business)" (CC BY-SA 4.0)

This is the definition most people operate from intuitively — profit over cost. The mismatch arises because finance teams, investors, and accounting standards typically report margin (profit over revenue), not markup. If you're building a pricing model using markup math but discussing it with your accountant using margin language, you're talking past each other in a way that's almost impossible to detect without checking both formulas.

Converting between them

You don't have to always start from scratch. If you know one number, the conversion is direct:

Margin = Markup / (1 + Markup)
Markup = Margin / (1 − Margin)

So a 50% markup converts to: 0.50 / 1.50 = 33.3% margin.

A 40% margin converts to: 0.40 / 0.60 = 66.7% markup.

These are exact — no approximation. If someone quotes you a "40% margin target" and you're used to thinking in markup, you need to price to 66.7% over cost, not 40%. That's not a rounding error; it's a 26-percentage-point gap in how aggressively you mark up.

The markup and margin calculator handles both directions instantly — enter cost + selling price and it spits out both percentages, or enter any two and it solves for the third. Useful when you're setting prices on a new SKU and want to verify you're actually hitting your margin target, not just your markup instinct.

Which number to use when

They're not interchangeable, but they're not in competition either. Use the right one for the right audience:

The danger zone is mixing contexts. If you build a pricing model using markup but report to stakeholders using margin without converting, the numbers look better on paper than they are in practice. That's how a business can feel profitable quarter to quarter while slowly haemorrhaging margin.

For a sanity check on any pricing decision, the percentage calculator handles the arithmetic without requiring you to hold the formula in your head — useful when you're pricing reactively (matching a competitor, adjusting for a cost increase) and need a quick gut-check. For the bigger picture — what does this margin actually mean for return on invested inventory? — the ROI calculator maps profit back to capital employed.

The short version

Markup uses cost as the denominator. Margin uses selling price. At a 50% markup you're keeping 33% of revenue, not 50%. At a 30% margin target, you need to mark up 43%, not 30%. Both formulas are right — you just have to know which one you're using. Pick one as your operating standard, label it explicitly in every pricing document, and convert before handing off to finance. The markup and margin calculator makes the conversion trivial; the mislabelled spreadsheet that sits for six months doesn't.

← All articles