Profit Margin Calculator
Enter what something costs you and what you sell it for. You get profit, margin and markup — and below, the difference between them, explained properly.
Tip: to price from a target margin instead, use price = cost ÷ (1 − margin). For a 40% margin on a cost of 60, that is 60 ÷ 0.6 = 100 — exactly the example filled in here.
Profit40.00
Profit margin40.00%
Markup66.67%
About this profit margin calculator
Margin tells you how much of each sale you actually keep. It is the single most useful number in pricing, because two products with the same selling price can leave you with wildly different amounts once their costs are counted. This calculator needs just two figures — cost and revenue — and returns profit, margin and markup together, because confusing the last two is expensive.
The formulas
Profit = revenue − cost. Margin = profit ÷ revenue × 100. Markup = profit ÷ cost × 100. The two percentages use different denominators, which is why markup is always the bigger number for the same sale — and why a “50% markup” is only a 33.3% margin.
Pricing from a target margin works backwards: price = cost ÷ (1 − margin). For a target of 40% the divisor is 0.6; for 25% it is 0.75. Pricing from markup is simpler — price = cost × (1 + markup) — but be sure you know which of the two you actually meant before you quote it.
Worked example
You buy a product for 60 and sell it for 100. Profit is 40. Margin is 40 ÷ 100 = 40%. Markup is 40 ÷ 60 = 66.7%. If you had wanted a 66.7% margin instead, the price would need to be 60 ÷ (1 − 0.667) ≈ 180 — a very different business. The calculator above starts with exactly these numbers so you can see all three results at once.
Limitations
- Use your full cost, not just the purchase price: delivery, packaging, payment fees and your time all shrink the real margin.
- The calculator works on one product or one job at a time and does not account for tax, discounts or returns.
- A healthy margin percentage depends heavily on your industry; there is no universal “good” figure.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost. Same profit, different base — so markup always reads higher. Quoting one when you mean the other is a classic pricing mistake.
Can margin be over 100%?
No. Margin is a share of the selling price, so it is capped at 100% (and only reaches it if cost is zero). Markup can be any size — a 300% markup means you sell at four times cost.
What margin should I aim for?
It varies too much by industry to give one number honestly. Compare against your own costs and competitors, and remember a high margin on something that never sells earns nothing.
Is this calculator free?
Yes, and it runs in your browser — the figures you enter are not sent anywhere.
Disclaimer: This tool is provided for information and convenience only. It is not financial, tax or accounting advice. Figures can be affected by rounding, local rules and your specific circumstances — verify important results with a qualified professional or an official source.