Margin and markup calculator
Calculate profit margin and markup, or the selling price needed for a target margin. Compare their different calculation bases.
Free. No account. No payment.
Result
With cost 40 and selling price 60, the margin is 33.333333 %.
Show calculation steps
Divide profit by selling price for margin; divide profit by cost for markup. These use different bases.
Formula
Calculation steps
- 60 − 40 ≈ 20
- 20 ÷ 60 × 100 ≈ 33.333333 %
Numbers are displayed to at most 6 decimal places.
More options
Select the jurisdiction independently of your language. Portugal’s islands and Spain’s other tax territories need separate treatment.
Tax
No verified preset is available. Enter the applicable rate yourself.
Select the jurisdiction independently of your language. Portugal’s islands and Spain’s other tax territories need separate treatment.
This tool performs arithmetic, not legal tax determination. The applicable rate and obligations depend on the transaction, place and date. Confirm them with the official authority.
Choose a calculation
How we calculateTry an example
Understand the calculation
Margin and markup are different percentages
Both start from the same profit: selling price minus cost. Margin divides that profit by the selling price. Markup divides it by the cost.
A product that costs $40 and sells for $60 makes $20 profit. The margin is 20 ÷ 60 = 33.33%, and the markup is 20 ÷ 40 = 50%. Neither is wrong, but mixing them up leads to prices that miss their target.
Pricing for a target margin
Divide the cost by 1 minus the target margin. For a 30% margin on a $40 cost: 40 ÷ 0.7 = $57.14. Adding 30% to the cost ($52) gives a margin of only 23%.
Converting between the two
- Margin = markup ÷ (1 + markup)
- Markup = margin ÷ (1 − margin)
A 50% markup is a 33.3% margin, and a 25% margin is a 33.3% markup.
What counts as cost
For a single product’s gross margin, cost usually means what you paid for the goods, including shipping to you. Operating and net margins subtract more costs, such as wages, rent and tax, and are calculated on the whole business. The calculator uses whatever cost you give it, so be clear which margin you’re quoting.
Guides
Understand the calculation