Startups
Cohort Analysis: How to Read a Retention Curve
Cohort analysis explained: build a cohort retention table, read retention curves, a worked example, SQL, benchmarks for good retention and common mistakes.
Cohort analysis groups users or customers by when they started, usually by signup or first-purchase month, and tracks what share of each group is still active in the months that follow. Plotting that share over time gives a retention curve. The single most important thing to look for is whether the curve flattens: a curve that drops at first and then levels off means a core group of people keeps getting value, a classic sign of product-market fit; a curve that keeps falling toward zero means the product isn't retaining anyone for long, no matter how fast signups grow. Comparing newer cohorts with older ones shows whether the product is getting better at keeping people.
This guide explains how cohort analysis works, how to build a cohort retention table, how to read retention curves, walks through a cohort analysis example with numbers, shows the SQL, gives benchmarks for good retention, and lists the mistakes that make cohort charts misleading.
What Is Cohort Analysis?
A cohort is a group of people who share a starting characteristic. In product and business analytics, the most common cohort is acquisition time: everyone who signed up in January is the January cohort, February's signups are the February cohort, and so on.
Cohort analysis follows each group over time and measures a behaviour, such as:
- User retention: the share of the cohort that's still active (logged in, used a feature, made a purchase).
- Revenue retention: how much of the cohort's starting revenue remains, including expansions and downgrades.
- Repeat purchases: for e-commerce, the share that buys again.
The reason to use cohorts instead of overall averages is that totals hide what's happening. A product with fast signup growth can show rising monthly active users even while most new users leave within weeks, because new arrivals mask the losses. Cohorts separate "how many people arrive" from "how many stay".
How to Build a Cohort Retention Table
- Pick the cohort definition: usually the month (or week) of signup or first purchase.
- Define "active": the action that shows real value, such as sending a message, completing a lesson, or making a purchase. Logging in is often too weak.
- Pick the period: weeks for fast-moving consumer apps, months for most SaaS and subscription products.
- Count each cohort's starting size (period 0).
- For each later period, count how many members of the cohort were active.
- Divide by the starting size to get each period's cohort retention rate.
The result is a triangle-shaped table: rows are cohorts, columns are periods since they started, and newer cohorts have fewer columns because less time has passed.
A Cohort Analysis Example
Here's a cohort analysis example for a subscription app, with monthly cohorts and "active" meaning at least one session in the month (illustrative numbers):
| Cohort (signup month) | Users | Month 1 | Month 2 | Month 3 | Month 4 | Month 5 | Month 6 |
|---|---|---|---|---|---|---|---|
| January | 1,000 | 52% | 41% | 36% | 34% | 33% | 32% |
| February | 1,200 | 55% | 44% | 38% | 36% | 35% | |
| March | 1,500 | 58% | 47% | 42% | 40% | ||
| April | 1,400 | 61% | 50% | 45% | |||
| May | 1,800 | 63% | 52% | ||||
| June | 2,000 | 64% |
How to read it:
- Read across a row to see one cohort's journey. January loses almost half its users in month one, then the decline slows: 36% in month 3, 32% in month 6. The curve is flattening.
- Read down a column to compare cohorts at the same age. Month-1 retention rose from 52% (January) to 64% (June), and month-3 retention from 36% to 45%. Something the team changed, such as onboarding, is working.
- Look at the bottom-right edge for the newest data, which is based on the fewest months and is the noisiest.
A useful summary metric: if January's curve stays near 32%, about a third of each cohort becomes long-term users. That number, multiplied by acquisition volume, drives long-term growth.
How to Read a Retention Curve
A retention curve plots one cohort's retention rate against time since it started. Three shapes tell three different stories:
- Declining to zero: retention keeps falling month after month. The product isn't creating lasting value, or it's a one-time-use product. Growth spent here leaks away.
- Flattening: a steep early drop, then a plateau. The plateau is your core audience. This is the shape you want, and its height tells you how big the core is.
- Smiling: retention dips and then rises again as some users return, often because the product improves, network effects grow or new use cases appear. A smile curve is rare and very strong.
When reading curves:
- Early drop-off is normal. Many users try a product once. Focus on where the curve levels out and whether newer cohorts level out higher.
- Compare like with like. Cohorts acquired through different channels or campaigns can behave very differently.
- Watch the trend across cohorts: if newer curves sit above older ones, the product is improving.
- Be careful with seasonal cohorts: a holiday cohort full of gift buyers or a promotion-driven cohort can make retention look worse or better than usual.
Cohort Retention Rate vs Churn Rate
Retention and churn are two sides of the same measurement: if 40% of a cohort is active in month 3, then 60% has churned by then. Overall monthly churn rate (customers lost this month divided by customers at the start) blends cohorts of different ages, which is why it can hide problems that cohort tables reveal. Our guide to churn rate covers how to calculate and reduce it.
Revenue Cohorts and Net Revenue Retention
For subscription businesses, cohorts by revenue often matter more than by users. A revenue cohort tracks the starting monthly recurring revenue of a cohort and how it changes as customers churn, downgrade or expand. If expansion from the customers who stay outweighs losses from those who leave, a revenue cohort can exceed 100% of its starting value. That's net revenue retention, explained in detail in our guide to net revenue retention.
What Is Good Retention?
Benchmarks vary by product type. Lenny Rachitsky surveyed experienced growth leaders on what counts as good and great user retention at six months:
| Product type | Good | Great |
|---|---|---|
| Consumer social | ~25% | ~45% |
| Consumer transactional | ~30% | ~50% |
| Consumer SaaS | ~40% | ~70% |
| SMB and mid-market SaaS | ~60% | ~80% |
| Enterprise SaaS | ~70% | ~90% |
Treat these as rough guides, not targets: definitions of "active" differ, and early-stage products with low acquisition costs can be healthy below them. What matters most is that your curves flatten and that newer cohorts improve. Flattening retention curves are one of the clearest signs of product-market fit.
Cohort Retention Analysis SQL
You can build a cohort table with SQL from an events table that has user_id and event_time. This example uses PostgreSQL date functions; adjust for your database:
WITH first_seen AS (
SELECT user_id, date_trunc('month', MIN(event_time)) AS cohort_month
FROM events
GROUP BY user_id
),
activity AS (
SELECT DISTINCT e.user_id,
f.cohort_month,
date_trunc('month', e.event_time) AS active_month
FROM events e
JOIN first_seen f ON f.user_id = e.user_id
),
indexed AS (
SELECT cohort_month,
(EXTRACT(YEAR FROM age(active_month, cohort_month)) * 12
+ EXTRACT(MONTH FROM age(active_month, cohort_month)))::int AS month_number,
user_id
FROM activity
)
SELECT cohort_month,
month_number,
COUNT(DISTINCT user_id) AS active_users,
ROUND(100.0 * COUNT(DISTINCT user_id)
/ FIRST_VALUE(COUNT(DISTINCT user_id)) OVER (
PARTITION BY cohort_month ORDER BY month_number), 1) AS retention_pct
FROM indexed
GROUP BY cohort_month, month_number
ORDER BY cohort_month, month_number;The query finds each user's first month (their cohort), lists the months they were active, numbers those months from 0, and divides each month's active count by the cohort's month-0 size. Pivot the result in a spreadsheet or BI tool to get the familiar triangle. Product analytics tools such as Mixpanel and Amplitude build the same table without SQL.
Other Ways to Cut Cohorts
Acquisition month is only the start. Useful segmentations:
- By acquisition channel: paid ads vs organic vs referrals often retain very differently.
- By plan or price: annual vs monthly, free vs paid.
- By first action: users who complete a key setup step in week one vs those who don't, which often reveals your "aha moment".
- By customer size or industry for B2B products.
Cohort analysis vs segmentation: segmentation splits users by attributes at a point in time; cohort analysis follows groups over time. Combining them, for example retention curves by channel, is where many insights come from.
How to Improve a Retention Curve
Cohort analysis shows where people leave; improving the curve means acting on it:
- Fix onboarding if most of the drop happens in the first week: shorten the path to the first moment of real value.
- Find the "aha" action that retained users share, by comparing cohorts who did it early with those who didn't, then guide new users toward it.
- Re-engage at the right moment with reminders or emails tied to the product's natural rhythm, not generic messages.
- Target better-fit customers if some acquisition channels bring users who never stick.
- Raise the plateau with features that deepen ongoing use, such as integrations, collaboration or saved work that makes the product more valuable over time.
Measure every change on new cohorts and compare their curves with older ones; that's the only way to know whether it worked.
Common Mistakes
- Defining "active" too loosely, such as counting any login, which inflates retention.
- Reading the newest cohorts' early data as if it were final.
- Mixing very different users in one cohort (for example, a viral spike or a big promotion).
- Looking only at averages instead of the shape of each curve.
- Changing definitions between reports, which makes cohorts impossible to compare.
- Ignoring revenue cohorts in subscription businesses, where expansion can matter more than user counts.
FAQ
What is cohort analysis?
Cohort analysis groups users or customers by a shared starting point, usually signup or first-purchase month, and tracks a behaviour such as retention over time, so you can see how well each group sticks with a product and whether newer groups do better.
What is a retention curve?
A retention curve plots the share of a cohort that's still active against time since it started. A curve that flattens shows a core of retained users; a curve that keeps falling toward zero shows the product isn't keeping people.
How do you calculate cohort retention rate?
Divide the number of cohort members who are active in a given period by the cohort's starting size. For example, 360 active users in month 3 from a cohort of 1,000 is a 36% month-3 retention rate.
What is a good retention rate?
It depends on the product. One widely cited survey suggests good six-month user retention of around 25% for consumer social apps, 40% for consumer SaaS and 60–70% for business SaaS, with great products well above that.
Can I do cohort analysis in Excel or SQL?
Yes. In SQL, find each user's first month, count active users by cohort and month number, and divide by the cohort size. In a spreadsheet, pivot that data into a table with cohorts as rows and months as columns.