1. Home
  2. Blog
  3. How to calculate COD profit

How to calculate COD profit (with formula and example)

The formula, a step-by-step method and a worked example for cash on delivery stores, plus the mistakes that make COD profit look higher than it is.

The COD profit formula: the short answer

COD profit is the money you keep from orders that were actually delivered and paid for, after every cost, including the cost of orders that came back. The formula is:

COD profit = delivered revenue − product cost − delivery fees − COD fees − RTO costs − ad spend − overheads

The rest of this guide explains each part, shows a worked example and covers the mistakes that make COD stores think they're profitable when they aren't. To skip the maths, use the free COD profit calculator.

Video: How to set up costs in Financify for accurate COD profit

Set up product costs, courier and COD fees, taxes, gateway fees and cost templates so Financify calculates real profit per order.

Why COD profit is different from normal e-commerce profit

With card payments, an order is revenue the moment it's placed. With cash on delivery, an order is only a promise. Three things happen between the order and the cash:

  • Cancellations before dispatch. Fake orders, duplicate orders and customers who don't answer the confirmation call. These cost little if you catch them before shipping.
  • RTO (return to origin). The parcel ships, the customer refuses it or can't be reached, and the courier brings it back. You pay the forward fee, often a return fee, and the packaging, and you collect nothing.
  • Delay in cash. Couriers remit COD cash days or weeks after delivery, usually minus a collection fee.

So COD profit has to be calculated on delivered orders, while many costs (ads, delivery, packaging) are paid on placed or dispatched orders. That mismatch is where most profit miscalculations come from.

How to calculate COD profit, step by step

1. Count orders at each stage

For the period you're measuring, note orders placed, orders dispatched and orders delivered. RTO orders are dispatched minus delivered. Wait until most parcels have a final status; orders still in transit belong in the next calculation.

2. Calculate delivered revenue

Delivered revenue = delivered orders × average order value. Use the amount the customer actually paid, after discounts. Don't use Shopify's total sales, which includes orders that never got paid.

3. Subtract product cost of delivered orders

Product cost (COGS) = delivered orders × unit cost of the products sold. If RTO stock comes back damaged, add that loss here.

4. Subtract delivery and COD fees

Forward delivery fees and packaging are paid on every dispatched order. The COD collection fee, usually a percentage of the cash collected, is charged on delivered orders only. Check your courier invoice; some couriers also charge fuel surcharges or GST on fees.

5. Subtract RTO costs

RTO cost = RTO orders × (forward fee + packaging + return charge). This is the cost most stores forget, because it never appears next to a sale.

6. Subtract ad spend and overheads

Ad spend is the full amount for the period, including spend that produced orders that were later returned. Overheads are salaries, rent, software and anything else you pay monthly.

7. Work out margin and profit per order

Margin = COD profit ÷ delivered revenue. Profit per delivered order = COD profit ÷ delivered orders. These two numbers let you compare months, products and cities fairly.

COD profit calculation: worked example

An example store in a month (all amounts in PKR):

ItemCalculationAmount
Orders placed1,000
Dispatched1,000 − 80 cancelled920
Delivered920 − 184 RTO (20%)736
Delivered revenue736 × 3,5002,576,000
Product cost736 × 1,200−883,200
Delivery, packaging and COD fee736 × 310 + 2% of revenue−279,680
RTO costs184 × (250 + 60 + 200)−93,840
Ad spend−600,000
Overheads−150,000
COD profit569,280

The margin is 22.1% of delivered revenue, and profit is about Rs 773 per delivered order. If the owner had used Shopify's sales figure of Rs 3,500,000 instead, the store would look about Rs 924,000 more profitable than it is.

Break-even RTO rate

Because RTO both removes a sale and adds costs, profit falls fast as returns rise. The break-even RTO rate is the return rate at which profit hits zero. For the example store it's about 45%. Each extra point of RTO costs it roughly Rs 22,000 a month.

Knowing this number tells you how much room you have. A store at 20% RTO with a 45% break-even is safe. A store at 30% RTO with a 33% break-even is one bad week from a loss.

COD profit margin

COD profit margin is COD profit divided by delivered revenue, not by the value of orders placed:

COD profit margin = COD profit ÷ delivered revenue × 100

In the example that's 569,280 ÷ 2,576,000 = 22.1%. Divide by the Rs 3,500,000 of orders placed instead and you get 16.3%, a different number for the same month. Pick delivered revenue and use it every time, so months and products compare fairly. For the wider picture on margins, see profit margins in COD e-commerce.

COD unit economics: profit per delivered order

Unit economics breaks the month down to one delivered order, which makes it easy to see what each extra order is worth and how much you can spend to get it:

Per delivered orderCalculationAmount (PKR)
Contribution before ads and overheads(2,576,000 − 883,200 − 279,680 − 93,840) ÷ 7361,793
Ad spend per delivered order600,000 ÷ 736−815
Overheads per delivered order150,000 ÷ 736−204
Profit per delivered order773

The contribution line already carries the cost of returned parcels, so it falls as RTO rises. The ad line is your real cost to acquire a delivered order. If it climbs towards Rs 1,793, every extra order loses money however good the ad platform's ROAS looks. Track both lines per product and per campaign in a COD profit tracker rather than once a month in a spreadsheet.

Common COD profit mistakes

  • Counting placed orders as revenue. The single biggest error. Only delivered orders pay.
  • Ignoring the return charge. Many couriers charge to bring the parcel back, on top of the forward fee you already paid. See the full list of hidden costs in COD markets.
  • Using ad platform ROAS. Meta and TikTok count placed orders. Use post-delivery ROAS instead, and run your delivered revenue through the ROAS calculator.
  • Averaging across cities and couriers. One city at 40% RTO can hide inside a 20% average. See city-wise delivery analysis.
  • Calculating too early. Orders still in transit aren't delivered or returned yet. Close each period once most parcels have a final status.

Doing this automatically

A spreadsheet works for a few hundred orders, but it breaks when statuses change daily. Financify connects to Shopify, your couriers and your ad accounts, then calculates this for every order: expected profit when it's placed and realized profit once it's delivered or returned. You can see it by product, city, courier and campaign. Start with the free plan, or read the COD profit tracking guide to set up your own system.

Courier fees and currencies differ by market. See COD profit in Pakistan, India, the UAE and Saudi Arabia, Bangladesh and Egypt.

FAQ

Frequently asked questions

What is the formula for COD profit?

COD profit = delivered revenue − product cost − delivery fees − COD fees − RTO costs − ad spend − overheads. Only delivered orders count as revenue.

Should RTO orders count in product cost?

Usually no, because returned stock goes back into inventory. Add a loss only for parcels that come back damaged or can't be resold.

Is COD profit margin calculated on placed or delivered orders?

On delivered revenue. Placed orders include sales that never paid, which makes the margin look better than it is.

Talk to us

Tell us what is eating your margin. We will show you where the money goes and how Financify finds it.

See it live

Book a 15 minute demo and see your real profit, order by order.