Margin and markup are two of the most commonly confused numbers in business. Both compare cost and price, but they use a different base, so the same sale can have a 40% margin and a 66.67% markup. Mixing them up can quietly destroy profit. Our margin calculator shows profit, gross margin and markup together, so you always know which is which.
How to use the calculator
- Cost: what the item costs you to buy or make.
- Selling price: what you sell it for, excluding sales tax or VAT.
The default example costs 60 and sells for 100. The profit is 40.00, the gross margin is 40.00% and the markup is 66.67%.
The formulas
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. Since the price is always bigger than the cost (when you make a profit), margin is always smaller than markup.
Example: you buy a product for 40 and sell it for 50.
- Profit: 50 − 40 = 10.
- Margin: 10 ÷ 50 = 20%.
- Markup: 10 ÷ 40 = 25%.
Converting between margin and markup
Use decimals in these formulas (40% = 0.4).
| Margin | Markup | |--:|--:| | 10% | 11.1% | | 20% | 25.0% | | 25% | 33.3% | | 33.3% | 50.0% | | 40% | 66.7% | | 50% | 100.0% | | 60% | 150.0% |
The gap grows quickly. A 50% margin needs a 100% markup, meaning you double the cost.
Pricing for a target margin
This is where the confusion costs money. Suppose you want a 30% margin on an item that costs 70. Adding 30% to the cost gives 91, but the margin on 91 is only 23%. The correct formula divides:
70 ÷ (1 − 0.30) = 70 ÷ 0.70 = 100. Check it: the profit is 30, which is 30% of 100.
What counts as cost?
Gross margin uses the cost of goods sold: the direct cost of the product, such as purchase price, materials, direct labour and inbound shipping. It does not include rent, marketing or salaries, which are covered by the gross profit. After those overheads you get the operating margin, and after tax and interest the net margin. A healthy gross margin has to be large enough to pay all those overheads and still leave a profit.
Typical gross margins vary widely by sector: grocery stores often run on 20 to 30%, clothing retailers around 50%, and software companies can exceed 70%.
Margins and discounts
Discounts come straight off your margin. With a 40% margin, a 20% discount on 100 brings the price to 80, the profit to 20 and the margin to 25%. Check sale prices with the calculator before you launch a promotion. The discount calculator gives the sale price first.
Tracking margin over time
Supplier prices, shipping costs and exchange rates change, so a margin that was healthy last year may have slipped. Recalculate your key products whenever a cost changes, and set a minimum margin below which you review the price. A rise in cost from 60 to 66 on a 100 product cuts the margin from 40% to 34%, a 15% drop in profit per unit.
Margins and tax
Always enter prices without VAT or sales tax, because the tax is not your money. If your price includes VAT, remove it first with the VAT calculator. For sales staff paid on a percentage of each sale, the commission calculator works out what each sale costs in commission.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by the selling price. Markup is profit divided by the cost. A product costing 60 and selling for 100 has a 40% margin and a 66.67% markup.
Can margin be more than 100%?
No. Margin is a share of the price, so it can approach but never reach 100% unless the cost is zero. Markup has no upper limit.
How do I price something for a 50% margin?
Divide the cost by 0.5, which doubles it. An item costing 30 should sell for 60.
Is gross margin the same as profit margin?
Gross margin counts only the direct cost of goods. Net profit margin subtracts all expenses, including overheads, interest and tax, so it is always lower.
Try it yourself
Run your own numbers with our free tool: Margin calculator. No sign-up, and it works on any device.