Oct 15, 2026 · 13 min read

Contribution Margin Formula: CM1, CM2 and CM3 Explained

DhwaniCo-Founder, Daymark

Contribution margin is the money left from a sale after you pay the costs that come with that sale. For an online store, the formula is net sales minus cost of goods sold (COGS), shipping and fulfillment, payment fees, and returns. Take a $60 skincare order with $15 of product cost, $10 to pick, pack and ship, $2.04 in payment fees and $1.80 set aside for returns. Its contribution margin is $31.16, or about 52% of the sale. That 52% also sets your break-even ROAS (return on ad spend), which is 1 ÷ 0.52, or about 1.93x.

This guide explains the three levels of contribution margin, called CM1, CM2 and CM3, and when to use each one. The numbers come from an example skincare store doing about $180,000 a month. They are not one brand's data, but the costs are in realistic ranges, and you can swap in your own.

The Contribution Margin Formula

The basic formula is simple. You take sales and subtract the costs that rise and fall with each order:

Contribution margin = Net sales − Variable costs
Contribution margin ratio = Contribution margin ÷ Net sales
Contribution margin per unit = Price per unit − Variable cost per unit

Net sales means what customers paid for products after discounts and refunds, without shipping charges or taxes. Variable costs are the costs you only pay because an order happened, such as the product itself, the shipping label and the card fee. Fixed costs, such as salaries, rent and Shopify apps, stay the same whether you ship 2,000 orders or 3,000, so they are left out. Contribution margin pays those fixed costs first, and the rest is operating profit.

The ratio shows the same number as a percentage of sales, so you can compare a $20 product with a $60 one. The free contribution margin calculator works out the dollar amount, the ratio and the break-even ROAS from your own costs.

The CM1, CM2 and CM3 Ladder

Ecommerce teams usually split contribution margin into three steps, because each step answers a different question. You start with net sales and take away one group of costs at a time.

LevelFormulaQuestion it answers
CM1Net sales − COGSDoes the price cover the product?
CM2CM1 − shipping and fulfillment − payment fees − returns and refunds costDoes each order make money before ads?
CM3CM2 − ad spendDoes each order make money after paying to win it?

COGS here means the landed cost of the product, which is what you paid the manufacturer plus inbound freight and duties. Shipping and fulfillment covers pick and pack, packaging and the outbound label. Returns and refunds cost is what a return costs you beyond the refund itself, because net sales already subtract refunded sales. It covers return labels you pay for and the cost of returned product you can't resell, spread across all orders.

On this site, when a post says "contribution margin" without a number, it means CM2, shown as a percentage of net sales. We use CM2 as the headline number because it is the margin you have available to spend on ads. That makes it the input for break-even ROAS.

Worked Example: One $60 Skincare Order

Say a customer buys a vitamin C serum and a moisturizer from your store. The products list at $66.67 and the customer uses a 10%-off welcome code, so net sales are $60.00. Shipping is free over $50, so the customer pays nothing extra for it. This is how that order moves down the ladder:

LineAmount% of net sales
Net sales (after the 10% code)$60.00100%
COGS (landed product cost)−$15.00
CM1$45.0075.0%
Pick, pack, packaging and shipping label−$10.00
Payment fee (2.9% + $0.30)−$2.04
Returns and refunds cost (3% of sales)−$1.80
CM2$31.1651.9%
Ad spend per order (blended Meta and Google)−$18.00
CM3$13.1621.9%

The order looks very profitable at CM1, where 75 cents of each dollar is left. After you pay to get the box to the customer, the store keeps about 52 cents. After ads it keeps about 22 cents, and that $13.16 still has to cover salaries, apps and rent.

The returns line uses 3% because skincare and supplements usually see far fewer returns than apparel, where 20–40% is normal (see our D2C benchmarks). An apparel store would need a much bigger returns line, and that one change can move CM2 by 10 points or more.

The CM2 of 51.9% gives this store a break-even ROAS of 1 ÷ 0.519, which is about 1.93x. If a campaign brings in less than $1.93 of revenue for each $1 of ad spend, it loses money on the first order. Our guide to what a good ROAS is covers how to set a target above that line and how to read platform-reported ROAS against it.

Which Version Counts as "Contribution Margin"?

Different sources put ad spend in different places, so one store can show very different "contribution margin" numbers. Accounting textbooks subtract all variable costs, and some finance teams count ad spend as one. Some ecommerce analytics tools report contribution margin after ad spend, which is our CM3. Others report it before ad spend, which is our CM2.

Before you compare your margin with a benchmark or an agency report, check which costs it includes. As the table above shows, a 22% margin after ads and a 52% margin before ads can describe the same order.

