1. Home
  2. Blog
  3. Accounting

Accounting

How to Do Customer Profitability and Cost-to-Serve Analysis: Net Contribution, the Whale Curve and Action Guide

Customer profitability analysis: how to calculate net contribution and cost-to-serve, read a whale curve and act on thresholds, with worked examples.

Contents 13 sections
  1. What Is Customer Profitability Analysis and How Does It Differ From Other Analyses?
  2. How Is Customer Net Contribution Calculated?
  3. How Do You Choose Cost Drivers and an Allocation Key?
  4. In a Five-Customer Example, Which Large-Revenue Customer Is Weak on Net?
  5. What Is a Whale Curve and How Do You Read It?
  6. How Do You Find the Break-Even Order Value?
  7. What Are Threshold Actions and What Are They Worth?
  8. Where Does the Data for Customer Profitability Come From?
  9. How Do You Set Up Customer Profitability Analysis?
  10. How Is the Payback of Customer Profitability Analysis Calculated?
  11. What Are the Common Mistakes in Customer Profitability Analysis?
  12. Customer-Level Reporting with İnovabil
  13. Frequently Asked Questions

At year end you open the sales report: your largest customer brings in forty percent of revenue. The same customer places small orders every day, you pay for the shipping, returns and support requests never stop, and payment takes seventy-five days. Customer profitability analysis shows whether that customer really earns you money, not by looking at revenue but by netting off what it costs to serve them. The approach is also called cost-to-serve analysis.

This guide covers how customer net contribution is calculated, how to choose cost drivers and an allocation key, how a five-customer example separates the revenue ranking from the net-contribution ranking, how to read a whale curve, what threshold actions are worth, where the data comes from, and how to work out payback. All example figures are representative; they are not the averages of any real company or industry. For tax and accounting treatment, consult your financial advisor (certified accountant).

Key takeawayGross profit is the raw margin a customer leaves with you; customer net contribution is that margin after subtracting what you spent on order handling, shipping, returns, support and receivable financing. Cost-to-serve does not move with revenue: a customer who orders small and often costs far more than one who orders large and rarely. The list ranked by revenue and the list ranked by net contribution often look nothing alike.

What Is Customer Profitability Analysis and How Does It Differ From Other Analyses?

Customer profitability analysis is the exercise of subtracting customer-specific service costs from the gross profit earned over a past period to find net contribution per customer. The aim is to base decisions on terms and service levels on that difference.

It should not be confused with similar-looking studies; each answers a different question.

AnalysisThe question it answers
Customer profitability (this article)After cost-to-serve, what did this customer earn us?
Customer lifetime valueWhat will this customer earn us in total in the future?
RFMWhen, how often and how much does this customer buy?
Price list managementWhich price applies to which customer?
Project profitabilityHow did this job perform against its budget?
Dealer managementWhere does this dealer stand against target and bonus?

For future value see our CLV guide, for behavioral segments our RFM analysis article, and for job-level tracking our project cost and profitability guide; this article does not repeat their figures.

We recommend reading: How to manage B2B price lists: customer groups, tiers and discounts

How Is Customer Net Contribution Calculated?

Net contribution is gross profit minus five customer-specific service costs. The formula is:

Net contribution = gross profit − order handling − shipping − returns − support − receivable financing

Gross profit is net sales (after discounts and returns) minus the cost of goods sold. Overheads such as rent are not allocated here; only costs that rise and fall with the customer's behavior are counted. The five cost items used in the example and their representative unit rates are below.

Cost itemDriverRepresentative unit rate
Order handlingNumber of orders and order lines₺80 per order + ₺8 per line
Shipping (paid by the company)Number of shipments₺150–₺400 per order, by customer
ReturnsNumber of returns₺400 per return
SupportNumber of support tickets₺180 per ticket
Receivable financingRevenue × days to collect36% a year (3% a month), a representative financing cost

The financing formula: revenue × days to collect ÷ 360 × 36% = revenue × days ÷ 1,000. For example, ₺3,000,000 of revenue collected in 75 days gives 3,000,000 × 75 ÷ 1,000 = ₺225,000. The rate is your own cost of funds, not a bank quote. We cover collection practice separately in our B2B collections guide.

