The contribution margin equation is revenue minus all variable costs. For one order that means the price a customer pays, minus everything that scales with that sale — product cost, shipping, payment fees, fulfillment labor, and any ad spend you allocate to it. What's left "contributes" to covering fixed costs and, past break-even, to profit. Written per unit it's Contribution Margin = Price − Variable Cost per Unit; written as a percentage it's (Revenue − Variable Costs) ÷ Revenue × 100.

Most explanations of the contribution margin equation stop at "revenue minus variable costs" and a tidy t-shirt example. That's correct, but it hides the part that actually decides whether you make money: which costs count as variable, and what's left after you subtract all of them. This guide walks a real per-order calculation, in layers, so you can see profit appear (or disappear) line by line.

The contribution margin equation, three ways

The equation shows up in three interchangeable forms. Pick the one that matches the decision you're making.

  • Total contribution margin: Revenue − Total Variable Costs. Use this for a whole product line or a month.
  • Per-unit contribution margin: Price − Variable Cost per Unit. Use this to price a single product or compare SKUs.
  • Contribution margin ratio: (Revenue − Variable Costs) ÷ Revenue × 100. Use this to compare products of different prices on equal footing, and to find break-even.

All three describe the same gap between what you charge and what each sale costs you to deliver. The ratio is just the per-unit figure expressed as a share of price. For a deeper treatment of the percentage form, see our guide to the contribution margin percentage.

The one input everyone gets wrong: variable costs

