TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Customer profitability analysis: revenue minus cost to serve by segment

Rank customer segments by profit, not revenue. A five-segment worked example with payment fees, shipping, returns and support shows one segment that ranks third on revenue and loses money.

Lin Zhou Published Nov 22, 2026 12 min read Analytics
Sample data: profit after cost of goods, payment fees, shipping, return handling and support for 4,000 customers (total $87,822, 16.4% of $536,000 revenue). Deal seekers rank third on revenue and last on profit.Sample data

Customer profitability analysis calculates how much profit each customer segment produced: net revenue minus cost of goods minus cost to serve. Ranking by profit instead of revenue changes the answer. In the sample below, one segment ranks third on revenue and loses $2,456, while two segments making up a quarter of customers earn 80.3% of the profit.

What you will learn

  • Customer profit = net revenue − cost of goods − cost to serve; trace payment fees, shipping, returns and support to the segment, leave shared overhead out
  • In the sample, Deal seekers are 17.9% of revenue and −2.8% of profit; Loyal regulars are 20.1% of revenue and 41.2% of profit
  • Find which cost line makes a segment unprofitable before cutting it, then re-run the analysis next quarter

What customer profitability analysis measures

Customer profitability analysis answers one question: after every cost that customer caused, how much money did they leave? The formula for one customer or one segment over one period is:

Customer profit = net revenue − cost of goods − cost to serve

  • Net revenue is what was kept after returns and refunds.
  • Cost of goods is what the products or the delivered service cost you, including discounts given (a discounted sale has a lower margin).
  • Cost to serve is everything else the customer triggered: payment fees, shipping you paid, return handling, support contacts, onboarding calls.

It is not a ranking by revenue. Two customers with the same revenue can differ widely in profit, because one pays full price, never returns anything and never writes in, and the other does the opposite. It is also not customer lifetime value, which projects future value; profitability analysis measures what already happened in a closed period. Use the two together: profit tells you what a customer was worth, lifetime value tells you whether to expect more of it.

For the broader toolbox around customer data, see customer analysis. This article stays on the money question.

The five cost-to-serve lines

Most of the cost to serve in an online business falls into five lines. Each has a rule for how to charge it to a segment, because allocating it badly is the main way this analysis goes wrong.

Cost lineHow to charge itWhere the data livesSample rate used below
Payment feesPer order: a percentage of the order plus a fixed feePayment provider statement2.9% + $0.30 per order
Shipping you paidPer order, by weight or zone; not a share of revenueShipping invoices$5 to $9 per order
Returns handlingPer returned order: return label, inspection, restockingWarehouse or returns system$8 per returned order
SupportContacts × cost per contactHelp desk or chat export$6 per contact
DiscountsAlready inside the gross margin of the segmentOrders with discount codesSegment margin of 30% to 45%

Two of the rates are public. Stripe's US pricing page lists 2.9% + 30 cents per successful domestic card payment and a $15 fee for each dispute. For returns, the National Retail Federation's 2025 report estimated that 15.8% of annual retail sales would be returned, and 19.3% of online sales. Use those as sanity checks, not as your own numbers: your own return rate by segment is the number that matters, and it is usually much more uneven than the average.

One rule for everything that cannot be traced to a customer, such as rent, salaries and software: leave it out of the segment comparison. Spreading overhead by revenue makes every segment look equally profitable. Kaplan and Anderson's time-driven activity-based costing is the usual method when you need to assign shared resources: estimate how much time an activity takes and multiply by the cost of the time. For a first pass, tracing the five lines above is enough.

A worked example: five segments

Sample data: an online store with 4,000 customers over twelve months, split by buying behavior. Cost to serve uses the rates above: payment fees (2.9% + $0.30 on every order, assumed not refunded on returns), shipping per order, $8 per returned order and $6 per support contact. Gross profit is margin applied to revenue kept after returns.

