For web shops11 min read

Contribution margin: formula, example and calculator

Contribution margin is what a sale leaves after its variable costs. See the formula, the margin ratio, a worked example and what a sale can cost in marketing.

Co-founder, sales and customer relations

The short answer

Contribution margin is revenue minus variable costs – the amount each sale contributes towards your fixed costs and your profit.

  • The formula is selling price excluding VAT minus cost of goods and other variable costs. The contribution margin ratio is the same amount as a percentage of the selling price.
  • VAT never belongs in the calculation: an item at DKK 625 including Danish VAT is DKK 500 in revenue.
  • Contribution per order is the ceiling for what a sale can cost in marketing. With a 40 % ratio, break-even ROAS is 2.5.
  • There is no good ratio for everyone. It is good enough when it covers your fixed costs and the marketing it takes to win the sale.
In this article · 9 sections

Contribution margin is what a sale leaves once the costs that come with that particular sale are paid: the product itself, shipping, the payment fee and packaging. The rest has to cover rent, salaries, software and – last of all – your profit. That is why contribution margin, not revenue, decides whether an online store makes money.

This guide covers the formula, the difference between contribution margin, the contribution margin ratio and markup, a worked example with three products and a calculator for your own numbers. At the end we work backwards from the margin to what you can afford to pay for a sale – in ads or to an affiliate.

What is contribution margin?

Contribution margin is revenue minus variable costs. Variable costs rise and fall with sales: sell one more item and you get one more purchase price, one more shipment and one more payment fee. Fixed costs are there regardless of sales – rent, salaries, subscriptions and accounting.

In an online store, the typical variable costs are:

  • Cost of goods: the purchase price, including inbound shipping and duties.
  • Shipping to the customer – the part the customer does not pay.
  • Payment fees per transaction, including any instalment fees.
  • Packaging and packing materials.
  • Marketing paid per sale – such as affiliate commission. You can include it, but leave it out when you are working out what a sale is allowed to cost.

You can calculate contribution margin for one product, one order, a month or a whole year. Per product, it tells you which items carry the business. For the whole store, it tells you whether revenue can pay the fixed costs.

The formula: how to calculate contribution margin

The formula is simple: contribution margin = revenue excluding VAT − variable costs. Per item: selling price excluding VAT − cost of goods − other variable costs per unit.

  1. Find the selling price excluding VAT

    Prices in a Danish store include 25 % VAT. Divide by 1.25: an item at DKK 625 is DKK 500 in revenue.

  2. Subtract the cost of goods

    The purchase price including inbound shipping and duties. Buy the item for DKK 250 and DKK 250 is left after this step.

  3. Subtract the other variable costs

    Shipping you pay yourself, the payment fee and packaging. At DKK 40 per order, DKK 210 is left.

  4. What is left is the contribution margin

    DKK 210 per sale. That is what the order contributes towards fixed costs, marketing and profit.

Watch out

VAT is not your revenue

You collect VAT for the state and pass it on. Calculate the margin on a price including VAT and the business looks 25 % better than it is – and you set prices and budgets you cannot afford.

Contribution margin ratio: the margin as a percentage

The contribution margin ratio is the contribution margin as a percentage of revenue: ratio = contribution margin ÷ revenue × 100. In the example above, that is 210 ÷ 500 × 100 = 42 %. Of every DKK 1 the customer pays excluding VAT, DKK 0.42 is left for fixed costs, marketing and profit.

The ratio makes products with different prices comparable, and it is the number most ad tools and calculations build on. The margin in kroner is what pays the bills, though – an expensive product with a low ratio can leave more money than a cheap product with a high one.

Contribution margin ratio is not markup

Markup is calculated on the cost price, the margin ratio on the selling price. Buy at DKK 250 and sell at DKK 500 excluding VAT, and the markup is 100 % (250 ÷ 250), while the ratio on cost of goods alone is 50 % (250 ÷ 500). Both numbers are correct, but they answer different questions – mix them up and the price ends up wrong.

Markup and margin ratio for the same item (cost of goods only, excluding VAT)
Cost priceSelling priceMarkupMargin ratio
DKK 250DKK 312.5025 %20 %
DKK 250DKK 416.6767 %40 %
DKK 250DKK 500100 %50 %
DKK 250DKK 833.33233 %70 %

Example: an online store with three products

An online store sells headphones, books and skincare. All numbers exclude VAT, and shipping and payment is the part the store pays per order.

Contribution margin per product (excluding VAT)
ProductSelling priceCost of goodsShipping and paymentContribution marginRatio
HeadphonesDKK 800DKK 480DKK 64DKK 25632 %
BookDKK 200DKK 110DKK 40DKK 5025 %
SkincareDKK 400DKK 120DKK 48DKK 23258 %

If the store sells 100 headphones, 300 books and 200 skincare products in a month, revenue is DKK 220,000 and the contribution margin is DKK 87,000 (25,600 + 15,000 + 46,400). The ratio for the whole store is therefore about 39.5 % – and it moves every time the product mix does. Sell more books and less skincare and the ratio falls, even as revenue rises.

The example also shows why a single discount can be expensive: 10 % off the book removes DKK 20 from a DKK 50 margin – 40 % of what the sale contributed. The discount has to more than double book sales before it pays off.

What is a good contribution margin ratio?

No single number is good for everyone, and cross-industry averages say little about your store. A ratio is good enough when the margin can pay for three things: your fixed costs, the marketing it takes to win the sale, and a profit. A store with low fixed costs and many repeat customers can live on a lower ratio than one that has to buy every customer through an ad.

