How to use the margin calculator
- Cost & price: find the profit, margin and markup on something you already sell.
- Cost & margin: find the price to charge to hit a target margin.
- Cost & markup: find the price when you add a fixed markup to cost.
- Add the units sold to see total revenue and profit.
Margin and markup formulas
Profit = Price − Cost
Gross margin = Profit ÷ Price × 100
Markup = Profit ÷ Cost × 100
Price for a target margin = Cost ÷ (1 − Margin ÷ 100)
Margin vs markup table
| Markup | Margin | Price on a $100 cost |
|---|---|---|
| 25% | 20% | $125 |
| 33.3% | 25% | $133.33 |
| 50% | 33.3% | $150 |
| 66.7% | 40% | $166.67 |
| 100% | 50% | $200 |
| 150% | 60% | $250 |
| 200% | 66.7% | $300 |
Gross margin only covers the cost of the goods themselves. Your net profit margin, after rent, wages, marketing and taxes, is lower. Planning discounts? Check how a sale affects your margin with the discount calculator.
Frequently asked questions
Subtract the cost from the selling price to get the profit, then divide the profit by the selling price and multiply by 100. An item that costs $60 and sells for $100 has a $40 profit and a 40% gross margin.
Both start from the same profit, but margin divides it by the selling price and markup divides it by the cost. In the $60 cost, $100 price example the margin is 40% but the markup is 66.7%. Margin can never reach 100%; markup can be any size.
Divide the cost by 1 minus the margin as a decimal. For a 40% margin on a $60 cost: 60 ÷ (1 − 0.40) = $100. A common mistake is to add 40% to the cost ($84), which gives only a 28.6% margin.
Margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin), using decimals. A 50% markup is a 33.3% margin, and a 50% margin is a 100% markup.
It varies a lot by industry. Grocery stores often run gross margins around 25–30%, while software and luxury goods can exceed 70%. Compare with businesses like yours, and remember gross margin is before rent, wages and other overheads; net margin is after them.