Sub topic 12
Churn and Its Relationship to Retention
Assume you understand event tracking, cohort tables, percentages, and basic SQL. This chapter uses those ideas to measure when users stop returning and to connect churn with retention.
What churn measures
Churn measures customers or users who stop using a product during a defined period. The definition must state:
- The population that could churn.
- The event that counts as activity.
- The inactivity period that qualifies as churn.
- The time period being reported.
For example, a team might define monthly user churn as:
> A user churns in April if the user was active in March but did not perform the core action during April.
A user who signed up on April 28 should not normally count as April churn. That user did not have a full month in which to return.
| Metric | Formula | Best for |
|---|---|---|
| User churn rate | Users who churned during the period / users active at the period start | Products with individual users |
| Customer churn rate | Customers who canceled during the period / customers active at the period start | Subscription businesses |
| Revenue churn rate | Recurring revenue lost / recurring revenue at the period start | Products with different account values |
Churn is the inverse of some retention measures
Retention asks, “Who came back?” Churn asks, “Who stopped coming back?” For the same population, event, and time window, they can describe opposite outcomes.
If 800 of 1,000 users who were active at the start of a month are active again during that month, the period retention is 80% and the corresponding churn is 20%.
This relationship does not apply automatically to every retention metric. N-day retention checks activity on one exact day. Unbounded retention checks whether a user returned on or after a target day. A churn definition often uses a longer inactivity rule, such as 30 or 60 days. Compare metrics only when their populations, events, and windows match.
-- Monthly user churn for April 2026.
-- Assumes users(user_id) and events(user_id, event_name, event_time).
-- "core_action" defines activity, and March-active users are the at-risk population.
WITH march_active AS (
SELECT DISTINCT user_id
FROM events
WHERE event_name = 'core_action'
AND event_time >= TIMESTAMP '2026-03-01'
AND event_time < TIMESTAMP '2026-04-01'
),
april_active AS (
SELECT DISTINCT user_id
FROM events
WHERE event_name = 'core_action'
AND event_time >= TIMESTAMP '2026-04-01'
AND event_time < TIMESTAMP '2026-05-01'
)
SELECT
COUNT(*) AS users_at_start,
COUNT(a.user_id) AS users_retained,
COUNT(*) - COUNT(a.user_id) AS users_churned,
(COUNT(*) - COUNT(a.user_id)) * 1.0 / NULLIF(COUNT(*), 0)
AS churn_rate
FROM march_active m
LEFT JOIN april_active a
ON a.user_id = m.user_id;Churn and retention over time
A single churn rate can hide when users leave. Cohort analysis shows whether churn happens immediately after signup or gradually.
For example, a signup cohort might retain 40% of users in month 1, 25% in month 2, and 20% in month 3. The largest loss occurs early. Another product might retain 80% in month 1 but lose users steadily later. Those patterns require different responses.
Use the same core action for both measurements. If retention uses “created a project” but churn uses “opened the app,” the two metrics may appear inconsistent because they measure different behavior.
Interpreting churn carefully
Churn can mean several things:
- Voluntary churn: the customer cancels.
- Involuntary churn: payment fails or an account is closed for an administrative reason.
- Behavioral churn: the user stops performing the core action, even if the account remains open.
- Logo churn: an entire customer account leaves.
- Revenue churn: recurring revenue decreases, possibly because of cancellation or downgrades.
Segment churn by plan, acquisition source, company size, or activation status. If activated users churn less than unactivated users, activation is a useful leading indicator. That association does not prove that activation alone caused lower churn.
Exercise
A product has 2,000 customers at the start of May. During May, 120 cancel, 40 are lost to failed payments, and 1,700 remain active. What is customer churn if the company includes all lost customers?
Show answer
Total churned customers are 160. Customer churn is 160 / 2,000 = 8%.