EcommerceSEO
Platforms
Services
Industries
Glossary
Tools
Blog
Ecommerce Glossary

Practical definition

Contribution Margin in Ecommerce

Contribution margin explained for ecommerce teams. Calculate contribution in INR, define variable costs and compare amount, per-order and ratio views.

Updated23 Aug 2026Review23 Sept 20267 min read

Reviewed by EcommerceSEO.in for ecommerce accuracy.

On this page
  1. Contribution margin formula
  2. What counts as a variable cost in ecommerce?
  3. Contribution levels must be named
  4. Worked ecommerce example in Indian rupees
  5. Contribution margin versus gross margin
  6. How contribution connects to CAC, AOV and RTO
  7. Use contribution margin by decision level
  8. What is a good contribution margin?
  9. Common contribution margin errors
  10. Contribution margin questions
  11. Make the margin reproducible

Contribution margin is the revenue remaining after the variable costs included in a stated policy are deducted. It can be reported as a total amount, an amount per order or unit, or a percentage of revenue. That remaining contribution is available to cover fixed costs and, after those costs, profit.

The arithmetic is straightforward. The difficult part is defining net revenue and variable cost consistently. An ecommerce team should state how it treats discounts, tax, shipping income, product cost, payment fees, fulfilment, outbound shipping, returns, RTO, marketplace commissions and performance marketing before comparing two results.

Contribution margin formula

The total formula is:

Contribution margin = net revenue − included variable costs

Per-order contribution is:

Contribution margin per order = contribution margin ÷ qualifying orders

The contribution margin ratio is:

Contribution margin ratio = contribution margin ÷ net revenue × 100

Use the same order population and period throughout. If net revenue excludes cancelled and refunded orders, related costs and the qualifying-order count need compatible treatment. If one report uses gross sales before discount and another uses net revenue after discount, their ratios are not comparable until the revenue basis is reconciled.

What counts as a variable cost in ecommerce?

A variable cost changes with the product sold, order fulfilled, payment processed, shipment attempted or customer acquired. The exact reporting level determines which lines belong in the calculation.

Cost lineCommon treatmentDefinition question
Product costUsually includedLanded cost, purchase cost or another inventory valuation?
DiscountReflected in net revenue or listed separatelyHas the same discount already reduced revenue?
Payment feeOften includedGross fee, net adjustment and COD handling included?
Pick, pack and packagingIncluded at an operating contribution levelActual charge, standard rate or allocated amount?
Outbound shippingOften includedCustomer shipping income kept in revenue and carrier cost kept here?
Marketplace commissionIncluded for marketplace ordersWhich channel fees and taxes are included?
Returns and RTOIncluded under a declared policyProduct loss, reverse shipment and unrecovered fees represented?
Performance marketingIncluded only at a deeper contribution levelBlended spend or order-attributed cost?
Salaries, rent and softwareUsually fixed or separately allocatedDoes the decision require a fully loaded view?

Do not count a line twice. If a discount already reduces net revenue, subtracting it again as a variable cost understates contribution. If shipping charged to the customer is included in revenue, keep the corresponding carrier cost visible rather than netting values silently.

Contribution levels must be named

Some ecommerce teams use several contribution levels. The labels are not universal, so attach the formula rather than assuming “CM1” or “CM2” means the same thing everywhere.

Illustrative levelPossible calculationDecision supported
Product contributionNet product revenue minus product costProduct and assortment economics
Fulfilled-order contributionProduct contribution minus payment, fulfilment, packaging and shipping costsOrder economics before acquisition cost
Post-acquisition contributionFulfilled-order contribution minus included acquisition costCohort or growth economics

These labels are examples of a reporting structure, not an industry standard. A metric card should show the exact included lines, data owner and version.

Worked ecommerce example in Indian rupees

This is a hypothetical monthly D2C example, not a benchmark or client result.

InputHypothetical value
Net revenue₹10,00,000
Product cost₹4,00,000
Payment, fulfilment and packaging₹80,000
Net outbound and reverse logistics₹70,000
Included performance marketing₹2,00,000
Total included variable costs₹7,50,000

Contribution margin = ₹10,00,000 − ₹7,50,000 = ₹2,50,000

Contribution margin ratio = ₹2,50,000 ÷ ₹10,00,000 × 100 = 25%

If the period contains 1,000 qualifying orders:

