Contribution margin

Also known as: CM1, CM2, CM3

Contribution margin is the revenue left after subtracting all variable costs, the money that contributes to fixed costs and profit; ecommerce teams often split it into CM1, CM2 and CM3.

Formula

CM1 = net revenue − COGS
CM2 = CM1 − shipping & fulfilment − payment fees
CM3 = CM2 − marketing (ad spend)
CM % = CM ÷ net revenue × 100

The exact cost split between levels varies by company. Write down your definitions and keep them stable.

Worked example

Monthly net revenue is $100,000. COGS is $35,000, shipping and fulfilment $12,000, payment fees $3,000 and ad spend $30,000.

  1. CM1 = $100,000 − $35,000 = $65,000 (65%).
  2. CM2 = $65,000 − $12,000 − $3,000 = $50,000 (50%).
  3. CM3 = $50,000 − $30,000 = $20,000 (20%).
  4. Break-even ROAS from CM2 = 1 ÷ 0.50 = 2.0; actual blended ROAS = $100,000 ÷ $30,000 ≈ 3.33.

CM3 ($20,000) is what is left to cover rent, salaries, software and profit.

Why it matters for a Shopify store running ads

Contribution margin is the most useful profit metric for day-to-day ad decisions because it moves with each order. CM2 tells you what an order is worth before marketing, which sets your break-even ROAS and CPA. CM3 tells you whether the marketing itself is paying off.

Splitting into levels shows where a problem lives. If CM1 falls, look at pricing, discounts or supplier costs. If CM2 falls but CM1 doesn't, shipping or fees rose. If only CM3 falls, ad efficiency worsened.

Common mistakes

  • Counting fixed costs (software, salaries) as variable and understating contribution.
  • Changing which costs sit in CM2 from one month to the next.
  • Ignoring refunds and returns, which are variable costs.
Work it out with your own numbers: Contribution margin calculator

FAQ

What is the difference between contribution margin and gross margin?

Gross margin subtracts only COGS. Contribution margin subtracts all variable costs, including shipping, payment fees and often marketing, so it is lower and closer to what each order really contributes.

Which contribution margin should I use to set ROAS targets?

Use CM2, the margin after COGS, shipping, fees and refunds but before ads. Break-even ROAS is 1 divided by CM2 as a share of revenue.

Related terms

Want this number for your own store without a spreadsheet? ProfitFly connects Shopify, Meta and TikTok and shows your real profit every day, free up to 50 orders a month.

Start free