Margin calculator
Margin (the German “Handelsspanne”) is the share of the net selling price that remains after deducting the purchase price. Markup relates the same gross profit to the purchase price instead. Calculate both net or gross of VAT, and see what is left after shipping, fees and advertising costs.
Calculate margin online
Enter purchase and selling price per unit; the calculation always uses the net selling price. The example values show what the result looks like.
The result appears here, with the working. Nothing is stored.
The formulas for margin and markup
The Gabler Wirtschaftslexikon (German) describes the Handelsspanne as the difference between cost and selling price and the Kalkulationsaufschlag as the percentage increase of the cost price. For an exact gross profit the VAT is removed from the selling price.
Gross profit per unit Margin Gross profit ÷ net selling price × 100
Markup Gross profit ÷ purchase price × 100
Convert markup to margin Markup ÷ (100 + markup) × 100
Markup and margin compared
The most common pricing mistake: a markup of 100% is not a margin of 100% but of 50%. The table converts typical markups.
| Markup on the purchase price | Margin on the net selling price |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.7% |
| 300% | 75% |
Why you calculate with net prices
You pass the VAT in the selling price on to the tax office; it is not income. If you calculate with the gross price, the margin looks too high by the tax share.
- Gross to net: Gross price ÷ (1 + tax rate). Example: €59.50 ÷ 1.19 = €50.
- Tax rate: In Germany 19% or, reduced, 7% apply. For EU distance sales the rate of the destination country may apply – more in the OSS guide.
- Small businesses: Without VAT shown on invoices choose 0% and enter the purchase price including VAT, because no input VAT deduction is possible.
What still comes off after gross profit
In online retail shipping, fees and returns also cost money on every order. A high margin can shrink quickly after these costs, which is why the calculator shows both values.
| Cost block | Typical content per order |
|---|---|
| Shipping & packaging | Postage, packaging material and volume-dependent fulfilment services |
| Payment fees | Percentage and fixed fees charged by payment providers per order |
| Marketplace & platform fees | Sales commissions and transaction-dependent platform costs |
| Returns | Return shipping, handling and goods that can no longer be sold, spread across all sales |
| Advertising costs | Attributable costs per order if you want to measure margin after marketing |
A product at €59.50 gross
An illustrative example with 19% VAT, a €20 purchase price and €12 other variable costs per unit.
- 1. Net selling price: €59.50 ÷ 1.19 = €50.00
- 2. Gross profit: €50.00 − €20.00 = €30.00
- 3. Margin and markup: 60.0% margin, 150.0% markup
- 4. After variable costs: €18.00 per unit, which is 36.0% of the net selling price
Frequently asked questions about margin
How do I calculate margin?
What is the difference between margin and markup?
Do I calculate margin with gross or net prices?
What is a good margin in e-commerce?
How do I find the selling price for a target margin?
From margin to contribution margin
Margin shows the gross profit per unit. Whether enough is left after all variable costs to cover your fixed costs is shown by the contribution margin. NorthProfit can bring these values together per order from connected data sources; completeness depends on the available sources and maintained costs.