Almost every company knows how much it invoices per customer. Very few know how much they actually earn from each one. That gap isn't an accounting nuance: it's the reason a business can grow sales two years running and close the second with less cash than the first. Customer profitability analysis is the calculation that separates those two things, and the normal reaction the first time it's done is alarm: somewhere between 10% and 30% of the customer base is usually destroying margin, and it almost always includes someone from the top five by revenue.
This article is about how to calculate it properly — with the data you already have, not the data you wish you had — how to allocate indirect costs without building a model nobody understands, and above all what to do the day after, when you have the names of the customers losing you money and have to decide whether to raise prices, change how you serve them, or let them go.
What is customer profitability and why doesn't it match revenue?
Customer profitability is the margin left after subtracting everything it costs to win, serve and keep that customer. What most companies call "customer profitability" is really gross margin: selling price minus product cost or billed hours. That number is only the starting point.
What's missing is the cost to serve: everything that customer consumes and that never appears on their invoice.
- Support calls, incidents, complaints.
- Rush deliveries, split orders, freight nobody passes on.
- Sales visits that maintain the account rather than sell anything.
- Returns and rework.
- Days of late payment (a real financing cost, not a theoretical one).
- Admin hours: special delivery notes, their supplier portal, their invoice format, their monthly spreadsheet.
Two customers invoicing €100,000 with the same 30% gross margin can leave €28,000 and €6,000 respectively. The first orders three times a month, accepts standard lead times and calls support twice a year. The second orders eleven times, demands 24-hour delivery, pays at 90 days after two reminders, and has a contact who emails daily. Both sit on the same line of the sales report.
If your customer report is sorted by revenue, you're managing volume. If it's sorted by margin after cost to serve, you're managing the business.
What data do you need to calculate it?
The good news: almost all of it is already in your systems. The bad news: it's spread across four places that don't talk to each other. The minimum viable set for an honest first pass is five sources.
| Source | What you get | Where it usually lives | |---|---|---| | Invoicing | Revenue per customer and per line | ERP, invoicing software | | Direct costs | Product cost, booked hours, subcontracting | ERP, job sheets, projects | | Logistics | Number of deliveries, freight, returns | ERP, carrier, delivery notes | | Support and after-sales | Number of tickets, hours spent | Helpdesk, email, CRM | | Collections | Invoice date and actual payment date | Bank, accounting |
That's enough for a reasonably reliable contribution margin per customer. If one source is missing, don't stop the project: estimate that line with an average and label it as an estimate. A calculation with two declared estimates is infinitely more useful than a perfect calculation that doesn't exist.
Two practical problems always show up, and it pays to solve them before touching a formula:
The customer isn't identified the same way across systems. The same group appears as three legal entities in the ERP, four accounts in the CRM and two email addresses in the helpdesk. Until there's a single customer identifier, any number you produce is noise. That's the boring data quality work you have to do first, and it usually costs more than the calculation itself.
Nobody measures unbilled time. Support hours, visits and admin are rarely booked anywhere. If you don't have them, there's a decent shortcut: for four to six weeks, have support and admin note the customer on every interaction. No system needed; a list will do. That sample lets you allocate the department's cost on a real basis instead of by gut feel.
How do you allocate indirect costs without going mad?
This is where half of all customer profitability projects die: someone proposes a full ABC costing model with thirty drivers, and eighteen months later there's still no report. Allocation has three levels, and level two is usually where to stop.
1. Allocation by revenue. You spread overhead in proportion to what each customer invoices. It's fast and useless: by construction, the big customer carries more cost and the small one less, which is exactly the opposite of what tends to happen. Only useful as a comparison. 2. Allocation by simple drivers. Pick three to six activities that genuinely consume resources — picking an order, making a delivery, handling a ticket, issuing an invoice, visiting — and work out an average cost per event. Then count events per customer. This can be built in weeks and explains 80% of the differences. 3. Full ABC costing. Useful in manufacturing with wide product variety and long processes. In a mid-sized service business it's almost always over-engineering.
A level-two example from a distributor: the logistics department costs €240,000 a year and picks 12,000 orders, so picking one order costs around €20. A customer ordering eleven times a month consumes €2,640 a year in picking alone, against €720 for the one ordering three times. That figure, which appears in no P&L, changes the commercial conversation: you stop arguing about discounts and start talking about minimum order size.
Two rules so the allocation doesn't backfire:
- Don't allocate what doesn't change with the customer. General management, rent and the ERP exist with or without that account. Allocate them and you'll turn customers who do contribute margin into "unprofitable" ones. Leave them out of the per-customer calculation and cover them with total margin.
- Use a single average cost per event and review it once a year. Fine-tuning the cost of a rush order versus a normal one adds precision that changes no decision.
What comes out the first time you run it?
The pattern repeats so often you can predict it. Sort the customer base by margin after cost to serve and four groups appear, each calling for a different move.
| Group | Typical profile | What to do | |---|---|---| | Profitable and large | Few, hold most of the margin | Protect them: concentration risk, account plan, no experiments | | Profitable and small | Many, high margin, little noise | Replicate them: this is the ideal acquisition profile | | Large and barely profitable | Invoice a lot, consume more | Renegotiate service terms, not just price | | Small and loss-making | The long tail of the base | Raise price or automate their service; exit is the last option |
The long tail is the biggest surprise. In many companies the bottom 20% of customers generates 2% of revenue and consumes 15% of admin and support time. You don't have to fire them: changing the channel (self-service instead of phone), setting a minimum order or moving them to a tariff without bundled services is usually enough.
A top-five customer in the red almost always appears too. Before taking it to the board, check two things: that no cost has been misallocated, and that it isn't absorbing overhead that would exist anyway. If it's still loss-making after that, it's a management conversation, not a sales one.
What do you do with a customer who loses you money?
This is the part almost no guide resolves, and the only one that produces results. There are five levers, and it pays to work through them in order, because the last one is the most expensive.
1. Change how you serve them. The first lever and the one with the fewest awkward conversations: minimum order, consolidated deliveries, moving support from phone to an asynchronous channel, dropping the manual report you build for them every month. It often recovers the margin without touching price. 2. Charge for what you currently give away. The rush delivery, the second visit, the special format. Moving from "included" to "a priced option" isn't a price rise: it makes a cost visible. Many customers stop asking as soon as there's a tariff. 3. Raise the price. With the data in front of you, it's a defensible conversation. Apply data-driven pricing at segment level rather than customer by customer, so you don't lose the argument when they compare terms. 4. Fix the collection. A customer at 120 days with two reminders per invoice can be profitable on paper and ruinous in cash. A lot of this gets fixed before you touch anything else; we cover it in accounts receivable. 5. Let them go. It works, but it hurts: the revenue leaves today and the overhead takes months to come down. It makes sense when the account also consumes the capacity you need for profitable customers. And it's done properly, with notice, without burning the relationship.
One practical recommendation: don't apply all five at once or across the whole base. Start with the ten worst cases and give sales a script with the cost-to-serve figure in it. Internal resistance drops sharply when a rep can say "we pick 132 orders a year for you" instead of "management says you're not profitable."
How do you keep the calculation alive?
A customer profitability analysis done once is a presentation. Done monthly it's a management system. Three decisions make the difference.
- Automate getting the data, not the analysis. The five sources join automatically once a month and produce a table per customer. A person still does the thinking.
- Put it where the business is already looked at. If it lives in a finance spreadsheet, it gets opened at close and forgotten. If it goes into the executive dashboard next to sales and cash, it gets used. A real-margin column beside the revenue column changes more behaviour than any 40-page report.
- Give it an owner and a cadence. Monthly for the loss-making list, quarterly for the terms review, annually for the average cost per event. Without an owner, no business KPI survives the second quarter.
And a warning sign: if the model has to be "adjusted" every month so the numbers match somebody's intuition, the problem isn't the model. It's that nobody wants to see the result.
When is it worth going further and predicting?
With twelve to twenty-four months of clean history, the same data answers two more questions, and that's where a model earns its place.
- Future customer value. Estimating how much margin a customer will leave over the next two years, not how much they left last year. It changes acquisition decisions: you stop paying the same for leads that will end up in the long tail as for the ones that look like your ideal customer. It connects directly with lead scoring.
- Risk of losing a profitable customer. Knowing which good customer is showing exit signals is worth more than knowing which is the worst. That's the territory of churn prediction, and it only makes sense once you're clear about who you can't afford to lose.
Order matters: descriptive calculation and action on the base first, prediction second. Predicting the future value of customers whose current margin you can't calculate is building the roof before the foundations. And behavioural customer segmentation is far more useful when each segment carries its real margin alongside it.
Frequently asked questions
How often should customer profitability be recalculated?
Monthly for the active customer base, riding on the accounting close. Average costs per event (picking an order, handling a ticket) get reviewed once a year, because they change little and recalculating them monthly adds noise without changing decisions.
Can it be done without an ERP or expensive tools?
Yes. With sales per customer, direct costs and a four-week sample of support and logistics interactions you can build a first analysis in a spreadsheet. The tooling only becomes necessary when you want to repeat it every month without spending three days on it.
What minimum margin should I require from a customer?
There's no universal figure: it depends on your cost structure and spare capacity. The useful benchmark is internal — work out the average contribution margin across your base and treat anything below half that average as a case to review.
Should I tell a customer they aren't profitable?
Not in those words. What does work is bringing them concrete service data — number of deliveries, rush orders, incidents — and proposing a change of terms from there. The conversation shifts from a judgement about them to a fact about how you work together.
---
If you suspect part of your customer base doesn't pay what it costs but you don't know which part, the first step isn't a big project: it's joining five data sources you already have and reading the list sorted by margin. That's exactly what we look at in the audit, and if you'd rather talk it through before deciding anything, let's talk.
Shall we apply it to your case?
The 360° AI Audit turns these ideas into a concrete plan for your company: three weeks, fixed price and the full picture of your AI before spending a euro.
See the 360° Audit→ Let's talk↗