Website/October 25, 2026/15 min read

Contribution Margin: How to Calculate It, Read It and Use It to Make Ecommerce Decisions

Revenue tells you how much you sold. Contribution margin tells you what each order, product and channel actually leaves behind. This guide covers the formulas, CM1 to CM3, break-even CPA, the discount and free shipping math, product level analysis and a real example from our client work.

Bella Ng
Bella NgCo-founder, Growthtrait
Contribution Margin: How to Calculate It, Read It and Use It to Make Ecommerce Decisions

Plenty of online stores grow revenue every month and still run out of cash. The reason is almost always the same: they track how much they sell, but not how much each sale leaves behind once the costs of making, delivering and selling it are paid.

That number is contribution margin: revenue minus all variable costs, as Investopedia defines it. The definition is the easy part. The value comes from calculating it in layers, at the level of orders, products and channels, and using it to answer real questions: how much can we pay for a customer, is this discount worth it, which products should we push or drop.

This guide covers the formulas, the CM1 to CM3 layers, break-even CPA, the math behind discounts and free shipping, product level analysis, a real example from our own client work, and the mistakes that most often make contribution margin look better than it is.

What Is Contribution Margin?

Contribution margin is the money left from a sale after subtracting every cost that rises and falls with that sale: product cost, shipping, packaging, payment fees, returns and, for most online stores, the marketing it took to win the order. What remains contributes to fixed costs, such as salaries, rent and software, and then to profit.

If contribution margin is negative, growth makes things worse: every extra order loses money. That is why it is the first number to check before scaling ad spend.

The Formulas

  • Total contribution margin = net revenue minus total variable costs.
  • Contribution margin per order = average order value minus variable cost per order.
  • Contribution margin per unit = selling price minus variable cost per unit.
  • Contribution margin ratio = contribution margin divided by net revenue.
  • Break-even orders = monthly fixed costs divided by contribution margin per order.

Use net revenue, after discounts and returns, not gross sales. Otherwise the ratio flatters every product that is heavily discounted or often returned.

CM1, CM2 and CM3: Where the Money Goes

Splitting contribution margin into layers shows exactly where margin leaks out:

  • CM1 = net revenue minus product cost (COGS, including inbound freight and duties). This tests pricing and sourcing.
  • CM2 = CM1 minus fulfillment costs: outbound shipping, packaging, pick and pack, payment fees and the cost of returns. This tests operations.
  • CM3 = CM2 minus marketing and acquisition costs. This tests whether you can win orders profitably.

A store with a strong CM1 but weak CM2 has an operations problem, often free shipping on small baskets. A strong CM2 but weak CM3 means acquisition is too expensive. Each needs a different fix, which is why a single blended margin number is not enough.

A Worked Example, Order by Order

Take an illustrative skincare set sold for 60 dollars:

  • Product cost 18, so CM1 is 42 dollars (70 percent).
  • Packaging 2, shipping and fulfillment 7, payment fees 2, so CM2 is 31 dollars (about 52 percent).
  • Marketing cost per order 15, so CM3 is 16 dollars (about 27 percent).
  • With 20,000 dollars of fixed costs a month, break-even is 20,000 divided by 16, or 1,250 orders.

Break-Even CPA and Maximum CAC

CM2 per order is the most you can pay in marketing for that order before it loses money. That gives you a hard ceiling for acquisition:

  • Break-even CPA = CM2 per order. In the example, 31 dollars.
  • Target CPA = CM2 per order minus the CM3 per order you want to keep. To keep 10 dollars per order, the target CPA is 21 dollars.
  • Break-even ROAS = 1 divided by CM2 ratio. With a 52 percent CM2 ratio, that is about 1.9.
  • If repeat purchases are reliable, maximum CAC for a new customer can be higher: first order CM2 plus the CM2 you expect from repeat orders within your payback window.

A Real Example: What a 10x ROAS Means for Margin

In our work with an Australian merchandise brand, Google Ads returned 10x ROAS in Q1 2024 with a 3.37 percent conversion rate. A 10x ROAS means ad spend was about 10 percent of the revenue the platform attributed to those ads.

Contribution margin is what turns that into a decision. Suppose, for illustration, a CM2 ratio of 45 percent. At 10x ROAS, the marketing cost of 10 percent leaves a CM3 of about 35 percent on that revenue. At 3x ROAS, marketing takes 33 percent and CM3 shrinks to about 12 percent. At 2x, it is negative. The same calculation tells you how far you can push spend before the next dollar stops being profitable, which a ROAS number on its own cannot.

