Margin Calculator
Calculate profit margin and markup percentages with a side-by-side comparison.
Margin calculator
Enter cost and price — we’ll compute margin & markup.
Scenario B
Compare against Scenario A aboveExamples
How It Works
Margin expresses profit as a percentage of the selling price (revenue). A 40% margin means 40 cents of every dollar of revenue is profit. Formula: Margin = (Selling Price − Cost) / Selling Price × 100.
Markup expresses profit as a percentage of the cost. A 66.7% markup means you added 66.7% on top of your cost. Formula: Markup = (Selling Price − Cost) / Cost × 100.
For the same cost and selling price, the markup percentage is always higher than the margin percentage (except when profit is zero). For example, if you buy something for $60 and sell it for $100: the profit is $40, the margin is 40% ($40/$100), and the markup is 66.7% ($40/$60).
To convert between them: Margin = Markup / (1 + Markup), and Markup = Margin / (1 − Margin).
Tips & Best Practices
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit as a percentage of selling price (revenue), while markup is profit as a percentage of cost. For the same transaction, markup is always the larger number. If you buy for $60 and sell for $100, margin is 40% and markup is 66.7%.
How do I calculate selling price from desired margin?
Divide cost by (1 − margin%/100). For example, if cost is $60 and desired margin is 40%: $60 / (1 − 0.40) = $60 / 0.60 = $100 selling price.
What is a good profit margin?
It depends on industry. Grocery stores operate on 1–3% margins, restaurants aim for 3–9%, software companies can achieve 60–80%, and luxury goods may reach 50–70%. Compare against your industry benchmarks.
Can margin exceed 100%?
No, margin cannot reach or exceed 100% because that would require the cost to be zero or negative. Markup, however, can exceed 100% — a 200% markup means you tripled the cost.
How do I convert between margin and markup?
Margin = Markup / (1 + Markup). Markup = Margin / (1 − Margin). For example, a 50% markup = 50/150 = 33.3% margin. A 25% margin = 25/75 = 33.3% markup.