Contribution margin, explained for Shopify sellers
The number that tells you whether a sale is worth making, once every cost that moves with the order is out of the way.
Contribution margin is the money left from a sale after the costs that rise and fall with each order: the product's cost of goods, the payment processing fee, and any per order shipping or ad spend. It is what the sale contributes toward your fixed costs and, once those are covered, profit. In short: revenue minus variable costs.
What is contribution margin in simple words?
Contribution margin is what a sale leaves behind after its variable costs, the ones that only exist because the order happened: the product itself, the payment fee, and any shipping or ad cost tied to that order. If a $40 order carries $22 of those costs, its contribution margin is $18. That $18 goes toward rent, salaries and software, and whatever is left after them is profit.
The word that matters is variable. Some costs move with each sale: buy more product, pay more shipping, hand more to your payment processor. Other costs sit still whether you sell one order or a thousand: your Shopify subscription, your app stack, your salary. Contribution margin isolates the first group so you can see what a single sale actually adds before the fixed costs are counted.
That is why it is not the same as profit. Profit is what is left after everything, fixed costs included. Contribution margin is a step before that: it answers a narrower and more useful question when you are pricing a product or judging an ad, which is whether this sale, on its own, puts money on the table or takes it off.
How to calculate contribution margin?
Contribution margin equals revenue minus variable costs. For one product, subtract its unit cost of goods, the payment processing fee, and any per unit shipping from the selling price. For a period, add up revenue and subtract total variable costs. Divide contribution margin by revenue and you have the contribution margin ratio, expressed as a percentage.
Here is a single order worked through. Shopify Payments charges 2.9% plus 30 cents on a standard online card sale in the US, so the fee is a genuine variable cost that belongs in the calculation, not an afterthought.
- Selling price: $40.00
- Cost of goods (what you paid for the item): −$15.00
- Payment processing fee (2.9% + 30¢): −$1.46
- Shipping you absorbed on this order: −$5.00
- Contribution margin: $18.54 per order
- Contribution margin ratio: $18.54 ÷ $40.00 = 46%
If you run paid ads, the honest version subtracts the ad cost of acquiring that sale too. A blended $6 cost per order would pull the contribution margin down to $12.54, or 31%. Whether to include ad spend depends on the decision you are making: leave it out to judge the product, put it in to judge the whole go to market.
Contribution margin and contribution margin ratio
The contribution margin is a dollar figure per order or per period. The contribution margin ratio is that figure divided by revenue, shown as a percentage, so you can compare products of different prices on equal terms. A $9 candle and a $90 jacket can both run a 45% ratio; the ratio tells you each keeps 45 cents on the dollar after variable costs.
The ratio is the more portable number. A dollar figure is hard to read across a catalogue, because a big contribution margin on an expensive item can hide a thin percentage. The ratio strips price out, which is exactly what you want when you are deciding which products to promote, discount or drop.
What is a good contribution margin?
There is no single right number, but many ecommerce stores aim for a contribution margin ratio of 30 to 40 percent or higher, because fixed costs and advertising still have to come out of it. A 30 percent ratio can be healthy for a high volume product and dangerously thin for a low volume one. Judge it against your fixed costs, not a benchmark.
The test that matters is your break even point. Add up your monthly fixed costs, then divide by your average contribution margin per order. That is how many orders you have to ship before the business itself breaks even. If a 30 percent ratio clears your fixed costs with room to spare, it is a good margin for you. If it does not, a 30 percent ratio is a warning no matter what an industry average says.
What does 50% contribution margin mean?
A 50 percent contribution margin means half of every sales dollar is left after variable costs to cover fixed costs and profit. On a $40 order, $20 covers product, fees and shipping, and $20 contributes to overhead and profit. It does not mean you keep $20 as profit: your fixed costs come out of that half first, and only what survives them is profit.
This is the most common place people misread the number. A high contribution margin ratio and a loss making business can live side by side, if fixed costs are heavy or volume is low. The ratio tells you how much each sale helps; it does not tell you whether enough sales are happening to cover the costs that never move.
Is contribution margin the same as gross margin or EBITDA?
No. Gross margin subtracts only the cost of goods from revenue. Contribution margin goes further and subtracts every variable cost, including payment fees and per order shipping or ad spend. EBITDA is a whole company profit measure that starts from all revenue and costs. Contribution margin sits between gross margin and profit, focused on a single sale or product.
| Measure | What it subtracts from revenue | Question it answers |
|---|---|---|
| Gross margin | Cost of goods only | How much do I make on the product itself? |
| Contribution margin | All variable costs (COGS, fees, variable shipping and ads) | Does this sale help after every cost that moves with it? |
| EBITDA / net profit | Every cost, fixed and variable | Is the whole business making money? |
How to see contribution margin on Shopify
Shopify does not show contribution margin natively. Its reports show revenue and, if you enter costs per product, gross margin, but they do not subtract payment fees or ad spend. To see contribution margin you either build it in a spreadsheet from exported orders and cost data, or use an app that reads your costs, fees and ad spend and calculates it for you.
This is one of the things Margio is built to do. It reads your product costs, the real Shopify fees on every order, and your connected Meta and Google ad spend, then shows contribution margin for the period on the dashboard and broken down per product on the orders page, so you can see which items actually contribute after variable costs rather than guessing from gross margin alone.
Margio subtracts real, per order fees rather than an assumed flat rate, because a currency conversion, a refund or a chargeback changes the fee on an individual order. On the Pro plan it also confirms the totals against the deposits that actually reach your bank, so the contribution margin is built on money you received, not money Shopify reported.
Frequently asked
How is contribution margin calculated?
Subtract a sale's variable costs from its price: the cost of goods, the payment processing fee, and any per order shipping or ad spend. The result is the contribution margin in dollars. Dividing it by the selling price gives the contribution margin ratio as a percentage.
What is an ideal contribution margin for an ecommerce store?
There is no universal ideal, but a contribution margin ratio that comfortably clears your fixed costs at your current order volume is a good one. Many stores target 30 to 40 percent or higher so there is room for advertising and overhead, but the honest benchmark is your own break even point.
Is a 30% contribution margin good?
It depends on volume and fixed costs. A 30 percent contribution margin can be healthy for a high volume, low price product that ships in large numbers, and too thin for a low volume, high touch one. Compare it against how many orders you need to cover your fixed costs, not against a fixed rule.
Does contribution margin include shipping?
It includes the shipping you pay per order and do not fully recover from the customer, because that cost moves with the sale. Shipping the customer pays in full is not a cost to you. Flat warehouse or fulfilment costs that do not change per order are fixed costs and sit outside contribution margin.