Sub topic 11
Retention Curves: N-day, Unbounded, and Bracket Retention
Prerequisites and the retention question
Assume you understand cohorts, distinct users, product events, and basic SQL. A cohort is a group of users who share a starting event, such as signing up during the same week. Retention measures how many users in that cohort return and perform a defined action later.
A retention curve plots retention against time since the cohort started. The curve helps answer two questions:
- How many users return at a specific point in time?
- Does the product continue to provide value after the initial use?
Define the retained action before calculating anything. For example, “a user performs core_action” is more useful than “a user opens the app,” especially if opening the app does not represent meaningful value.
Three ways to measure retention
The main difference between retention types is the time rule applied to the event.
| Retention type | User counts as retained when | Best use |
|---|---|---|
| N-day retention | The user acts on one exact day, such as day 7 | Products with regular daily use |
| Unbounded retention | The user acts on or after a target day | Products with irregular or occasional use |
| Bracket retention | The user acts during a time range, such as days 7–13 | Products with weekly or periodic use |
N-day retention
N-day retention is the percentage of a cohort that performs the retained action on exactly day N after signup.
For a signup cohort of 1,000 users, if 120 users perform the action exactly seven days after signup, day-7 retention is 12%.
Exact-day measurement can be useful for a daily habit product. However, it can make a healthy product look weak if users return on day 6 or day 8 instead of exactly on day 7.
Unbounded retention
Unbounded retention counts a user if the user performs the action on day N or any later day within the observation period. If 300 users from the same cohort return on day 7 or later, unbounded day-7 retention is 30%.
This measure answers, “Did this user ever come back after the target point?” It usually produces a higher value than N-day retention. Use it for products such as tax software, travel planning tools, or other products that users may need only occasionally.
Bracket retention
Bracket retention divides time into an interval. For example, week-2 retention counts users who perform the action during days 7 through 13. A user counts once even if they perform the action several times in that bracket.
Brackets reduce noise caused by small shifts in usage timing. Choose brackets that match the product’s natural usage cycle.
-- PostgreSQL: exact day-7 retention by signup cohort
SELECT
DATE_TRUNC('week', u.signup_at) AS cohort_week,
COUNT(DISTINCT CASE
WHEN e.event_time >= u.signup_at + INTERVAL '7 days'
AND e.event_time < u.signup_at + INTERVAL '8 days'
THEN u.user_id
END) * 1.0 / COUNT(DISTINCT u.user_id) AS day_7_retention
FROM users u
LEFT JOIN events e
ON e.user_id = u.user_id
AND e.event_name = 'core_action'
WHERE u.signup_at >= DATE '2026-01-01'
AND u.signup_at < DATE '2026-02-01'
GROUP BY cohort_week
ORDER BY cohort_week;Reading the curve
A steep early drop often means onboarding, targeting, or activation needs attention. A flatter curve means the users who remain are returning at a steadier rate. Compare curves only when the event definition, cohort rule, and observation window stay consistent.
Exercise
A weekly product has 1,000 signups. During days 7–13, 180 users perform the core action. On exactly day 7, 90 users perform it. What are bracket week-2 retention and N-day-7 retention?
Show answer
Bracket week-2 retention is 18% (180 / 1,000). N-day-7 retention is 9% (90 / 1,000).