Contribution margin per order = ₹2,50,000 ÷ 1,000 = ₹250

The 25% and ₹250 values are valid only for the stated inputs. Removing performance marketing from the cost policy would raise reported contribution without changing a sale, product cost or delivery outcome. That would be a different contribution level, not an operational improvement.

Contribution margin versus gross margin

Gross margin normally compares revenue with the cost of goods sold under the business's accounting policy. Contribution margin subtracts the variable costs included for a particular decision. In ecommerce, those additional lines can include payment, fulfilment, shipping, returns, marketplace commission or acquisition spend.

MetricCore questionImportant control
Gross marginWhat remains after the stated cost of goods sold?Revenue and inventory-cost policy
Contribution marginWhat remains after the included variable costs?Named contribution level and cost lines
Net profitWhat remains after variable and fixed expenses under the accounting period?Full income-statement policy

Do not use the terms interchangeably. A product can have a strong gross margin but weak post-fulfilment contribution because of shipping, returns or acquisition costs.

How contribution connects to CAC, AOV and RTO

Customer Acquisition Cost describes the included cost per qualifying new customer. Contribution shows what revenue retains after the selected variable cost lines. Compare the two only when acquisition cost is placed at the intended contribution level and the cohorts share compatible dates and order-status rules.

Average Order Value can rise while contribution per order falls. Larger discounts, a low-margin product mix, expensive shipping or higher returns can make a larger order less economically useful.

Return to Origin can create forward shipping, return shipping, handling and inventory effects without producing completed-order revenue. Record those outcomes by status and cohort rather than spreading an unexplained average across every order.

Use contribution margin by decision level

Store-wide contribution helps finance and management evaluate the period. Product or category contribution can guide assortment and merchandising. Channel or cohort contribution can help diagnose acquisition and repeat behaviour. Order-level contribution can reveal combinations of discount, shipping zone, payment method or return behaviour.

The more granular the view, the more carefully shared costs need to be allocated. Do not invent precision by assigning a general cost to products without a stable rule. Show directly observed costs separately from allocations.

What is a good contribution margin?

There is no universal good contribution margin for ecommerce. A useful result depends on category, product mix, price, order frequency, fixed-cost base, growth stage, return behaviour and the cost policy used.

Interpret the result against:

  • the same contribution definition over time;
  • comparable product, channel and customer cohorts;
  • fixed costs and cash requirements;
  • order volume and inventory position;
  • acquisition and repeat-purchase objectives;
  • returns, exchanges, RTO and replacement outcomes.

A higher ratio with sharply lower order volume may not be the preferred business outcome. A lower ratio can be intentional during a controlled acquisition or inventory programme. Record the decision context before calling the result good or bad.

Common contribution margin errors

  • Comparing revenue before tax with costs after tax without reconciliation.
  • Subtracting a discount twice.
  • Treating every fulfilment, shipping or marketing cost as fixed.
  • Excluding returns or RTO because they settled after the sale month.
  • Mixing orders, customers and units in the denominator.
  • Comparing a product-level margin with a fully loaded store-level result.
  • Changing the included cost lines without versioning the metric.
  • Using attributed platform revenue as though it were reconciled net revenue.

Contribution margin questions

Can contribution margin be negative?

Yes. Included variable costs can exceed net revenue. Investigate whether the cause is product cost, discount, fulfilment, shipping, returns, acquisition or a definition/data issue.

Should marketing spend be included?

Include it only at a named post-acquisition contribution level. Keep a pre-acquisition view when it supports product and fulfilment decisions. Do not label two different levels identically.

Should returns be assigned to the sale month or return month?

Choose a management and accounting policy, then preserve it. Cohort views can connect later returns to the originating orders, while period accounts may recognise them differently.

Is contribution margin the same as profit?

No. Contribution remains available to cover fixed costs and profit. Net profit accounts for the broader expense set under the period's accounting policy.

Make the margin reproducible

Attach a definition card containing the metric level, revenue basis, included cost lines, order-status policy, channel and market scope, period, source systems, allocation method, owner and update date. A contribution figure without those fields is not ready for pricing, assortment or acquisition decisions.

Ask EcommerceSEO.in to review how catalogue visibility, acquisition and contribution measurement connect.


Reviewed: 23 August 2026

Next accuracy review: 23 September 2026 Deep source recertification: 23 November 2026

Apply this term to your store: Get Free Audit