Sub topic 10
Reading cohort retention tables
This chapter assumes you know the funnel stages, can compute churn and retention rates (covered in the retention chapter), and are comfortable with percentages. Python examples use only the standard library.
Why a single churn number is not enough
A blended churn rate averages every customer together. Suppose monthly churn is 5% this quarter. That could mean all customers leave slowly and evenly. It could also mean last spring's customers are stable while the customers you acquired this month, through a new ad channel, are leaving fast. The average hides the difference.
A cohort is a group of customers who share a starting event in the same period, such as "signed up in March" or "first purchase in Q2". A cohort retention table follows each cohort over time and shows what share of it is still active at each age. It answers questions the blended number cannot:
- Are newer customers retained better or worse than older ones?
- At what age do customers usually leave?
- Did a product change, price change, or campaign shift retention?
Anatomy of a retention table
Each row is one cohort. Each column is the cohort's age, counted in periods since the starting event. Each cell is the percentage of the cohort still active at that age.
| Cohort (signup month) | Size | Month 0 | Month 1 | Month 2 | Month 3 | Month 4 |
|---|---|---|---|---|---|---|
| Jan | 200 | 100% | 62% | 51% | 47% | 45% |
| Feb | 220 | 100% | 64% | 52% | 48% | 46% |
| Mar | 180 | 100% | 58% | 44% | 38% | |
| Apr | 250 | 100% | 66% | 55% | ||
| May | 210 | 100% | 67% |
Three rules for reading it:
- Month 0 is always 100%. It is the cohort at its starting event. The first informative column is Month 1.
- The table is a triangle. Recent cohorts have not had time to reach later ages. Empty cells mean "not yet observed", not "zero". Never fill them with 0%.
- Columns use age, not calendar date. Month 2 for the January cohort is March. Month 2 for the February cohort is April. Aligning by age lets you compare cohorts fairly.
Three ways to read the table
Read across a row: one cohort's life
Reading the January row left to right gives its retention curve. The steepest drop is Month 0 to Month 1 (100% to 62%), then the curve flattens: 51%, 47%, 45%. This shape is typical. Many customers leave early because they never became properly active. The rest settle into stable habits.
The flattening matters. If the curve levels off at some value above zero, you have a core of durable customers. If it keeps falling at the same rate, you have a leak rather than a base.
Read down a column: comparing cohorts at the same age
Look at the Month 1 column: 62%, 64%, 58%, 66%, 67%. March is the weak one. At Month 2 the same pattern holds (51%, 52%, 44%, 55%). Comparing at equal age removes timing effects and isolates the cohort's quality.
The question to ask is what was different about March. Possible causes include a discount campaign that attracted bargain hunters, a new low-quality traffic source, a product outage, or a change in onboarding. The table tells you where to look. It does not tell you why.
Read along a diagonal: calendar effects
A diagonal runs through cells that share a calendar month. In the table above, the Month 2 cell for January, the Month 1 cell for February, and the Month 0 cell for March all fall in March. If every cohort shows a dip in the same calendar month, the cause is probably external or company-wide, such as an outage, a price increase, or seasonality. If only one row dips, the cause is specific to that cohort.
Building a cohort table from raw data
You need, for each customer, a start date and a list of dates when they were active (or a churn date). The key steps are assigning each customer to a cohort, computing their age at each activity, and counting distinct customers per cohort and age.
from collections import defaultdict
from datetime import date
# (customer_id, signup_date, [dates the customer was active])
customers = [
("a", date(2026, 1, 5), [date(2026, 1, 5), date(2026, 2, 10), date(2026, 3, 3)]),
("b", date(2026, 1, 20), [date(2026, 1, 20), date(2026, 2, 2)]),
("c", date(2026, 1, 28), [date(2026, 1, 28)]),
("d", date(2026, 2, 3), [date(2026, 2, 3), date(2026, 3, 9), date(2026, 4, 1)]),
("e", date(2026, 2, 14), [date(2026, 2, 14), date(2026, 3, 1)]),
]
last_observed = date(2026, 4, 30)
def month_index(d):
return d.year * 12 + d.month
cohort_size = defaultdict(int)
active = defaultdict(set) # (cohort, age) -> set of customer ids
for cid, signup, activity in customers:
cohort = (signup.year, signup.month)
cohort_size[cohort] += 1
for d in activity:
age = month_index(d) - month_index(signup)
active[(cohort, age)].add(cid)
for cohort in sorted(cohort_size):
max_age = month_index(last_observed) - (cohort[0] * 12 + cohort[1])
cells = []
for age in range(max_age + 1):
share = len(active[(cohort, age)]) / cohort_size[cohort]
cells.append(f"{share:.0%}")
print(f"{cohort[0]}-{cohort[1]:02d} (n={cohort_size[cohort]}):", " ".join(cells))Running it prints:
2026-01 (n=3): 100% 67% 33% 0%
2026-02 (n=2): 100% 100% 50%Notice how the code sets max_age from the last observed date. That is what keeps unobserved cells out of the table, which is the triangle rule from earlier. Note also that this table counts a customer as retained in a month if they were active at least once in that month. This is a "bracket" definition. Customer "a" was active in months 0, 1 and 2, and it is the only January customer counted at Month 2.
Choosing definitions that fit your business
The same data produces different tables depending on three choices. Write them down and keep them fixed, or comparisons over time are meaningless.
- Cohort starting event. For a subscription product, it is usually the first payment. For e-commerce, the first order. For a free product, an activation event such as "created first project" is often more useful than signup.
- Retention event. Subscription: still paying. E-commerce: placed another order. App: opened it or used a key feature. A weak event, such as "logged in", can make retention look healthy while customers get no value.
- Cohort period. Weekly cohorts suit fast products with high volume. Monthly cohorts suit most subscription businesses. Quarterly or annual cohorts suit long contracts. Very small cohorts make noisy rows, so widen the period if a row has only a few dozen customers.
Two retention definitions
| Definition | A customer counts at age N if... | Typical use |
|---|---|---|
| Classic (point in time) | They are active exactly at age N | Subscriptions, where the customer is either paying or not |
| Bracket (any activity in the period) | They were active at least once in period N | E-commerce and apps with irregular use |
Classic retention never rises, because a cancelled subscriber is gone. Bracket retention can rise, because a customer who skipped Month 2 can return in Month 3. This is called reactivation, and a rising cell in a bracket table is normal rather than an error.
Revenue cohorts
A logo (customer count) cohort table says how many customers stay. A revenue cohort table divides the cohort's revenue at age N by its Month 0 revenue. It adds the effect of upgrades, downgrades, and expansion.
Revenue retention above 100% means the surviving customers spend enough more to offset those who left. This is called net revenue retention. A cohort can lose 30% of its customers and still show 105% revenue retention if the remainder upgrade.
Read the two tables together:
| Logo retention | Revenue retention | Likely story |
|---|---|---|
| Falling | Falling | Plain churn, no expansion |
| Falling | Flat or rising | Small customers leave, larger ones expand |
| Flat | Falling | Customers stay but downgrade or get discounts |
| Flat | Rising | Healthy expansion on a stable base |
Linking cohorts to marketing decisions
Cohort tables become marketing tools when you split cohorts by acquisition source, using the UTM tags from earlier chapters. Instead of one January cohort, you have a January-organic cohort, a January-paid-social cohort, and so on.
This can overturn a conclusion drawn from the funnel alone. A channel with a low cost per lead may bring customers who leave after one month. A more expensive channel may bring customers with a flat curve at 60%. The second channel can have the better LTV:CAC ratio, since LTV depends on how long customers stay.
You can also use the flattened level of the curve to estimate churn for the unit economics formulas. If a cohort loses about 4% of its remaining customers each month once past the early drop, then monthly churn of 0.04 is a reasonable input to LTV. Use the later part of the curve, not the Month 1 drop, or you will understate lifetime value.
flowchart TDEdge cases and common errors
- Reading the triangle's edge as a trend. The last cell in each row comes from a partly finished period. If the final month is incomplete, the cell undercounts activity. Exclude it or label it provisional.
- Tiny cohorts. With 20 customers, one person is 5 percentage points. Do not call a 5-point difference between two small cohorts a real change. Check cohort size before you interpret.
- Mixing cohort definitions. Changing the starting event halfway through the year (signup to first payment, for example) breaks comparison with older rows. Rebuild history under the new definition.
- Survivorship in averages. An "average retention" row at the bottom of the table mixes cohorts that have different sizes and different numbers of observed cells. Weight by cohort size, and only average cells that every included cohort has reached.
- Confusing age with date. Putting calendar months on the column axis makes the table look like a time series and hides the age comparison.
- Ignoring the mix. A cohort improvement may come from a change in who you acquired, not from a better product. Split by source before crediting the product team.
Exercise
The table below uses classic retention for a subscription product. (a) Which cohort looks weakest at Month 1, and what should you check before concluding the product got worse? (b) The Month 3 cell for the Jun cohort is empty. What does the empty cell mean, and why must you not enter 0%? | Cohort | Size | Month 0 | Month 1 | Month 2 | Month 3 | |---|---|---|---|---|---| | Apr | 400 | 100% | 70% | 61% | 58% | | May | 380 | 100% | 71% | 62% | 59% | | Jun | 120 | 100% | 55% | 46% | |
Show answer
(a) June is weakest at Month 1 (55% versus 70% and 71%). Before blaming the product, check whether the cohort's acquisition mix changed, for example a discount campaign or a new traffic source, and note that June has only 120 customers, so it is noisier. Splitting June by UTM source would show whether one channel drives the drop. (b) The empty cell means June customers have not yet reached age 3 months, so that value is not observed. Entering 0% would claim that every customer left, which would distort averages and charts.
Exercise
A cohort starts with 500 customers and 1,000 in monthly revenue per 10 customers (so 50,000 total). At Month 6, 350 customers remain and they generate 54,000 in revenue. Compute logo retention and revenue retention for Month 6, and say what the combination suggests.
Show answer
Logo retention is 350 / 500 = 70%. Revenue retention is 54,000 / 50,000 = 108%. Customers are leaving, but the remaining ones spend enough more (through upgrades or added usage) to push revenue above its starting level. This points to expansion among surviving customers, so check whether the lost customers were the small ones.