The same project also generated AUD 158,500 from email in five months, from a list the brand already owned. Owned channels like email carry almost no acquisition cost per order, which is one of the most reliable ways to lift CM3 across the whole business. Our Klaviyo flow audit guide covers how to build that channel.

The Discount Math Most Stores Get Wrong

A discount comes straight out of contribution margin, so it needs more volume to break even than most people expect. If your contribution margin ratio before the discount is CM and the discount is D, both as decimals:

  • Extra volume needed to keep the same total contribution = D divided by (CM minus D).
  • With a 40 percent margin and a 10 percent discount: 0.10 divided by 0.30, so you need 33 percent more orders just to stand still.
  • With a 40 percent margin and a 20 percent discount: 0.20 divided by 0.20, so you need 100 percent more orders, double the volume.

This is why blanket sitewide discounts often grow revenue and shrink profit. Targeted offers, such as a bundle or a gift with purchase, usually cost less margin than a percentage off everything.

Free Shipping Threshold Math

Free shipping moves cost from the customer to you, so set the threshold where the extra basket value pays for it:

  • Contribution from the extra basket value = increase in AOV multiplied by (1 minus COGS ratio minus payment fee ratio).
  • Compare that with the shipping cost you now absorb on orders above the threshold.
  • A common starting point is a threshold a little above your current AOV, so customers add one more item rather than qualifying by default.

If the threshold sits below your current AOV, most orders already qualify, and you pay for shipping without changing behavior.

Product Level Contribution Margin

Store level margin can hide products that lose money. Calculate CM2 per SKU, then plot each product by contribution margin per unit and by volume:

  • High margin, high volume: protect stock and feature these in ads and email.
  • High margin, low volume: test more visibility, bundles and better product pages.
  • Low margin, high volume: review price, packaging, supplier cost or use them as entry products that lead to better baskets.
  • Low margin, low volume: candidates to reprice, bundle or discontinue.

When allocating marketing to products, use the spend on product specific campaigns where you have it, and allocate shared spend by revenue share. It is imperfect, but far better than assuming every product carries the same marketing cost.

Returns: The Hidden Variable Cost

Returns reduce contribution margin twice: you lose the revenue and you pay for shipping and handling. A simple adjustment is: expected CM2 per order = CM2 per order multiplied by (1 minus return rate), minus return rate multiplied by return handling cost. Categories like apparel, where return rates are high, often look healthy until this adjustment is made.

How to Track Contribution Margin on Shopify

Enter cost per item for every variant in Shopify so its reports can show gross profit. Then build a monthly sheet that adds shipping, packaging, payment fees, returns and marketing spend, and calculates CM1, CM2 and CM3 overall and for your top products. Our guide to ecommerce profit metrics includes a full dashboard template that connects contribution margin to MER, CAC and LTV.

Common Mistakes

  • Using gross sales instead of net revenue.
  • Leaving out payment fees, packaging or returns because they feel small; together they often are not.
  • Calculating margin once a year instead of monthly, so price and cost changes go unnoticed.
  • Judging products only on CM1 and missing that some are expensive to ship.
  • Setting ad targets from platform ROAS without a break-even based on CM2.

Where to Start

This week, calculate CM1, CM2 and CM3 for last month and for your top ten products. Then set a break-even CPA and ROAS from your CM2 ratio and share it with whoever manages your ads. Those two numbers alone change how most stores spend.

If you want a Shopify store built to raise order value and conversion, our Shopify development service can help. Contact us to walk through your numbers.

Frequently asked questions

What is contribution margin in simple terms?

Contribution margin is the money left from a sale after subtracting the costs that rise with each sale, such as product cost, shipping, payment fees, returns and marketing. It shows how much each sale contributes to fixed costs and profit.

How do you calculate break-even CPA from contribution margin?

Break-even CPA equals contribution margin per order before marketing (CM2). If an order leaves 31 dollars after product, shipping and payment costs, you can spend up to 31 dollars to acquire it before losing money.

How much extra volume does a discount need?

Divide the discount by your contribution margin ratio minus the discount. With a 40 percent margin, a 10 percent discount needs 33 percent more orders and a 20 percent discount needs double the orders to keep the same total contribution.

What is the difference between contribution margin and gross margin?

Gross margin subtracts only the cost of goods sold. Contribution margin subtracts all variable costs, including shipping, payment fees, returns and usually marketing, so it reflects what each sale really earns.

What are CM1, CM2 and CM3?

CM1 is revenue minus product cost, CM2 also subtracts fulfillment, payment fees and returns, and CM3 also subtracts marketing. Comparing them shows whether a margin problem comes from pricing, operations or acquisition.

Need help with this?

Growthtrait can help you put this into practice. Let's talk about your goals.

Contact us