What margin and markup mean

Both describe the same profit on a sale: the selling price minus what the product cost you. They differ only in what that profit is compared with.

  • Margin (gross margin, profit margin) is the profit as a share of the selling price. It answers: of every dollar a customer pays, how much do I keep?
  • Markup is the profit as a share of the cost. It answers: how much did I add on top of what I paid?

A product that costs $60 and sells for $100 leaves $40 of profit. That is a 40% margin ($40 of $100) and a 66.67% markup ($40 on $60).

Profit margin and markup formulas

To findFormulaExample
Profitprice − cost$100 − $60 = $40
Margin(price − cost) ÷ price × 100$40 ÷ $100 = 40%
Markup(price − cost) ÷ cost × 100$40 ÷ $60 = 66.67%
Price for a margincost ÷ (1 − margin)$60 ÷ (1 − 0.40) = $100
Price for a markupcost × (1 + markup)$60 × (1 + 0.50) = $90
Highest cost for a marginprice × (1 − margin)$80 × (1 − 0.25) = $60

In a spreadsheet, with the cost in A2 and the selling price in B2, margin is =(B2-A2)/B2 and markup is =(B2-A2)/A2; format the cells as percentages.

Margin vs markup: the conversion table

Because markup is measured against the smaller number, it is always higher than the margin on the same sale. To convert, markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup).

MarginMarkup neededPrice on a $100 cost
10%11.11%$111.11
15%17.65%$117.65
20%25%$125.00
25%33.33%$133.33
30%42.86%$142.86
33.33%50%$150.00
40%66.67%$166.67
50%100%$200.00
60%150%$250.00
75%300%$400.00

The gap widens fast. A 50% markup gives a 33.33% margin; charging double the cost, a 100% markup, gives 50%.

The pricing mistake to avoid

If you want a 40% margin and add 40% to the cost, you get a 40% markup, not a 40% margin. On a $60 cost that is an $84 price and a 28.57% margin: $16 less profit on every sale than the $100 price a 40% margin needs. Set prices with the margin formula, cost ÷ (1 − margin), or choose "Price from a margin" in the calculator.

Gross margin and net profit margin

This calculator works out the gross margin on a product: the price less what the product itself cost. Net profit margin is a different number for the whole business. It takes rent, wages, software, marketing, interest and taxes off revenue as well, so it is usually lower than the gross margin.

Gross margin is also the number behind other marketing maths. The ROAS calculator uses it to find the return on ad spend you need to break even, and the CAC calculator uses it to work out how many months a new customer takes to pay back what it cost to win them.