Shopify glossaryGlossary4 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.

Card summarizing contribution margin: net sales minus variable costs, includes shipping and fees, ratio is margin divided by net sales, and does not include fixed costs
Contribution margin shows what one order really leaves you.

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

CostVariable?Why
Product cost (COGS)YesEvery unit sold costs you one unit
Packaging and insertsYesOne box per order
Outbound shippingYesOne label per order
Payment and transaction feesYesA percentage plus a fixed amount per order
Ad spendOften countedRises as you buy more orders
Shopify plan, theme, staffNoSame 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.

StepCostLeft 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.
Figures are illustrative. Your fee depends on your plan, country and payment method.

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

  1. 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.
  2. Subtract fulfillment. Take your shipping label and packaging spend for the same period.
  3. Subtract fees. Payment and transaction fees show on your payouts. My guide to payouts and reconciliation shows where to find them.
  4. Subtract marketing if you want the final layer, using spend from your ad accounts.
Quick check: run one typical order through the free Shopify fees calculator and the profit margin calculator before you build a spreadsheet.

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.
  • 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

  1. Add cost per item to every variant so Shopify's profit reports are complete.
  2. Build a one-order model for your three best-sellers, using the table above as the template.
  3. 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

  1. Contribution Margin: Formula and How to Calculate, Shopify
  2. Profit reports, Shopify Help Center
  3. Shopify analytics fields, Shopify Help Center
Ashraf Siddik

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.

About me · Client reviews

Free 3‑point store review

  1. 1
    Send your storeTakes about a minute
  2. 2
    I review it by handOn mobile and desktop, not by a tool
  3. 3
    Get three ranked fixesBy email, free, with no obligation

“Very professional and deep understanding of the Shopify ecosystem. Friendly and proactive communication. Delivered on time with good quality”

Verified client, United Kingdom
4.96 from 719 client reviews

Get your free review

Takes about a minute. No obligation.

Your email is used only to reply about your store. No newsletter, never sold. Privacy note