Gross margin is what is left of a sale after the cost of goods sold (COGS). Contribution margin is what is left after all variable costs, including COGS, shipping, fulfillment, payment fees and often ads. Gross margin shows how well you buy or make a product. Contribution margin shows whether each sale actually helps pay your fixed costs and leaves profit. For a brand that ships orders, the second number is usually the one that decides which SKUs to scale.
TL;DR
- Gross margin = (net sales − COGS) ÷ net sales. It leaves out operating expenses and most selling costs.
- Contribution margin = (sales − all variable costs) ÷ sales. It includes fulfillment, shipping, fees, returns and ad spend.
- Gross profit is the dollar amount. Gross margin is the same figure as a percentage.
- A SKU can show a strong gross margin and a thin contribution margin. Use contribution margin for SKU, channel and ad-budget decisions.
- Many ecommerce operators use 30% as a baseline contribution margin target, though the right number depends on your model.
Table of Contents
- The difference in plain terms
- Gross profit vs. gross margin
- The contribution margin formula
- One sale, two margins
- Work through your own SKU
- When to use each margin
- Is a 30% contribution margin good?
- Common mistakes
- Put the numbers to work
- FAQ
- Sources
The difference in plain terms
Both metrics start with revenue and subtract costs. They differ in which costs they subtract.
Gross margin subtracts COGS only. Investopedia explains that gross margin uses revenue and direct production costs and leaves out operating expenses such as sales and marketing, taxes and loan interest.
Contribution margin subtracts variable costs, meaning costs that rise and fall with volume. Wall Street Prep lists examples such as inventory or materials, direct labor and shipping. Fixed costs such as rent, utilities and insurance stay out, because they do not change when volume changes.
That is why the two numbers diverge for ecommerce. Pick-and-pack, outbound postage, payment processing, returns and paid ads all scale with orders. A COGS-only view hides every one of them.
| Gross margin | Contribution margin | |
|---|---|---|
| Costs subtracted | COGS (direct product costs) | All variable costs, including COGS |
| Fulfillment and shipping | Usually not included | Included |
| Payment fees, returns, ads | Not included | Included |
| Fixed overhead | Not included | Not included |
| Best for | Pricing, sourcing, trend over time | SKU, channel and ad-spend decisions, breakeven |
| Can be shown per unit? | Yes | Yes, plus per order, SKU or channel |
Gross profit vs. gross margin
The search results often mix these two up, so settle it first. Investopedia describes gross profit as the dollar difference between net revenue and COGS, and gross margin as the percentage of each sale left after COGS. Shopify gives the formula: net sales minus COGS, divided by net sales, shown as a percentage.
A business with $100,000 in annual sales and $70,000 spent on merchandise has $30,000 in gross profit and a 30% gross margin, as the Better Business Bureau shows in its small business example.
So “contribution margin vs. gross profit” is the same comparison with one wrinkle: gross profit is dollars, contribution margin is usually quoted as dollars per unit or as a ratio. Convert both to the same form before you compare them.
The contribution margin formula
There are three forms. Use whichever fits the question.
- Total: contribution margin = sales revenue − variable costs.
- Per unit: selling price per unit − variable cost per unit.
- Ratio (percentage): contribution margin ÷ sales revenue, or per unit, (price − variable cost) ÷ price.
NetSuite states all three, and OpenStax defines per-unit contribution margin as the amount by which a product’s price exceeds its variable cost per unit, which is its contribution toward fixed costs.
NetSuite’s worked example: 2,000 units sell at $25 with $10 of variable cost each. Contribution margin is $15 per unit and $30,000 in total. With $25,000 in fixed costs, $5,000 is left as profit. Cut variable cost by $2 per unit and contribution margin rises to $17 per unit, $34,000 in total, and profit to $9,000.
One sale, two margins