We use CM2 as the default for one practical reason. Ad spend is the cost you are deciding about, so you need a margin that is calculated before it. If you subtract ad spend first and then use that margin for break-even ROAS, you count the ads twice. The target you get is far too high. Use CM3 when you want to know whether the whole month made money, and CM2 when you are deciding how much you can afford to spend.

Contribution Margin vs Gross Margin

Gross margin is net sales minus COGS, divided by net sales, so for most Shopify stores it is the same number as CM1. Our gross margin page covers it in more detail. Contribution margin goes further and subtracts the costs of delivering the order, which is why it is always lower than gross margin.

We think gross margin is the wrong number to use for any ad decision. In the example above, a 75% gross margin suggests a break-even ROAS of 1.33x, while the CM2 of 51.9% gives 1.93x. A founder who uses the first number could run campaigns at 1.6x, believe they are profitable, and lose money on every new order. The gap is widest for stores with a low price per order, because shipping and fees take a bigger share of a small order.

For pricing based on cost, see markup vs margin or the margin calculator.

Contribution Margin Per Unit: Why Cheap Products Struggle

Contribution margin per unit is the same ladder for a single product. It is most useful when you are deciding which products to advertise on their own and which to sell as add-ons. The table below shows two products from the same store, each sold alone in its own order, plus the two sold together.

OrderNet salesCOGSShipping and fulfillmentFees and returnsCM2CM2 %Break-even ROAS
Serum alone$48.00$11.00$10.00$3.13$23.8749.7%2.01x
Cleanser alone$18.00$4.50$10.00$1.36$2.1411.9%8.42x
Serum and cleanser$66.00$15.50$10.00$4.19$36.3155.0%1.82x

Both products have a gross margin of about 75%, so they look equally good in a product cost report. The difference comes from the $10 it costs to ship any box. On an $18 cleanser, shipping takes more than half of the price. That leaves $2.14 and a break-even ROAS above 8x, which almost no prospecting campaign can reach. When the cleanser is added to a serum order, it adds $12.44 of CM2 because the box was already being shipped.

Our position is that a product with a CM2 under about 20% when sold alone should not be the hero of a paid campaign. Sell it as an add-on, put it in a bundle, or raise the free-shipping threshold so it rarely ships by itself. The exception is a product that reliably leads to a second order, which is common for replenished items like cleansers and supplements.

That exception is worth checking before you stop advertising a low-margin product. You can ask Daymark, "Which first product brings our best customers?" It compares customers whose first order was the cleanser with those who started on the serum, using revenue per customer over a stated time window. If cleanser buyers come back for the serum within a few months, the cleanser may be a cheap way to win customers rather than a weak product. Read more about finding which first products lead to your most valuable customers.

Where to Find Each Number in Shopify

The monthly ladder uses the same lines as the order example, with totals for the month. Most of the numbers are already in Shopify admin and your ad accounts, so collect them in this order before you open a spreadsheet.

  1. Net sales. Go to Shopify admin → Analytics → Reports → "Sales over time" and set the date range to last month. The report shows gross sales, discounts, returns and net sales, so you can read net sales directly.
  2. COGS. Shopify uses the "Cost per item" field on each product variant (Products → choose a product → Pricing). If you've filled it in, Shopify's profit reports, such as "Gross profit by product", show CM1 for you, though these reports are not on every plan. If the field is empty, use your supplier invoices for the month.
  3. Shipping and fulfillment. If you buy labels through Shopify Shipping, the label charges appear on your Shopify bill under Settings → Billing. If you use a third-party logistics company (3PL), use its monthly invoice, which usually lists pick and pack, packaging and postage.
  4. Payment fees. The Payouts page in Shopify Payments lists the fees taken from each payout. Add PayPal, Shop Pay Installments or other gateway fees from their own statements.
  5. Returns and refunds cost. Don't subtract refunded sales again here. The returns column in "Sales over time" shows refunded sales, and they are already taken out of net sales. Instead, add up the return labels you paid for and the product cost of returned items you couldn't put back into stock.
  6. Ad spend. Use the "Amount spent" column in Meta Ads Manager and the "Cost" column in Google Ads for the same dates.

For a single order, the net profit per order guide and calculator walk through the same costs.

Monthly Example: The Whole Store

Here is the same skincare store for a full month of 3,000 orders at a $60 average order value (AOV). The month included a sitewide 20%-off week, so product cost is a bigger share of sales than in the single order. Returns also ran a little higher, at 4%.

