Contribution margin is the amount left from net sales after variable costs. Its meaning is simple: the money each sale contributes towards fixed costs and profit. To compute contribution margin, subtract variable costs from net sales. For a D2C growth decision, show two lines: contribution before acquisition spend and contribution after it. The first tells you what the order can carry. The second tells you what remains for the business.
Use sales after discounts and refunds, on a consistent tax basis. Then include product cost, packing, delivery, payment fees, return handling and the relevant acquisition spend. A product margin alone leaves too many costs outside the decision to increase ads.
Contribution margin formula for D2C
The basic formula is:
Contribution = net sales less variable costs.
Divide that contribution by net sales to express the result as a ratio. Multiply by 100 for a percentage. A rupee figure tells you what one order contributes; the ratio helps compare offers with different selling prices.
The work is in classifying the costs. A courier charge incurred for each parcel changes with order volume. A warehouse lease may stay unchanged over the current volume range. Put the parcel charge above contribution. Keep the lease below it unless your contract actually charges on a variable basis.
Use a consistent time window. If your sales file covers October orders, do not deduct September ad spend simply because that invoice was paid in October. Record the period when the cost was incurred. Keep the payment date for a separate cash schedule.
A contribution margin example in rupees
Worked example with assumed inputs, excluding tax. The return cost allowance covers expected unrecovered freight and handling; refunds have already reduced net sales.
| Order line | Per order | Treatment |
|---|---|---|
| Net sales | ₹1,500 | After discounts and refunds |
| Product cost | ₹550 | Cost attached to retained sales |
| Delivery, packing and payment fees | ₹150 | Variable fulfilment and collection |
| Return cost allowance | ₹100 | Incremental cost not already deducted |
| Contribution before ads | ₹700 | ₹1,500 less ₹800 |
| Acquisition spend | ₹400 | Allocated marketing cost |
| Contribution after ads | ₹300 | ₹700 less ₹400 |
Before ads, the contribution ratio is ₹700 divided by ₹1,500, or 46.7% rounded. After ads it is ₹300 divided by ₹1,500, or 20%. Both calculations are correct. They answer different questions, so label them every time.
The ₹300 is available for fixed expenses and profit. Deduct monthly fixed expenses from total contribution to reach operating profit. Our memo on ecommerce profitability carries this order model into a monthly statement.
Which costs belong in the calculation?
Build a cost map from actual invoices and operational records. Do not start with a desired margin percentage and work backwards to make the costs fit.
| Input | Record to use | Common mistake |
|---|---|---|
| Net sales | Order and refund export | Using checkout value before cancellations |
| Product cost | Landed SKU cost sheet | Leaving inbound freight outside cost |
| Packing and delivery | Fulfilment and courier bills | Counting successful deliveries only |
| Payment and COD charges | Provider statements | Assuming the fee is returned on refunds |
| Returns | Refund and reverse logistics records | Deducting the same refund twice |
| Marketing | Spend and creator or affiliate records | Adding platform-attributed sales together |
For product cost, use the cost of goods associated with sales. A bulk stock purchase is a cash payment and an inventory addition. Charging the entire purchase against a small period of sales distorts the order margin. Damaged or unsaleable returned goods need an explicit write-off policy.
For delivery, include failed shipments. A returned parcel can consume outward freight, reverse freight and handling without producing retained revenue. Allocate those costs across the relevant order cohort. If you only attach costs to successful deliveries, failed shipments disappear from the calculation.
For returns, separate revenue reversal from operational expense. The refunded sale reduces net sales. The courier's reverse fee is a cost. A resaleable item goes back into stock under your inventory policy. These events affect different lines; they are not interchangeable deductions.
Gross margin is a different line
Shopify's profit reports documentation explains that its gross margin uses net sales and recorded product costs. It also notes the importance of cost data being available for the products sold. That report is a useful starting point for a cost check.
Add delivery, payment fees and marketing costs to build the acquisition budget. In the order above, a product-only gross profit of ₹950 becomes ₹700 before ads and ₹300 after ads.
Shopify's contribution and gross margin explainer, published in October 2022, covers the distinction between the cost bases. Compare margins using the same cost classifications. A fixed production cost can be in cost of goods sold without behaving like a variable order cost. Read the inputs before comparing the margins.
Turn contribution into an acquisition ceiling
Start with contribution before ads. Decide how much each order must leave for overhead and the operating profit you need. Subtract that amount to find the maximum acquisition cost in this model.
Keep the ₹700 before ads from the order above. Suppose the business needs ₹250 per order for fixed expenses and wants ₹100 per order left as operating profit. Acquisition spend can then be no more than ₹350 per order: ₹700 less ₹250 less ₹100.
At the earlier ₹400 acquisition assumption, the order misses that requirement by ₹50. Calling it positive contribution would be accurate. Calling it sufficient for the founder's plan would be wrong.
The ₹250 overhead allocation assumes a particular number of retained orders. If volume falls, the same monthly rent and salaries are spread across fewer orders. Recalculate the required contribution. Update the acquisition ceiling when volume or costs change.
Use comparable sales and acquisition denominators
If you divide all marketing spend by all retained orders, call the result blended marketing cost per order. Do not label it customer acquisition cost. A returning customer order is not a newly acquired customer.
For new customer acquisition cost, use the spend included in your acquisition definition divided by new customers over a stated period. Explain whether creative production, agency fees and affiliate commissions are included. A media-only figure is narrower than a fully loaded acquisition figure.
For a first-order contribution model, match the denominator carefully. A budget covering repeat orders and acquisition cannot be assigned entirely to new customers without stating the allocation. Keep channel reporting beside a store-wide check so attribution does not create revenue that the store never retained.
Future repeat purchases can change customer economics. Count repeat contribution when a cohort has actually produced it. Forecasts can be useful scenarios, but do not let an assumed lifetime value silently pay today's invoices.
Check discounts and bundles before scaling
An order with more revenue does not automatically produce more contribution. Work out the extra product cost, shipping weight and promotion cost before increasing the discount.
Using the same order, suppose a promotion reduces net sales by ₹150 while every cost stays unchanged. Contribution after ads falls from ₹300 to ₹150. The percentage reduction in selling revenue is much smaller than the reduction in contribution.
To retain the same total contribution at that reduced amount, the business would need twice as many comparable orders. Budget the fulfilment capacity and working capital for that extra volume.
Build the proposed bundle as a separate row. Allocate packaging, extra units and courier costs. Use the bundle's own expected return behaviour rather than copying the cheapest single-product economics.
Close the contribution sheet each month
Use an order cohort old enough for refunds and courier adjustments to become visible. Keep recent periods marked provisional until the return window and billing cycle have developed sufficiently.
- Reconcile retained sales to the store export on the same tax basis.
- Match product costs and flag missing SKU costs rather than treating them as free stock.
- Reconcile courier and payment statements, including failed deliveries and adjustments.
- Compare allocated marketing cost with actual spend and record any costs kept below contribution.
- Save the input definitions with the statement so next month's comparison uses the same method.
If a cost remains unknown, show the unresolved amount separately and calculate a sensitivity using a clearly marked assumption. Resolve material cost gaps before approving the next budget. The unit economics review uses this same cost bridge to examine the spend an order can support.
Questions founders ask
What is contribution margin?
Contribution margin is net sales minus variable costs. It is the amount available to cover fixed costs and then profit. For a D2C order separate contribution before ads from contribution after ads.
What is the meaning of contribution margin?
Contribution margin means the money a sale leaves after the costs that vary with it. Product costs, delivery and payment fees reduce that amount. Deduct acquisition spend to see what remains for overhead and operating profit.
How do you calculate the contribution margin ratio?
Divide contribution by net sales on the same basis and multiply by 100. In the worked order ₹300 after ads divided by ₹1500 net sales gives 20%. State whether the ratio is before or after ads.
What is contribution margin per unit?
It is selling revenue per unit minus variable costs for that unit. For an order containing several units allocate shared delivery and acquisition costs consistently before calculating each unit’s contribution.
What is the difference between contribution margin and gross margin?
Gross margin deducts cost of goods sold. Contribution margin deducts variable costs. Delivery and acquisition costs can sit outside cost of goods sold but inside contribution. Compare the cost definitions before comparing the figures.
Source: Shopify profit reports documentation and its contribution margin versus gross margin explainer (21 Oct 2022), checked 06 Nov 2026. Cost classification and budget checks are practitioner methods. Worked calculations use the inputs shown in each example.
Keep reading
Angel investors in India: a D2C round guide →Ecommerce profitability: from order to cash →How to raise funding for a D2C startup →