Gross margin percentage: formula, calculation and meaning
How to calculate the margin percentage, what it means for your price, how it differs from markup, and which price gives a target margin.
The gross margin percentage shows how much of the selling price is left once the variable costs have been paid. In Danish it is called dækningsgrad, or DG. Where the contribution margin is an amount in kroner, the margin percentage is a ratio, which makes it suitable for comparing products, categories and periods. This guide covers the formula, a worked example with VAT, the difference between margin and markup, and how to calculate the price that gives the margin you want.
The margin formula and what it means
The formula is:
Margin % = contribution margin ÷ revenue × 100
The contribution margin is revenue excluding VAT minus variable costs, and revenue is also excluding VAT. A margin of 30 % means that DKK 30 of every DKK 100 in revenue excluding VAT is left to cover fixed costs and profit.
If you need to work out the contribution margin first, the guide to contribution margin lists which costs belong in it.
Calculating the margin on one product
Example. The numbers below are made up to show the method.
A blender sells for DKK 399 including VAT and costs you DKK 200 excluding VAT. To keep the example simple, the cost price is the only variable cost.
- Price excluding VAT: 399 ÷ 1.25 = DKK 319.20.
- Contribution margin: 319.20 − 200 = DKK 119.20.
- Margin: 119.20 ÷ 319.20 × 100 = 37.3 %.
VAT must not be included in revenue. If you use DKK 399, you get (399 − 200) ÷ 399 = 49.9 %, which is wrong because a fifth of that amount was never yours.
Use the calculator on this page to work out the margin for your own products.
The margin for the whole shop
The margin for a category or for the whole shop is the total contribution margin divided by the total revenue. It is not the average of the individual products’ margins.
| Product | Revenue excl. VAT | Margin | Contribution |
|---|---|---|---|
| A | DKK 10,000 | 40 % | DKK 4,000 |
| B | DKK 30,000 | 20 % | DKK 6,000 |
| Total | DKK 40,000 | 25 % | DKK 10,000 |
The average of 40 % and 20 % is 30 %, but the actual margin is 10,000 ÷ 40,000 = 25 %, because product B accounts for three quarters of the revenue.
How margin differs from markup
Margin measures profit relative to the selling price. Markup, called avanceprocent in Danish, measures profit relative to the cost price:
Markup % = contribution margin ÷ cost price × 100
For the blender the margin is 37.3 %, while the markup is 119.20 ÷ 200 × 100 = 59.6 %. Both describe the same profit seen from two sides. The markup is always higher than the margin when there is a profit, and the conversion is margin = markup ÷ (1 + markup), with both written as decimals. The guide to markup has a conversion table.
How a price cut changes the margin
When the price falls and the cost price stays the same, the contribution margin falls by the full amount of the reduction, so the margin percentage falls further than the price.
If you reduce the blender from DKK 399 to DKK 359 including VAT, that is a cut of about 10 %. The price excluding VAT becomes DKK 287.20, the contribution margin becomes DKK 87.20, and the margin drops to 87.20 ÷ 287.20 × 100 = 30.4 %. The contribution per unit has fallen from DKK 119.20 to DKK 87.20, which is 27 % less.
The table shows how much more you need to sell to keep the same total contribution after a 10 % price cut, with unchanged variable costs.
| Margin before the cut | Margin after a 10 % cut | Required increase in sales |
|---|---|---|
| 20 % | 11.1 % | 100 % |
| 30 % | 22.2 % | 50 % |
| 40 % | 33.3 % | 33 % |
| 50 % | 44.4 % | 25 % |
The lower your margin is to begin with, the more expensive it is to follow a competitor down in price.
How to find the price for a target margin
If you know the cost price and the margin you want, you can calculate the selling price directly:
Price excl. VAT = cost price ÷ (1 − margin)
For a 35 % margin on the blender, the price excluding VAT is 200 ÷ 0.65 = DKK 307.69. With 25 % VAT that is DKK 384.62, which you round up to DKK 385. To check: 385 ÷ 1.25 = DKK 308, the contribution margin is DKK 108, and the margin is 108 ÷ 308 × 100 = 35.1 %.
Round up rather than down if the margin is a minimum requirement. The guide to price calculation continues with price points and comparison against competitors’ prices.
The margin as a limit for pricing rules
The same formula gives you a floor for the price. If 20 % is the lowest margin you will accept on the blender, the minimum is 200 ÷ 0.80 = DKK 250 excluding VAT, or DKK 312.50 including VAT. Corprice can suggest minimum and maximum prices from a target margin and your cost prices, and pricing rules then stay within the limits you have approved. Read more on the repricing page and in the guide on setting a minimum price from your cost price.
Gross margin calculator
Change the numbers and the result updates. Nothing is sent anywhere.
- Contribution margin per unit
- –
- Gross margin
- –
- Price incl. VAT for the desired margin
- –