LineMonthPer order% of net sales
Net sales$180,000$60.00100%
COGS−$46,800−$15.6026.0%
CM1$133,200$44.4074.0%
Shipping and fulfillment−$31,500−$10.5017.5%
Payment fees−$6,120−$2.043.4%
Returns and refunds cost−$7,200−$2.404.0%
CM2$88,380$29.4649.1%
Ad spend (Meta and Google)−$54,000−$18.0030.0%
CM3$34,380$11.4619.1%
Fixed costs (team, apps, rent)−$28,00015.6%
Operating profit$6,3803.5%

The store made $6,380 in operating profit on $180,000 of sales. CM2 fell from 51.9% on a normal order to 49.1% for the month, mostly because of the sale week. So the break-even ROAS for the month rose to 1 ÷ 0.491, or about 2.04x.

The store's marketing efficiency ratio (MER), which is total store revenue divided by total marketing spend, was $180,000 ÷ $54,000, or 3.33x. That is well above the 2.04x break-even line, so ads paid for themselves overall, and the thin profit came from fixed costs and the sale week. Break-even MER uses the same 1 ÷ CM2 formula, and our guide to what a good MER is explains when to use it instead of ROAS.

The next question is whether every campaign cleared that line, since a 3.33x store-wide MER can include campaigns well below 2x. You can ask Daymark, "What's my true ROAS by channel this month?" It compares Meta and Google spend with the revenue Shopify actually recorded, not the revenue each platform reports. With a break-even of about 2.04x in hand, you can see which campaigns sit below the line and where to move budget next week. Read more about comparing ad spend with the Shopify revenue it produced.

Break-Even Orders From Contribution Margin

Contribution margin also tells you how many orders you need to cover fixed costs. The classic formula divides fixed costs by contribution margin per order. If you pay for ads on most orders, use CM3 per order:

Break-even orders = Fixed costs ÷ CM3 per order

For the example store, that is $28,000 ÷ $11.46, which is about 2,443 orders a month. The store did 3,000, so it was about 557 orders above break-even. This assumes ad spend per order stays near $18, which is rarely true when you scale spend quickly. Recalculate it each month, and use the break-even ROAS calculator for the ad side.

Frequently Asked Questions

What is the contribution margin formula?

Contribution margin equals net sales minus variable costs. For an online store, variable costs are COGS, shipping and fulfillment, payment fees, and returns and refunds cost. Divide the result by net sales to get the contribution margin ratio. A $60 order with $28.84 of variable costs has a contribution margin of $31.16, which is a ratio of about 52%, before any ad spend.

What is the difference between CM1, CM2 and CM3?

CM1 is net sales minus COGS, which is the same as gross margin for most stores. CM2 subtracts shipping, fulfillment, payment fees and returns from CM1, so it shows what each order earns before ads. CM3 subtracts ad spend from CM2. Use CM2 to set break-even ROAS and ad budgets, and use CM3 to check whether the month made money.

Does contribution margin include ad spend?

Sources disagree. Accounting textbooks and some analytics tools include ad spend as a variable cost, while others leave it out. This guide uses contribution margin to mean CM2, which is before ad spend, and calls the after-ads number CM3. Always check which costs a number includes before you compare it with a benchmark or another store.

How do I get break-even ROAS from contribution margin?

Divide 1 by your CM2 as a decimal. A CM2 of 40% gives a break-even ROAS of 2.5x, and a CM2 of 52% gives about 1.93x. Campaigns below that ROAS lose money on the first order. Don't use gross margin for this, because it leaves out shipping, fees and returns and gives a break-even target that is too low.

What is a good contribution margin for ecommerce?

For CM2, which is before ad spend, many Shopify brands land between 40% and 60%, and skincare and supplements are often near the top of that range because returns are low. Below about 30%, paid ads become hard to run profitably because break-even ROAS rises above 3.3x. Compare your number with your own past months before comparing it with other stores.

What to Do This Week

Pick last month and fill in the ladder for your store, starting with net sales from "Sales over time" and the "Cost per item" field for COGS. Work out your CM2 as a percentage, divide 1 by it to get your break-even ROAS, and write that number at the top of your ad reports. Then check your three cheapest products on their own. If any has a CM2 under 20% when it ships alone, stop using it as the lead product in paid campaigns.

Once you know your break-even line, the harder part is checking every campaign against it each week. Daymark compares your ad spend with the revenue Shopify actually recorded and shows which campaigns are below the line and where to move budget. See how it works on our page about ad spend and true ROAS for Shopify stores, or start a 14-day free trial and check last month's campaigns.

About the author

Dhwani

Co-Founder, Daymark

Dhwani is a co-founder of Daymark, focused on the metrics that decide whether a D2C brand is actually profitable. She writes about retention, margin, customer segmentation, and the benchmarks that separate healthy stores from merely busy ones.

LinkedIn

Related articles