Profit margin calculator: how it works
Profit is revenue minus cost. Margin and markup both describe profit as a percentage, but they divide by different things. Margin divides profit by the selling price, so it says how much of each unit of sales you keep. Markup divides profit by cost, so it says how much you add on top of what you paid.
Enter a cost and a selling price to get profit, margin and markup. Or enter a cost and a target margin to find the price that achieves it. Because margin is based on price, the price for a target margin is cost ÷ (1 − margin), not cost × (1 + margin), which is a common pricing mistake.
Use it when you are pricing a new product, checking whether a supplier's price rise hurts you, or comparing a quote with your costs. Seeing margin and markup together prevents the common mix-up where a seller adds 30% to cost and then expects a 30% margin.
Formula and assumptions
Formula
Profit = revenue − costMargin % = profit ÷ revenue × 100Markup % = profit ÷ cost × 100Price for target margin = cost ÷ (1 − margin%)
Assumptions
- Margin is calculated on revenue; markup on cost.
- Costs are per unit and exclude tax unless you include them in the cost.
Worked example
Cost 600, selling price 800
- Profit = 800 − 600 = 200.
- Margin = 200 ÷ 800 = 25%.
- Markup = 200 ÷ 600 = 33.3%.
- To reach a 40% margin on the same cost: price = 600 ÷ (1 − 0.40) = 1,000.
Result: A 25% margin equals a 33.3% markup; hitting 40% margin needs a price of 1,000.
Limitations
- This is gross margin per unit. It does not include overheads, salaries, rent, advertising, or tax.
- Costs are per unit and exclude sales tax unless you include it. Do not mix tax-inclusive prices with tax-exclusive costs.
- A margin cannot reach 100% for a product with a cost, but markup can exceed 100%.
- Average margins differ widely between industries; there is no universal "good" number.