Customer lifetime value (CLV): formulas and DAX

How to calculate customer lifetime value, historical CLV from what customers have spent, the simple predictive formula for shops (order value, frequency, margin, lifespan), the subscription formula (monthly margin divided by churn), CLV by cohort and channel, the DAX for each, and the mistakes that inflate it.

Short answer: customer lifetime value (CLV or LTV) is the profit a customer brings over their whole relationship. Three common ways: historical CLV = gross profit per customer so far, by cohort; shop formula = average order value × orders per year × gross margin % × expected years as a customer; subscription formula = monthly revenue per customer × gross margin % / monthly churn rate. With 50 a month, 80% margin and 2.5% churn: 50 × 0.8 / 0.025 = 1,600. Use margin, not revenue, or CLV overstates what you can spend to win a customer.

CLV sets the ceiling on acquisition cost: if a customer is worth 1,600 in profit, spending 2,000 to win one loses money however fast you grow.

How do the formulas compare?

MethodFormulaExampleCLV
Historical (24 months)gross profit of the cohort / customers in the cohort384,000 / 600640 so far
ShopAOV × orders per year × margin % × years80 × 3 × 40% × 4384
SubscriptionARPA per month × margin % / monthly churn50 × 80% / 2.5%1,600
Three ways to estimate CLV

Historical CLV is a fact but grows as the cohort ages; formula CLV is an estimate for the whole life.

  • 2025 H1 cohort
  • 2025 H2 cohort
02004006008003 months6 months12 months18 months24 months
Cumulative gross profit per customer by cohort age (historical CLV)

The later cohort earns more at every age: CLV is improving.

What is the DAX?

Customers = DISTINCTCOUNT ( Sales[Customer ID] )
Gross Profit = SUM ( Sales[Amount] ) - SUM ( Sales[Cost] )

-- historical: profit per customer so far
Historical CLV = DIVIDE ( [Gross Profit], [Customers] )

-- shop formula, with expected lifespan as an input (or 1 / annual churn)
AOV = DIVIDE ( SUM ( Sales[Amount] ), DISTINCTCOUNT ( Sales[Order ID] ) )
Orders per Customer per Year =
DIVIDE ( DISTINCTCOUNT ( Sales[Order ID] ), [Customers] ) / DIVIDE ( COUNTROWS ( 'Date' ), 365 )
Gross Margin % = DIVIDE ( [Gross Profit], SUM ( Sales[Amount] ) )
Expected Years = 4

Shop CLV = [AOV] * [Orders per Customer per Year] * [Gross Margin %] * [Expected Years]

-- subscription formula
ARPA = DIVIDE ( [MRR], [Active Customers] )
Subscription CLV = DIVIDE ( [ARPA] * [Gross Margin %], [Monthly Churn Rate] )

[MRR], [Active Customers] and [Monthly Churn Rate] come from the MRR and churn rate posts. Expected Years can come from churn: with 22% annual churn, expected lifetime is about 1 / 0.22 = 4.5 years. For historical CLV by cohort, put the cohort month on rows and months since first purchase on columns, as in cohort retention, with a running total of gross profit per customer.

Which breakdowns matter?

  • By acquisition channel: referral customers often have a higher CLV than paid-social ones; compare with each channel's acquisition cost.
  • By first product or plan: what customers start with predicts what they are worth.
  • By cohort: is CLV improving?

The ratio of the two is LTV to CAC.

What goes wrong?

  • Revenue instead of margin. A 1,600 revenue CLV at 30% margin is 480 of profit.
  • Churn from a young base. Early churn is often higher; a churn rate from the first months understates lifetime, from loyal years overstates it.
  • No discounting. Profit in five years is worth less than today; for long lifetimes, discount future margin.
  • Averages over very different customers. A few large accounts lift the mean; segment first.

Where can you check this?

Where do you start?

Calculate historical CLV for each half-year cohort at 6, 12 and 24 months: it needs no assumptions. Net Promoter Score shows how customers feel about staying.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.