SegmentCustomersOrdersGross revenueNet revenue after returnsGross profitCost to serveProfitProfit margin
Loyal regulars2001,200$108,000$103,680$46,656$10,476$36,18033.5%
Steady buyers8002,400$156,000$143,520$60,278$25,980$34,29822.0%
Deal seekers1,0002,000$96,000$82,560$24,768$27,224−$2,456−2.6%
High returners300750$82,500$57,750$23,100$16,568$6,5327.9%
One-time buyers1,7001,700$93,500$85,085$34,034$20,766$13,26814.2%
Total4,0008,050$536,000$472,595$188,836$101,014$87,82216.4%

How one row is computed, using Deal seekers: 1,000 customers × 2 orders = 2,000 orders at a $48 average order value = $96,000 gross revenue. With a 14% return rate, 280 orders come back, so net revenue is $96,000 − 280 × $48 = $82,560. At a 30% margin, gross profit is $24,768. Cost to serve: payment fees $3,384 ($96,000 × 2.9% + 2,000 × $0.30), shipping $12,000 (2,000 × $6), returns handling $2,240 (280 × $8) and support $9,600 (1,000 customers × 1.6 contacts × $6). Total $27,224. Profit: $24,768 − $27,224 = −$2,456.

The segment that looks fine on revenue, third largest at $96,000, loses money once discounts, returns and support are charged to it.

Rank by profit, not by revenue

Sort the same five segments by profit and add the cumulative share:

Rank by profitSegmentShare of customersShare of revenueShare of profitCumulative profit
1Loyal regulars5.0%20.1%41.2%41.2%
2Steady buyers20.0%29.1%39.1%80.3%
3One-time buyers42.5%17.4%15.1%95.4%
4High returners7.5%15.4%7.4%102.8%
5Deal seekers25.0%17.9%−2.8%100.0%

Two customer groups, a quarter of the customer base, produce 80.3% of profit. That is a Pareto pattern in the sense of Pareto analysis, but note the shape: the cumulative line passes 100% and then comes back down, because one segment destroys value. A plain revenue chart would never show that. The revenue ranking puts Steady buyers first and Deal seekers third; the profit ranking puts Loyal regulars first and Deal seekers last.

Check the result with a stress test before acting: change the support cost from $6 to $12 per contact and see whether the ranking moves. In this sample, Deal seekers fall further to about −$12,056 while Loyal regulars lose only $600, so the conclusion holds. If a small change in an assumption flips your ranking, the segments are too close to call.

app.tapcub.com

Profit by segment

sample data, 12 months
Loyal regulars$36,180
Steady buyers$34,298
One-time buyers$13,268
High returners$6,532
Deal seekers−$2,456
Sample data
Sample data: profit after cost of goods, payment fees, shipping, return handling and support for 4,000 customers (total $87,822, 16.4% of $536,000 revenue). Deal seekers rank third on revenue and last on profit.

How to pick the segments

Profit by segment is only as useful as the segments. Four rules:

  1. Segment by behavior that changes cost: how often they buy, how much they return, how often they contact support, which discount they use. Age and city rarely explain cost to serve.
  2. Keep 4 to 8 segments. Fewer hides the pattern; more makes each group too small to trust.
  3. Require at least 100 customers per segment so that one unusual customer cannot move the margin by a point. For smaller groups, widen the period instead of splitting further.
  4. Assign each customer to one segment for the whole period. Moving customers between segments mid-period double counts orders.

If you already group customers by purchase recency, frequency and spend, those groups are a good starting point; see customer segmentation analysis and the RFM definition.

What to do with each segment

The analysis is only worth running if it changes a decision. Rules that follow from the sample:

  • Profit margin above the total (16.4%): protect it. Loyal regulars and Steady buyers deserve faster support and early access, not discounts. A coupon given to a customer who would have paid full price is a pure loss.
  • Negative profit: find which line is the cause before cutting. Deal seekers lose money because margin is 30% while cost to serve is 28% of gross revenue ($27,224 ÷ $96,000). Raising the free-shipping threshold or trimming the discount depth is a cheaper fix than losing the customers.
  • Positive but thin profit with a spike in one cost: fix the spike. High returners have good order values and a 30% return rate; a size guide, better photos or a return fee targets the return cost, not the customer.
  • Large and mildly profitable: look for the second order. One-time buyers are 42.5% of customers and 15.1% of profit. The question is retention, covered in customer retention analytics.

