Margin and markup both describe profit as a percentage, but they measure it against different numbers. An item that costs 60 and sells for 100 has a 40% margin and a 66.7% markup. Mixing the two up is one of the most common pricing mistakes, because pricing for a "40% margin" by adding 40% to cost leaves you well short. This guide shows both formulas, how to convert between them, and how to price for a target margin.
Step by step
- Open the profit margin calculator.
- Under I know, choose Cost and price if you already have a selling price.
- Enter your cost and your selling price, then read the profit, the margin and the markup.
- To set a price instead, choose Cost and target margin, enter your cost and the margin you want, and read the selling price you need to charge.
The figures are gross: overheads, tax and payment fees are not deducted unless you include them in the cost. Everything is calculated in your browser.
Margin versus markup
Both start from profit:
Profit = price − cost
Then they divide by different things:
- Margin = profit ÷ price × 100. Profit as a share of what the customer pays.
- Markup = profit ÷ cost × 100. Profit as a share of what the item cost you.
A worked example
You buy an item for 60 and sell it for 100.
- Profit = 100 − 60 = 40
- Margin = 40 ÷ 100 = 40%
- Markup = 40 ÷ 60 = 66.7%
Same item, same profit, two different percentages. Margin can never reach 100% (that would need a cost of zero), while markup has no upper limit: selling something that cost 10 for 50 is a 400% markup but an 80% margin.
Converting between margin and markup
If you know one, you can find the other without knowing the actual prices. Use decimals (40% = 0.40):
- Margin = markup ÷ (1 + markup)
- Markup = margin ÷ (1 − margin)
For example, a 25% markup gives 0.25 ÷ 1.25 = 20% margin. A 40% margin needs 0.40 ÷ 0.60 = 66.7% markup.
| Markup | Margin |
|---|---|
| 25% | 20.0% |
| 33.3% | 25.0% |
| 42.9% | 30.0% |
| 50% | 33.3% |
| 66.7% | 40.0% |
| 100% | 50.0% |
A quick way to remember the direction: markup is always the larger number, because cost is always smaller than price when you make a profit.
Pricing for a target margin
To hit a margin, divide the cost by (1 − margin):
Price = cost ÷ (1 − target margin)
Say an item costs 45 and you want a 40% margin:
- Price = 45 ÷ (1 − 0.40) = 45 ÷ 0.60 = 75
- Check: profit is 30, and 30 ÷ 75 = 40%.
The common mistake is to add 40% to cost instead: 45 × 1.40 = 63. That gives a profit of 18 and a margin of only 28.6%. On a product line with many items, that gap is the difference between the plan and the result.
Warning A target margin of 100% or more is impossible, because it would require a price that is infinitely larger than the cost. The calculator rejects it rather than showing a meaningless number.
Including VAT and fees
If you sell to consumers at a VAT-inclusive price, the VAT belongs to the tax authority, not to you. Calculate the margin on the net price. For example, at a 20% VAT rate a shelf price of 90 is 75 net, which gives the 40% margin above on a cost of 45. The VAT calculator removes VAT from a gross price, and the guide on how to calculate VAT explains why you divide rather than subtract.
Payment processing fees, marketplace commissions and shipping you pay for are real costs per sale. If you want the margin after them, add them to the cost before you calculate.
Margin, markup and break-even
Gross margin tells you how much each sale contributes. It does not tell you whether the business as a whole is profitable, because fixed costs such as rent, software and salaries still have to be paid. The number of sales you need to cover them is:
Break-even units = fixed costs ÷ (price − variable cost per unit)
With a price of 75, a cost of 45 and 3,000 a month in fixed costs, you need 3,000 ÷ 30 = 100 sales a month to break even. The break-even calculator works this out for you.
A few practical points when you set prices:
- Discounts eat margin faster than you expect. A 10% discount on the 75 item cuts the price to 67.50 and the profit from 30 to 22.50, a 25% drop in profit. The discount calculator and the percentage calculator help you check the effect before you run a sale.
- Use one measure consistently. Decide whether your team talks in margin or markup, and label it clearly in spreadsheets.
- Check the real cost. Margins are only as accurate as the cost you enter. Include everything that varies with each unit sold.
These figures are planning estimates, not financial or accounting advice.