The most useful number is the break-even point: fixed costs ÷ ratio. With DKK 40,000 in fixed costs a month and a 40 % ratio, revenue excluding VAT has to reach DKK 100,000 before the store breaks even. Every DKK 1 above that adds DKK 0.40 of profit – before marketing, unless it is already in the variable costs.

  • Does the margin cover your fixed costs at the revenue you can realistically reach?
  • Is there room for the marketing cost per sale your channel requires?
  • Can you absorb returns and campaigns without the sale turning into a loss?
  • Which products pull the ratio down – and do they sell something else along with them?

How much can you pay for a sale?

Contribution per order is the ceiling for what a sale can cost in marketing. On an order of DKK 600 excluding VAT with a 40 % ratio, the margin is DKK 240. If the sale costs more than that in ads or commission, you lose money on it – before paying rent and salaries.

When you pay per sale, you can set the price from your margin before you pay anything. At Affilyflow, the store sets a total price per sale as a percentage of the order: the affiliate gets 80 % of that price, and the network fee is the last 20 %. Choose 15 % on a DKK 600 order and the sale costs DKK 90 – DKK 72 to the affiliate and DKK 18 in fee – leaving DKK 150 of the margin. Danish stores pay 25 % VAT on top of commission and fee.

Contribution margin ratio and the highest total price per sale
Margin ratioHighest price per sale (break-even)If you want to keep halfBreak-even ROAS
20 %20 % of the order10 %5.0
30 %30 % of the order15 %3.3
40 %40 % of the order20 %2.5
50 %50 % of the order25 %2.0

Tip

Set your rate from your margin

A price per sale below your margin ratio pays off from the first sale. How far below decides how much of the margin you keep. See how the price is split and how a program is set up under start an affiliate program.

Contribution margin, break-even ROAS and CAC

Break-even ROAS is 1 divided by the margin ratio. At 40 %, every DKK 1 spent on ads has to bring in DKK 2.50 of revenue excluding VAT before the ad breaks even. It is the same calculation as above, seen from the ad account: a ROAS below break-even means the margin does not cover the ad. How the channels compare is covered in the guide to ecommerce marketing channels.

Your CAC – what it costs to acquire a new customer – may exceed the margin on the first purchase if the customer buys again. But only if you know the repeat rate from your own data: lifetime value is the sum of the margins a customer brings over time, not the sum of their revenue.

Calculate your contribution margin

Enter your selling price excluding VAT, your cost of goods and your other variable costs. The calculator shows the margin, the ratio, break-even ROAS and the most a sale can cost.

Calculator

Calculate your contribution margin

Contribution margin per sale

DKK210

Contribution margin ratio: 42%

Highest price per sale before you lose money
42% · DKK 210
Price per sale if you keep half the margin
21% · DKK 105
Break-even ROAS
2.4

All figures excluding VAT. Variable costs are the ones that come with every sale – not rent and salaries.

At a price of DKK 500, the contribution margin is DKK 210 (42%). A sale can cost at most DKK 210 before you lose money on it.

Five ways to raise your contribution margin

  • Negotiate purchasing: larger batches, fewer suppliers or a different inbound freight method.
  • Set the free-shipping threshold slightly above your average order, so shipping is spread over more items.
  • Sell accessories and bundles: a higher average order value gives more kroner per order with the same shipping and payment fee.
  • Fewer returns: better photos, measurements and descriptions. A returned item costs shipping both ways and brings no revenue.
  • Target discounts instead of discounting the whole range – and work out how many extra sales the discount has to bring.

Before you set a price per sale

  • You know your selling price excluding VAT for the products you want to sell most of.
  • Cost of goods includes inbound shipping and duties.
  • Shipping, payment fees and packaging are calculated per order.
  • You know the margin ratio for the whole store, not just your best product.
  • You have decided how much of the margin you are willing to spend on marketing.
  • You know how much revenue it takes to cover your fixed costs.

For web shops

Only pay for sales you have planned for

Create a store account and set a total price per sale from your contribution margin. You see the split between affiliate and fee before you save, and a rejected sale costs nothing.

Frequently asked questions

What is contribution margin?

Contribution margin is revenue minus variable costs – cost of goods, shipping, payment fees and packaging. It is the amount a sale contributes towards fixed costs and profit.

How do you calculate contribution margin?

Take the selling price excluding VAT and subtract the cost of goods and other variable costs. An item sold for DKK 500 excluding VAT that costs DKK 250 to buy and DKK 40 in shipping and fees has a contribution margin of DKK 210.

What is the difference between contribution margin and the contribution margin ratio?

Contribution margin is an amount. The ratio is the same amount as a percentage of revenue: DKK 210 of DKK 500 is a 42 % ratio.

What is a good contribution margin ratio?

No ratio is good for everyone. It is good enough when the margin covers fixed costs, the marketing it takes to win the sale, and a profit at the revenue you can realistically reach.

Is VAT included in the contribution margin?

No. Always calculate excluding VAT. You collect VAT for the state, so it is neither revenue nor cost in the calculation.

What is the difference between markup and contribution margin ratio?

Markup is calculated on the cost price, the margin ratio on the selling price. An item bought for DKK 250 and sold for DKK 500 excluding VAT has a 100 % markup and a 50 % margin ratio on cost of goods.

How much can a sale cost in marketing?

At most the contribution margin per order – then the sale breaks even. To keep part of it, the cost per sale has to be lower. With a 40 % ratio, break-even equals a ROAS of 2.5 or a total price per sale of 40 % of the order.

Further reading

More articles

Written by

Co-founder, sales and customer relations

Makes sure Affilyflow’s partnerships grow – and that the platform delivers what both businesses and affiliates have been promised.

Found a number that no longer holds? Write to us – we will correct the article.

From reading to the first click.

Web shops only pay for approved sales – with numbers that can be checked.