Contribution margin is what is left from each sale after every cost that moves with that sale: product cost, shipping, 3PL pick and pack, payment fees and returns. It is the margin that pays for everything else in the business. Most DTC founders watch gross margin, assume they are fine, and then find out the warehouse bill and the refund line were never in the picture.
TIES, a doctor-formulated men's fertility supplement brand, ran into this. During onboarding, the team blended product-level COGS, inventory and 3PL warehousing into one fully loaded cost per product. The result was the first honest view of true product margin. Warehousing had been underestimated and per-unit shipping overestimated, which changed which levers TIES pulled with its partners. The team did it without a six-figure analyst build.
This guide covers the formula, a DTC example with every cost line, how contribution margin differs from gross margin, and how to track it without adding headcount.
What contribution margin is and how to calculate it
Contribution margin is net sales minus variable costs. Variable costs are the ones that rise and fall with each order. The leftover dollars first cover your fixed costs, and whatever remains is profit.
Contribution margin = net sales minus variable costs
Contribution margin ratio = contribution margin divided by net sales
You can run it three ways, and each answers a different question:
| View | What it tells you | Best used for |
|---|---|---|
| Per unit or per order | What one sale earns after its direct costs | Pricing, bundles, shipping thresholds |
| Total dollars | How much a product or channel contributes to fixed costs | Deciding where to put inventory and attention |
| Ratio (percent) | How much of each sales dollar survives the variable costs | Comparing SKUs and channels of different sizes |
Harvard Business Review frames contribution margin as a product-level measure: what a specific product adds after the variable costs of delivering it. It also cautions that managers should not rely on it alone and should check it against other profit measures before a major decision (Harvard Business Review, 2017). That is good advice. Contribution margin tells you whether a product pays its own way. It does not tell you whether the company is profitable.
What counts as a variable cost for a DTC brand
Textbook examples assume a factory. A DTC brand has a longer list, and the items that get missed are usually the ones that arrive on a later invoice.
- Landed product cost: the product itself, inbound freight, duties and supplier packaging.
- Outbound shipping: what you pay the carrier, net of any shipping fee the customer pays.
- 3PL fees: pick and pack, packaging materials and per-unit storage.
- Payment processing: a percentage plus a fixed fee on every order.
- Returns and refunds: lost revenue, return shipping and restocking.
- Customer service: if you pay per ticket or per contact, it moves with volume.
Marketing is the cost that most often gets tangled up. Keep it as its own layer. Show contribution margin before acquisition cost, then again after, so you can see how much room a first order leaves for CAC.
Here is an illustrative example for a $60 order of a supplement, with made-up but realistic numbers:
| Line | Per order | % of net sales |
|---|---|---|
| Net sales (after discounts) | $60.00 | 100.0% |
| Landed product cost | $15.00 | 25.0% |
| Gross profit | $45.00 | 75.0% |
| Outbound shipping, net of shipping revenue | $6.50 | 10.8% |
| 3PL pick, pack and packaging | $3.25 | 5.4% |
| Payment processing (2.9% + $0.30) | $2.04 | 3.4% |
| Returns and refunds (3% allowance) | $1.80 | 3.0% |
| Customer service | $0.60 | 1.0% |
| Contribution margin before marketing | $30.81 | 51.4% |
| Acquisition cost for a new customer (CAC) | $30.00 | 50.0% |
| Contribution margin after CAC, first order | $0.81 | 1.4% |
This product has a 75% gross margin, which looks excellent. After the costs of getting it to the customer, it earns 51%. After paying to acquire a new customer, the first order earns 81 cents. Every repeat order after that earns the full $30.81, which is why repeat rate decides whether a brand like this makes money. If you want to see how that plays out by cohort, read our guide to CAC payback period.
Contribution margin vs gross margin
Gross margin and contribution margin both start at net sales. They stop at different places.
| Gross margin | Contribution margin | |
|---|---|---|
| Subtracts | Cost of goods sold | All variable costs, including COGS |
| Includes shipping and 3PL fees? | Usually not | Yes |
| Includes payment fees and returns? | Usually not | Yes |
| Answers | What does the product cost to make? | What does a sale earn after delivery? |
| In the example above | 75.0% | 51.4% |
Where your accountant puts shipping and warehousing depends on how your books are set up. Some brands record fulfillment inside COGS, and others record it below the gross profit line. That is why you cannot compare gross margin across brands without checking what is inside it. Contribution margin removes the ambiguity because you decide the list of variable costs and apply it to every product the same way.
It is also not EBIT. Contribution margin subtracts only variable costs. EBIT goes further and subtracts fixed costs such as salaries, software and rent. Contribution margin is what a product contributes toward those fixed costs.
What is a good contribution margin?
There is no honest universal benchmark. A subscription supplement brand with a low-cost product and heavy repeat purchasing can run a thin first-order margin and still do well. A hardgoods brand with one purchase per customer needs a fat first-order margin. Shipping policy, order value, channel mix and category all move the number.
A better question is whether your contribution margin, after CAC, leaves enough to cover fixed costs and fund growth. Work backward from three numbers:
- Contribution margin per order before marketing
- What you can pay to acquire a customer
- How many orders a customer places, and how fast (see customer lifetime value on margin)
Mad Rabbit is a clear example of why the cut matters. The team ran cohort analysis and found that about 20% of its DTC customers bought single products on sale and never came back. After CAC and direct variable costs, the brand lost money on each of those transactions. Mad Rabbit modeled two paths, shutting down DTC or making it profitable through bundling and adjusted CAC targets, and moved to a bundle-only approach for new customers. The brand reports EBITDA up about 20%. You can read the full Mad Rabbit story. Notice what made the problem visible: margin by customer segment, not one blended number.
How to track contribution margin without hiring an analyst
The formula is simple. The hard part is the data. Product cost lives in your accounting system. Orders and refunds live in Shopify. Warehousing and shipping show up weeks later as 3PL invoices. Each source is right about its own piece and wrong about the whole.
A repeatable process looks like this:
- Connect your sources. Accounting, storefront and 3PL in one place, so cost and sales are in the same model.
- Load every variable cost to the SKU. Use a fully loaded cost per unit, including storage, pick and pack, shipping and refunds.
- Keep actuals current. Margin from last quarter's invoices will not catch this month's carrier surcharge.
- Compare forecast to actuals at the line-item level. That is where surprises such as an unforecasted warehousing cost show up.
- Run the scenario before you spend. Test the marketing or inventory decision against margin and cash first.
That is how TIES works. The team connected QuickBooks, Shopify and 3PL data into one model that updates automatically, and compares forecast with actuals down to 3PL line items, including an unforecasted warehousing cost and the effect of refunds. According to TIES, that skipped about four months of integration work and avoided a six-figure analyst build, with finance and marketing planned in one model. TIES co-founder and CEO Luke Novak, who has a finance background, puts his view this way: "Every founder should be in the weeds as much as possible on their finance function." We wrote more about how the team set it up in how to build a finance function for a DTC brand without hiring an analyst.
You can also ask questions of the model directly. In Drivepoint, a question like "Why did Q3 contribution margin drop?" is answered from your live model, with the answer tied to the source cells, so you can check the math in Excel.
Where this belongs in your model
Contribution margin works best when it sits next to your forecast, cash and inventory plan. A margin number in a marketing dashboard tells you what happened. A margin number in your financial model tells you what happens to cash if you place the next inventory order or raise ad spend. DTC forecasting in Drivepoint builds SKU-level plans with promo and media scenarios, and it ties them to the P&L, cash flow and inventory. For supplement and nutrition brands, see how Drivepoint handles subscription and one-time purchase economics. The data side is covered in our overview of connecting your data sources.
Gross margin tells you what your product costs. Contribution margin tells you what a sale is worth. Know both, and know which one pays the bills.
Want to see contribution margin by product and channel in your own model? Book a demo.
Contribution margin FAQs
What is contribution margin and how do you calculate it?
Contribution margin is net sales minus the variable costs of making those sales. For a DTC brand, variable costs include landed product cost, outbound shipping, 3PL pick and pack, payment fees and returns. The formula is contribution margin = net sales minus variable costs. Divide the result by net sales to get the contribution margin ratio.
Is contribution margin the same as gross profit?
No. Gross profit stops after cost of goods sold. Contribution margin keeps going and subtracts the other costs that rise and fall with each sale, such as shipping, fulfillment, payment processing and returns. A product can show a strong gross margin and a much thinner contribution margin.
Is contribution margin the same as EBIT?
No. Contribution margin only subtracts variable costs. EBIT (earnings before interest and taxes) also subtracts fixed costs such as salaries, rent, software and depreciation. Contribution margin is what a product or channel contributes toward covering those fixed costs. What remains after fixed costs is operating profit.
What is a good contribution margin for an ecommerce brand?
There is no single right number. It depends on your category, average order value, subscription mix, shipping policy and sales channel. A more useful test is whether contribution margin, after the cost of acquiring a new customer, leaves enough to cover fixed costs and fund growth. Set your own floor from your CAC, repeat rate and payback period.
What costs should a DTC brand include when calculating contribution margin?
Include every cost that moves with each order: landed product cost (product, inbound freight, duties and packaging), outbound shipping net of what customers pay, 3PL pick and pack and per-unit storage, payment processing, refunds and returns, and per-ticket customer service. Treat marketing as a separate layer so you can see contribution margin before and after acquisition cost.



