How to use the Profit Margin Calculator
- Choose whether you want the margin from a known price, or the price for a target margin.
- Enter your unit cost (what the product or service costs you).
- Enter the selling price, or the margin percentage you want to achieve.
- Read the margin, profit and equivalent markup instantly. Copy the results if you need them.
How it works
Gross margin = (Price − Cost) ÷ Price × 100.
Price for a target margin = Cost ÷ (1 − Margin ÷ 100).
Markup is shown alongside: (Price − Cost) ÷ Cost × 100. Margin is measured against the selling price, markup against the cost — which is why a 50% markup is only a 33.3% margin.
Worked examples
Retail product
A mug costs 6 to make and sells for 15. Profit is 9, margin is 9 ÷ 15 = 60%, markup is 9 ÷ 6 = 150%.
Pricing for 40% margin
A service costs 300 to deliver. To earn a 40% margin, charge 300 ÷ 0.60 = 500.
Limitations and assumptions
- This is gross margin per unit. It ignores overheads like rent and salaries — use the break-even calculator for those.
- A margin of 100% or more is impossible unless cost is zero, so targets must be below 100%.
Frequently asked questions
What is a good profit margin?
It depends heavily on the industry. Grocery retail often runs on low single-digit net margins while software can exceed 70% gross margin. Compare against businesses like yours rather than a universal number.
Is margin the same as markup?
No. Margin divides profit by the selling price; markup divides profit by the cost. The same sale always has a higher markup percentage than margin percentage.
Built and reviewed by Guru G
Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.