All guidesGrowth

D2C unit economics: work out CM1, CM2 and CM3 from your Shopify data

What each order earns after product cost, shipping, payment fees, RTO and ads, with a worked 100-order example and where every number sits in Shopify.

The short version

D2C unit economics is what one order earns after every cost that grows with order volume. Work it out in three layers. CM1 is net sales minus product cost. CM2 also takes off shipping, packaging, payment fees, COD charges and RTO losses. CM3 takes off marketing. Shopify gives you net sales without GST and gross profit once every variant has a cost per item. Freight, COD fees and RTO charges come from your courier, and ad spend from the ad platforms. In our 100-order example, a 70% CM1 becomes 56.8% CM2 and 13.3% CM3, and a 10 point rise in COD RTO cuts CM3 by about a quarter.

What D2C unit economics measures

D2C unit economics is the profit one order leaves behind after every cost that grows with order volume. Fixed costs such as salaries, rent, software and the Shopify plan fee sit below it. A brand with positive unit economics can grow into its overheads. A brand with negative unit economics loses more with every order it adds.

Indian D2C finance teams usually split it into three contribution margins, each one a layer of cost deeper than the last.

LayerFormulaWhat it tells you
CM1Net sales minus cost of goodsWhether the product is priced well enough
CM2CM1 minus shipping, packaging, payment fees, COD fees and RTO lossesWhether the order survives delivery
CM3CM2 minus marketing spendWhether paid growth makes or loses money

A unit economics model is the same arithmetic in a spreadsheet: one block of inputs (price, product cost, freight, fee rates, COD share, RTO rate, ad spend) and the three margins as outputs, so you can change one input and see what moves. The rest of this guide builds that model from a Shopify store's own data, with Indian costs.

The costs in each layer for an Indian Shopify store

For a store selling in India, CM2 is where most of the margin goes, because COD fees, courier charges and returned shipments all land there. List every variable cost and put it in exactly one layer.

  • Net sales, the top line. Revenue after discounts and reversals, without GST. Shopify's sales report definitions give net sales as gross sales minus discounts minus sales reversals, and gross sales as price times quantity before taxes, shipping, discounts and reversals. Its help page on tax-inclusive prices says including taxes in your prices does not affect your tax reporting, and gross sales are counted before taxes, so a price that includes GST still gives net sales without it. GST you collect is owed to the government and never belongs in your margin. Our guide to Shopify GST invoices covers rates and HSN codes.
  • Cost of goods, in CM1. Landed product cost: the purchase or manufacturing price, inbound freight and any import duty.
  • Fulfilment, in CM2. Forward freight, packaging, pick and pack, return freight on RTO, and any per-order warehouse fee. COD confirmation calls or WhatsApp messages belong here too, because they are a cost of getting the order delivered.
  • Payments, in CM2. The gateway fee (plus the GST on it only if you cannot claim it back), Shopify's transaction fee on prepaid orders taken through a third-party gateway, and the courier's COD fee on cash orders.
  • Losses, in CM2. RTO shipments, customer returns you cannot resell, and refunds.
  • Marketing, in CM3. Ad spend, influencer fees and affiliate commissions.

Payment fees are easy to undercount because they stack. Razorpay's pricing page sets its standard fee at 2% on domestic cards, UPI, netbanking and wallets, with 18% GST on the fee and no setup or annual charge. A GST-registered store can usually claim that GST back as input tax credit, so it stays out of the margin. Shopify then adds its own third-party transaction fee on the same order. On Shopify's India pricing page that fee is 2% on Basic, 1% on Grow, 0.6% on Advanced and 0.2% on Plus. Shopify's manual payments page says it does not charge third-party transaction fees on manual payments, which is how cash on delivery is set up. COD orders pay the courier's COD fee instead. Shiprocket's support article on COD charges says it bills a fixed COD charge or a percentage of order value, whichever is higher.

A worked example: 100 orders of a ₹1,180 product

Here is the model run on 100 orders placed. The figures are an example, not a benchmark, so replace each one with your own. The product sells for ₹1,180 including 18% GST, which makes net sales ₹1,000 per delivered order. The store is on Shopify's Grow plan and takes prepaid payments through Razorpay.

  • Cost of goods: ₹300 a unit. RTO units go back to stock and are resold.
  • Forward freight: ₹45 a shipment, the average shipment cost Shiprocket's pricing page shows for its free Lite plan. Its paid plans for higher volumes show ₹36 to ₹41.
  • Return freight on RTO: ₹45, billed at the forward rate in this example. Check how your own contract bills it.
  • Packaging and packing: ₹40 a shipment, lost when an order comes back.
  • Payment mix: 60 prepaid and 40 COD. 8 of the 40 COD orders, 20%, return as RTO, so 92 orders are delivered.
  • Prepaid fees: Razorpay's 2% of ₹1,180 is ₹23.60 and Shopify's 1% adds ₹11.80, so ₹35.40 a prepaid order. The ₹4.25 of GST on Razorpay's fee is left out, because this store collects GST and claims it back.
  • COD fee: the higher of ₹36 or 2.5% of ₹1,180 (₹29.50), so ₹36. Those are the fixed charge and percentage in Shiprocket's own example. Here it is charged on delivered COD orders only.
  • Ad spend: ₹40,000, all on new customers.