How Do You Choose Cost Drivers and an Allocation Key?

The best allocation key is the event that actually triggers the cost: order volume drives the order team, ticket volume drives the support team, return volume drives the returns desk. The unit rate is the cost pool divided by the number of driver units.

  • Support: an annual support pool of ₺96,840 and 538 tickets in total give a unit rate of 96,840 ÷ 538 = ₺180.
  • Returns: an annual returns-handling pool of ₺47,600 and 119 returns in total give 47,600 ÷ 119 = ₺400.
  • Shipping: where possible, match the actual carrier invoice to the customer shipment by shipment.

Allocating in proportion to revenue is the easiest route, and it misleads. In the example below the same total service cost (₺797,660, or 10.6% of revenue) is allocated two ways.

CustomerCost allocated by revenueNet by that methodActual cost by driversActual net
A₺319,064₺160,936₺493,160−₺13,160
B₺191,438₺348,562₺99,240₺440,760
C₺127,626₺256,374₺50,240₺333,760
D₺95,719₺156,281₺129,300₺122,700
E₺63,813₺146,187₺25,720₺184,280

Allocated by revenue, customer A earns ₺160,936 and appears third, ahead of D and E; looked at by drivers, it turns out to lose money. The wrong key makes a loss-making customer look profitable.

In a Five-Customer Example, Which Large-Revenue Customer Is Weak on Net?

Twelve months of data (all representative) for a company that sells wholesale to dealers and corporate customers look like this.

CustomerRevenueGross marginOrdersLinesShipping / orderReturnsTicketsCollection
A₺3,000,00016%3604,320₺3008036075 days
B₺1,800,00030%60480₺30064035 days
C₺1,200,00032%24120₺35021230 days
D₺900,00028%150900₺1503012060 days
E₺600,00035%1260₺4001630 days

Working through A: gross profit is 3,000,000 × 16% = ₺480,000. Order handling is 360 × ₺80 + 4,320 × ₺8 = 28,800 + 34,560 = ₺63,360. Shipping is 360 × ₺300 = ₺108,000. Returns are 80 × ₺400 = ₺32,000. Support is 360 × ₺180 = ₺64,800. Financing is ₺225,000. Net contribution = 480,000 − 63,360 − 108,000 − 32,000 − 64,800 − 225,000 = −₺13,160. The results for every customer follow.

Customer profitability example: total gross profit 1.87 million lira, cost-to-serve 798 thousand lira, net contribution 1.07 million lira; the largest customer A is negative
Five customers combined: 42.7% of gross profit goes to cost-to-serve.
CustomerGross profitHandlingShippingReturnsSupportFinancingNet contributionNet margin
A₺480,000₺63,360₺108,000₺32,000₺64,800₺225,000−₺13,160−0.4%
B₺540,000₺8,640₺18,000₺2,400₺7,200₺63,000₺440,76024.5%
C₺384,000₺2,880₺8,400₺800₺2,160₺36,000₺333,76027.8%
D₺252,000₺19,200₺22,500₺12,000₺21,600₺54,000₺122,70013.6%
E₺210,000₺1,440₺4,800₺400₺1,080₺18,000₺184,28030.7%
Total₺1,866,000₺95,520₺161,700₺47,600₺96,840₺396,000₺1,068,34014.2%

Total cost-to-serve is 797,660 ÷ 1,866,000 = 42.7% of gross profit. Customer A brings 40% of revenue but only 25.7% of gross profit, while consuming 59.4% of orders, 66.9% of support tickets and 56.8% of financing. It ranks first by revenue and last by net contribution.

What Is a Whale Curve and How Do You Read It?

A whale curve ranks customers by net contribution from highest to lowest and accumulates the contribution. The most profitable customers produce most of the total; the loss-making customers at the end of the list pull the cumulative line down from its peak. For the ranked example the arithmetic is as follows.

RankCustomerNet contributionShare of totalCumulative shareRevenue share
1B₺440,76041.3%41.3%24.0%
2C₺333,76031.2%72.5%16.0%
3E₺184,28017.2%89.7%8.0%
4D₺122,70011.5%101.2%12.0%
5A−₺13,160−1.2%100.0%40.0%

