What is profit margin?
Profit margin is the share of the selling price that you keep as profit. A 25% margin means that out of every $1 a customer pays, 25 cents is profit and 75 cents covers the cost. Because it's measured against revenue, margin makes it easy to compare products with very different prices.
Profit margin formula
Margin % = (Selling price − Cost) ÷ Selling price × 100
- Selling price for a target margin = Cost ÷ (1 − Margin ÷ 100)
- Maximum cost for a target margin = Selling price × (1 − Margin ÷ 100)
Example
You can buy a pair of headphones for $30 and want a 25% margin. The price is $30 ÷ 0.75 = $40, for $10 profit. A common mistake is to add 25% to the cost instead: $30 × 1.25 = $37.50, which is only a 20% margin.
Working backwards is just as useful for resellers: if similar items sell for $40 and you want a 25% margin, the most you should pay is $40 × 0.75 = $30.
Margin vs. markup
Both measure the same profit. Margin divides it by the selling price; markup divides it by the cost. The same $10 profit on a $30 item sold for $40 is a 25% margin and a 33.3% markup. If you're more used to working from cost, try the markup calculator.
Margin to markup conversion table
| Margin | Markup | Selling price for a $100 cost |
|---|---|---|
| 10% | 11.1% | $111.11 |
| 15% | 17.6% | $117.65 |
| 20% | 25% | $125 |
| 25% | 33.3% | $133.33 |
| 30% | 42.9% | $142.86 |
| 40% | 66.7% | $166.67 |
| 50% | 100% | $200 |
| 60% | 150% | $250 |
| 70% | 233.3% | $333.33 |
| 80% | 400% | $500 |
Gross, operating and net margin
This calculator gives the margin on whatever you enter as cost. With just the product cost, that's the gross margin. Add selling fees, shipping and packaging to the cost and you get something closer to a net margin per sale. Businesses also calculate operating and net margin across all sales, after rent, wages, software and taxes, which is always lower than the gross figure.
Frequently asked questions
How do you calculate profit margin?
Divide profit by the selling price and multiply by 100. Selling a $30 item for $40 is $10 ÷ $40 = 25% margin.
How do I price an item for a specific margin?
Divide the cost by 1 minus the margin as a decimal. For 25% on a $30 item: $30 ÷ 0.75 = $40.
What is the difference between margin and markup?
Margin divides profit by price; markup divides it by cost. $30 → $40 is a 25% margin but a 33.3% markup.
Can profit margin be 100%?
No, not if the item cost anything: it would mean the whole price is profit.
Is this gross margin or net margin?
It's the margin on the cost you enter. Product cost alone gives gross margin; include fees and shipping for a net margin per sale.