How to Calculate Cost to Serve: The Formula and a Worked Example With Numbers
Calculator: Cost to serve. Do this calculation with your own numbers.
Cost to serve is the sum of all costs a company incurs to take, fulfil, deliver and collect payment for a customer's orders, after the cost of the product itself. To calculate it, list the activities, find a cost rate for each one (cost per order, per line, per delivery), multiply each rate by how much of that activity the customer uses, and subtract the total from the customer's gross margin.
Customer profit = Revenue − Cost of goods − Cost to serve
Cost to serve = Σ (activity rate × activity volume for that customer)
This article works through the calculation in five steps with two customers whose results surprise most people, and ends with an exercise. For the concept and why it matters, start with Cost to Serve Explained.
Step 1: list the activities that differ by customer
Only include costs that change with how a customer buys. Typical ones:
| Activity | Driver (what you count) |
|---|---|
| Order handling and customer service | Number of orders |
| Picking and packing | Number of order lines |
| Delivery | Number of deliveries (drops) |
| Special packaging or labelling | Number of units or orders affected |
| Returns | Number of returns |
| Credit and payment terms | Revenue × payment days |
| Account management, trade terms | Hours or a fixed amount per customer |
Leave out costs every customer shares equally, such as head office rent. Allocating them adds noise without changing any decision.
Step 2: calculate a rate for each activity
Divide the annual cost of each activity by the annual volume of its driver.
Example for a wholesaler:
- Customer service and order handling cost €480,000 a year and handle 40,000 orders: €12 per order
- Picking costs €640,000 a year for 800,000 lines: €0.80 per line
- Delivery costs €900,000 a year for 20,000 drops on shared routes: €45 per delivery
- Capital tied up in receivables costs 8% a year
These rates come from the finance ledger and from the warehouse and transport systems. They do not need to be perfect: a rate that is right within 20% is enough to see which customers are profitable.
Step 3: count each customer's activity
Two customers buy the same products at the same 30% gross margin.
| Customer A | Customer B | |
|---|---|---|
| Annual revenue | €120,000 | €80,000 |
| Gross margin (30%) | €36,000 | €24,000 |
| Orders a year | 240 | 520 |
| Order lines a year | 2,400 | 3,120 |
| Deliveries a year | 120 | 260 |
| Payment terms | 30 days | 60 days |
Step 4: multiply and add up
| Cost line | Customer A | Customer B |
|---|---|---|
| Orders × €12 | €2,880 | €6,240 |
| Lines × €0.80 | €1,920 | €2,496 |
| Deliveries × €45 | €5,400 | €11,700 |
| Payment terms: revenue × days / 365 × 8% | €789 | €1,052 |
| Cost to serve | €10,989 | €21,488 |
Customer B buys a third less than Customer A, but costs twice as much to serve.
Step 5: compare profit per customer
| Customer A | Customer B | |
|---|---|---|
| Gross margin | €36,000 | €24,000 |
| Cost to serve | €10,989 | €21,488 |
| Customer profit | €25,011 | €2,512 |
| Profit as % of revenue | 20.8% | 3.1% |
On gross margin, Customer B looks like a solid account. After cost to serve, it earns almost nothing. The reason is not price. It is how B orders: twice as many small orders, more deliveries and longer payment terms.
What to do with the result
The point of the calculation is a conversation, not a list of customers to drop. Options for Customer B:
- Minimum order value or a small-order fee, so fewer, larger orders pay off for the customer.
- Fixed delivery days: two deliveries a week instead of five.
- Different terms: a discount for 30-day payment.
- A different channel: online ordering or delivery through a distributor.
If Customer B moved to 260 orders a year with the same lines and 130 deliveries, its cost to serve would fall by about €9,000 and its profit would rise from 3% to about 14% of revenue.
Common mistakes
- Allocating all costs by revenue. That hides the real difference, because order patterns, not revenue, drive the cost.
- Waiting for perfect data. Approximate rates already reveal the big differences.
- Stopping at the analysis. The value is in changing terms and service models with the customer.
- Forgetting the cost of payment terms and returns, which are often the largest hidden items.
Exercise
A third customer, C, has revenue of €60,000 at a 30% gross margin. It places 120 orders a year with 1,800 lines, takes 60 deliveries and pays in 45 days. Using the rates above, what is its cost to serve and its customer profit?
Solution
- Orders: 120 × €12 = €1,440
- Lines: 1,800 × €0.80 = €1,440
- Deliveries: 60 × €45 = €2,700
- Payment terms: €60,000 × 45 / 365 × 8% = €592
- Cost to serve = €6,172
- Customer profit = €18,000 − €6,172 = €11,828, or 19.7% of revenue
Customer C is smaller than B, yet more than four times as profitable.
Questions people ask
What is the formula for cost to serve?
Cost to serve is the sum, over all customer-related activities, of the activity rate times the customer's volume of that activity. Customer profit is gross margin minus cost to serve.
Is cost to serve the same as activity-based costing?
Cost to serve applies activity-based costing to customers or channels. The method is the same: costs follow the activities that cause them.
How often should cost to serve be calculated?
Once a year is enough for strategy. Some companies refresh it quarterly for their largest customers.
Practise it
In Play Supply Chain you make the trade-offs between service and cost yourself, in simulated orders and deliveries. Start with the free challenges.
Related reading
Don't just read about supply chains. Play them.
- The first 5 challenges are free, with the same game engines and debriefs as Premium
- Your stars and your level are saved to your profile
- No credit card, no spam
More in Analytics
- Supply Chain KPI Practice: Eight Calculations From One Small Dataset
- Excel for Supply Chain: 10 Formulas Every Analyst Uses, With Exercises
- Supply Chain Analyst: What the Job Is, Skills, Tools and How to Become One
- B2B Cost to Serve Explained: Why Big Accounts Are Not Always the Most Profitable Customers
- B2C Cost to Serve Explained: How E-Commerce Fulfillment Complexity Can Destroy Margin
- Cost to Serve Explained: How to Measure Profitability Across the Supply Chain
- Cycle Service Level Explained: Definition, Formula, and Why It Matters
- Fill Rate Explained: How to Measure Service Level That Customers Actually Feel