Shopify’s example is the cleanest way to see it. A product sells for $100 with $40 of COGS, so gross margin is 60%. If the sale also carries a $10 variable payment fee, contribution margin falls to 50%.
Real ecommerce sales carry more than a payment fee. Here are published examples with the full stack of costs:
| Example | Price | Gross margin | Contribution margin |
|---|---|---|---|
| Skincare serum (shipping, processing, ad cost per acquisition) | $50 | 70% | 31.5% |
| Amazon FBA SKU (referral fee, FBA fee, ads) | $30 | 73% | 30% |
| $100 order (inbound freight, pick-pack, shipping, processing, 5% returns allowance) | $100 | 68% | 44.3% |
| DTC SKU (pick-and-pack, shipping, processing, welcome discount) | $32 | 47% | about 8% |
The last row is the most useful. The same doss.com example shows the product earning about $4.60 of contribution per unit through Amazon FBA before advertising, against $2.70 direct-to-consumer, with an identical 47% gross margin. Gross margin cannot see that difference because it does not know which channel the unit sold through.
Work through your own SKU
Here is an illustration with made-up product numbers. Only the $1.65 order fee is a real Envio rate, taken from our published DTC order price. Swap in your own figures.
A candle sells for $40. COGS is $14 landed.
- Gross profit: $40 − $14 = $26. Gross margin: 65%.
- Variable costs beyond COGS: $1.65 fulfillment fee per order, $7.00 postage, $1.46 payment processing. Total: $10.11.
- Contribution margin: $26 − $10.11 = $15.89, or about 39.7%.
Now add $12 of ad spend to win that order. Contribution after ads is $3.89, under 10% of revenue. Same product, same 65% gross margin, a very different business.
Which costs belong in the calculation
Build the variable cost stack from your own records. A practical checklist for an ecommerce brand:
- Landed product cost: purchase price, inbound freight, duties
- Pick, pack and order handling fees
- Packaging and inserts that scale with orders
- Outbound postage the brand absorbs
- Payment processing and marketplace referral fees
- Returns allowance, including intake and restock labor
- Discounts and promotions
- Advertising spend allocated to the SKU or channel
StoreHero frames it as net sales minus product cost plus fulfillment, shipping, fees, returns and ad spend. Net profit then subtracts fixed costs on top of that. For a deeper look at the first line of that stack, see our guide to landed cost calculation.
Layered contribution margin (CM1, CM2, CM3)
Many ecommerce finance teams split contribution margin into tiers. One ecommerce P&L template defines CM1 as net revenue minus landed COGS, CM2 as CM1 minus fulfillment and fees, and CM3 as CM2 minus advertising. The tiers let you see where a SKU loses money: at sourcing, at fulfillment, or at acquisition.

