Contribution Margin for E-commerce Businesses Explained

Richie Lennon

Contribution margin is sales revenue less variable costs. It shows what each sale leaves to cover fixed costs and profit. For an ecommerce business, that means looking beyond product cost to payment fees, packaging, fulfilment and other costs that move with orders. Divide contribution by sales to get the contribution margin percentage. If you also deduct advertising spend, label that layer clearly so everyone compares the same number.

Your ads can look good while the business earns very little from the orders they generate. A product can have a healthy gross margin and still leave almost nothing after delivery, payment fees and acquisition costs.

We keep coming back to the same problem: a profit dashboard is only as good as the costs you put into it. Missing landed costs, returns that have not been credited and the wrong shipping bands can make an unprofitable channel look worth scaling.

If your accountant can show sales growth but cannot show what those sales leave behind, you are missing the number needed to decide where the next euro goes.

contribution margin

What is Contribution Margin?

Contribution is the amount left after variable costs. It contributes towards the costs you have to pay even when you sell nothing, then towards profit.

Contribution margin = sales revenue − variable costs.

Contribution margin percentage = contribution margin ÷ sales revenue × 100.

For a unit calculation, use the selling price and variable cost of one unit. A €100 sale with €65 of variable costs leaves €35 contribution, or 35%. Use prices excluding VAT and sales after discounts and refunds. Where purchase VAT is recoverable, exclude it from costs too; irrecoverable VAT remains a cost.

This is the standard cost-behaviour definition used in OpenStax’s managerial accounting guidance. Your own report should state which costs it includes. A number labelled contribution is not useful if the definition changes from month to month.

Why Focus on Contribution Margin?

Sales tell you how much customers bought. Gross margin tells you what remains after the cost of those products. Contribution tells you more about what serving those orders costs.

That matters when you are deciding whether to raise prices, stop a promotion, change a delivery offer or spend more on a channel. More sales help only if they bring enough contribution to pay for the extra work and leave something for the business.

Look at contribution by product and channel, alongside the total. A strong overall result can hide a product that loses money every time it ships. Equally, a lower-margin product may be worth keeping if it brings repeat customers who buy other profitable products. You need evidence of that behaviour, not an assumption that growth will fix the loss.

Calculating Contribution Margin

Start with a settled sales figure. A Shopify payout is not sales revenue: VAT, fees, refunds and other adjustments can sit between sales and cash received. Our Shopify accounting guide explains that reconciliation.

Then agree the cost layers. The illustration below uses €10,000 of net sales for one period. Product costs are assumed to vary with units sold. Fulfilment and payment fees vary with orders. Advertising is shown separately because a campaign budget does not necessarily move automatically with each sale.

LayerAmountWhat remains
Net sales, excluding VAT€10,000€10,000
Product cost€4,500€5,500 gross margin, 55%
Variable fulfilment costs€1,200€4,300
Payment and transaction fees€300€4,000 contribution before advertising, 40%
Advertising spend€2,000€2,000 contribution after advertising, 20%
Remaining fixed operating costs€1,500€500 operating profit in this illustration

Those are three different answers: 55% gross margin, 40% contribution before advertising and 20% after advertising. None should be presented as interchangeable. The €500 result also assumes the table includes all relevant operating costs; interest and tax are outside this illustration.

A sales-to-ad-spend ratio of five to one would sound encouraging here. It still leaves only €2,000 after the costs shown and before fixed overheads. It does not prove which channel caused the sales, either.

What Do You Include in COGS?

COGS means cost of goods sold. For a reseller, product cost normally starts with the cost of acquiring the goods and bringing them to their current location and condition. That can include inbound freight and duties. Buying stock is not the same as charging it all against this month’s sales: unsold stock remains stock, subject to the applicable valuation rules.

Our inventory accounting guide covers stock valuation and the movement from purchases to cost of sales.

Avoid double counting. If delivery or packaging is already in the cost figure you have deducted, do not deduct it again under fulfilment. If your accounts include fixed production costs in COGS, a strict variable-cost contribution calculation needs a separate cost analysis.

The practical question is simple: what did it cost to sell and fulfil these orders, and where is each cost recorded?

What Other Costs Belong in the Calculation?

Map the costs instead of taking a dashboard’s category names on trust.

Payment fees: include the actual charges, including fixed fees per transaction where applicable.

Fulfilment: separate the charge per order from a warehouse’s fixed monthly charge.

Packaging and shipping: use the costs for the destination and order size, not one convenient average if the mix changes.