The formula is trivial. The judgment call is what goes into "variable costs." A cost is variable if it moves with volume — one more order creates one more unit of it. The usual suspects:

  • COGS — the product itself (for print-on-demand: the blank, the print, and the supplier's base fulfillment charge).
  • Shipping you pay the carrier.
  • Payment processing fees (a percentage of each order).
  • Pick/pack labor that scales per order.
  • Allocated ad spend, if you're measuring contribution after acquisition.

Fixed costs — rent, salaries, software subscriptions, a base agency retainer — are deliberately left out, because they don't change when you sell one more shirt. That exclusion is the whole point: contribution margin isolates the profitability of the next sale from the overhead you'd pay anyway.

Worked example: one print-on-demand order

Say you run a print-on-demand apparel store and want the contribution margin on one average order. Frame the numbers as your inputs, then let the arithmetic do the work.

Say your average order is priced at $40. Here's the full per-order stack.

Layer 1 — gross profit (after COGS only)

Subtract just the cost of goods. Say the blank garment, print, and base fulfillment cost total $16 per order.

$40 − $16 = $24 gross profit, a gross margin of $24 ÷ $40 = 60%.

Gross profit answers "is this product worth making?" — but it's optimistic, because it ignores every other cost of getting the order out the door.

Layer 2 — contribution margin before ads (CM2)

Now subtract the rest of the variable costs that aren't COGS. Say shipping runs $5, payment processing is 4% of the $40 order ($1.60), and pick/pack labor is $1.40.

$24 − $5 − $1.60 − $1.40 = $16

That $16 is your contribution margin before advertising — often written CM2. As a ratio: $16 ÷ $40 = 40%. Notice a 60% gross margin already fell to a 40% contribution margin, and you haven't spent a dollar on marketing yet.

Layer 3 — contribution margin after ads (CM3)

Advertising is variable too — you spend more to sell more — so a full picture nets it out. Say you run ads at a 4.0 return on ad spend, which means $10 of ad spend is allocated to a $40 order.

$16 − $10 = $6

That final $6 is CM3: contribution margin after ads, a ratio of $6 ÷ $40 = 15%. This is the number that survives to cover rent, salaries, and software. The tidy 60% margin you started with is really 15% once every variable cost is honest.

This layered view is exactly the kind of true per-order profit that gets buried when you only look at revenue and gross margin. It's also why two stores with the same "60% margin" can have wildly different bank balances.

Turning the equation into a ratio (and why the ratio is the useful part)

The contribution margin ratio strips out price so you can compare products fairly. A $40 order at $16 CM2 and a $20 order at $8 CM2 both have a 40% ratio — same efficiency per dollar of revenue, different absolute dollars.

CM ratio = Contribution Margin ÷ Revenue × 100

Using the CM2 figure above: $16 ÷ $40 × 100 = 40%.

The ratio is what feeds break-even and target-ROAS math, so it's worth computing per SKU. High-price, low-margin products and low-price, high-margin products can look identical in gross terms and diverge sharply once you rank them by contribution ratio.

What the equation unlocks: break-even

Contribution margin exists to answer one question: how much do you need to sell before fixed costs are covered and profit begins?

Break-even units = Fixed Costs ÷ Contribution Margin per Unit

Say your fixed costs are $4,000 a month. Using the CM3 figure of $6 per order:

$4,000 ÷ $6 = 667 orders per month

In revenue terms, divide fixed costs by the ratio instead: $4,000 ÷ 0.15 = $26,667. Below that, you're funding the business out of pocket; above it, each additional $6 of contribution is profit.

The same logic drives break-even ROAS — the return on ad spend at which ad-driven sales exactly cover their own costs. It equals 1 ÷ contribution margin ratio. On the 40% CM2 base, that's 1 ÷ 0.40 = 2.5: any campaign under a 2.5 ROAS loses money before overhead, no matter how good the click-through looks. If you're tuning acquisition efficiency, our formulas for revenue per visitor and reach sit directly upstream of this number.

Contribution margin vs gross margin vs net margin

These three get conflated constantly, and the confusion is expensive.

  • Gross margin subtracts only COGS. It says whether a product is worth making. (Example above: 60%.)
  • Contribution margin subtracts all variable costs — COGS plus shipping, fees, fulfillment, and ad spend. It says whether a product is worth selling through this channel at this cost. (Example: 40% before ads, 15% after.)
  • Net margin subtracts everything, including fixed costs. It's the company-wide scoreboard. (Example: after $4,000 of fixed costs on $6,000 of total CM3, net profit is $2,000 on $40,000 revenue — a 5% net margin.)

Contribution margin is the diagnostic; net margin is the result. You scale on the first and get judged on the second. For where all of these sit in the broader metric stack, start with our ecommerce metrics guide.

From formula to live numbers

The equation is easy; keeping the inputs current is the hard part. Payment fees, carrier rates, supplier costs, and ad spend all drift, and a contribution margin built on last quarter's numbers quietly lies to you. That's the gap PodVector closes.

PodVector connects Shopify, Meta Ads, Google Ads, Printify, and Printful, then computes true per-order profit — the CM2 and CM3 layers above, calculated from your live data instead of a spreadsheet estimate. Victor, its AI operator, analyzes that data and can act on it Shopify-side with your approval; he reads your ad performance and proposes moves, but does not touch your ad account. If you want the contribution margin equation running on real orders instead of assumptions, start with PodVector.

FAQs

What is the contribution margin equation in simple terms?

It's revenue minus variable costs. For one sale: the price minus everything that costs you money because that sale happened — product, shipping, payment fees, fulfillment, and allocated ad spend. Whatever remains contributes to fixed costs and profit.

Is contribution margin the same as gross profit?

No. Gross profit subtracts only the cost of goods sold. Contribution margin subtracts all variable costs, so it's usually lower. In the example above, a $24 gross profit (60%) becomes a $16 contribution margin before ads (40%) and just $6 after ads (15%) — same order, three very different numbers.

Should ad spend be included in the contribution margin equation?

It depends on the decision. To judge whether a product is intrinsically profitable, use contribution margin before ads (CM2). To judge whether a specific acquisition channel pays, subtract the ad spend allocated to those sales and use contribution margin after ads (CM3). Just label which one you're quoting, because they can differ dramatically.

How do I calculate the contribution margin ratio?

Divide contribution margin by revenue and multiply by one hundred: (Revenue − Variable Costs) ÷ Revenue × 100. Using $16 of contribution margin on a $40 order gives $16 ÷ $40 × 100 = 40%. The ratio lets you compare products at different price points on equal footing.

What's a good contribution margin?

There's no universal threshold — it depends on your fixed-cost load and how much you spend to acquire customers. The practical test is break-even: your contribution margin has to clear a break-even ROAS of 1 ÷ ratio on paid channels, and your total contribution has to exceed fixed costs before any profit exists. A "high" ratio that can't cover acquisition still loses money.

Why is my contribution margin so much lower than my gross margin?

Because gross margin ignores shipping, payment processing, fulfillment labor, and advertising — all of which are variable and all of which hit every order. A 60% gross margin routinely lands in the teens once those are subtracted. That gap is the single most common reason a "profitable-looking" store isn't.