Profit margin is the share of the selling price you keep as profit: margin = (price − cost) ÷ price × 100. Markup is the profit as a share of cost: markup = (price − cost) ÷ cost × 100. To price for a target margin, divide the cost by (1 − margin): a 60 cost at a 40% margin needs a price of 100.
Profit margin formula
Margin vs markup
People mix these up all the time, and it costs money. If you want a 40% margin and add 40% to your cost, you end up with a 28.6% margin. The difference is what you divide by.
Margin to markup conversion table
| Profit margin | Markup needed |
|---|---|
| 10% | 11.1% |
| 20% | 25% |
| 25% | 33.3% |
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100% |
| 60% | 150% |
Markup = margin ÷ (1 − margin). To double your cost (100% markup), you're working at a 50% margin.
Gross, operating and net margin
| Margin | Formula | What it tells you |
|---|---|---|
| Gross margin | (Revenue − cost of goods) ÷ revenue | How much each sale leaves after the product itself |
| Operating margin | Operating profit ÷ revenue | What's left after running costs like staff, rent and marketing |
| Net margin | Net profit ÷ revenue | The final share kept after everything, including tax and interest |
What a discount does to your margin
Discounts come straight out of profit, so they cut margin much faster than they cut price.
| Full price | 20% off | |
|---|---|---|
| Price | $100 | $80 |
| Cost | $60 | $60 |
| Profit per unit | $40 | $20 |
| Margin | 40% | 25% |
| Units to earn $4,000 profit | 100 | 200 |
A 20% discount on a 40% margin product halves the profit per unit, so you need to sell twice as many to stand still.
Why margin matters for advertising
Your margin decides how much you can spend to win a sale. The break-even ROAS for ads is 1 ÷ margin: a 40% margin needs at least 2.5x return on ad spend, while a 20% margin needs 5x. If your margin is thin, every rise in ad costs eats straight into profit. See where you stand with the ROAS Calculator, and for per-order profit after delivery, fees and returns, the E-commerce Profit Calculator.