The most profitable twenty percent of five customers is a single customer (B), and it produces 41.3% of total net contribution; the top forty percent (B and C) produce 72.5%. The curve peaks at 101.2% at the fourth customer and falls to 100% with A: customer A erodes total net contribution by 1.2%. In a base of two hundred customers, "twenty percent" means forty customers.

How Do You Find the Break-Even Order Value?

To see with one threshold whether a customer is losing money, divide cost-to-serve per order by gross margin: break-even order value = cost-to-serve per order ÷ gross margin. For A, cost per order (financing included) is 493,160 ÷ 360 = ₺1,369.89; the break-even order value is 1,369.89 ÷ 0.16 ≈ ₺8,562. The average order is 3,000,000 ÷ 360 = ₺8,333, so every order loses about ₺36.56; 36.56 × 360 = ₺13,160, matching the result above.

For D the threshold is 129,300 ÷ 150 ÷ 0.28 ≈ ₺3,079; with an average order of ₺6,000, D is profitable. Cost per order varies with line count, so the threshold moves up for many-line orders. This threshold is the first input to a minimum order value decision.

What Are Threshold Actions and What Are They Worth?

An analysis that stays a report has no value. For a loss-making or thin-margin customer four actions stand out: a minimum order value, a shipping contribution, a payment-term and discount adjustment, and a service level. Below is the annual effect for customers A and D (assumptions are representative).

ActionAssumptionAnnual effect
A: minimum order ₺12,000Orders 360 → 250; revenue and lines unchanged; 110 × ₺80 + 110 × ₺300+₺41,800
A: shipping contribution ₺120 per order250 orders × ₺120+₺30,000
A: terms 75 → 45 days, in return for a 1% discountFinancing 225,000 → 135,000 (+90,000); discount −30,000+₺60,000
A: self-service for supportTickets 360 → 240; 120 × ₺180+₺21,600
A total−13,160 → 140,240 (net margin 4.7%)+₺153,400
D: minimum order ₺9,000 and ₺60 shipping contributionOrders 150 → 100: 50 × (₺80 + ₺150) = 11,500; 100 × ₺60 = 6,000+₺17,500

A's net margin on post-discount revenue of 2,970,000 is 140,240 ÷ 2,970,000 = 4.7%. The customer may push back; talk first, and have your legal counsel review any change of terms against the contract.

TipDropping a loss-making customer is often not the best decision. If 30% of cost-to-serve is fixed (a team shared with other customers) and A leaves, the net result changes by −480,000 + 0.70 × 493,160 = −₺134,788: the company loses money instead of gaining. Adjust the terms first and make leaving the last option.

Test the unit rates too: had the support rate been ₺270 instead of ₺180, A would fall to −₺45,560 and D to ₺111,900; the ranking would not change.

Where Does the Data for Customer Profitability Come From?

The analysis needs no new system, but it does need data from different systems to join on the same customer code.

DataSourceWatch out for
Revenue, discounts, gross marginERP sales and cost recordsUse net sales; know whether cost is standard or actual
Orders and linesERP, order managementCount a split shipment as one order
Shipping paidCarrier invoices, shipment recordsEach shipment must map to a customer
ReturnsReturn recordsKeep the return reason too
Support ticketsSupport and CRM recordsEach ticket must link to a customer code
Days to collect, receivablesCustomer account ledger, accountingTrack overdue balances separately
Customer identityMaster dataMerge duplicate records of the same customer

The most common problem is the same customer being registered several times under different codes; in our master data management article we explained how duplicates are cleaned. For the target-and-bonus side of a dealer network see our dealer management system guide, and for the shipping line see our shipping cost guide.

How Do You Set Up Customer Profitability Analysis?

A six-step path turns the analysis from a one-off presentation into a continuous measurement.

Six steps of customer profitability analysis: one key, cost pool, driver, net contribution, whale curve, action
The six steps of customer profitability analysis.
  1. Scope and period: take the last twelve months and all customers.
  2. Cost pools and drivers: write down the five cost items and what triggers each.
  3. Unit rates: divide each pool by the driver count and record the assumptions.
  4. Net contribution by customer: subtract the five items from gross profit and compute net margin.
  5. Whale curve and segments: net margin of 20% and above is protected, 10–20% is watched and improved, 0–10% gets adjusted terms, and below zero is repriced or exited (thresholds are representative).
  6. Action and monthly tracking: assign each action to an owner and track net margin with monthly indicators.