Re-run the analysis each quarter after a change. If the Deal seekers segment moves from −2.6% to +3% margin, the action worked; if it stays negative, the cost line you picked was not the cause.

Segment resultWhat to doExample from the sample
Margin above the total (16.4%)Protect it with service, not discountsLoyal regulars 33.5%, Steady buyers 22.0%
Negative profitFind the cost line, then change the offerDeal seekers: cost to serve is 28% of revenue; raise the free-shipping threshold or cut discount depth
Thin profit with one cost spikeFix the spikeHigh returners: 30% return rate; size guide or return fee
Large and mildly profitableLook for the second orderOne-time buyers: 42.5% of customers, 15.1% of profit

Sample data. Re-run the analysis a quarter after each change; if the segment margin does not move, the cost line you chose was not the cause.

Pitfalls

  • A window that is too short. One quarter can miss annual buyers and over-weight a promotion. Use at least twelve months for stable products, or compare the same quarter year over year.
  • Counting revenue before returns. A return rate of 14% turns $96,000 into $82,560. Use net revenue.
  • Allocating overhead by revenue. It hides the very differences you are looking for.
  • Treating one number as the verdict. A negative-profit segment may be where tomorrow's loyal customers come from. Check what share of the segment buys again within 12 months before you stop serving it.
  • Mixing currencies and tax. Keep revenue net of sales tax and in one currency.

Doing the revenue side in TapCub

Profit needs costs that live in your finance, shipping and payment systems. TapCub does not know your cost of goods, shipping invoices or payment fees, and it does not compute profit. What it gives you is the revenue and behavior side, grouped the way the analysis needs:

  1. Send purchase and refund events with revenue, currency and order_id; All-platform analytics › Business › Commerce & revenue reads them as the order ledger, with purchases and refunds converted into your base currency.
  2. Group customers in All-platform analytics › Users › Segments & tags: an RFM segment buckets people by recency, frequency and amount, and refreshes daily. The Commerce page also shows the 11 RFM segments (champions, loyal, big spenders and so on) with the change against 30 days earlier.
  3. For the support line, Live chat › Reports counts conversations and resolution rate for the site; the count is conversations, not analytics sessions. Per-customer support cost still has to come from your own contact log.
  4. If you import ad spend in All-platform analytics › Business › Channel ROI, the page shows cost per acquisition and return on ad spend by channel, which is the acquisition-cost side of customer profit. Join those numbers to your own cost lines in a spreadsheet.

TapCub does not score customers or suggest actions; it tells you who bought, how often, how much came back as refunds and from which channel.

FAQ

What is customer profitability analysis?

It is the practice of calculating how much profit each customer or customer segment produced in a period: net revenue minus cost of goods minus cost to serve. The result usually ranks segments differently from revenue, because discounts, returns, shipping and support differ by segment.

How do you calculate customer profitability?

For each segment, add up net revenue after returns, multiply by the product margin, then subtract payment fees, shipping paid, return handling and support cost. In the sample above, Deal seekers earn $24,768 in gross profit and cost $27,224 to serve, a profit of −$2,456.

What is the difference between customer profitability and customer lifetime value?

Profitability measures what a customer produced in a closed period, using actual costs. Lifetime value estimates what a customer will produce over time and rests on assumptions about retention. Profitability tells you what happened; lifetime value forecasts what will.

Which costs should be included?

Include costs that can be traced to a customer or order: payment fees, shipping you paid, return handling, support contacts and discounts. Leave out shared overhead such as rent and salaries, or assign it with an activity-based method, otherwise every segment looks equally profitable.

Should you stop serving unprofitable customers?

Not before finding the cause. A segment can lose money because of one fixable line, such as free shipping on small orders, and may contain customers who become profitable on the second or third order. Change the offer first, re-run the analysis next quarter, and drop the segment only if the number stays negative.

Sources

Filed underAnalytics

Was this article helpful?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

Get the revenue side of customer profit

Orders and refunds, RFM segments and acquisition cost by channel in one project; costs stay in your finance system.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics