How to Calculate Contribution Margin for E-commerce, With a Worked Example
Gross margin tells you how the catalog does on average. Contribution margin tells you which products pay the bills, and which ones only look profitable.
Why gross margin is not enough
Gross margin stops at the cost of the product. It leaves out payment fees, shipping you subsidize, packaging, returns, discounts and the ad spend it took to win the order. A product can carry a 60% gross margin and still lose money on every unit once those costs land.
Everything in that line moves with volume. Fixed costs such as rent, salaries and software stay out on purpose. Contribution margin answers one question: when you sell one more unit, does cash go up or down?
Where it sits next to gross and net margin
Three margins get mixed up, so here is the difference in one place:
- Gross margin subtracts only the cost of the product. It is the right number for pricing conversations with a supplier.
- Contribution margin also subtracts every cost that rises and falls with orders: fees, shipping, returns, discounts and ads. It is the right number for deciding what to sell, what to promote and what to stop buying.
- Net margin subtracts fixed costs as well, so it describes the whole company. It cannot tell you which product to drop, because rent does not belong to any one product.
If you only have time to track one number per product, make it contribution margin. It is the one that moves when you change a discount, a shipping rule or an ad budget.
A worked example on one product
These are illustrative figures for one sample SKU. Take a candle priced at $34 with 1,200 units sold in a month:
- Revenue: $40,800
- Product cost at $9.20 a unit: −$11,040
- Payment fees (2.9% plus 30 cents): −$1,543
- Pick, pack and ship subsidy at $4.10 a unit: −$4,920
- Returns at 6%, with $6 handling: −$2,880
- Attributed ad spend: −$8,200
The same candle has a gross margin of 72.9% ($29,760 on $40,800). Same product, same month: 72.9% before the other costs, 29.9% after them. That 43-point gap is the part a gross margin report never shows.
What it looks like across a whole store
The sample store, Cascade Supply Co., has 24,623 orders over 180 days. Walk its sales down to contribution:
| Line | Dollars | Share of gross sales |
|---|---|---|
| Gross sales | $5,199,611 | 100% |
| Product cost | −$2,400,654 | 46.2% |
| Shipping and fees | −$208,598 | 4.0% |
| Discounts | −$436,203 | 8.4% |
| Contribution | $2,154,157 | 41.4% |
Before discounts the same store keeps 49.8%. Discounts alone take 8.4 points of every sales dollar, and the store's blended gross margin of 53.8% sits 12.4 points above its contribution margin. Ad spend comes off next, once you add that export, so 41.4% is the figure before ad spend.
Where the losers hide
Contribution margin matters most at the product level. In the sample store, 26 of 28 products keep between 50.1% and 66.5% of each sale after product cost. Two sit near a fifth: the Prior-Year Trail Tee at 20.1% and the Last-Season Insulated Vest at 17.8%.
Those two numbers are gross margin, before shipping, fees and discounts. If they give up the store's average 12.4 points to those costs, the vest has about 5 points left, and nothing left once an ad is attached to a sale. A store-level average would never show this, because the other 26 products pull it up.
How to run this on your own store
You need order-line detail.
- Export orders with SKU, price, discount, shipping charged and refund status.
- Add a cost sheet with product cost per SKU.
- Add your payment fee rates and your ad spend by campaign or product.
- Compute contribution per SKU, then rank the SKUs.
A spreadsheet can do this for a few dozen products. ProfitFalcon reads the same order export and ranks every product for you, and you can open the sample store to see the ranking on the Cascade data. To try one product by hand first, the profit margin calculator takes revenue, product cost, shipping and ad spend.
Once the ranking exists, the next question is what to do with the bottom of it. The SKU rationalization guide walks through keeping, fixing or dropping each one. If you are comparing tools for this job, see ProfitFalcon next to TrueProfit on price and data access.
What to do with the ranking
Sort the SKUs from best to worst and look at both ends. The top of the list is where ad budget and email space should go, because each extra sale there adds real cash. The bottom is where you ask three questions: is the price too low, is shipping being given away, or is the ad spend landing on a product that cannot carry it? Each answer has a different fix, and none of them is visible in a revenue report.
Run it monthly. Ad costs and shipping rates drift, and a product that contributed 25% in the first quarter can go negative by the third after a carrier rate increase.
Upload your store export and see this for your own products, then decide.
Start 14-day trial14 days free. No card. Cancel anytime. Or open the sample store first.
BizFalcon AI