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.

Cosmic AI cover for the topic Contribution margin: bars that step down to one bright bar, lavender on dark purple.

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.

CostWhat to countWhere the number lives
Product costWhat you paid for the goods in the orderCost per item on each Shopify product
Shipping and packingWhat the carrier and the warehouse charge per order, less any shipping the customer paidCarrier and warehouse invoices
Payment feesA percentage of the order plus a fixed amountYour 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 spendThe money that bought the ordersEach 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 2026OrdersNet revenueMargin before adsRatio before adsMeta spendMargin after adsRatio after ads
September129,017$9,756,041$4,369,24644.8%$2,349,992$2,019,25420.7%
October152,041$11,492,251$5,146,31144.8%$2,764,749$2,381,56220.7%
November, to the 24th198,591$14,420,768$6,396,83344.4%$3,492,259$2,904,57520.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 revenueSeptemberNovemberChange
Product cost (set at 42%)42.0%42.0%0.0 points
Card fee percentage2.9%2.9%0.0 points
Shipping plus the 30 cent fee, $7.80 an order10.3%10.7%0.4 points
Meta spend24.1%24.2%0.1 points
Ratio after ads20.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:

  1. Net revenue and orders.
  2. Contribution margin before ads, in dollars and as a ratio.
  3. Ad spend as a share of revenue.
  4. Contribution margin after ads, in dollars and as a ratio.
  5. 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.

Check what went into your margin.

See the Cosmic command that shows the contribution margin calculation and its assumptions.

Cosmic AI is one desktop app where a lead agent and its specialists do the marketing work for a Shopify store. Each figure is checked against its source, and agents act on their own inside limits you set.

Book a callSee the margin command

Get Jake's AI newsletter

Three short emails a week with the AI news that matters for running or building a business. Every item links to its source.

I'll try to point you to something useful for it in your first email. No passwords or keys.

You will get Jake's newsletter and occasional Cosmic AI news. Unsubscribe in one click from any email. Privacy