Margin Calculator

Convert between cost, revenue, profit margin and markup — and never mix the two up again.
Profit margin
Profit
Markup
✉ Email me this result
</> Embed this calculator

Paste this into any website or blog post. It is free — the small "powered by" link must stay visible.

How it works

Margin = profit ÷ revenue × 100; markup = profit ÷ cost × 100

Frequently Asked Questions

What is the difference between margin and markup?
Markup is profit relative to cost; margin is profit relative to selling price. A product costing $60 sold at $100 has a 66.7% markup but a 40% margin — quoting one when you mean the other misprices everything.
What is a good profit margin?
It varies wildly by industry: groceries run 1–3% net, restaurants 3–9%, software 70%+ gross. Compare against your own sector, not a universal number.
How do I price for a target margin?
Divide cost by (1 − margin): for a 40% margin on a $60 cost, price = 60 ÷ 0.6 = $100. Multiplying cost by the margin gives the wrong (lower) price.