How to calculate gross profit margin
Gross profit margin is the share of the selling price that is left after paying the direct cost of the item. Enter the cost and the selling price above and the calculator gives you three numbers: gross profit, gross margin % and markup %. The formulas are:
- Gross profit = selling price - cost
- Gross margin % = (selling price - cost) / selling price x 100
- Markup % = (selling price - cost) / cost x 100
Example: an item costs 60 and sells for 100. Gross profit is 40. Gross margin is 40 / 100 = 40%. Markup is 40 / 60 = 66.7%. Same item, two different percentages, because they divide by different numbers.
Margin vs markup: the mistake that costs money
Margin divides profit by the selling price. Markup divides it by the cost. They are never equal unless profit is zero, and margin is always the smaller number. The most common pricing error is adding a 50% markup and assuming you have a 50% margin. You do not: a 50% markup gives a 33.3% margin.
| Markup on cost | Gross margin on price |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 200% | 66.7% |
The conversion is margin = markup / (100% + markup). If a supplier or marketplace quotes one and you think in the other, convert before you compare.
How to price an item for a target margin
This calculator works forward from a cost and a price. To work backwards from the margin you want, use:
- Selling price = cost / (1 - target margin). For a cost of 60 and a 40% margin: 60 / 0.60 = 100. For a cost of 50 and a 30% margin: 50 / 0.70 = 71.43.
- If you price by markup instead: selling price = cost x (1 + markup). A cost of 80 with a 50% markup sells at 120, which is a 33.3% margin.
Type the resulting price back into the calculator to confirm the margin.
Gross margin vs net margin
Gross margin only subtracts the direct cost of the item or service, such as materials, manufacturing or the price you paid the supplier. Net margin subtracts everything, including rent, salaries, software, marketing and taxes, before dividing by revenue. This tool calculates gross margin. A healthy gross margin still has to be big enough to cover those other costs, so a low gross margin leaves little room before the business loses money.
What is a good profit margin?
There is no single number. Margins differ widely between industries, and between a product you make and one you resell, so compare yourself with businesses like yours rather than a general average. A useful check is whether your gross profit, across all the items you sell, covers your fixed costs with something left over.
Common mistakes when working out margin
- Leaving costs out of the cost figure: shipping in, packaging, payment fees, marketplace fees and returns all reduce the real margin.
- Using a price that includes sales tax, VAT or GST as revenue. Those taxes are not yours to keep, so enter the price without them.
- Forgetting discounts. If you regularly sell at 15% off, work out the margin at the discounted price.
- Comparing a margin figure with a markup figure without converting.
Related tools: the discount and sales tax calculator, the freelance hourly rate calculator and the percentage calculator.
