Profit Margin Calculator
Margin is profit as a share of the selling price; markup is profit as a share of the cost. Enter a cost and price to see both, or a cost and target margin to find the price.
Margin from cost and price
Price for a target margin
Formulas
profit = price − cost
margin = profit ÷ price
markup = profit ÷ cost
price for a target margin = cost ÷ (1 − margin)
Worked example
Cost 60, target margin 40%
- Price = 60 ÷ (1 − 0.40) = 60 ÷ 0.60 = 100
- Profit = 100 − 60 = 40
- Check: 40 ÷ 100 = 40% margin; markup 40 ÷ 60 = 66.67%
Sell at 100.
Margin vs markup
| Markup on cost | Gross margin |
|---|---|
| 10% | 9.09% |
| 25% | 20% |
| 33.33% | 25% |
| 50% | 33.33% |
| 66.67% | 40% |
| 100% | 50% |
| 150% | 60% |
| 300% | 75% |
A common mistake is adding a 40% markup when a 40% margin was intended: 60 + 40% = 84, which is only a 28.6% margin. Margin can never reach 100% unless the cost is zero; markup has no upper limit.