- Gross margin is revenue minus the cost of the goods sold, as a share of revenue.
- Contribution margin is revenue minus every variable cost: product, shipping, packaging, payment fees and, in ecommerce, usually ad spend.
- Contribution margin is always lower than gross margin; for stores that buy traffic with ads the gap is often several tens of points.
- Use gross margin to price products and compare suppliers; use contribution margin to decide what to advertise, how far to scale and whether sales cover the fixed costs.
Gross margin is what is left of revenue after the cost of the goods you sold. Contribution margin is what is left after every cost that rises with each sale: the goods, but also shipping, packaging, payment fees and, for most webshops, the ads that brought the order in. Gross margin tells you whether a product is priced well. Contribution margin tells you whether selling more of it makes money.
This guide puts the two side by side with one worked product, shows how to get from one to the other and explains which one to use for which decision. For the full ladder from revenue to net profit, with CM1, CM2 and CM3, see contribution margin in ecommerce.
What is gross margin?
Gross margin is gross profit as a share of net revenue. Gross profit is net revenue minus the cost of goods sold (COGS). Net revenue is what customers paid after discounts and returns, without VAT or sales tax.
- Net revenue
- Sales after discounts and returns, without VAT or sales tax.
- COGS
- What the goods you sold cost you: purchase price, and in your accounts often inbound freight and import duties too.
A serum sells for $40 without tax and costs $10 to buy in: ($40 − $10) ÷ $40 = 75%.
Gross margin comes from financial accounting. It is the line your accountant reports, the one in your annual accounts and the one investors and lenders compare between companies. Because it is a standard line, it is the easier number to compare with last year or with a supplier's price list.
What is contribution margin?
Contribution margin is net revenue minus all variable costs, as a share of net revenue. A variable cost is one that goes up when you sell one more unit. What remains contributes to the fixed costs, such as salaries, rent and software, and after those to profit.
- Variable costs
- COGS, outbound shipping, packaging, pick and pack, payment fees, marketplace and app fees per order, and ad spend when you buy sales with ads.
- Fixed costs
- Not in the formula: salaries, rent, insurance and most software stay the same when you ship one more order.
The same $40 serum: $10 product, $9.46 to ship, pack and process, $12 of ads per order. ($40 − $31.46) ÷ $40 = 21.4%.
Contribution margin comes from management accounting. No law defines it, so every company and every tool draws its own line. Some leave ads out, some include returns, some split it into levels. Always check what a number subtracts before you compare it with another one.
Gross margin vs contribution margin: the key differences
| Gross margin | Contribution margin | |
|---|---|---|
| What it subtracts | Cost of goods sold | Every variable cost: goods, fulfillment, fees and usually ads |
| Where it comes from | Financial accounting, the P&L and annual accounts | Management accounting, internal reports |
| Defined by | Accounting rules, so it compares well between companies | Each company, so check the definition first |
| Size | Always the higher of the two | Lower; it can be negative on an order that ships at a loss |
| Question it answers | Is the product priced well against what it costs to buy? | Does one more sale make money, and do sales cover the fixed costs? |
| Typical use | Pricing, supplier choice, product range | Ad budgets, scaling, break-even, product promotion |
One more difference matters if you make your own products. Under accounting rules, the cost of goods can include part of the fixed production overhead, such as the factory rent. Contribution margin keeps all fixed costs out. A webshop that buys finished goods rarely has this issue, but a brand with its own production will see the gap.
One product, both margins
Here are two products from an example store, both sold at $40 without tax. On gross margin the serum wins clearly. On contribution margin the candle set wins, because it ships lighter and its ads convert better.
| Per order | Serum | Candle set |
|---|---|---|
| Net revenue | $40.00 | $40.00 |
| Product cost (COGS) | −$10.00 | −$16.00 |
| Gross profit (gross margin) | $30.00 (75.0%) | $24.00 (60.0%) |
| Shipping | −$5.00 | −$4.00 |
| Packaging | −$1.00 | −$0.50 |
| Pick and pack | −$2.00 | −$1.50 |
| Payment fee (2.9% + $0.30) | −$1.46 | −$1.46 |
| Ad cost per order | −$12.00 | −$6.00 |
| Contribution (contribution margin) | $8.54 (21.4%) | $10.54 (26.4%) |
This is why the choice of margin changes decisions. If you put the next $1,000 of ad budget behind the product with the higher gross margin, you pick the serum. Each serum order leaves $8.54 after ads; each candle set order leaves $10.54. Ad cost per order is the line that moves most, so measure it per product, not as a store average.
How to get from gross margin to contribution margin
If you know your gross margin, you only need the other variable costs as a share of revenue:
Serum: 75.0% − ($9.46 + $12.00) ÷ $40 = 75.0% − 53.65% = 21.35%, about 21.4%.
The other way works as well: add the variable costs other than COGS back to the contribution margin. In practice, shipping and ads are the two lines that make the gap. For a store that gets most orders from paid ads, the gap between the two margins is often several tens of points. For a store that sells mostly to returning customers through email, it is much smaller.
How to use both margins in practice
Pricing and suppliers: gross margin
Gross margin answers the product question. If a supplier raises the price by $2, the serum's gross margin falls from 75% to 70%. If you consider a discount, gross margin shows how much room the product has before it stops covering its own cost. It is also the margin to compare with a competitor's published accounts or with an industry report, because they use the same definition.
Which products to promote: contribution margin
Before a product gets ad budget, check its contribution per order after the ad cost it really needs. Heavy, bulky or fragile products lose much of their gross margin to shipping. Products that need a lot of explaining often need more ads per order. The product report in your profit tool should show both columns, so a high gross margin cannot hide a low contribution.
Whether ad spend works: contribution margin
Ad spend is the largest variable cost for most webshops after the goods themselves. When contribution margin per order is positive, each extra ad-driven order still adds money toward fixed costs. When it turns negative, more sales make the business poorer. The ratio that tracks this per campaign is POAS; see what is POAS.
Scaling and break-even: contribution margin
Contribution margin tells you how much revenue you need to cover the fixed costs. Break-even revenue is fixed costs ÷ contribution margin. With $15,000 of fixed costs a month and a 30% contribution margin, the store breaks even at $50,000 of revenue a month. Every dollar of revenue above that adds 30 cents of profit, as long as the margin holds while you grow. Marginal analysis shows how to check whether it does.
Is a 30% contribution margin good?
It depends on your fixed costs, so there is no single good number. A 30% contribution margin is comfortable for a store whose fixed costs are 15% of revenue: it keeps about 15 cents of every dollar. The same 30% is a loss for a store with a large team and a warehouse whose fixed costs are 35% of revenue. Compare your contribution margin with your own fixed costs as a share of revenue, month by month. If you want to set a target, start from the net margin you want and add your fixed-cost share. A store that wants 10% net and has 18% fixed costs needs a contribution margin of at least 28%.
The same logic holds for gross margin: a 60% gross margin says little until you know what shipping, fees and ads take. What is a good profit margin walks through judging each layer on your own numbers.
The two margins in ROASaurus
ROASaurus names the layers a little differently, so map them first. In the P&L, Gross profit already takes off shipping costs, order fees, payment fees and handling on top of COGS. That makes it CM2 in the CM1, CM2, CM3 convention, and lower than an accounting gross profit. The accounting gross margin, after product costs only, is the CM1 line. Contribution margin is gross profit minus ad spend and other marketing costs: CM3.
On Profit › Overview, the Gross profit tile shows the gross margin underneath, and the Contribution margin tile shows how much of revenue went to ads and marketing. Per product, Profit › Products puts both margins in one row: Gross profit after COGS, Net profit (CM2) after shipping and fees, then ad spend, After ads (CM3) and POAS.

The numbers come from your orders, the product costs you add, your shipping rules and payment fees, and the ad spend synced from your ad accounts. See profit analytics for how each line is built, or try your own numbers in the contribution margin calculator. Short definitions are in the glossary under gross margin and contribution margin; the wider method is in the guides to profit margin formulas, profitability analysis and operating revenue.
In ROASaurus
- Profit analytics in ROASaurus
- Contribution margin calculator (CM1, CM2, CM3)
- Contribution margin in the glossary
- POAS calculator