Field notes from the founders
Contribution margin per order on Shopify: how to calculate it, and what the average hides
November 21, 2026
Finance closes the month a fortnight after it ends. Contribution margin comes in at 35%, the same as last month and the month before. The board nods, someone says "steady", and the meeting moves on to the hiring plan.Meanwhile, the customers you bought in last month's sale are coming back at half the rate of everyone else, and nothing on that page will ever show it. The 35% was correct. It told the room nothing it needed to know.A monthly margin is a smoothie. Every order from every customer goes into the blender: discounted first orders, full-price repeat orders, refunds, the odd free-shipping promotion. What comes out is one number, and once it's blended you can't see the bad fruit.Contribution margin per order keeps the fruit separate. Work out what each order left behind after the costs that came with it, and you can add the orders back up any way you like: by day, by discount code, by product, by channel, or by the month the customer first bought. That last one, the acquisition cohort, is where margin moves most and where the monthly number hides it best.This post covers how to calculate contribution margin per order from Shopify, why it belongs at order level, and what it shows you that the P&L can't.Contribution margin per order is the money an order leaves behind once you've paid for everything that came with it.Start with net revenue: the price the customer paid after discounts, minus anything refunded, plus any shipping you charged them, with sales tax taken out. Then subtract the costs that exist because the order exists: the product itself, payment fees, shipping, picking, packaging, and the cost of handling returns if that's material for you. What's left is the order's contribution.Leave marketing out at this stage. Acquisition spend belongs to the customer, so it comes back in as CAC when you compare what a cohort earns with what it cost to win. That comparison is the heart of LTV:CAC.Finance teams label the layers differently. Some call contribution before marketing CM2, some call it CM1, and some brands have a CM3 nobody can quite define. The labels matter far less than everyone using the same definition, written down, with every number traceable to where it came from.The rule is to pull as much as you can from a system and estimate as little as you can. Shopify holds more of this than most brands use.Each order carries its line prices, the discounts allocated to each line, the shipping charged and the tax collected, so net revenue comes straight from the order. Refunds sit against the order too, each with its own date. Shopify's reports count a refund on the day it's processed, so tie it back to the order it belongs to, or a busy returns week in January will make an innocent December look worse after the fact. Gift card sales are a liability until they're spent, so keep them out of revenue.Product cost comes from the cost per item on each variant. Shopify only reports profit for products that had a cost recorded at the time they were sold, so if your costs are blank or years out of date, fixing that is the first job. Shopify Payments shows the fee on every transaction in your payouts, so card fees can be matched to orders as well.What Shopify usually doesn't know is what happens in the warehouse. Picking, packing, packaging and carrier costs live in your 3PL's invoices (unless you buy labels through Shopify), so they go in a small lookup file: $3.90 for shipping, $1 for picking, $2.50 for packaging, or whatever your own invoices say.Don't let perfect be the enemy of good here. For most brands these costs are stable over time and across products, orders and parcels. The difference in cardboard between a small box and a large one won't change a decision, and in the UK it's common to pay one flat rate per parcel whatever the size. Once you add orders up to a month, a cohort or LTV by channel, small differences average out. Break a cost out only when it would change what you do: bulky products, international orders, or a 3PL that charges by the item.Building it is now the easy part. If you have a data warehouse, it's a SQL model with one row per order and revenue and costs side by side. If you don't, ask Claude to write you a Python notebook using pandas, with a Shopify export (or the Shopify API) and your lookup file going in, and one row per order coming out. A few years ago this took an analyst a fortnight. Today it's an afternoon, and there's no excuse left for not having it.A month-end P&L is useful. It keeps the board conversation honest and it's what your accountant signs off. But it arrives weeks after the decisions it describes, at one level of detail, and it can't tell you which of those decisions were good.Order-level contribution can help. Because every order carries its own margin, you can answer the questions that come up on an ordinary Tuesday. Over their first year, how much more (or less) does a customer won on a 25% welcome code contribute than one won on 15%? Which first-order products bring people back? Are the customers from one channel worth what you paid for them? Each answer is a different roll-up of the same order-level data. It won't tell you whether 15% would have won the same customers as 25%, which takes a proper test, but it will tell you what each depth of discount is worth once it has.It's also the input to everything downstream. Add it up by acquisition cohort and you have cumulative contribution per customer, which is LTV built properly. Divide by CAC and you can run the business on LTV:CAC instead of revenue. None of that works if margin only exists as a monthly average.This is where order-level data earns its keep.Take an illustrative brand selling something customers reorder, without a subscription. The numbers are invented to show the mechanics. A full-price order is $60. Product, fulfilment, shipping and payment fees come to $36, which we'll treat as fixed per order, so a full-price order earns $24: a 40% contribution margin.New customers get a sign-up discount, and it comes straight off contribution. At 20% off they pay $48 and the order leaves $12. At 50% off they pay $30 and every first order loses $6.Then the margin climbs. Every repeat order earns the full $24, so the cohort's cumulative margin rises towards 40% at a speed set by how often customers come back. To keep the arithmetic simple, assume a fixed share of the cohort places another order each month. The table shows where the cohort's margin lands after 12 months.
So can you afford a first order that loses money? Sometimes. At 50% off, if 15% of the cohort reorders each month, the $6 lost on each customer is earned back by month three. If only 5% reorder, it takes until month six, and the cohort ends its first year at an 11% margin. The same discount is a sensible investment in one business and a slow leak in another. A deeper discount needs better retention to land in the same place, and the better your retention, the less the first order matters.The question worth asking is how quickly a cohort earns its discount back, and where its 12-month margin lands against what it cost to acquire. Whether the first order makes money matters much less.Same brand, same 20% sign-up discount. In a normal month, 15% of each new cohort reorders every month. That cohort's 12-month margin is 35%, and because every month looks like this, so is the blended monthly margin in the P&L, against 40% undiscounted. Everything looks fine, because it is.Now suppose March goes wrong. A promotion pulls in bargain hunters, or an influencer's audience turns out to be curious and never loyal. March's new customers pay the same discounted first-order price, so their first orders look identical to every other month's. But only 7.5% of them reorder each month, half the normal rate.Over their first 12 months, with a $40 CAC for both, the two cohorts compare like this.
March's margin is only 2.5 points lower, barely worth a raised eyebrow. Each of its customers contributes 38% less, and its LTV:CAC falls below 1x, the line where acquisition can't scale.And the business's blended monthly margin, with March mixed in alongside every other cohort? It moves from 35.1% to 34.95%. Fifteen hundredths of a point, well inside the wobble of an ordinary month. The damage turns up later as slightly softer revenue, which will get blamed on the weather, the algorithm or the competition.That's the smoothie. A retention problem barely moves margin percentage, because the weak cohort places fewer orders and each of those orders carries a perfectly normal margin. It shows up in contribution per customer, by cohort, built up from orders.Build contribution margin per order: a SQL model if you have a warehouse, a notebook and a lookup file if you don't. Take everything Shopify has, estimate only what it doesn't, and keep the estimates simple until they'd change a decision.Then add it up by acquisition cohort and watch each cohort's cumulative contribution per customer against the path you'd expect. You don't need to wait a year to read it. A cohort's first three months tell you most of what its twelfth will, as we set out in how to calculate LTV from cohort data.The lookups are estimates and the model above is a simplification (real cohorts fade, where ours reorder at a steady rate). Neither matters much. The point is to see the shape early enough to act on it, while the next cohort is still being bought.Cohorts are where a company brain for D2C starts. It tracks every acquisition cohort on one definition, from structured data across Shopify, Klaviyo and the ad platforms, cites every number back to its source, and reads the business LTV:CAC first. Gross margin comes straight from Shopify. The cost lookups that turn it into contribution are the part only you can supply, and they're worth the afternoon it takes to write them down.If you're below roughly $1m in revenue, contribution per order is still worth building, but your cohorts will usually be too small to separate signal from noise, so read their curves with a pinch of salt.If you'd like to see what your own cohorts are hiding, book a call at signalovernoise.app/book-a-call or drop us an email at hello@signalovernoise.app.
Blended margin is a smoothie
What contribution margin per order is
Take everything you can from Shopify, and estimate the rest
Month-end steers the board, orders steer the business
How a cohort's margin climbs
| First-order discount | First order leaves | 5% reorder each month | 15% reorder each month | 30% reorder each month |
|---|---|---|---|---|
| None | $24 (40%) | 40% | 40% | 40% |
| 20% off | $12 (25%) | 31% | 35% | 37% |
| 30% off | $6 (14%) | 26% | 32% | 36% |
| 50% off | -$6 (-20%) | 11% | 26% | 32% |
What the average hides
| Normal cohort | Weak March cohort | |
|---|---|---|
| Share reordering each month | 15% | 7.5% |
| 12-month margin | 35.1% | 32.6% |
| Contribution per customer | $51.60 | $31.80 |
| CAC payback | Month 9 | Not within 12 months |
| 12-month LTV:CAC | 1.29x | 0.80x |