LineWorkingAmount
Net sales92 delivered × ₹1,000₹92,000
Cost of goods92 × ₹300₹27,600
CM170% of net sales₹64,400
Forward freight100 × ₹45₹4,500
Return freight8 × ₹45₹360
Packaging and packing100 × ₹40₹4,000
Prepaid payment fees60 × ₹35.40₹2,124
COD fees32 × ₹36₹1,152
CM256.8% of net sales₹52,264
MarketingAd spend₹40,000
CM313.3% of net sales₹12,264

Each delivered order leaves ₹133.30 after marketing. That is positive, so paid growth adds profit, but thinly: the ₹12,264 still has to pay for the plan, apps, salaries and rent before the business earns anything.

Watch the denominator. Ad spend was ₹400 per order placed but ₹435 per order delivered, because the 8 RTO orders were paid for and never earned. Divide costs by delivered orders, never by orders placed.

Where each number sits in Shopify

Shopify gives you net sales, product cost and the payment mix. Freight, COD fees, RTO charges and ad spend come from outside it. A monthly pull takes seven steps.

  1. Add a cost to every variant. Fill in Cost per item on each product or variant, or in bulk through the Cost per item column of the product CSV, which Shopify describes as how much it costs you to make or acquire the product or variant. Shopify's profit reports page says profit is reported only for items that had a cost recorded when they were sold, and that the cost is static. A cost you add today does not correct last month, so set costs before the month you want to measure.
  2. Read CM1 from the profit reports. In Analytics, then Reports, the profit reports include Gross profit by product, Gross profit by product variant and Profit margin by order. Shopify calculates gross profit as net sales minus cost, and gross margin as that profit divided by net sales. Items without a cost are left out, so net sales in the profit reports can be lower than in the sales reports. If the two differ, some variants still have no cost.
  3. Take net sales from the sales reports. Use net sales, not total sales. Total sales adds back taxes, duties, shipping charges and fees.
  4. Split prepaid from COD. Shopify's finance reports include net payments by method and by gateway. That gives you the prepaid share and the amount each gateway processed, which you multiply by its fee rate. Check the result against the gateway's settlement report.
  5. Read Shopify's own fees from the bill. Shopify's page on third-party transaction fees says they are calculated over 30-day periods and listed in a Transaction fees section of your Shopify bill, under Settings, then Billing.
  6. Take freight, COD fees and RTO charges from the courier. Shopify does not see your courier invoices. Export the month's shipments from your courier or aggregator with the freight, COD charge and RTO charge for each AWB, and total them.
  7. Add ad spend from Meta, Google and every other paid channel for the same dates.

One timing rule catches most stores. Shopify's sales report counts pending, cancelled and unpaid orders in gross sales, and records a reversal on the date it is processed. A COD order placed on 28 October that comes back as RTO and is cancelled on 6 November lowers November's net sales, not October's. For unit economics, group orders by the date they were placed, and close a month only once all of its COD shipments are delivered or back. Cancel or refund every RTO order in Shopify, or its revenue stays in net sales.

Shopify Analytics and GA4 will also disagree on orders and revenue. Use Shopify for this model, for the reasons in our guide to Shopify Analytics vs GA4.

RTO moves CM2 more than any fee does

In the example, the fees on a prepaid order (₹35.40) and on a COD order (₹36) are almost the same. The real difference between the two payment types is RTO.

Per delivered order, a prepaid order leaves ₹579.60 before marketing and a COD order leaves ₹579. Each RTO shipment costs ₹130 in freight both ways and packaging. Spread the 8 RTO shipments over the 32 COD orders that were delivered and each delivered COD order drops to ₹546.50. The ad spend that bought those 8 orders is gone as well.

Hold price, cost, ad spend and the 60:40 payment mix fixed and change only the share of COD orders that come back:

COD RTO rateDelivered ordersCM2CM3CM3 per delivered order
10%96₹55,100₹15,100₹157.29
20%92₹52,264₹12,264₹133.30
30%88₹49,428₹9,428₹107.14

Going from 20% to 30% RTO on COD orders cuts CM3 by about a quarter. Compare that with the fee side: the full point of transaction fee between Shopify's Basic and Grow plans moves CM3 by ₹708 per 100 orders in this example. Work on RTO first. Our guides to cutting COD returns and RTO and COD order confirmation cover the methods, and which Shopify plan to pick in India covers when the lower transaction fee pays for a higher plan.

Order profit is not customer profit

