Margin Calculator
Gross margin is your profit as a percent of the selling price. Enter cost and selling price to find the margin percent, or enter cost and a target margin to find the price. Cost 150 and price 200 is a 25% margin. Margin is not markup, because markup divides profit by cost.
How to calculate gross margin
Gross margin percent is profit divided by selling price. Profit is the selling price minus cost. To find a price from a target margin, divide cost by 1 minus the margin rate.
margin % = ((price - cost) / price) × 100
- Margin from cost and price: with cost 150 and price 200, profit is 50. 50 / 200 × 100 = 25%.
- Price from cost and margin: with cost 75 and a 40% margin, price is 75 / 0.60 = 125.
- Check the price. Profit is 125 - 75 = 50, and 50 / 125 = 40%.
The margin must stay below 100%. A 100% margin means the cost is zero, and the price formula would divide by zero.
What gross margin tells you
Gross margin shows how many cents of each sales dollar remain after you pay the cost of the goods. A 25% margin means you keep 25 cents of every dollar of revenue.
Gross margin counts only the direct cost of what you sell. It leaves out rent, wages, and other overhead, so it is higher than net margin.
Find the selling price for a target margin
Do not multiply cost by 1 plus the margin. That formula applies markup, and it gives a smaller margin than you wanted.
With cost 75 and a 40% target, 75 × 1.40 = 105. The profit is 30, and 30 / 105 is only 28.571%. Divide by 0.60 to reach 125, which gives the true 40% margin.
price = cost / (1 - margin % / 100)
- Cost 60 at 25% margin: 60 / 0.75 = 80.
- Cost 90 at 10% margin: 90 / 0.90 = 100.
- Cost 30 at 50% margin: 30 / 0.50 = 60.
Margin and markup side by side
The same sale gives two different percents. Margin divides profit by price, and markup divides profit by cost. Markup is always the larger number when profit is positive.
| Cost | Price | Margin | Markup |
|---|---|---|---|
| 80 | 100 | 20% | 25% |
| 150 | 200 | 25% | 33.333% |
| 100 | 150 | 33.333% | 50% |
| 60 | 100 | 40% | 66.667% |
| 50 | 100 | 50% | 100% |
Convert margin to markup
If you know the margin, divide it by 1 minus the margin rate to get the markup. A 25% margin gives 0.25 / 0.75 = 33.333% markup.
If you know the markup, divide it by 1 plus the markup rate to get the margin. A 50% markup gives 0.50 / 1.50 = 33.333% margin.
Not the same as
Margin looks like markup until you check what the profit divides by.
- Markup Markup divides profit by cost. Cost 100 and price 150 is a 50% markup and a 33.333% margin. Open the markup calculator
- Profit percentage Profit percentage reports profit on cost and on revenue together. This page focuses on gross margin as a percent of price. Open profit percentage
- Discount A discount cuts a selling price by a percent. A margin describes the profit left in a price. Open the discount calculator
Related tools
Margin questions
25%. Profit is 50, and 50 divided by the price of 200 is 0.25.
125. Divide 75 by 0.60. Profit is 50, which is 40% of 125.
Subtract cost from the selling price, divide by the selling price, then multiply by 100. For cost 100 and price 150, 50 / 150 × 100 = 33.333%.
No. Cost 150 and price 200 is a 25% margin and a 33.333% markup. The two match only at 0%.
A 100% margin means the whole price is profit, so the cost is zero. The price formula would divide by zero, so the calculator needs a margin below 100.
It depends on the industry. Retail, software, and restaurants run very different margins. Compare your result with peers who sell similar products.
Margin is profit as a percent of selling price. Profit percentage on this site also reports profit as a percent of cost.