Contribution Margin for Ecommerce

Understand the costs to include when evaluating product profitability.

Maintained by BoBiTec · Last reviewed:

Identify variable costs

Download the Unit Economics workbook for Excel or Google Sheets. Replace the blue example cells with your selling price and costs per order. The sheet calculates direct costs, contribution before and after advertising, break-even ROAS and post-ad margin.

Use the selling price excluding pass-through tax. Subtract landed product cost, shipping paid by the merchant, payment processing and other variable costs. Use estimated returns costs only once.

Interpret the percentage

Divide pre-ad contribution by selling price and multiply by 100. Direct costs of $45 on a $100 order leave $55, a contribution margin of 55%. If you later spend $40 to acquire that order, the post-ad contribution is $15.

The resulting contribution can help cover fixed costs. Use a separate operating profit calculation to include overhead.

Apply the formula

Use the Ecommerce Profit Calculator to estimate contribution for a period after ads. For a per-order advertising threshold, use the Break-Even ROAS Calculator.

How does a period calculation relate to the order example?

For 100 identical $100 orders, net sales total $10,000 and the modeled non-ad variable costs total $4,500. Advertising of $4,000 leaves $1,500 of post-ad contribution. This matches $15 per order multiplied by 100. If product mix, refunds or fulfilment costs differ across orders, use the actual period totals rather than assuming every order has the same margin.

Which costs belong in the calculation?

Include the variable costs relevant to the scope you are measuring. Landed product cost, merchant-paid shipping and payment fees can all reduce the amount left from an order. Fixed rent and software subscriptions are outside this simplified variable-cost contribution model. They can still matter when moving from contribution to operating profit.

Do not count a payment fee or shipping charge twice. If refunded revenue already reduces net sales, avoid subtracting that same revenue again as an expense. Additional returns handling costs can be a separate cost where applicable.

Frequently asked questions

Is contribution margin the same as markup?

No. Contribution margin divides the amount remaining by selling price. Markup compares an increase with a cost base. On a $100 sale with $45 of variable costs, contribution margin is 55%; dividing the $55 remainder by $45 answers a different question.

Can contribution be negative?

Yes. If included variable costs and advertising exceed net sales, post-ad contribution is negative. That does not require a division error; it means those supplied costs exceed revenue. See ROAS versus ROI for why an advertising revenue ratio alone cannot establish profitability.

Examples are illustrative. Read our calculator methodology for formula scope, units and testing.