When to use each margin
Use gross margin when you are:
- Setting or checking prices against product cost
- Negotiating with suppliers or comparing manufacturers
- Tracking profitability over time and spotting cost creep. Shopify notes it helps identify needed changes to production costs or pricing.
- Comparing against industry norms. Xero cites retail at 25-45% and manufacturing at 25-35%, with product-based businesses often between 20% and 40%.
Use contribution margin when you are:
- Deciding which SKUs to scale, reprice or discontinue
- Comparing channels, such as your own store, Amazon or Walmart
- Setting an ad budget, since it tells you how much each sale can afford to spend
- Finding your breakeven volume
The breakeven math is simple. In a manufacturing example from Manufacturing Dive, fixed costs of $1.2 million, a $10 variable cost and a $15 price mean $5 of contribution per unit, so the business needs 240,000 units to break even.
Granularity matters too. Doss points out that contribution margin can be run per unit, order, SKU or channel, and that this answers a question gross margin cannot: if we sell one more unit through this channel, are we better off? A SKU with a 45% gross margin and a 4% contribution margin looks fine on the P&L, but pointing a growth budget at it scales losses.
Is a 30% contribution margin good?
It is a common floor, not a universal answer. Ecom CFO says brands should target a baseline contribution margin of at least 30%, with exceptions for dropshippers and high-volume commodity resellers. For manufacturers, Manufacturing Dive’s author puts the range at roughly 30% to 40%. Shopify notes that ratios vary by industry and many businesses run below 50%.
To judge your own number, check three things:
- Fixed costs. A 30% contribution margin on $500,000 in sales is $150,000 toward rent, salaries, software and profit. Does that cover them?
- Whether ads are in. A 30% before ads and a 30% after ads are different businesses. State which one you mean.
- Cost shocks. Current CFO shows that a 10% cost increase on a product with a 30% contribution margin cuts that margin to 20%, a 33% drop in profit per unit. Thin margins leave little room for a postage increase or a supplier price change.
On the gross side, a 30% gross margin means 30 cents of every sales dollar remains after COGS. Whether that works depends on how much variable cost sits on top. A 30% gross margin leaves very little contribution once shipping and fees come out.
Common mistakes
- Reporting gross margin as profit. It excludes shipping, fulfillment and ads. Treat it as a pricing and sourcing metric.
- Mixing cost types. Putting rent in a contribution margin, or leaving postage out, makes SKUs incomparable.
- Using blended averages. One average across all SKUs and channels hides the losers. Calculate per SKU and per channel.
- Ignoring returns and discounts. Use net sales, after returns and discounts, as Shopify’s formula does.
- Splitting costs across vendors. When storage, prep, pick-and-pack and shipping come from separate vendors, variable costs are harder to trace to a SKU. That is the problem we built our approach around.
Our view on margin
Most of the brands we talk to know their gross margin. Fewer know their contribution margin by SKU, because the variable costs sit in different places: a supplier invoice, a carrier bill, a storage bill, a prep bill, a marketplace statement.
That is why we do not treat fulfillment as a line item to minimize. We treat it as data. When receiving, storage, prep, pick-and-pack and shipping run through one provider, with live inventory data and published per-unit rates, each SKU’s variable cost is easier to see and easier to defend.
Our SKU profitability analysis is built for this question. It helps a brand see which products to scale and which to discontinue, and it keeps contribution margin in view, not just the COGS line. We want brands to grow on profit, not just on order count.
Claudio Saenz
Put the numbers to work
Fulfillment is usually the largest variable cost you control after product and ads, so price it per unit. Our published rates include $1.65 per DTC order for single units and small parcel, $25 per month per pallet for standard pallet storage, $0.75 per unit for item labeling and $1.65 per item for returns intake, inspect and restock. Each maps to a line in your contribution margin. See the full list on our services page, and read our breakdown of 3PL pricing and hidden fees to see how to model cost per order.
We offer same-day shipping on orders placed by 1PM CST, live inventory access and no long-term contracts. If you want your SKUs analyzed on a contribution margin basis, send us your SKU count and request a quote.
FAQ
What is the main difference between contribution margin and gross margin?
Gross margin subtracts only COGS from net sales. Contribution margin subtracts all variable costs, such as fulfillment, shipping, payment fees, returns and ad spend. Contribution margin therefore shows what each sale actually contributes toward fixed costs.
What is another name for contribution margin?
It is often called the contribution ratio when expressed as a percentage, or dollar contribution when shown per unit. In ecommerce, finance teams also use CM1, CM2 and CM3 for tiers that subtract more costs at each step, as in this P&L template.
Can gross margin be higher than contribution margin?
Yes, and in ecommerce it nearly always is. Contribution margin takes COGS plus every other variable cost, so it cannot exceed gross margin when the same revenue is used. The published examples above show gaps from about 24 to 43 percentage points.
Do fixed costs belong in contribution margin?
No. Rent, utilities and insurance stay out, because they do not change with volume. You subtract them after contribution margin to get to profit, as in the NetSuite example above.
Sources
- Gross Margin vs. Contribution Margin, Investopedia
- Contribution Margin Defined, NetSuite
- What Is Gross Margin?, Shopify
- Contribution Margin vs. Gross Margin, Shopify
- Contribution Margin, Wall Street Prep
- Explain Contribution Margin, OpenStax
- Gross profit margin tips, BBB
- How to Calculate Profit Margin, True Margin
- FBA Contribution Margin, Inventory Hero
- What Is Contribution Margin?, Eggknite
- Contribution Margin vs. Gross Margin for Operations Teams, Doss
- Contribution Margin Formula, StoreHero
- The Ecommerce P&L Template, Run Future Proof
- What is gross profit margin?, Xero
- Why profit planning matters for manufacturers, Manufacturing Dive
- Q1 P&L Benchmark Report insights, Ecom CFO
- Pricing Stress Test, Current CFO

0 comments