Markup is calculated on the product cost, margin on the selling price. A product bought for 100 and sold for 200 excluding VAT has a 100% markup and a 50% margin. It is the same gain of 100, measured against a different base.
Mixing up markup and margin is one of the most expensive pricing mistakes in ecommerce. A store that wants a "30% margin" and adds 30% to cost ends up with a 23% margin. Below are both formulas, a conversion table and the steps to set a price.
The difference between markup and margin
Both start from the same amount: the selling price excluding VAT minus the product cost. Only the base changes.
Since the price is always higher than the cost, margin is always lower than markup for the same product. Markup can go above 100%. Margin can never reach 100%.
| Markup | Margin | |
|---|---|---|
| Measured against | Product cost | Selling price excl. VAT |
| Answers the question | How far above cost is my price? | How much of each euro I take do I keep? |
| Can exceed 100%? | Yes | No |
| Example: cost 100, price 200 | 100% | 50% |
Markup to margin conversion table
| Markup | Equivalent margin |
|---|---|
| 25% | 20.0% |
| 33.3% | 25.0% |
| 50% | 33.3% |
| 66.7% | 40.0% |
| 100% | 50.0% |
| 150% | 60.0% |
| 200% | 66.7% |
How to set a price from a target margin
If you know the margin you want, do not add that percentage to cost. Divide the cost by (1 − margin):
- Cost €40, target margin 40%: 40 ÷ 0.60 = €66.67 excluding VAT.
- Add VAT, for example 21%: 66.67 × 1.21 = €80.67 shelf price.
- Check: (66.67 − 40) ÷ 66.67 = 40%. The markup is 66.7%.
A 40% markup instead (40 × 1.40 = €56 excluding VAT) would give you a margin of only 28.6%.
Common mistakes
- Calculating with VAT included. Markup and margin are calculated on the price excluding VAT. VAT is not your gain.
- Underestimating discounts. A 20% discount on a product with a 33% margin does not cut a fifth of your gain, it cuts more than half. On a €300 net price with €100 gain, €40 is left.
- Treating gross margin as profit. The margin in this article only subtracts the product cost. Fees, shipping, returns and ads come after that. The guide to calculating profit per product shows how to subtract them all.
Which one should you track?
Markup is handy when you price from a supplier list. Margin is better for decisions, because it starts from what you actually take in and lines up with your revenue reports. The step after gross margin is contribution margin: what remains after all variable costs, not just the product cost.
The biggest discount you can afford
Gross margin only tells you how far you can cut before you hit the product cost. To find the discount at which a product starts losing money, start from contribution before ads:
In the example from the guide to calculating profit per product, contribution is €37.37, net revenue €100 and the payment fee €3.63: 37.37 ÷ (100 − 3.63) = 38.8%. The fee shrinks with the price, which is why it sits in the denominator. A product with a 50% gross margin goes negative at a discount above 38.8%, even with no ads at all.
Frequently asked questions
Does a 100% markup mean doubling the price?
Yes. The price excluding VAT is twice the cost, and the margin is 50%.
Is margin calculated with or without VAT?
Without VAT. Both markup and margin start from the price excluding VAT, because VAT does not stay in the business.
Can margin be higher than 100%?
No. That would mean the product had a negative cost. Markup, on the other hand, can exceed 100%.
Which one belongs in reports: markup or margin?
Margin. It is measured against revenue, like the rest of your report figures, so products and months compare directly.
See the real margin on every product
DGD Systems calculates the contribution of every product after fees, shipping, returns and ads. Works with Shopify, WooCommerce or a CSV export. Try it free for 14 days, no card needed. Then €49 per month.
Start the 14-day free trialThe figures in the examples are illustrative, chosen so the calculation is easy to follow. For accounting and tax treatment, check with your accountant.