Margin Calculator
Enter revenue and cost of goods — see gross profit ($), profit margin (%) and markup (%) side by side, so you never mix the two up again.
Profit margin
–
How to use
- Enter the revenue (what the customer paid).
- Enter the cost (what it cost you).
- Press Calculate — profit, margin % and markup % appear together.
The formula
Margin = (Revenue − Cost) ÷ Revenue × 100 | Markup = (Revenue − Cost) ÷ Cost × 100
A $100 sale with $60 cost: margin = 40% of revenue; markup = 66.7% of cost. Same transaction, two different percentages — margin is measured against price, markup against cost.
Frequently asked questions
What is a good profit margin?
Retail typically runs 20–50% gross; software and services can exceed 70%. Compare against your industry, not a universal number.
Is margin the same as markup?
No. Margin divides profit by price; markup divides profit by cost. A 40% margin equals a 66.7% markup.
How do I calculate margin from cost and markup?
Margin = markup ÷ (1 + markup). 50% markup → 33.3% margin.