What is cohort analysis?
Cohort analysis groups customers by when they started, usually the month of their first purchase, sign-up or login. It then follows each group over the periods that come after. Instead of one blended retention number, you see whether customers who joined in March stay longer than those who joined in January. That makes it the standard way to judge product changes, marketing channels and pricing over time.
The result is a cohort table: one row per cohort, one column per period since joining (period 0, 1, 2…). Each cell shows the metric for that cohort in that period. Recent cohorts have fewer periods to measure, so the table forms a triangle.
How to read the heatmap
- Read across a row to see how one cohort decays over time.
- Read down a column to compare cohorts at the same age. Darker cells lower down mean newer customers retain better.
- Read the average row (weighted by cohort size) for your typical retention curve. A curve that flattens means you have found a loyal core.
Metrics explained
- Retention %: customers active in period N ÷ cohort size.
- Active customers: the count behind the retention percentage.
- Revenue: total amount the cohort spent in period N.
- LTV: cumulative revenue up to period N ÷ cohort size, which is average lifetime value per customer so far.
What data format do I need?
One row per order, visit or event. You need a customer ID and a date. An amount column is optional and unlocks the revenue and LTV views. Column names don't matter: the tool guesses them and you can change the mapping.
| order_id | customer_id | order_date | amount |
|---|---|---|---|
| 1001 | C-0042 | 2025-01-04 | 59.90 |
| 1002 | C-0108 | 2025-01-06 | 24.50 |
| 1003 | C-0042 | 2025-02-11 | 31.00 |
Dates can be YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY or real Excel dates. Auto-detect works out day-first or month-first from your data, and you can force a format if needed. Need test data? Generate some with the Dummy Data Creator.
Frequently asked questions
What is cohort analysis?
Cohort analysis groups customers by when they started (for example, the month of their first purchase) and tracks what each group does in the periods that follow. It shows whether retention and revenue are improving for newer customers, which a single overall average hides.
What data do I need for a cohort analysis?
One row per order, visit or event, with at least a customer or user ID and a date. An optional amount column adds cohort revenue and lifetime value (LTV). Each customer's cohort is the period of their first row.
How is cohort retention calculated?
Retention in period N is the number of customers from a cohort who were active in the Nth period after their first period, divided by the cohort's size. Period 0 is always 100% because every customer is active in the period they joined.
Why are some cells in the cohort table empty?
Recent cohorts have not existed long enough to be measured in later periods. Those cells are left blank rather than shown as 0%, which is why a cohort table forms a triangle.
Is my data uploaded anywhere?
No. The file is read and analysed entirely in your browser. Nothing is sent to a server.