Profit margin calculator
Margin and markup describe the same profit from two sides. Enter a cost and a price, or a cost and the margin you want, and the sheet does the rest.
| A | B | |
|---|---|---|
| 1 | From cost and price | |
| 2 | Cost | |
| 3 | Selling price | |
| 4 | Profit | 20.00 |
| 5 | Margin | 40% |
| 6 | Markup | 66.67% |
| 7 | ||
| 8 | Price for a target margin | |
| 9 | Cost | |
| 10 | Margin you want (%) | |
| 11 | Selling price | 50.00 |
| 12 | ||
| 13 | Price for a markup | |
| 14 | Cost | |
| 15 | Markup (%) | |
| 16 | Selling price | 45.00 |
| 17 | That is a margin of | 33.33% |
Blue cells are inputs: type a new value and the sheet recomputes. Click a result to see its formula.
How it works, step by step
=(B3-B2)/B3 =(B3-B2)/B2 =B9/(1-B10/100) =B14*(1+B15/100) Functions used here
More free tools
Questions
How do I calculate profit margin?
Subtract the cost from the selling price and divide by the selling price. Cost 30, price 50: (50 − 30) / 50 = 40% margin.
What is the difference between margin and markup?
Margin is profit as a share of the price; markup is profit as a share of the cost. A product that costs 30 and sells for 50 has a 40% margin and a 66.7% markup.
How do I set a price for a 40% margin?
Divide the cost by 0.6 (that is 1 − 40%). A cost of 30 needs a price of 50. Multiplying the cost by 1.4 gives 42, which is only a 28.6% margin.
How do I convert markup to margin?
Margin = markup / (1 + markup). A 50% markup is 0.5 / 1.5 = 33.3% margin. The other way round, markup = margin / (1 − margin).
Should the cost include shipping and fees?
For gross margin, use the cost of the goods sold: purchase price plus what it takes to get the product ready to sell. Payment fees, shipping and marketing usually come out later, in the net margin.
Run these formulas on live data
Sheets is a spreadsheet with 491 functions that reads your store, accounting or project data live, builds dashboards and e-mails reports on a schedule.