Customer retention & LTV by cohort

Upload a CSV or Excel file of orders, logins or events. Customers are grouped by their first month, week or quarter, and you get a retention heatmap, a retention curve, and cohort revenue and LTV. Everything runs in your browser.

No file loaded

Load data to start

Open a CSV or Excel file (or drop it on the box above), or click Sample data to see an example.

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

Metrics explained

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_idcustomer_idorder_dateamount
1001C-00422025-01-0459.90
1002C-01082025-01-0624.50
1003C-00422025-02-1131.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.

Related tools