Gross margin formula
Gross margin is the share of the selling price you keep after paying what the item cost you.
Gross margin % = (price − cost) ÷ price × 100
Price for a target margin = cost ÷ (1 − margin ÷ 100)
Worked example
A product costs you $60 and sells for $100. The gross profit is $40, and $40 ÷ $100 = 40% gross margin. To reach a 50% margin on the same product, charge $60 ÷ (1 − 0.5) = $120.
Margin and markup aren’t the same
Margin compares profit with the price, while markup compares it with the cost. The same $40 profit on a $60 cost is a 40% margin but a 66.67% markup. If you need to start from the cost, try our markup calculator.
| Gross margin | Same as markup |
|---|---|
| 10% | 11.11% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100% |
What counts as cost?
Use the direct cost of the item you sell, such as materials, wholesale price and direct labor. Rent, marketing and office costs aren’t included in gross margin, so your net profit will be lower. Good margins vary a lot by industry.
How to use the gross margin calculator
- Choose what you want to find. Under “What do you want to find?”, pick Gross margin to work out the margin from a price you already charge, or Selling price to find the price that gives you a target margin.
- Enter your cost. This is what one item costs you to buy or make.
- Enter the selling price or the target gross margin. The selling price box shows in Gross margin mode. The target box shows in Selling price mode and takes any margin from 0% up to just below 100%.
- Press Calculate. You see the answer, a short sentence on your gross profit, and a table with the cost, selling price, gross profit, gross margin and markup.
Worked example: pricing for a 35% margin
A candle costs you $18.50 to make, and you want a 35% gross margin. Choose Selling price, enter 18.50 as the cost and 35 as the target gross margin.
- Selling price: $18.50 ÷ (1 − 0.35) = $18.50 ÷ 0.65 = $28.46
- Gross profit: $28.46 − $18.50 = $9.96
- Gross margin: 35%
- Markup: 53.85%
The calculator keeps the exact price behind the scenes and shows it rounded to the cent. If you round your price to $28.50 or $29, enter that price in Gross margin mode to see the margin you will really get.
Worked example: selling below cost
If an item costs you $45 and you sell it for $40, choose Gross margin and enter 45 and 40. The calculator shows a gross margin of −12.5%, a gross profit of −$5.00 and a markup of −11.11%, and the sentence under the result says the sale makes a $5.00 loss. A negative margin means each sale loses money before you pay any other costs.
Gross margin for a whole business
The calculator works on totals as well as single items. Enter a period’s cost of goods sold as the cost and its sales revenue as the selling price. A shop with $250,000 of sales and $160,000 of cost of goods sold in a year has a gross profit of $90,000. Enter 160,000 and 250,000 in Gross margin mode, and the gross margin is 36%, with a markup of 56.25%. Comparing this figure from one year or one product line to the next shows whether your pricing or your costs are moving the wrong way. Make sure both totals cover the same period and the same goods.
Selling price for a $60 cost at different margins
The price needed for each extra point of margin rises faster as the margin gets higher. This table uses a cost of $60.
| Target gross margin | Selling price | Gross profit |
|---|---|---|
| 20% | $75.00 | $15.00 |
| 30% | $85.71 | $25.71 |
| 40% | $100.00 | $40.00 |
| 50% | $120.00 | $60.00 |
| 60% | $150.00 | $90.00 |
Going from 50% to 60% adds $30 to the price, while going from 20% to 30% adds less than $11. That is why a margin close to 100% can’t be reached: the price would have to grow without limit.
How a discount cuts your margin
A sale takes money straight out of your gross profit, while the cost stays the same. Take the $60 item that sells for $100 at a 40% margin. If you run a 10% off sale, the price drops to $90. Enter 60 and 90 in Gross margin mode, and the margin falls to 33.33%. Your gross profit per item goes from $40 to $30, a drop of a quarter.
To earn the same $4,000 of gross profit you made from 100 items at full price, you now need to sell about 134 items. Check the sale price itself with the discount calculator before you set it.
Gross margin, net margin and break-even
Gross margin only looks at the cost of the item. It tells you how much each sale leaves to pay for rent, wages, marketing and other running costs. A business with a high gross margin can still lose money if its running costs are larger than the gross profit it brings in. What’s left after those costs is your net profit, and the net profit margin calculator works that out. To find how many sales you need to cover your fixed costs, use the break-even calculator.
Common gross margin mistakes
- Using markup to set a margin. Adding 40% to a $60 cost gives $84, which is only a 28.57% margin. To reach 40%, divide by 0.6 instead.
- Leaving out part of the cost. Include shipping in, packaging and payment fees for the item if you pay them on every sale.
- Using a price that includes sales tax. The tax isn’t yours to keep, so enter the price before tax.
- Typing a decimal for the margin. Enter 35 for 35%, not 0.35.
What next
Use this often? Add Gross Margin to your Home screen.
Frequently asked questions
How do I calculate gross margin percentage?
Subtract the cost from the price, divide by the price, then multiply by 100. A $60 cost and a $100 price give a 40% gross 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. The same sale always has a higher markup than margin.
Can a margin reach 100%?
Only if the item costs nothing. Below that, a higher price moves the margin closer to 100% without reaching it.
How do I calculate a margin percentage?
Subtract the cost from the price, divide by the price, then multiply by 100. For example, a $60 cost and a $100 price give a 40% margin. For margin on a stock trade, use our margin calculator for trading.
How do I calculate profit margin?
Subtract the cost from the price, divide by the price, then multiply by 100. This gives your gross profit margin. Net profit margin also takes off overhead, such as rent and marketing, so it’s lower.
What price do I need for a 35% margin?
Divide your cost by 0.65. For a cost of $18.50, the price is $18.50 ÷ 0.65 = $28.46, which gives $9.96 of gross profit.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.