5 minutes
If your gross margin looks healthy but your bank account tells a different story, contribution margin is probably where the answer lives. Getting the formula right means knowing exactly which costs to include and which to leave out, and that part trips up more operators than the math itself ever does.
TLDR:
Contribution margin = Net Revenue minus all variable costs; in our hypothetical example, a 50% gross margin hides an 18% contribution margin
Calculate break-even units by dividing fixed costs by contribution margin per unit; a modest drop in per-unit margin can force a disproportionate jump in the volume needed to break even
TikTok Shop's referral fee is only 5 to 6%, but affiliate commissions, ads, shipping, and returns stack on top; in a heavy-affiliate, heavy-ads mix, total selling costs can reach 35 to 55% of revenue (illustrative range)
Blended contribution margin across channels masks where you're actually losing money; calculate it per channel and per SKU
Iris Finance, an AI-native FP&A platform, delivers real-time contribution margin at the order level across its supported sales channels, with a full P&L waterfall backed by an order-level audit trail
What Is Contribution Margin?
Contribution margin is the revenue left over after you subtract every cost that moves with the sale. Variable costs follow every unit you ship and every order you process. This remainder is what your business draws from to cover fixed costs like rent, salaries, and software subscriptions. Whatever is left after fixed costs is profit.
As Investopedia notes, contribution margin represents the portion of a product's sales revenue that isn't consumed by variable costs, and so contributes to covering fixed costs.
For a CPG operator, gross margin can look healthy on paper while contribution margin quietly signals you're losing money on every incremental sale. That gap is worth understanding, so make sure you know your contribution margin before you go near a formula.
The Contribution Margin Formula
The core formula is straightforward:
Contribution Margin = Net Revenue - Variable Costs
From there, three expressions cover most use cases:
Formula | Expression |
|---|---|
Total Contribution Margin | Net Revenue - Total Variable Costs |
Contribution Margin per Unit | Selling Price per Unit - Variable Cost per Unit |
Contribution Margin Ratio | (Net Revenue - Variable Costs) / Net Revenue |
The ratio gives you a percentage, which is more useful for comparison across SKUs or channels. A ratio of 0.35 means 35 cents of every revenue dollar remains after variable costs. Per-unit contribution margin tells you what a single order actually earns before fixed overhead enters the picture.
What Counts as a Variable Cost?
Variable costs change with every order. Fixed costs stay the same whether you ship one unit or ten thousand.
Common variable cost inclusions:
Cost of goods sold (COGS), the baseline cost to produce each unit sold
Inbound freight per unit, which hits margin before a customer ever places an order
Payment processing and merchant fees tied directly to each transaction
Fulfillment and outbound shipping costs per order
Ad spend across channels like Meta, Google, and TikTok
Affiliate and creator commissions paid per sale
Returns, refunds, and restocking costs that claw back revenue after the fact
Marketplace fees such as Amazon referral fees or TikTok Shop commissions
What stays out: rent, salaries, software subscriptions, and depreciation. These are fixed costs that belong below contribution margin in your profit and loss statement, not inside it.
Channel-level confusion shows up fast. TikTok Shop layers referral fees, affiliate commissions, and fulfillment fees on top of each other. Miss one and your contribution margin looks better than it actually is.
Contribution Margin vs. Gross Margin: What Is the Difference?
Gross margin subtracts COGS from revenue. Contribution margin subtracts everything variable, including fulfillment, ad spend, merchant fees, and commissions. That gap is where profitable-looking brands find they're actually losing money at scale.
As Investopedia explains, gross margin includes all costs a company incurs to make sales, while contribution margin considers only variable costs.
Take a hypothetical $500,000 revenue brand (illustrative numbers, not a benchmark): gross margin (revenue minus COGS) lands at $250,000, a clean 50%. Strip out fulfillment, ad spend, and fees and contribution margin drops to $90,000, or 18%. Same revenue, same product, completely different picture of how much room the business actually has to cover fixed costs before reaching zero.
How to Calculate Contribution Margin: A Step-by-Step Example
Here is an illustrative example with hypothetical numbers: a DTC supplement brand sells 1,000 units (one unit per order) across Shopify and Amazon at a $60 average order value. Here is how contribution margin shakes out:
Line Item | Amount |
|---|---|
Net Revenue | $60,000 |
COGS | ($18,000) |
Merchant & Marketplace Fees | ($3,600) |
Fulfillment & Shipping | ($7,200) |
Ad Spend (Meta + Amazon) | ($12,000) |
Total Variable Costs | ($40,800) |
Contribution Margin | $19,200 |
Contribution Margin Ratio | 32% |
Thirty-two cents of every dollar remains to cover rent, salaries, and everything else fixed. The ratio is what you compare across SKUs and channels. The dollar figure is what you measure against your fixed overhead.
Contribution Margin at the Channel and SKU Level
Blended contribution margin across all channels is a number you can report but can't act on. If Shopify and Amazon are both growing while TikTok Shop quietly hemorrhages margin, averaging them together hides the problem entirely.
Fee structures vary enough by channel that SKU and channel profitability analysis warrants its own contribution margin calculation per channel. Amazon charges referral fees, FBA fulfillment costs, and advertising spend that compounds on top. TikTok Shop looks cheap on paper until you count everything. The referral fee runs 5 to 6% by category. Then affiliate commissions, Shop Ads spend, shipping, returns, and chargebacks stack on top. In a heavy-affiliate, heavy-ads mix, total selling costs can reach 35 to 55% of revenue. Treat that range as illustrative and model your own mix.
The same logic applies at the SKU level. A hero product with high COGS and heavy promotional discounting may generate volume while destroying margin. A quieter SKU with lean fulfillment and minimal ad dependency can carry the whole P&L. You won't see that without building SKU-level profitability data that breaks contribution margin down per product.
Contribution Margin and Break-Even Analysis
Break-even analysis answers a question that revenue alone never can: how many units do you need to sell before you stop losing money?
The formula is direct:
Break-Even Units = Fixed Costs / Contribution Margin per Unit
Using the illustrative supplement brand from the previous example, contribution margin per unit was $19.20 on a $60 order. If hypothetical fixed costs run $15,000 per month:
$15,000 / $19.20 = 781.25, so you need 782 units to break even
Sell fewer than 782 and fixed costs aren't covered. Sell more and every additional unit adds its full $19.20 to profit. That threshold is what a founder needs before setting a sales target, not a revenue goal that ignores the cost structure beneath it.
If ad costs rise and contribution margin per unit drops to $12.00, break-even jumps to 1,250 units. Same fixed costs, same price point, 60% more volume required just to reach zero. Contribution margin is the lever that controls how forgiving your break-even threshold actually is.
Contribution Margin Benchmarks by Ecommerce Vertical
A single target number is rarely useful without category context. Published ecommerce benchmarks vary widely by source, category, and which costs they include, so no universal floor exists. Anchor on your own break-even math: contribution margin has to cover fixed costs and still leave profit.
Where you land depends heavily on your channel mix, business model, and which costs you include. A subscription supplement brand running lean fulfillment and strong retention typically carries more room than a high-volume TikTok Shop seller with heavy affiliate commissions and frequent returns.
The margin layer also matters, and definitions vary by company. One convention some operators use: CM1 deducts COGS and fulfillment, CM2 also deducts marketing, and CM3 may fold in additional variable overhead. Comparing your number to a benchmark means nothing if the definitions don't match on both sides.
How to Improve Contribution Margin
Each lever maps directly to the formula. Lower variable costs or raise net revenue per unit, and the ratio moves.
Renegotiate COGS with suppliers at higher volume commitments, or consolidate SKUs to reduce manufacturing complexity.
Audit fulfillment costs by SKU, since heavy or oversized products often have margin profiles that don't support their shelf space, a gap that GMROI benchmarks can help expose.
Raise prices on SKUs where demand holds. Thin-margin products with inelastic buyers are the lowest-effort fix available.
Improve retention so CAC spreads across more repeat purchases, shortening the CAC payback period and reducing the per-order acquisition cost that eats into CM2.
Cut return rates through better product pages, size guidance, or packaging, since every return claws back revenue already counted.
The diagnostic question for each lever: which variable cost line is largest as a percentage of revenue, and what is the fastest path to compressing it? COGS and ad spend typically dominate. Start there before adjusting anything else.
Limitations of the Contribution Margin Formula
Contribution margin tells you how much each sale contributes before fixed costs. It stops there. A brand can run a 30% contribution margin and still post a net loss if rent, headcount, and software subscriptions outpace what the business generates.
A few gaps worth keeping in mind:
Fixed costs are invisible here. High contribution margin with high fixed overhead can still mean zero profit.
Timing mismatches aren't captured. Costs hit before revenue is recognized, and the formula treats them as simultaneous.
A first-order contribution margin can look fine while underlying customer economics are poor. A buyer acquired at high CAC who never repurchases looks positive on paper and drags down long-term profitability. Brands like RIO's daily contribution margin steers ad spend, and cohort data then shows whether those buyers come back.
Blended numbers obscure channel mix. A strong DTC margin averaged with a weak marketplace margin produces a number that describes neither accurately.
Contribution margin is necessary. It is not sufficient. Use it alongside cohort-level LTV, fixed cost coverage ratios, and channel-specific P&Ls as part of board-ready finance reports to get a complete picture.
Why Your Real-Time Contribution Margin May Not Match Your Spreadsheet Calculation
Four gaps explain most reconciliation failures.
COGS timing: accrual models recognize cost at shipment; cash models recognize it at payment. The same period looks different depending on which basis your spreadsheet runs.
Promotional costs: free gifts and bundled offers carry real COGS that rarely get captured in a manual variable cost column.
Merchant fee bucketing: Shopify transaction fees and Amazon FBA costs frequently land in overhead instead of variable costs, which flatters contribution margin.
Unsettled marketplace payouts: Amazon and TikTok settle on delay. A manual model often counts revenue before fees are confirmed, creating a temporary gap that looks like a discrepancy.
Most of these gaps are preventable at the definition stage. Decide upfront whether merchant fees are variable or overhead, set a consistent COGS timing policy, and document how promotional items are costed. Reconciliation problems compound when those decisions are left to whoever builds the next spreadsheet tab. Iris removes that tab: the definitions live in the platform, the Daily P&L toggles between accrual and cash basis, and every order carries its own audit trail.
How Iris Finance Delivers Contribution Margin Across Your Sales Channels
Iris is an AI-native FP&A platform, and contribution margin is its north star metric, the core of what makes a cash machine work. Iris connects your sales channels, ad platforms, and accounting system, structures the data, and keeps that number accurate and real-time before books close.
The Daily P&L builds the full waterfall from your connected sources, with no spreadsheet assembly: net sales by channel, discounts and refunds, COGS, merchant fees, delivered gross profit, ad spend, and contribution margin. Every line is backed by an order-level audit trail, so any number that looks off resolves to the exact order behind it.
TikTok Shop Fee Capture
For TikTok Shop, Iris captures order-level fees including FBT fees, affiliate commissions, TikTok merchant fees, and per-order shipping costs. For brands running meaningful TikTok volume, the gap between what you think your contribution margin is and what it actually is often lives in those fees.
Fin, Iris's AI copilot, answers questions like "Why has my contribution margin declined this week?" with a ranked variance analysis, pulling from the same verified, transaction-level data instead of aggregated exports. Across the roughly 500 brands and approximately $20B in GMV on the Iris platform (per Iris Finance internal data), that is the standard we hold the number to.
Final Thoughts on Contribution Margin and What It Actually Measures
Contribution margin works when every variable cost is counted and nothing is buried in the wrong bucket. The brands that get it right see it by channel, by SKU, and at the order level where the real gaps show up. Iris Finance, an AI-native FP&A platform, builds that view from your connected sales channels, ad platforms, and accounting system, so the calculation stops living in a spreadsheet. That's the number worth building your pricing, your break-even targets, and your P&L around. Reach out to the Iris Finance team to see how it works in practice.
FAQ
How does contribution margin differ from gross margin for ecommerce sellers?
Gross margin subtracts only COGS from revenue. Contribution margin subtracts every variable cost: fulfillment, ad spend, merchant fees, commissions, and returns. The gap between the two is where brands find out they are losing money on incremental sales despite a healthy-looking gross margin percentage.
What tools should I use to track contribution margin by SKU and channel for my DTC brand?
Iris Finance, an AI-native FP&A platform, connects Shopify, Amazon, and TikTok Shop and builds a single P&L from order-level data, applying channel-specific fee structures at the transaction level instead of blending them. Marketing attribution tools track engagement but do not apply the full variable cost stack (COGS, fulfillment, merchant fees, and returns) needed to calculate true contribution margin by SKU.
How do I know if my TikTok Shop margins are actually profitable after fees and ad spend?
Run the full fee stack covered in the Channel and SKU section above: referral fees, affiliate commissions, Shop Ads spend, per-order shipping, and return costs against your actual revenue. See the Channel and SKU section above for the illustrative range total selling costs can reach in a heavy-affiliate, heavy-ads mix, which means volume alone tells you nothing about whether the channel is profitable.
Why does my real-time contribution margin not match what I calculate manually in a spreadsheet?
Four cost-accounting gaps cause most reconciliation failures: COGS timing differences between accrual and cash basis, promotional items and free gifts with real COGS that go uncaptured, merchant and marketplace fees bucketed into overhead instead of variable costs, and unsettled Amazon or TikTok payouts that record revenue before fees are confirmed. Iris backs every number with an order-level audit trail, so a discrepancy resolves to the specific order and cost line behind it instead of being rebuilt across aggregated spreadsheet totals.
How do I calculate break-even units using contribution margin?
Divide your total monthly fixed costs by contribution margin per unit. The worked example in the "Contribution Margin and Break-Even Analysis" section above shows exactly how a shift in ad spend changes that threshold.
Related posts
Actionable data, proven strategies, and clear forecasts, empowering you to make smarter decisions and scale with confidence.





