Money

Margin and markup calculator

Margin divides profit by the selling price. Markup divides the same profit by the cost. A 50% margin is a 100% markup.

$
$

How it works

Start with cost and selling price. Profit is price minus cost. Margin is profit divided by price. Markup is profit divided by cost. On a $40 cost and a $100 price, profit is $60, margin is 60%, and markup is 150%.

To hit a target margin, the price is cost / (1 − margin). A 60% margin on a $40 cost is 40 / 0.40 = $100. A target markup is easier: price = cost × (1 + markup). Margin cannot reach 100% unless the cost is zero, because the price would have to be infinite. This is pricing arithmetic, not accounting advice. Percent change in a price over time belongs on the percentage calculator.

Formula

  • Margin
    margin = (price − cost) / price × 100
  • Markup
    markup = (price − cost) / cost × 100
  • Price from margin
    price = cost / (1 − margin/100)
  • Price from markup
    price = cost × (1 + markup/100)

Worked examples

The classic mix-up

Cost $50, price $100. Profit is $50. Margin is 50%. Markup is 100%. Quoting “50% markup” would have produced a $75 price instead.

A 25% margin

On a $60 cost, price = 60 / (1 − 0.25) = $80. Profit is $20, which is 25% of 80 and 33.33% of 60.

Selling below cost

Cost $40, price $30. Profit is −$10, margin is −33.33%, and markup is −25%. The signs tell you the sale loses money.

Margin and markup on a $50 cost
MarginMarkupSelling price
20%25%$62.50
25%33.33%$66.67
40%66.67%$83.33
50%100%$100.00
60%150%$125.00

Common questions

What is the difference between margin and markup?

Both use the same profit. Margin divides it by the selling price. Markup divides it by the cost. 50% margin and 50% markup are different prices.

How do I get a price from a margin?

Divide the cost by 1 minus the margin as a decimal. A 40% margin means divide the cost by 0.60. A margin of 100% or more has no finite price.

What if my cost is zero?

Markup is undefined, because you would be dividing profit by zero. Margin is 100% whenever the price is positive and the cost is zero. The page says “Undefined” instead of inventing a percent.

Is margin the same as percent off?

No. Percent off compares a new price with an old price. Margin compares profit with the selling price. A 20% discount and a 20% margin are unrelated unless you set them up to be.