CM3 per order charges all marketing to the first order. A brand whose customers come back can run a negative first-order CM3 and still make money, as long as the repeat orders arrive before the cash runs out.

Work it per customer: CM2 per delivered order times the orders a customer places, minus CAC, minus what you spend on email and WhatsApp to bring them back. In the example, CM2 is ₹568 per delivered order (₹52,264 over 92) and CAC is ₹435 per delivered first order, so a customer who orders once leaves ₹133. Raise ad spend to ₹60,000 for the same 100 orders and CAC becomes ₹652. The first order then loses ₹84, which a second order more than recovers, if it comes.

The expected number of orders comes from Shopify. The Customer cohort analysis report groups customers by when they first bought and counts their repeat purchases, with retention rate, net sales and average order value among its metrics, according to Shopify's customer reports page. Its projections estimate spend per customer from the previous 24 months of store data. The Returning customers report lists customers with two or more orders. A young store has too few cohorts to trust a repeat rate, so until it has them, the first order's CM3 is the number that has to hold.

Payback is the same data read over time: the months until a cohort's cumulative CM2 covers what you spent to acquire it. If payback is longer than your cash runway, growth has to slow, whatever the long-run figure says.

What moves each layer

Each layer has its own levers, and each one shows up in a different report.

LayerLeversWhere to check
CM1Price, discount depth, bundles that raise order value, supplier costGross profit by product and by variant
CM2RTO rate, prepaid share, packaging size and volumetric weight, courier rates, Shopify planCourier export, net payments by method
CM3Channel mix, creative, landing page conversion rate, repeat purchaseAd platforms, Customer cohort analysis

Discounts need a check of their own. Shopify subtracts them before net sales, so they come straight out of CM1. A 10% sitewide code on the ₹1,180 product takes net sales to ₹900 per order and CM1 from ₹700 to ₹600, a seventh of the product margin, before any fee or freight changes. Run the code through the model before you launch it.

Conversion rate sits in CM3: the same ad spend buying more orders lowers CAC per order without touching the product. Our guide to Shopify conversion rate covers how to read yours.

Rebuild the model each month from the same sources, so the trend means something. If you want help connecting Shopify's reports to your courier and ad data, write to us.

Questions

What is D2C unit economics?

D2C unit economics is the profit a single order leaves after every cost that grows with order volume: product cost, shipping, packaging, payment fees, COD fees, RTO losses and marketing. Fixed costs such as salaries, rent and software sit below it. If unit economics are positive, more orders mean more profit. If they are negative, growth increases losses.

What are CM1, CM2 and CM3 in D2C?

They are three contribution margins, each one a layer deeper. CM1 is net sales minus cost of goods. CM2 is CM1 minus fulfilment and payment costs: freight, packaging, gateway and Shopify transaction fees, COD fees and RTO losses. CM3 is CM2 minus marketing spend. For Indian stores, CM2 is usually where the margin leaks, because COD fees and returned shipments land there.

What is a unit economics model?

A unit economics model is a spreadsheet that turns per-order inputs into margins. The inputs are price, product cost, freight, payment fee rates, the COD share, the RTO rate and ad spend. The outputs are CM1, CM2 and CM3 per delivered order. Its use is sensitivity: change one input, such as the RTO rate or a discount, and see how much profit moves.

How do I calculate unit economics from Shopify data?

Add a Cost per item to every variant, then read net sales and gross profit from the profit reports, which Shopify calculates as net sales minus cost. Take the prepaid and COD split from the finance reports' net payments by method, and Shopify's transaction fees from your bills. Freight, COD fees and RTO charges come from your courier's export, and ad spend from each ad platform.

Should GST be included in D2C unit economics?

No. GST collected on sales is owed to the government, so start from net sales, which Shopify reports before taxes even when your prices include GST. On costs, GST you can claim back as input tax credit is not a cost either. GST you cannot claim, for example on gateway fees if you are not registered, is a real cost and belongs in CM2.

Is COD or prepaid more profitable on Shopify in India?

Per delivered order the fees are similar. Shopify charges no transaction fee on COD, while prepaid orders pay the gateway fee, GST on it and Shopify's fee. The difference is RTO: every COD order that comes back costs freight both ways and packaging, and wastes the ad spend that bought it. In our example a 20% COD RTO rate made a delivered COD order earn less than a prepaid one.

What is a good contribution margin for a D2C brand?

There is no single right figure, because it depends on category, repeat rate and funding. The tests that matter are simpler. CM3 per order should be positive, or the cohort data should show repeat orders recovering CAC within your cash runway. And CM2 should be large enough that a realistic CAC still leaves something to cover fixed costs.

Get started

Talk to us about your store.

Average reply 11 min

Book a call

30 minutes with Suvam. Leave knowing what to fix, build or leave alone.

Book a call
Mon to Sat, 9 to 23 IST

Email us

A brief, a bug or a question. All welcome.

suvam@knox.team