Ecom GrowthGuide
What Is Contribution Margin for an Online Store?
Contribution margin is the sale minus the costs that rise with that order. See the formula, one worked order, and how it sets break-even ROAS for ads.
Contribution margin is sales minus the costs that rise when you sell more. On one unit it is the selling price minus the variable cost of that unit. The ratio is that leftover divided by the sale. I use the per-order version, with ad spend left out, to get break-even ROAS. Break-even ROAS is 1 divided by that margin.
Contribution margin is the part of a sale that variable costs do not use up, so it can go toward fixed costs and profit. On one product it is the selling price minus the variable cost of that unit [1].
For an online store I use the same idea on one order, then turn the margin into a break-even ROAS before I set a Google Ads target. The break-even ROAS guide walks the ad target in full. This page is the margin underneath it.
What Is Contribution Margin?
Investopedia, updated June 05, 2026, describes contribution margin as the portion of sales revenue that variable costs do not use, so it contributes to covering fixed costs. It is one of the keys in break-even analysis. You can state it for the whole business or per unit. Per unit, it is the incremental money from one more unit after the variable part of the costs [1].
The Corporate Finance Institute, in a guide by Jeff Schmidt published September 11, 2019, uses the same definition: sales revenue less variable costs. Those dollars cover fixed costs such as rent. Once fixed costs are covered, what remains is earnings. You can show the figure as a total, for one product line, per unit, or as a percentage of net sales [2].
Two formulas describe the same dollars. Contribution margin equals revenue minus variable costs. It also equals fixed costs plus net income, because the leftover pays the fixed costs first and the rest is profit [2].
The ratio puts that leftover next to the sale:
| Line | Formula |
|---|---|
| Contribution margin | Revenue minus variable costs |
| Contribution margin ratio | (Revenue minus variable costs) / revenue |
| Per unit | Selling price minus variable cost per unit |
A ratio of 0.40 means 40 cents of each sales dollar is left after variable costs. Investopedia writes the ratio as (R minus V) divided by R, where R is revenue and V is variable costs [1]. CFI writes the same ratio with net sales revenue [2].
A useful trait: the contribution per unit stays the same as you sell more units. Net profit per unit does not, because net profit also carries the fixed costs, and those fixed costs get spread over more units as volume grows [1].
Which Costs Are Variable and Which Are Fixed?
Variable costs move with how much you produce or sell. Fixed costs do not.
Investopedia's examples of fixed costs are a machine and rent. You pay the rent for the space whether the month is busy or quiet. Those costs should not go into the contribution margin. Variable costs in their examples are raw materials, and they also name shipping and marketing as variable costs a company might cut [1].
CFI's variable-cost list includes direct materials, production supplies, per-unit labor, commissions, and freight in or out, which is the shipping cost you pay only when goods are actually delivered. Their fixed-cost list includes depreciation, interest, insurance, rent, property taxes, salaries, and fixed utilities [2].
On a store order I split the same way, then I make one choice the textbooks do not make for me.
| Cost on one order | In my ad margin? | Why |
|---|---|---|
| Product cost | Yes | It rises with the units in the order |
| Shipping I pay, after the fee the customer paid | Yes | Freight that happens because the order shipped [2] |
| Payment fees | Yes | The processor takes a cut of that sale |
| Pick and pack, packaging | Yes | The warehouse or the mailer happens because of that order |
| Returns, spread over orders | Yes | Refunds and lost stock rise as orders rise |
| Per-order app fees | Yes | The bill exists because an order was placed |
| Rent, salaries, monthly software | No | I pay these with or without the next order [1] [2] |
| Ad spend | No, when the margin sets an ad target | The leftover is the budget for the ads |
The last row is my practice, not a line from Investopedia. Their page lists marketing as a variable cost you might reduce [1]. That is fair if the question is "what did this product contribute after every variable cost, including ads?" If I also subtract the ads, I cannot then use the leftover as the ad budget. I would have counted the ads twice. When the question is "how much can Google Ads cost before this order loses money?", I leave ad spend out.
How Is Contribution Margin Different from Gross Margin?
Contribution margin counts variable costs. Gross profit margin, in Investopedia's wording, is the difference between sales and the cost of goods sold, and it includes all of the costs a company incurs in order to make sales [1]. In a store dashboard the word "gross margin" is often narrower than that sentence. It is often product cost only.
Shopify's profit reports calculate gross margin as (net sales minus cost) divided by net sales, times 100. Their example: net sales of $50 and a cost of $30 is a 40% gross margin. Gross profit is net sales minus cost. Profit is reported only for products that had a cost recorded at the time they were sold. If the cost field was empty on the sale, that order is missing from the profit report [3].
Discounts change the report. Shopify's example: a T-shirt at $20 with a cost of $10 shows a 50% margin on the product page, because that margin uses the full price. Discount it 25% to $15 and the gross profit report shows 33%, because the report uses net sales. The cost-per-item field is static, so the report is true for the costs stored at that time [3].
Google has a separate gross-profit figure for ads. The Merchant Center attribute cost_ is optional on each product, and required if you use automated discounts or dynamic promotions. When you report purchased products with the global site tag, Google uses it to estimate gross profit. Gross profit there is revenue minus the cost of goods sold. Google says the figure is for reporting and does not need to be exact. A rough estimate is enough, or an average if the cost moves. The format is a number plus an ISO 4217 currency code, and the decimal point is a period [4].
That attribute does not set your bid. It fills a report. It is also product cost, not shipping, fees, packing or returns. If I typed break-even ROAS from Google's gross profit, or from Shopify's product-page margin, I would be using a fatter margin than the order really leaves.
How Does Contribution Margin Set Break-Even ROAS?
Break-even analysis asks how much you must sell before fixed costs are covered. CFI states the unit version: divide fixed costs by the contribution margin per unit. That is the number of units you need to sell to cover fixed costs [2]. Investopedia makes the same point. After the break-even point, each extra unit's contribution is profit [1].
An ad target asks a smaller question. Ignore the rent for a moment. Ask only whether the next order, after its own variable costs, leaves enough to pay for the click that caused it.
If the margin ratio is 0.30, thirty cents of each sales dollar is left after variable costs. Ads can take up to thirty cents of each sales dollar before the order stops contributing. Sales divided by that ad spend is 1 / 0.30, which is 3.33. In Google Ads that target is 333%. The ROAS calculator does this from an order value and a cost list. The break-even CPC calculator turns the same margin into a click price once you add a conversion rate.
I set the live target above that floor by the profit I want to keep, then I move it in steps. A target with no gap above break-even pays the ads and leaves the fixed costs unpaid. The margin math does not pay the rent by itself. It tells you whether one more order is worth taking.
What Does a Worked Order Look Like?
Example, made-up numbers. A store's typical order is $60 for the items. Tax is left out. The shipping fee the customer pays is left out of the $60, and it is subtracted from the shipping cost below so it is not counted twice.
| Line | Amount |
|---|---|
| Order value | $60.00 |
| Product cost | $22.00 |
| Shipping I pay, minus the fee the customer paid | $6.00 |
| Payment fee | $2.10 |
| Pick and pack | $3.00 |
| Packaging | $1.00 |
| Returns, spread over orders | $2.90 |
| Variable costs | $37.00 |
| Contribution margin | $60.00 minus $37.00 = $23.00 |
| Contribution margin ratio | $23.00 / $60.00 = 0.383, or 38.3% |
| Break-even ROAS | 1 / 0.383 = 2.61, or 261% in Google Ads |
Product cost alone would show a gross margin of ($60 minus $22) / $60 = 63.3%. Break-even ROAS from that gross margin would be 1 / 0.633 = 1.58, or 158%. The order's real floor is 261%. A campaign at 200% ROAS would look fine next to the product-page margin and would still lose money on the variable costs.
If this store's fixed costs are $4,600 a month, the unit break-even from CFI's formula is $4,600 / $23 = 200 orders a month before rent and salaries are covered [2]. That 200 is made-up arithmetic on the made-up order. It is not a benchmark. Ads still have to be paid from the $23, so the order count that also covers ad spend is higher than 200.
What Does a Low Contribution Margin Mean?
Investopedia says very low or negative contribution margin values point to products that are not economically viable, because making and selling them uses up a large part of the revenue [1]. CFI says a low or negative contribution margin means the product line may not be profitable at that price, unless volume is very high [2].
Two levers raise it. Raise revenue, or cut variable costs. A higher price can fail if buyers will not pay it [1]. On Shopping ads the price is on the ad itself, so a price that sits far above the other listings can also cut the clicks. I would rather fix a thin product, or drop it, than bid as if the gross margin were the real one.
If two products share the same ad budget, I compare them on contribution per order, not on ROAS alone. A high ROAS on a product with a $4 contribution can fund less of the business than a lower ROAS on a product with a $23 contribution. The guide to a good ROAS is about the sales ratio. The margin decides whether that ratio is enough. Target ROAS is the bid control you type the percent into, after this sum is done.
FAQ
Does Contribution Margin Include Fixed Costs?
No. Fixed costs such as rent, a machine, salaries and insurance stay out of the contribution margin. They are paid by the contribution after it is calculated. CFI's second formula makes that plain: contribution margin equals fixed costs plus net income [1] [2].
Is a Higher Price Always a Higher Contribution Margin?
Only if buyers still purchase. The formula rises when revenue rises or variable costs fall. Investopedia notes that a higher price can hurt profit if customers will not pay it [1].
Should I Paste Shopify's Gross Margin Into Google Ads?
I would not. Shopify's gross margin uses net sales and the cost recorded on the product. It does not include shipping, payment fees, packing or returns unless you have put those into a wider report yourself [3]. Google's cost-of-goods-sold field is an estimate for gross-profit reporting, and it does not need to be exact [4]. Build the per-order contribution first, then set the target.
References4 sources
Sources
More on Ecom Growth
Margin, order value, conversion rate and what a customer costs.
