Sub topic 8
Calculating Customer Lifetime Value
Customer lifetime value (LTV) estimates the total gross profit a typical customer produces before they leave. This chapter builds LTV from three inputs: revenue per account, gross margin, and churn. It then shows where the simple formula breaks.
Prerequisites assumed: you can compute CAC, you know what ARPA (average revenue per account) and gross margin mean, and you can calculate monthly churn. Python reading is optional but helpful.
What LTV measures
LTV answers one question: over the whole relationship, how much gross profit does one acquired customer bring in? It is the "value" side of the comparison with CAC, which is the "cost" side. The next chapter divides one by the other.
Three choices define a usable LTV:
- Revenue basis. Use average revenue per account per period (ARPA), not total company revenue.
- Margin basis. Use gross profit, not revenue. A dollar of revenue that costs 20 cents to deliver is worth 80 cents toward paying back acquisition.
- Lifetime. Use the expected number of periods a customer stays, which comes from churn.
The basic formula
With constant monthly churn, the expected lifetime in months is 1 divided by the churn rate. At 4% monthly churn, the expected lifetime is 1 / 0.04 = 25 months.
The formula is:
LTV = ARPA × gross margin × (1 / monthly churn)
The units must match. If ARPA is monthly, churn must be monthly, and the lifetime comes out in months.
def ltv(arpa_monthly, gross_margin, monthly_churn):
lifetime_months = 1 / monthly_churn
return arpa_monthly * gross_margin * lifetime_months
c = 500.0
v = ltv(100, 0.80, 0.04) # 2000.0
print(v)
print(v / c) # 4.0
print(c / (100 * 0.80)) # 6.25Here a customer pays $100 per month, 80% of it is gross profit, and the customer stays 25 months on average. That gives $100 × 0.80 × 25 = $2,000. Against a $500 CAC, the LTV:CAC ratio is 4.0 and the payback is 6.25 months. Both of those are covered in later chapters. For now, note that they use the same inputs.
Why margin matters
Skipping gross margin is the most common LTV error. Using revenue instead of gross profit in the example gives $100 × 25 = $2,500, which is 25% too high. The ratio would then read 5.0 instead of 4.0.
Gross margin should include the costs of serving the customer: hosting, payment processing, support, and onboarding staff where those scale with customers. Check that your definition matches what you used for payback, so the two metrics stay comparable.
Sensitivity to churn
Because lifetime is 1 / churn, small churn changes have large effects, especially at low churn.
| Monthly churn | Lifetime (months) | LTV at $100 ARPA, 80% margin |
|---|---|---|
| 8% | 12.5 | $1,000 |
| 5% | 20 | $1,600 |
| 4% | 25 | $2,000 |
| 2% | 50 | $4,000 |
| 1% | 100 | $8,000 |
Going from 2% to 1% churn doubles LTV, but the lifetime of 100 months is more than eight years. A startup with two years of history has no evidence for that. The formula produces a number, but the data cannot support it.
Annual and monthly units
If you work in years, convert consistently. Annual churn is not 12 times monthly churn. A 4% monthly churn compounds to an annual churn of 1 − 0.96^12, which is about 38.8%, not 48%.
monthly_churn = 0.04
annual_churn = 1 - (1 - monthly_churn) ** 12
print(round(annual_churn, 3)) # 0.387Pick one period and stay with it. Mixing a monthly ARPA with an annual churn rate understates or overstates LTV by a large factor.
Adding expansion revenue
The basic formula assumes each customer pays the same amount every month. Real accounts often upgrade (expansion) or downgrade (contraction). Two common treatments:
- Keep ARPA flat. Simple and conservative when expansion is small.
- Use net revenue retention. If surviving customers grow their spend faster than customers leave, revenue from a cohort can grow. In that case, 1 / churn can overstate or break down entirely, because the effective decay is negative.
If net revenue retention is above 100%, the simple formula has no finite answer. In that situation use a fixed horizon, such as 3 or 5 years, and sum the cohort's gross profit over that window.
Discounting and caps
A dollar received in year four is worth less than a dollar today. Two practical adjustments make LTV more defensible:
- Cap the lifetime. Limit the lifetime to a fixed number of months, such as 36 or 60.
- Discount future profit. Divide each month's gross profit by (1 + monthly discount rate)^month.
def capped_ltv(arpa_monthly, gross_margin, monthly_churn,
horizon_months=36, monthly_discount=0.0):
total = 0.0
survival = 1.0
for m in range(horizon_months):
total += survival * arpa_monthly * gross_margin / (1 + monthly_discount) ** m
survival *= (1 - monthly_churn)
return total
print(round(capped_ltv(100, 0.80, 0.04), 2)) # 1557.16
print(round(capped_ltv(100, 0.80, 0.04, monthly_discount=0.01), 2)) # 1390.0The 36-month cap reduces LTV from $2,000 to about $1,557. Adding a 1% monthly discount rate lowers it further. These are not "more correct" in an absolute sense, but they are harder to inflate and they match the time horizon over which you can actually observe customers.
Retention-based LTV from cohorts
The 1 / churn shortcut assumes the same churn rate every month. In practice, many products lose a lot of users early and then stabilize. A cohort table avoids the assumption by using observed retention.
# Share of a cohort still active in each month since signup (month 0 = 100%).
retention = [1.00, 0.80, 0.70, 0.65, 0.62, 0.60]
arpa_monthly = 100
gross_margin = 0.80
# Gross profit per originally acquired customer over the observed months.
observed_ltv = sum(r * arpa_monthly * gross_margin for r in retention)
print(round(observed_ltv, 2)) # 349.6This gives $349.60 of gross profit per acquired customer across the first six months. It is a floor, not a full LTV, because customers still active at month 5 will keep paying. To estimate the tail, you need an assumption about later churn. For example, if retention flattens and later monthly churn is 2%, the remaining 60% of customers contribute roughly 0.60 × $80 / 0.02 = $2,400 per original cohort member at the point where the table ends, less the month-5 revenue already counted. The tail is far larger than the observed part, and it rests on an assumption, so report the two parts separately.
Worked example: two products
Compare two plans with the same CAC of $600.
| Row | Plan A | Plan B |
|---|---|---|
| ARPA per month | $50 | $200 |
| Gross margin | 85% | 70% |
| Monthly churn | 3% | 6% |
| Lifetime (months) | 33.3 | 16.7 |
| LTV | $1,417 | $2,333 |
| LTV:CAC | 2.4 | 3.9 |
Plan B has twice the churn and lower margin, yet it has the higher LTV because its price is four times higher. Plan A still has an acceptable ratio, but a shorter payback matters too. Plan A's payback is $600 / ($50 × 0.85) ≈ 14.1 months, and Plan B's is $600 / ($200 × 0.70) ≈ 4.3 months. Plan B recovers cash much faster, and with 6% churn that matters, since fewer customers remain at month 14.
Common errors
- Using revenue instead of gross profit. Overstates LTV by 1 / margin.
- Mixing periods. Monthly ARPA with annual churn, or the reverse.
- Using blended churn for every segment. Segments differ. Compute LTV per segment where data allows.
- Counting churn from the wrong base. Monthly churn is customers lost in the month divided by customers at the start of the month, not at the end.
- Extrapolating from short history. A few months of low churn from a young cohort often reflects customers who have not yet reached their first renewal.
- Ignoring survivorship. Averaging only customers who stayed overstates lifetime. Include everyone acquired.
Exercise
A product has ARPA of $120 per month, 75% gross margin, and 5% monthly churn. Its CAC is $900. Compute the lifetime in months, the LTV, and the LTV:CAC ratio. Then say what happens to LTV if churn falls to 4%.
Show answer
Lifetime = 1 / 0.05 = 20 months. LTV = 120 × 0.75 × 20 = $1,800. LTV:CAC = 1,800 / 900 = 2.0. At 4% churn, lifetime = 25 months and LTV = 120 × 0.75 × 25 = $2,250, a 25% increase, and the ratio becomes 2.5.
Exercise
A cohort has retention of 100%, 85%, 75%, 70% over months 0 to 3. ARPA is $60 and gross margin is 80%. What is the observed gross profit per acquired customer over those four months? Why is this not the full LTV?
Show answer
Sum of retention = 1.00 + 0.85 + 0.75 + 0.70 = 3.30. Gross profit per month at full retention = 60 × 0.80 = $48. Observed = 3.30 × 48 = $158.40. It is not the full LTV because 70% of the cohort is still active after month 3 and will keep generating profit, which requires an assumption about later churn.