Keep the indicators to a handful and fix their definitions; we explain how in our KPI guide.

How Is the Payback of Customer Profitability Analysis Calculated?

Payback is the investment divided by the monthly net benefit. The assumptions are representative: data integration and report setup at 27 person-days × ₺9,000 = ₺243,000; annual operation and maintenance of ₺36,000. The annual benefit comes from the actions for the two customers above: 153,400 + 17,500 = ₺170,900.

  • Full realization: net benefit is 170,900 − 36,000 = ₺134,900 a year, or ₺11,242 a month; 243,000 ÷ 11,242 ≈ 21.6 months.
  • Half realization: benefit is 85,450; net is 85,450 − 36,000 = ₺49,450 a year, or ₺4,121 a month; 243,000 ÷ 4,121 ≈ 59.0 months.

The result is sensitive to how far customers accept the actions. Compute the figure from your own data, not from assumptions.

What Are the Common Mistakes in Customer Profitability Analysis?

  • Allocating by revenue: spreading cost-to-serve in proportion to revenue makes a loss-making customer look profitable.
  • Forgetting financing: on credit sales the financing cost of receivables is often the largest item.
  • Loading fixed costs onto customers: overheads such as rent do not change with customer behavior; allocating them blurs the decision.
  • Dropping the customer straight away: if the fixed cost share is forgotten, losing the customer makes the overall result worse.
We recommend reading: How to manage B2B collections and receivables
We recommend reading: How to Do Key Account Management and Account Planning: Selection, Share of Wallet, QBR and Renewal Guide
We recommend reading: How to Analyze Product Profitability and Rationalize SKUs: Contribution Margin, Carrying Cost and Pruning Guide
We recommend reading: How to Do Activity-Based Costing (ABC Costing) and Overhead Allocation: Drivers, Idle Capacity and Decision Guide

Customer-Level Reporting with İnovabil

At İnovabil our focus is building software from scratch, specific to your company: custom software, ERP, CRM, e-commerce, web, mobile and integration. We do not have a ready-made customer profitability product; what you need is for the data in your ERP, CRM, support and customer account records to join on the same customer code and be reported. We recommend defining this in writing during requirements analysis, with the data sources, drivers and report screen.

We built CRM, purchasing and mobile for Avcılar İnşaat; a purchasing system for İZBAN; logistics and shipment planning with wholesale order management for Karyak; and a prepaid cargo system for Kredili Kargo. Write briefly about your current systems and the report you want to see, and we will scope it together.

We recommend reading: Our business intelligence and reporting service

Frequently Asked Questions

What is customer profitability analysis and how is it done in short?

For each customer you subtract order handling, shipping, returns, support and receivable financing costs from gross profit to find net contribution. You then rank customers by net contribution and define terms and service-level actions for those that are loss-making or thin-margin.

What is the difference between cost-to-serve and gross profit?

Gross profit is the gap between selling price and cost of goods and shows the customer's raw contribution. Cost-to-serve is the price of how much the customer taxes you through orders, shipping, returns, support and payment terms. Net contribution is the difference between the two.

Does the most profitable customer have to be the largest one?

No. In the example the largest customer, A, brings 40% of revenue yet is last on net contribution (−₺13,160); the most profitable customer, B, is second on revenue but produces 41.3% of total net contribution.

Is dropping a loss-making customer the right move?

Usually adjusting the terms first is better: minimum order value, shipping contribution, payment terms and discount, service level. If part of cost-to-serve is fixed, dropping the customer can worsen the total; with a 30% fixed share the example gives −₺134,788.

What data is needed for the analysis?

Net revenue and gross margin by customer, order and line counts, shipping paid, returns, support tickets and days to collect. These come from ERP, CRM, support and customer account records; the key condition is that all of them link to the same customer code.

Let's talk about your project

Tell us briefly about the software you have in mind; we'll listen and prepare a tailored roadmap and proposal.

Get a quote