How this ecommerce profit calculator works
Most profit calculators assume every order turns into revenue. In cash on delivery that's never true. Some orders are cancelled before they ship, and some come back as RTO (return to origin) after you've already paid the courier. This calculator follows each order through those steps and only counts money you actually collect.
- Placed orders are everything Shopify received.
- Dispatched orders are placed orders minus cancellations before dispatch, such as fake orders or customers who didn't confirm.
- RTO orders are dispatched orders the customer refused or the courier couldn't deliver. You pay the forward fee, packaging and a return charge on each one, and collect nothing.
- Delivered orders are the only ones that bring in cash. Revenue, product cost and the COD collection fee are counted on these.
Ad spend and overheads are monthly costs you pay whatever happens to the orders.
The COD profit formula behind the calculator
Real COD profit = delivered revenue − product cost of delivered orders − delivery and COD fees − RTO costs − ad spend − overheads.
- Delivered revenue = delivered orders × average order value
- Delivery and COD fees = delivered orders × (forward fee + packaging) + COD fee % × delivered revenue
- RTO costs = RTO orders × (forward fee + packaging + return charge)
- Margin = real profit ÷ delivered revenue
The calculator assumes returned stock goes back on the shelf. If a share of RTO parcels come back damaged or opened, add that loss to product cost.
COD profit calculator: worked example
These are the calculator's starting values, for an example store selling in Pakistan.
| Step | Orders | Money |
|---|---|---|
| Placed | 1,000 | Rs 3,500 average order value |
| Cancelled before dispatch (8%) | 80 | No cost |
| Dispatched | 920 | Rs 310 each for delivery and packaging |
| RTO (20% of dispatched) | 184 | Rs 510 lost on each, Rs 93,840 in total |
| Delivered | 736 | Rs 2,576,000 collected |
After Rs 883,200 of product cost, Rs 279,680 of delivery and COD fees, Rs 93,840 of RTO costs, Rs 600,000 of ads and Rs 150,000 of overheads, real profit is Rs 569,280. That's a 22.1% margin on delivered sales and Rs 773 per delivered order.
A plain e-commerce calculator would use all 1,000 orders as revenue (Rs 3,500,000) and report far more profit than the store makes.
What the break-even RTO rate tells you
The break-even RTO rate is the return rate at which this month's profit falls to zero. In the example it's about 45%. Every extra point of RTO costs the store about Rs 22,000 a month, because it loses both the sale and the fees it already paid.
If your break-even RTO is close to your actual RTO, a bad week in one city or with one courier can turn the month into a loss. Watch your delivery rate weekly, not monthly.
Post-delivery ROAS
Ad platforms count a sale when the order is placed. Post-delivery ROAS divides only the money you collected by your ad spend, so it shows what your ads really return. In the example it's 4.29x, while the ad platform would report 5.83x on placed orders. Read more in our post-delivery ROAS guide, or check your ad return with the free ROAS calculator.
Five ways to raise COD profit
- Confirm orders before dispatch. A WhatsApp message or a call catches fake and impulse orders while they cost nothing. Courierify's order confirmation pipeline does this automatically.
- Compare couriers by city. The same courier can deliver well in one city and poorly in another. See city-wise delivery analysis.
- Pause ads where RTO is highest. Cheap clicks from high-RTO areas often cost more than they earn.
- Offer a prepaid discount. Prepaid orders can't be refused at the door.
- Track profit per order, not per month. Monthly totals hide which products, cities and campaigns lose money. Our COD profit tracking guide shows how.
Shopify profit calculator for prepaid orders
For card, wallet or bank-transfer orders, the same calculator works as a standard Shopify profit calculator. Change three inputs:
- Cancelled before dispatch: set to 0%, or to your real cancellation rate if you refund some orders before shipping.
- RTO rate and return charge: set to 0, or enter your refund rate and return shipping cost if customers send products back. A refunded return then costs the forward fee, packaging and return shipping, and the stock goes back on the shelf, which is how most prepaid returns work.
- COD collection fee: enter your payment gateway or Shopify Payments fee as a percentage instead.
With the example store's other numbers unchanged and a 2% gateway fee, 1,000 prepaid orders give Rs 3,500,000 of revenue and Rs 1,170,000 of profit: a 33.4% margin and Rs 1,170 per order. The same 1,000 orders on COD made Rs 569,280. The difference is what cancellations and RTO cost this store, which is why COD stores need a COD profit calculator rather than a plain ecommerce one.
Stores with prepaid and COD orders
Most stores in COD markets sell both. Run the calculator twice, once for each payment type, and split ad spend and overheads by order share (or by the campaigns that drove each type). Then add the results.
Say the example store's 1,000 orders are 250 prepaid and 750 COD, with ads and overheads split the same way:
| Prepaid | COD | Total | |
|---|---|---|---|
| Orders placed | 250 | 750 | 1,000 |
| Delivered | 250 | 552 | 802 |
| Revenue collected | Rs 875,000 | Rs 1,932,000 | Rs 2,807,000 |
| Ad spend | Rs 150,000 | Rs 450,000 | Rs 600,000 |
| Overheads | Rs 37,500 | Rs 112,500 | Rs 150,000 |
| Real profit | Rs 292,500 | Rs 426,960 | Rs 719,460 |
| Margin | 33.4% | 22.1% | 25.6% |
| Profit per delivered order | Rs 1,170 | Rs 773 | Rs 897 |
Each prepaid order makes about Rs 400 more than a delivered COD order here. That gap is roughly the most you could give away as a prepaid discount and still come out ahead.
Ecommerce profit vs COD profit: what changes
| Prepaid ecommerce | Cash on delivery | |
|---|---|---|
| Revenue counted | When the order is paid | Only when the courier delivers and collects |
| Failed orders | Refunds and returns, usually a small share | Cancellations and RTO, paid for with fees and ad spend |
| Payment cost | Gateway fee | COD collection fee charged by the courier |
| When cash arrives | Within days of the order | After delivery and the courier's remittance cycle |
| Ad return to use | Platform ROAS is close to reality | Post-delivery ROAS on delivered revenue |
The formula is the same in both cases: revenue collected minus every cost. COD just has more steps between the order and the revenue. The profit margin formulas guide covers gross, contribution and net margin in more detail.
From profit calculator to profit tracking
A calculator gives you one month's estimate from averages. Real stores have different delivery rates by city, courier and product, and those change every week. Read how to calculate COD profit for the step-by-step method, and the COD profit tracking guide for the daily and weekly workflow that keeps the numbers current.
Financify is a COD profit tracker for Shopify that does this on every order from your Shopify orders, courier fees and ad spend. For country-specific couriers and fees, see COD profit tracking in Pakistan, India, the UAE and Saudi Arabia, Bangladesh and Egypt.
