Shopify glossaryGlossary·4 min read
What Is Contribution Margin? The Profit Metric Shopify Brands Should Track
Contribution margin shows what each order really leaves you after every cost that grows with sales. Here is the formula, the ratio and a worked Shopify example.

Key takeaways
- Contribution margin is net sales minus all variable costs: the money left to pay fixed costs and make a profit.
- The contribution margin ratio is contribution margin ÷ net sales × 100, so you can compare products and months.
- For a Shopify store, variable costs include product cost, packaging, outbound shipping, payment fees and, if you count it, ad spend per order.
- Shopify has no contribution margin report. You start from its Profit reports and subtract the other variable costs yourself.
- Who it is for
- Store owners checking profit per order
- Time needed
- 4 minutes to read
- What you need
- Costs for one typical order
Contribution margin is what's left from your sales after you subtract every cost that rises and falls with the number of orders. It's the amount each sale contributes toward fixed costs such as rent, salaries and software, and then toward profit.
I prefer it to gross margin for day-to-day decisions on a Shopify store, because it includes shipping and payment fees, which are often what turns a busy month into a thin one. Definitions were checked against Shopify's own pages on 7 November 2026.
The contribution margin formula
- Contribution margin = net sales − variable costs
- Contribution margin ratio = contribution margin ÷ net sales × 100
- Per unit = selling price − variable cost per unit
Shopify's own example uses $250,000 in product sales and $100,000 in variable costs. That leaves a $150,000 contribution margin and a ratio of 60%. Fixed costs, which stay the same whatever you sell, come out after this line.
Which costs count as variable on Shopify
| Cost | Variable? | Why |
|---|---|---|
| Product cost (COGS) | Yes | Every unit sold costs you one unit |
| Packaging and inserts | Yes | One box per order |
| Outbound shipping | Yes | One label per order |
| Payment and transaction fees | Yes | A percentage plus a fixed amount per order |
| Ad spend | Often counted | Rises as you buy more orders |
| Shopify plan, theme, staff | No | Same bill at 10 or 1,000 orders |
Many direct-to-consumer brands report it in layers: first after product cost, then after fulfillment and fees, then after marketing. The last layer answers the real question: does a paid order make money?
A worked example for one order
One $80 order on a Shopify store. The figures are illustrative, and the payment fee uses the 2.9% + 30¢ online card rate Shopify has quoted for its Basic plan in the US.
| Step | Cost | Left from $80 |
|---|---|---|
| Product cost | $28.00 | $52.00 |
| Packaging | $2.00 | $50.00 |
| Shipping label | $7.00 | $43.00 |
| Payment fee | $2.62 | $40.38 |
| Ad spend per order | $18.00 | $22.38 |
Same order, two margins (illustrative)
- Gross margin65%$52 left after product cost only.
- Contribution margin28%$22.38 left after all variable costs.
A 65% gross margin looks comfortable. A 28% contribution margin is what actually pays the rent, and it falls fast if shipping or ad costs rise.
Contribution margin vs gross margin
Gross margin subtracts only the cost of goods sold. Contribution margin subtracts every variable cost. Some articles, including an older Shopify blog post, use the two names as if they meant the same thing. For a store with real shipping and fee costs, they don't, and the gap between them is where many small stores lose money.
How to work it out from Shopify
- Start with gross profit. Go to
Analytics > Reports, filter to the Profit category and open Gross profit by product or Profit margin by order. These need a cost per item on every variant. - Subtract fulfillment. Take your shipping label and packaging spend for the same period.
- Subtract fees. Payment and transaction fees show on your payouts. My guide to payouts and reconciliation shows where to find them.
- Subtract marketing if you want the final layer, using spend from your ad accounts.
Common mistakes
- Treating free shipping as free. The label still costs you, so it belongs in variable costs.
- Forgetting discounts. Use net sales after discounts, not the list price.
- Counting fixed costs. Your Shopify plan and apps with a flat fee don't change per order. Apps that charge per order do.
- Using one average for every product. Heavy or low-priced items often have a much lower contribution margin than the store average.
Related terms
- Gross margin: margin after product cost only.
- Customer acquisition cost (CAC): what you spend to win one new customer, which has to fit inside contribution margin.
- Break-even point: the sales needed for total contribution margin to cover fixed costs.
What to do next
- Add cost per item to every variant so Shopify's profit reports are complete.
- Build a one-order model for your three best-sellers, using the table above as the template.
- Find the weakest product and decide whether a price change, a bundle or a free shipping threshold fixes it.
Free tools
Check your own store
Free, no sign-up. Each one runs a part of this guide for you.
Frequently asked questions
What is contribution margin in simple terms?
It is the money left from a sale after paying every cost that grows with sales, such as product cost, packaging, shipping and payment fees. That money then covers fixed costs and profit.
What is the contribution margin formula?
Contribution margin equals net sales minus variable costs. To get the contribution margin ratio, divide contribution margin by net sales and multiply by 100.
What is a good contribution margin ratio?
There is no single target, because it depends on your fixed costs and how much you spend on marketing. The ratio has to be high enough that total contribution margin covers your fixed costs with room left for profit.
Is contribution margin the same as gross margin?
No. Gross margin subtracts only the cost of goods sold. Contribution margin also subtracts shipping, packaging, payment fees and other variable costs, so it is lower.
Does Shopify calculate contribution margin?
Not directly. Shopify's Profit reports give you gross profit once cost per item is set, and you subtract shipping, fees and marketing yourself.
Sources
- Contribution Margin: Formula and How to Calculate, Shopify
- Profit reports, Shopify Help Center
- Shopify analytics fields, Shopify Help Center
Related services and work

Written by Ashraf Siddik
I'm a Shopify developer and CRO specialist. I have built and improved Shopify stores since 2018, completed more than 1,000 projects, and hold a 4.96 average rating across 719 client reviews.
More guides
-
CRO8 min readUpdated
Why Shopify Stores Lose Sales on Mobile: A Practical CRO Checklist
Mobile visitors decide fast, with one thumb and plenty of distractions. Here is how to find the leaks on a Shopify store and fix them in the right order.
Read the guide -
CRO6 min readUpdated
Shopify CRO Audit Checklist for DTC Brands
The checklist I use to audit DTC Shopify stores, from checking that the data can be trusted to deciding which fixes to ship first.
Read the guide -
Apps6 min readUpdated
When to Build a Custom Shopify App Instead of Adding Another Subscription
Another subscription is the quickest fix, until you are paying for five apps that still don't match how your business works. Here is how to decide.
Read the guide -
Themes6 min readUpdated
How to Find Out What Theme a Shopify Store Uses
Every Shopify store names its theme in the page code. Here is where to look, how to read what you find, and what it means for your own theme choice.
Read the guide -
Apps5 min readUpdated
How to See What Apps a Shopify Store Uses
Apps leave traces in a store's page code: scripts from their own servers, app embed folders and pixel settings. Here is how to read them, and what to do with the list.
Read the guide -
Branding7 min readUpdated
How to Name a Shopify Store (and Check the Name Is Free)
A store name has to be easy to say, free as a domain and a handle, and clear of other brands. Here is the process I use with clients, and what Shopify lets you change later.
Read the guide