Returns: reduce sales for refunds and include the associated handling costs. Account for recovered stock consistently so you do not charge its cost twice.

Advertising: show it as a distinct layer and agree how shared campaigns are allocated.

Some costs are mixed. A fulfilment provider may charge a monthly minimum plus a fee per order. A member of staff may handle extra orders until the volume requires another hire. The cost does not behave the same way at every level of sales.

Document the assumptions. They matter when a campaign or a new market changes the order mix.

Contribution Margin Ratio

The ratio lets you compare contribution with sales, but it does not remove the need to compare like with like.

If product A leaves €35 on a €100 sale and product B leaves €20 on a €50 sale, their ratios are 35% and 40%. B has the higher percentage; A leaves more euros per unit. Which is more useful depends on demand, capacity, acquisition cost and the cash tied up in stock.

Use both the euro amount and the percentage. A product can improve its percentage while total contribution falls because too few units sell.

For a simple break-even illustration, €7,000 of fixed costs divided by €35 contribution per unit means 200 units to break even. That assumes the price, variable unit cost and fixed-cost base stay unchanged, and that all costs are included once. A multi-product business needs to allow for its sales mix.

Contribution Margin vs Gross Margin

Gross margin deducts cost of sales. Standard contribution deducts variable costs, whether those costs sit inside or outside cost of sales in the accounts.

They can differ for two reasons: there are variable selling costs outside COGS, and COGS may contain fixed costs. That is why subtracting full COGS and then every variable cost can give the wrong answer.

For management decisions, a clearly defined contribution-after-advertising report is often useful. Keep its label and cost policy visible. Reconcile it to the accounts so that the useful management view does not become a second, contradictory version of profit.

Contribution Margin in Different Industries

The principle travels; the cost list changes. An online retailer needs product, shipping and transaction costs. An agency needs to understand delivery labour and subcontractors. A SaaS company needs to understand the costs of delivering and supporting its service.

A salaried team is not automatically a variable cost just because it delivers the work. Distinguish short-term spare capacity from the cost of adding capacity. The question behind the calculation is always which costs change with the activity you are considering.

Improving Your Margin

First fix the inputs. Before increasing ad spend, check one recent month’s sales, product costs, fees, fulfilment and refunds against the underlying records.

Then choose a specific action. A delivery promotion may need a minimum order value. A product may need a higher price. A channel may need a lower acquisition cost. A supplier negotiation may do more for profit than another campaign.

We are less interested in winning an argument about which platform owns a sale than in knowing what the sale leaves behind. Channel attribution can inform decisions, but it should not excuse a contribution report built on missing costs.

Use tools to make that review easier. The ecommerce growth webinar with StoreHero explores the wider commercial discussion. A tool can assemble the numbers; someone still has to check the data and decide what to change. Our ecommerce growth guide is another resource for the wider business review.

Turn the Number into a Monthly Decision

Ask for a report that explains the movement: price, product mix, discounts, returns, fulfilment or advertising. Give the next action an owner and a review date.

Our ecommerce accounting support connects the bookkeeping with reporting and cash planning. The aim is to see which sales are worth growing, rather than discover the answer at year end.

If you run an Irish ecommerce business turning over €250k or more and cannot see what your orders contribute, Book a Finance Fit Call.

FAQs

What is a good contribution margin for ecommerce?

There is no useful universal target without a consistent cost definition and the fixed costs it must cover. Compare the euro contribution and percentage with your own overheads, product mix and prior periods.

How do I calculate contribution margin per unit?

Subtract the variable cost of one unit from its net selling price. A €100 price less €65 variable cost leaves €35 contribution. Divide €35 by €100 for a 35% contribution margin.

Is advertising included in contribution margin?

Standard contribution deducts variable costs. Advertising is not always variable. A management report can show contribution after advertising as a separate layer, provided its definition and allocation method are clear.

Is contribution margin the same as profit?

No. Contribution still has to cover fixed costs. Profit also depends on the remaining expenses included in the calculation. Neither is the same as cash available in the bank.

Should I use sales or Shopify payouts?

Use reconciled net sales excluding VAT. A payout is a cash settlement after fees and other adjustments; it is not the sales figure.

Can a dashboard calculate contribution accurately?

It can calculate from the data supplied. Missing product costs, fees or refunds will produce a wrong result even when the dashboard looks polished. Reconcile the inputs and the output to the accounts.

Share this on:

Speak To An Online Accountant Today!

Latest Blogs

Read up on some of our latest business news and useful information.

Scroll to Top

Book a Finance Fit Call

Open the booking calendar in a new tab