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 × 100The 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.
- CM1 = $100,000 − $35,000 = $65,000 (65%).
- CM2 = $65,000 − $12,000 − $3,000 = $50,000 (50%).
- CM3 = $50,000 − $30,000 = $20,000 (20%).
- 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.
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
- Gross marginGross margin is the share of revenue left after subtracting the cost of goods sold, expressed as a percentage: (revenue − COGS) ÷ revenue.
- Break-even ROASBreak-even ROAS is the return on ad spend at which an ad campaign makes exactly zero profit, calculated as 1 divided by the share of revenue you keep after all variable costs except ads.
- Net profitNet profit is the money a business keeps after subtracting every cost from revenue, including product costs, shipping, fees, refunds, advertising and fixed overheads.
- COGSCOGS (cost of goods sold) is the direct cost of the products you actually sold in a period, including purchase price, inbound freight and duties, but not marketing or overheads.
- POASPOAS (profit on ad spend) is the gross profit generated by your ads divided by ad spend, so a POAS of 1.0 means the ads exactly paid for themselves and anything above 1.0 is profit.
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