Profit margin and markup calculator
Margin is profit divided by the selling price; markup is the same profit divided by the cost. Take VAT or GST out of the price first, because tax is not revenue. To hit a target margin, divide the cost by one minus the margin, never add the margin to the cost.
Free, no signup, nothing stored. The numbers live in the URL, so a result is a link you can share, and the page works with JavaScript switched off.
The answer
- Gross margin
- 55.6%
- Markup
- 125.0%
- Gross profit per unit
- €22.50
- Net price€8.50 of the price is tax
- €40.50
- Price for a 60% marginBefore tax, then the shelf price with tax
- €45.00 → €54.45
- That is a markup of
- 150.0%
Shareable result: https://www.magistry.io/tools/profit-margin-calculator?cost=18&price=49&vat=21&target=60&cur=EUR
Magistry tracks product costs, fees and refunds next to revenue for every order, so margin is a live number per product rather than a calculation you redo. Start on the free plan, or open the demo first.
How margin and markup are calculated
net price = price ÷ (1 + tax rate)gross profit = net price − costmargin = gross profit ÷ net pricemarkup = gross profit ÷ costprice for target margin = cost ÷ (1 − target margin)
Worked through with the example on this page: a 49 shelf price including 21% VAT is 40.50 of revenue. Minus an 18 cost that leaves 22.50 of gross profit, a 55.6% margin and a 125% markup. For a 60% margin the price before tax must be 18 ÷ 0.40 = 45.00, which is 54.45 on the shelf with VAT.
Margin to markup, and back
The same profit, expressed against the price and against the cost. Markup = margin ÷ (1 − margin).
| Margin | Markup on cost | Price for a cost of 10 |
|---|---|---|
| 10% | 11.1% | 11.11 |
| 20% | 25.0% | 12.50 |
| 25% | 33.3% | 13.33 |
| 30% | 42.9% | 14.29 |
| 40% | 66.7% | 16.67 |
| 50% | 100.0% | 20.00 |
| 60% | 150.0% | 25.00 |
| 70% | 233.3% | 33.33 |
| 75% | 300.0% | 40.00 |
| 80% | 400.0% | 50.00 |
Questions
What is the difference between margin and markup?
Both are the same profit divided by a different number. Margin is profit as a share of the selling price; markup is profit as a share of the cost. A product that costs 50 and sells for 100 has a 50% margin and a 100% markup. Margin can never reach 100%; markup has no ceiling.
How do I calculate the price for a target margin?
Divide the cost by one minus the margin. For a 60% margin on an 18 cost: 18 ÷ (1 − 0.60) = 45. Adding 60% to the cost gives 28.80, which is a 37.5% margin, the most common pricing mistake there is.
Should margin be calculated with or without VAT?
Without. VAT, GST and US sales tax are collected for the government and passed on, so they are not revenue. Take them out of the shelf price first: a 49 price including 21% VAT is 40.50 of revenue. Calculating margin on the gross price overstates it by the tax rate.
What is a good profit margin?
It depends on what the margin has to pay for. A gross margin is what is left for shipping, payment fees, marketing, staff and rent, so a business that buys customers through ads needs more of it than one that sells on repeat orders. Online retail commonly runs 40 to 60% gross; restaurants run food costs near 30%, which is a 70% gross margin on ingredients before labour.
Is anything I type stored?
No. The calculation runs on the server from the values in the URL. Only an anonymous count that the calculator was used is kept, with no IP address and none of your numbers.
More free tools
- Discount profit calculatorHow many more sales a discount needs to keep the same profit.
- Price increase calculatorHow many sales a price rise can lose and still earn the same.
- Break-even point calculatorUnits and revenue needed to cover your fixed costs.
- Customer lifetime value and LTV:CAC calculatorLifetime value, LTV:CAC and months to pay back acquisition.
- UTM link builder and checkerTagged campaign links, checked against GA4's channel rules.
- A/B test significance calculatorWhether B really beats A, and the visitors a test needs.
Last reviewed 2026-11-27. Found an error in a formula? Mail support@magistry.io.