New: the Black Friday discount planner. See which of your products can afford your sale →

Guides · 23 October 2026

Markup vs margin: what's the difference, and which should you use?

Markup and margin both describe how much you make on a sale, but they are measured against different things, so the same price gives two different percentages. Mixing them up is one of the most common reasons products end up priced too low. Here is the difference, with a worked example.

The two definitions

The profit is the same in both. Only the number you divide by changes.

A worked example

You buy a product for $20 and sell it for $30.

Same product, same sale, and two honest answers: 50% or 33.3%. Neither is wrong. They answer different questions.

The mistake that causes underpricing

Suppose you decide you want a 50% margin and you take that to mean “add 50% to my cost”.

To get a 50% margin on a $20 cost, the price is cost ÷ (1 − margin):

Using markup when you mean margin leaves $10 per sale on the table in this example.

Conversion table

Markup Margin
25% 20.0%
50% 33.3%
75% 42.9%
100% 50.0%
150% 60.0%
200% 66.7%

Margin is always lower than markup, and a margin can never reach 100%, while a markup can.

Converting between them

Which should you use?

Margin on cost alone is not your real margin

Both figures above use only the product cost. Your real profit also has to cover payment fees, shipping and returns. At a $40 price with a $20 cost, the margin on cost alone is 50%. After a 2.9% + $0.30 card fee and a 5% returns allowance, profit is $16.54, about 41% of the price.

For a price that covers all of your costs, see how to work out your break-even price. To see how a discount changes the picture, read how much more you need to sell to make a discount worth it.

Try it: Open the $40 price and $20 cost example in the calculator to see the $16.54 profit, then add your own shipping and costs.

Check your own numbers. Thefree profit calculator runs this maths on your price and costs, thebreak-even calculator finds your lowest safe price, or Margin Guardrails does it for every product in your Shopify store.