Contribution margin ratio: what it is and what a store should watch
The contribution margin ratio is contribution margin divided by net revenue, shown as a percentage. It tells you how many cents of each sales dollar are left after the costs that rise with every order. A store should track it monthly, before and after ad spend, next to the dollar figure.
What is the contribution margin ratio?
The contribution margin ratio is the share of revenue left after variable costs. Variable costs are the ones that grow with each sale: the product, the box, the postage, the card fee. Take them out of revenue and you have contribution margin in dollars. Divide that by revenue and you have the ratio.
contribution margin = net revenue - variable costs
contribution margin ratio = contribution margin / net revenue x 100
A product that sells for $50 with $30 of variable cost leaves $20, a ratio of 40%. OpenStax's managerial accounting text gives the same definition per unit: the percentage of a unit's selling price that exceeds its variable costs.
This page covers the ratio only. The dollar formula, line by line, is in the contribution margin formula guide.
Which costs count as variable for a Shopify store?
Four costs move with orders in most stores, and the ratio is only as honest as this list.
| Cost | What to count | Where the number lives |
|---|---|---|
| Product cost | What you paid for the goods in the order | Cost per item on each Shopify product |
| Shipping and packing | What the carrier and the warehouse charge per order, less any shipping the customer paid | Carrier and warehouse invoices |
| Payment fees | A percentage of the order plus a fixed amount | Your plan's card rate. Shopify's pricing page lists online rates from 2.9% plus 30 cents on its entry plan, lower on larger plans |
| Ad spend | The money that bought the orders | Each ad platform's spend report |
Rent, salaries and software stay out. They do not rise when one more order arrives.
Ad spend is where definitions split, so compute the ratio twice: once before ads and once after. The first tells you what an order is worth. The second tells you what was left after you paid to get it.
What does the ratio look like across three months?
The table below uses an example store. These are example figures, not customer results. The example store is far larger than most, so read the shares and ratios, not the totals. The cost settings are 42% product cost, $7.50 shipping per order, card fees of 2.9% plus 30 cents, and Meta as the only ad channel. The ratios are my own arithmetic on those inputs.
| Month in 2026 | Orders | Net revenue | Margin before ads | Ratio before ads | Meta spend | Margin after ads | Ratio after ads |
|---|---|---|---|---|---|---|---|
| September | 129,017 | $9,756,041 | $4,369,246 | 44.8% | $2,349,992 | $2,019,254 | 20.7% |
| October | 152,041 | $11,492,251 | $5,146,311 | 44.8% | $2,764,749 | $2,381,562 | 20.7% |
| November, to the 24th | 198,591 | $14,420,768 | $6,396,833 | 44.4% | $3,492,259 | $2,904,575 | 20.1% |
In these example figures, revenue grew 48% from September to November, and November had only 24 days in it. Margin dollars after ads grew 44%. The ratio after ads went from 20.7% to 20.1%.
A revenue chart shows none of that. A dollar chart of margin shows growth. Only the ratio shows that each dollar of sales earned a little less.
Why did the ratio slip while revenue grew?
Two costs took a larger share of each sales dollar in the example store's November. The table is example figures and my arithmetic, not a customer result.
| Share of net revenue | September | November | Change |
|---|---|---|---|
| Product cost (set at 42%) | 42.0% | 42.0% | 0.0 points |
| Card fee percentage | 2.9% | 2.9% | 0.0 points |
| Shipping plus the 30 cent fee, $7.80 an order | 10.3% | 10.7% | 0.4 points |
| Meta spend | 24.1% | 24.2% | 0.1 points |
| Ratio after ads | 20.7% | 20.1% | 0.6 points lower |
The first cause is order size. Average order value in the example fell from $75.62 to $72.62, and $7.80 of shipping and fixed fee costs the same on a small order as on a large one. The second is ad spend, which grew slightly faster than revenue.
Six tenths of a point sounds small. Had the example store's November kept September's ratio, margin after ads would have been about $80,000 higher across those 24 days, by my arithmetic. One limit: these example figures hold product cost at 42% of revenue, so it cannot show what discounting does to the ratio. In a real store, discounts move it too.
What should a store watch?
Watch the dollars first and the ratio second. Contribution margin in dollars pays the fixed costs. The ratio explains why the dollars moved. A store that chases the ratio alone can shrink its way to a prettier percentage by cutting ads that were still earning money.
Keep one row per month with these columns:
- Net revenue and orders.
- Contribution margin before ads, in dollars and as a ratio.
- Ad spend as a share of revenue.
- Contribution margin after ads, in dollars and as a ratio.
- Average order value.
Read it left to right. If the ratio before ads falls, look at order value, shipping and discounts. If it holds and the ratio after ads falls, ads are taking more of each dollar, and the marketing efficiency ratio will show the same thing from the other side. The per order version of this math shows why small orders hurt, and the spreadsheet layout gives you the cells.
What is a good contribution margin ratio?
I have no benchmark I can stand behind, and the example store's 20% is not one. Published ranges exist, but they rarely say which costs were counted. A ratio before ads and a ratio after ads can sit 24 points apart for the same store, as the example table shows. A range that hides that choice is describing two different numbers.
Two comparisons are worth more than an outside average.
The first is your own trend. Same definition, same costs, month after month.
The second is the break-even line the ratio draws for ads. Divide 1 by the ratio before ads and you get the revenue each ad dollar must bring in to cover its own cost. At the example store's 30 day ratio before ads of 44.4%, that is $2.25 of revenue per ad dollar, by my arithmetic on example figures. The break-even ROAS guide works that through.
Do not confuse this ratio with gross margin, which stops at product cost. The contribution margin vs gross margin comparison puts both on the same 30 days.
Where Cosmic AI fits
Cosmic AI is the product I build. Once you set your costs, it computes contribution margin from your store and ad data and checks supported figures against their source before it shows a number. If costs are missing, it answers "not enough data" and gives no ratio at all. Every connection starts at Read only, and you decide per connection whether agents only read, ask first, or act on their own, which is the subject of the human in the loop article. The product page has the detail.
Frequently asked questions
How do you calculate contribution margin ratio?
Subtract variable costs from net revenue to get contribution margin, then divide by net revenue and multiply by 100. For a store, variable costs are product cost, shipping, payment fees and, for the ratio after ads, ad spend.
What does a contribution margin of 40% mean?
It means 40 cents of every sales dollar is left after variable costs. That money pays fixed costs such as rent and salaries first. Whatever remains after fixed costs is profit.
What is a good contribution margin percentage?
There is no single good number, because sources count different costs. A ratio before ad spend will always be higher than a ratio after it. Compare your own ratio month to month with one fixed definition.
What is a variable cost?
A variable cost rises and falls with the number of orders. Product cost, shipping, packing and card fees are variable. Rent, salaries and software subscriptions are fixed, because they stay the same whether you ship ten orders or ten thousand.