Guides

Margin vs. markup: what is the difference?

The two formulas, a conversion table, and how to set a price for the margin you want.

By the PlumCalc team · Published November 22, 2026

The short answer

Both measure the same profit, but against different numbers:

  • Margin = profit ÷ selling price.
  • Markup = profit ÷ cost.

An item that costs $40 and sells for $65 makes $25 of profit. That is a 38.46% margin but a 62.5% markup. Because the selling price is always larger than the cost, margin is always the smaller percentage.

Open the profit margin calculatorFind margin, markup or the price for a target margin.

The formulas

  • Profit = price − cost
  • Margin = (price − cost) ÷ price
  • Markup = (price − cost) ÷ cost
  • Price for a target margin = cost ÷ (1 − margin)
  • Price for a target markup = cost × (1 + markup)
  • Converting: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin)

Conversion table

For an item that costs $40:

TargetSelling priceMarginMarkup
25% markup$50.0020%25%
50% markup$60.0033.33%50%
100% markup$80.0050%100%
20% margin$50.0020%25%
30% margin$57.1430%42.86%
40% margin$66.6740%66.67%
50% margin$80.0050%100%

Note the pairs: a 25% markup is a 20% margin, a 50% markup is a 33.33% margin, and doubling the cost (a 100% markup) is a 50% margin.

The mistake that costs money

The most common pricing error is adding a markup when you meant a margin. If you need a 40% margin to cover overhead and add 40% to a $40 cost, you charge $56 and earn a margin of only 28.6%. To actually reach a 40% margin, the price has to be $66.67.

A margin can never reach 100%, because that would require an infinite price. A markup has no upper limit.

Gross margin is not net profit

These formulas give the gross margin on each sale: they only subtract the cost of the item itself. Rent, salaries, marketing, payment fees and taxes still have to come out of that gross profit. To see how many sales it takes to cover those fixed costs, use the break-even calculator.

This guide is for general information and education, not financial, tax or legal advice. Figures come from PlumCalc’s calculators with the inputs shown and are rounded.