Sub topic 12
Churn and its relationship to retention
This chapter assumes you can read the cohort retention table from the previous chapters and that you know basic SQL (SELECT, JOIN, GROUP BY). It also assumes you know what a metric's population, event, and time window are. Churn uses the same three parts as every other metric in this tutorial. It is the mirror image of retention, and the details of that mirror cause most of the common mistakes.
What churn is
Churn is the share of a defined population that stops using the product during a defined time window. Retention is the share that keeps using it. For one population and one window:
churn rate = 1 - retention rateThis holds only when both metrics use the same population, the same activity event, and the same window. If a dashboard shows 85% monthly retention and 20% monthly churn, the two numbers use different definitions. They are not wrong, but they cannot be compared.
A worked example: 1,000 users were active in March. In April, 850 of those same users were active again. Retention is 850 / 1,000 = 85%. Churn is 150 / 1,000 = 15%.
The key point is that the denominator is the starting population. It is not everyone who is active in April, and it does not include users who joined in April.
Two kinds of churn
Product teams use the word churn for two different things.
- Customer (logo) churn. The share of customers or accounts that cancel or leave. This applies when there is a clear end state, such as a cancelled subscription.
- Usage churn. The share of users who stop doing the core action, even though they may still have an account. This applies to free products and to products with no cancel event.
Revenue churn is a third variant for paid products. It measures lost revenue rather than lost customers. If ten small customers leave, customer churn is high, but revenue churn may be low. This chapter focuses on the first two, since they are computed from the same event data as retention.
| Type | Population | "Churned" means | Typical product |
|---|---|---|---|
| Customer churn | Paying accounts at period start | Subscription ended in the period | Subscription software |
| Usage churn | Users active at period start | No core action in the period | Free apps, marketplaces |
| Revenue churn | Recurring revenue at period start | Revenue lost from cancels and downgrades | Paid products with varied plans |
Defining "inactive" without a cancel event
For usage churn you must decide how long without activity counts as churned. This inactivity window is part of the definition. Pick it from the product's natural usage rhythm.
- A daily-use app may call a user churned after 14 days without the core action.
- A tax product used once a year needs a window of more than a year.
A window that is too short labels normal gaps as churn. Those users then come back, which is called reactivation. A window that is too long delays the signal, so you learn about churn long after you could have acted.
A common check is to look at the gaps between consecutive core actions for your active users. If 95% of gaps are under 21 days, a 21-day window will rarely misclassify a still-engaged user.
-- Distribution of gaps between consecutive core actions (PostgreSQL)
WITH ordered AS (
SELECT
user_id,
event_time,
LAG(event_time) OVER (PARTITION BY user_id ORDER BY event_time) AS prev_time
FROM events
WHERE event_name = 'core_action'
)
SELECT
PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY EXTRACT(EPOCH FROM (event_time - prev_time)) / 86400) AS median_gap_days,
PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY EXTRACT(EPOCH FROM (event_time - prev_time)) / 86400) AS p95_gap_days
FROM ordered
WHERE prev_time IS NOT NULL;The 95th percentile gap is a reasonable starting point for the inactivity window. Revisit it when the product changes.
Computing monthly churn
This query computes usage churn for March 2026. The population is users who performed the core action in March. A user is retained if they performed it again in April.
-- Monthly usage churn: users active in March 2026 who were not active in April 2026
WITH march AS (
SELECT DISTINCT user_id
FROM events
WHERE event_name = 'core_action'
AND event_time >= DATE '2026-03-01'
AND event_time < DATE '2026-04-01'
),
april AS (
SELECT DISTINCT user_id
FROM events
WHERE event_name = 'core_action'
AND event_time >= DATE '2026-04-01'
AND event_time < DATE '2026-05-01'
)
SELECT
COUNT(*) AS march_active,
COUNT(a.user_id) AS retained,
COUNT(*) - COUNT(a.user_id) AS churned,
(COUNT(*) - COUNT(a.user_id)) * 1.0 / COUNT(*) AS churn_rate
FROM march m
LEFT JOIN april a ON a.user_id = m.user_id;COUNT(a.user_id) counts only rows where the LEFT JOIN found a match, so it equals the retained users. The difference from COUNT(*) is the churned users. Retention for the same window is retained / march_active, and it adds up to 100% with churn_rate.
Churn compounds
A monthly churn rate looks small but accumulates. If 5% of users churn each month, the share of an original cohort still active after n months is:
survival = (1 - churn) ^ nAt 5% monthly churn, about 54% remain after 12 months (0.95^12 ≈ 0.54). At 10% monthly churn, only about 28% remain (0.9^12 ≈ 0.28). Doubling the monthly rate cuts the annual survivors nearly in half.
def survival(monthly_churn: float, months: int) -> float:
"""Share of an original cohort remaining, assuming constant churn."""
return (1 - monthly_churn) ** months
for churn in (0.02, 0.05, 0.10):
print(f"{churn:.0%} monthly churn -> {survival(churn, 12):.1%} remain after 12 months")This formula assumes constant churn, and real products rarely behave that way.
Why churn is not constant
Churn is usually highest right after signup and falls as users who find value stay. The cohort retention curve shows this as a steep early drop that flattens. Averaging churn across all users hides this shape.
Two consequences follow:
- A blended churn rate mixes new users, who churn heavily, with long-term users, who churn little. If the share of new users rises because of a marketing push, blended churn rises even though nothing got worse for either group.
- The constant-churn formula above overstates losses for mature users and understates them for new ones.
To avoid this, report churn by cohort age or by cohort. Compare users in their first month with users in their twelfth month, rather than quoting one overall number.
The diagram below shows how a user moves between active and churned states, including reactivation.
Reactivation and how it changes the numbers
Churned users sometimes return. This affects your metrics in two ways.
- Churn is not permanent. A user counted as churned in April may be active in July. If you recompute April churn in August, the number can change when your definition looks ahead.
- Retention types treat returns differently. Unbounded retention counts a user who returns later as retained from then on. N-day retention counts only activity on the exact day. Bracket retention counts activity within a range. This is why churn derived from each type differs for the same users.
State whether returning users are counted as retained in the period they return, and whether past churn figures get restated. Without that rule, two analysts will report different churn for the same month.
Common errors
- Wrong denominator. Dividing churned users by the end-of-period active count instead of the start-of-period population. This makes churn look worse or better depending on growth.
- Counting new users in the churn population. Users who signed up during the period were not in the starting population, so they cannot churn from it.
- Mixing definitions. Reporting customer churn for finance and usage churn for product under one label.
- Window too short for the product. Normal gaps in usage get reported as churn.
- Measuring too early. Users who signed up recently have not had the full window to become inactive, so recent cohorts look better than they are. Exclude cohorts whose window has not completed.
- Ignoring cohort age. Using one blended rate that moves with the mix of new and old users.
Using churn in decisions
Churn and retention carry the same information, so choose the framing that fits the question. Retention is common for early product work, because teams aim to raise a number. Churn is common for subscription finance, because the loss rate drives revenue forecasts. Whichever you use, report it by cohort and by segment (see the segmentation chapter), and keep the definition fixed over time so trends are meaningful.
Exercise
In March, 2,000 users performed the core action. Of those, 1,500 performed it again in April. During April, 400 new users signed up and performed the core action. What is the April churn rate for the March population, and why does the 400 not affect it?
Show answer
Churned users = 2,000 - 1,500 = 500, so churn = 500 / 2,000 = 25%, and retention is 75%. The 400 new users were not in the March population, which is the denominator, so they cannot have churned from it. Including them would give a wrong figure (for example 500 / 2,400 ≈ 21%, or counting them as retained).
Exercise
A product has 4% constant monthly churn. About what share of an original cohort remains after 6 months, and why might the real figure differ?
Show answer
(1 - 0.04)^6 = 0.96^6 ≈ 0.78, so about 78% remain. The real figure likely differs because churn is usually highest in the first weeks after signup and lower later, so the constant-churn assumption understates early losses and overstates later ones.