Cohort Retention Calculator
Cohort Retention Calculator
Activity data
user_id,signup_month,active_month, months as YYYY-MM.Wide format, one row per cohort:
cohort,cohort_size,m1,m2,m3,…, each m{N} the number still active N months after signup.
Leave a cell blank if the cohort has not reached that month yet; write 0 only if nobody came back.
The format is detected from the header row.
Classic: Amplitude calls it "Return On", Mixpanel "On". Each cell divides by the cohort's size.
Optional, long format only. Leave blank to use the last month that appears in the data. A month after it is not yet observed, so it is left blank rather than counted as 0%.
Tap, click or tab to a cell for its count and 95% interval.
How to use the Cohort Retention Calculator
Export one of two shapes
Long format is one row per user per month they were active: user_id,signup_month,active_month. Product analytics tools and a database query both produce it easily. Wide format is one row per cohort with counts already made, cohort,cohort_size,m1,m2,…. Long format can do everything here; wide format can do classic retention only, because the per-user detail is gone.
Paste or drop the CSV
The first row must be the header. Rows the calculator cannot read (a blank user, a month like 2024-13, activity before the signup month) are counted and reported, not silently used. If your export stops at a known month, enter it under "Data runs through".
Pick the definition
Classic counts a user in month N only if they were active in that month. Rolling counts them if they were active in month N or any later month. Range counts them if they were active at least once inside a span such as months 2–3. Say which one you used when you share the numbers; the same data gives different curves.
Read the pooled row and the intervals
The bottom row pools the cohorts that reached each month. The cards above the table show pooled M1, M3, M6 and M12 with a 95% interval and the number of cohorts behind each figure. Download the table as CSV, including the pooled row, to keep or share it.
Three ways to count a retained user, and the denominator behind each cell
Cohort retention groups users by the month they signed up and asks what share of each group is still around N months later. Because every cohort is measured against itself, a big signup month cannot flatter the figure the way a total-active-users count can. The answer still depends on two choices that are easy to leave unstated: what "still around" means, and which users are in the denominator.
Classic, rolling and range retention
Mixpanel's retention report calls the first two On and On or After; Amplitude calls them Return On and Return On or After. Classic (On) counts a user in month 3 only if they were active in month 3. Rolling (On or After) counts them if they came back in month 3 or at any time after it, so a cohort's rolling curve can never rise, and it always sits on or above its classic curve. Mixpanel's custom brackets give range retention: active at least once inside a span of months, which suits products used every few weeks rather than every month. In the sample data, classic and rolling differ wherever a user skipped a month and came back.
The denominator: cohort size, and only the cohorts that got there
Each cell divides by the number of users who signed up in that cohort's month. A cohort that signed up in March cannot have a month-6 figure until September has been recorded, so that cell is blank, not zero. The pooled row then adds up retained users across the cohorts that reached each column and divides by their combined size, which is how Amplitude's "All Users" row works: its documentation says incomplete cells are left out of the total. Counting those cells as 0% drags every later column down. Averaging the cohort percentages instead of pooling the users would let a cohort of a few dozen users count as much as one a hundred times its size. Mixpanel documents a third option, a weighted average that differs from both; this calculator pools.
When a curve goes up
A retention curve that rises at later months is sometimes real: users who left can come back. Amplitude's documentation describes a second cause, an artefact: when the later columns leave out users who have not reached them yet, the line can drift upward even though true retention is falling. Check the cohort count under each pooled figure before reading anything into a rise.
Frequently Asked Questions
-
Two CSV shapes, detected from the header. Long format:
user_id,signup_month,active_month, months asYYYY-MM(a day part such as 2024-01-15 is ignored), one row per user per active month. Wide format:cohort,cohort_size,m1,m2,…, or anm0column in place ofcohort_size. A wide file with neither is refused: the largest count in a row is not the cohort size. -
Classic shows how many come back in a given month, which suits products people use every month. Rolling shows how many have not yet left for good, which is closer to the inverse of churn. Range suits irregular use: a tool people open every six weeks will look worse on classic monthly retention than it is. Pick one before looking at the numbers and name it when you report them.
-
The cohort size is everyone with that signup month. M0 counts those with an active row in the signup month itself. If your export records signup but not activity in that month, M0 comes out below 100%, and that is worth knowing about your data rather than hiding. In wide format M0 is the cohort size, or the
m0column if you supply one. -
Tap, click or tab to any cell for its 95% Wilson interval, the method the NIST/SEMATECH e-Handbook gives for a proportion. With 4 of 12 users retained the interval runs from about 14% to 61%, so a difference between two small cohorts usually says very little. The pooled figures have narrower intervals because they count more users. Intervals are shown only for user counts, not for revenue in wide format.
-
Decide before you export. "Logged in" is easy to record and generous. "Did the thing the product is for" (sent a message, created a document, placed an order) is harder to record and closer to the truth. The calculator counts whatever rows you give it, so write the definition next to any table you share: two definitions on the same users give different curves.
-
Yes, in wide format: put the cohort's starting MRR in
cohort_sizeand the MRR still coming from that cohort in eachm{N}. Cells can then pass 100%, which is net revenue retention by cohort. The pooled row weights cohorts by their starting MRR. For one month of MRR movements, the SaaS MRR / ARR / Churn Calculator is the better fit. -
In long format a missing row simply means that user was not active that month, which is the point of the exercise. In wide format, leave a cell blank when the cohort has not reached that month yet and write
0only when nobody came back; a blank is left out of the pooled row and a 0 is counted. -
No. The file is read with your browser's file reader and the table is computed on the page; the calculator makes no network request with your data. The CSV download is built in the browser too.
Method & sources
How it computes
Cell = users retained ÷ cohort size. Classic: active in month N; rolling: in month N or later; range: at least once in a span of months. A cell the data has not reached is blank, not 0. Pooled row = Σ retained ÷ Σ cohort size over the cohorts that reached the column. 95% Wilson intervals (NIST/SEMATECH e-Handbook §7.2.4.1) for user counts.
What this tool implements
- Retention definitions follow the vendors that document them: classic = Mixpanel "On" / Amplitude "Return On"; rolling = Mixpanel "On or After" / Amplitude "Return On or After"; range = Mixpanel custom brackets. The page names the definition in use.
- Denominator: every cell divides by the number of users who signed up in that cohort month. A cell is observable only when the data reaches the end of its month (or of its bracket); otherwise it is blank and left out of every total.
- All-cohorts figures are pooled (Σ retained ÷ Σ size over cohorts that reached the column), matching Amplitude's "All Users" row, which its documentation says excludes incomplete data. Mixpanel's weighted average is a different figure; the page says so.
- Intervals are the Wilson score interval, pinned to NIST §7.2.4.1's example (26 of 200 at z = 1.645, lower limit 0.09577). They are shown only for user counts, not for revenue in wide format.
- Tested on a hand-built cohort table (three cohorts, gaps, incomplete months) for all three definitions, plus wide-format input with blank (unobserved) and zero cells.
- Corrected 2026-11-03: unobserved months shown and averaged as 0%; unweighted mean of cohort rates; "worst cohort" chosen among cohorts that had not reached the month; Size column showing M0 actives; wide-format cohort size guessed from the largest count; unsourced retention benchmarks (cut).
Sources
- Mixpanel Docs. Retention: Measure user engagement over time — retention criteria "On" and "On or After", custom brackets, weighted average, read 2026-11-03: https://docs.mixpanel.com/docs/reports/retention
- Amplitude Docs. Retention Analysis: calculation — Return On, Return On or After, overall (All Users) retention excluding incomplete data, read 2026-11-03: https://amplitude.com/docs/analytics/charts/retention-analysis/re…
- NIST/SEMATECH e-Handbook of Statistical Methods, §7.2.4.1 Confidence intervals (Wilson method for a proportion), read 2026-11-03: https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm
What can make this go out of date
- None at runtime; the CSV is read and computed in the browser and is not uploaded.