Coderhouse goes global

🌍

Read more

What Is Churn Analysis and How Analysts Predict Customer Churn

AI Engineering

Build and ship real applications with LLMs, agents and automation.

8 weeks · Live online · View course →

Data Analytics

Go from zero to job-ready analyst with SQL, Python and BI tools.

10 weeks · Live online · View course →

Dan Patiño

AI Strategy & Innovation at Coderhouse

Data

What Is Churn Analysis and How Analysts Predict Customer Churn

What Is Churn Analysis and How Analysts Predict Customer Churn

Churn analysis is the practice of measuring how many customers stop buying, cancel a subscription, or go inactive over a period of time, and then figuring out why they leave and who is likely to leave next. It turns a vague worry (“we are losing users”) into numbers a team can act on: a churn rate, the segments that churn fastest, the behaviors that come right before cancellation, and a list of at-risk customers to contact before they go.

Churn matters because keeping customers is usually far cheaper than finding new ones. A widely cited Harvard Business Review piece on customer retention notes that acquiring a new customer can cost anywhere from five to 25 times more than retaining an existing one. That is why subscription businesses, SaaS companies, telecoms, banks, and e-commerce teams all ask data analysts the same question sooner or later: where is churn coming from, and what can we do about it?

How churn rate is calculated

The simplest version is a ratio: customers lost during a period divided by customers at the start of that period. If you start the month with 2,000 subscribers and 100 cancel, monthly churn is 5%. Its mirror image is the retention rate, which in that example would be 95%.

In practice, analysts have to make a few decisions before the number means anything:

  • Define “churned.” In a subscription product it is usually a cancellation or a failed renewal. In e-commerce or apps, where nobody formally cancels, churn is defined by inactivity, for example “no purchase in 90 days” or “no login in 30 days.”

  • Choose the period. Monthly churn and annual churn tell different stories, and they do not convert linearly: 5% monthly churn compounds into far more than 5% per year.

  • Separate customer churn from revenue churn. Losing ten small accounts is not the same as losing one large one. Revenue (or MRR) churn weighs losses by how much each customer paid, and net revenue retention also counts upgrades from customers who stayed.

  • Exclude noise. Free trials that never converted, test accounts, and involuntary churn from expired cards are often tracked separately so they do not hide the real behavior.

Descriptive churn analysis: who leaves and when

Before predicting anything, analysts describe what already happened. The most useful tool here is splitting customers into groups and comparing their churn curves. Grouping by signup month is classic cohort analysis, and it quickly shows whether newer customers are staying longer than older ones after a product or pricing change.

Other common cuts include:

  • Acquisition channel: do customers from paid ads churn faster than customers from referrals?

  • Plan or price tier: are monthly plans much riskier than annual ones?

  • Tenure: most products have a dangerous early window, such as the first 30 days, where a large share of churn happens.

  • Engagement: customers who never used a key feature often churn at several times the rate of those who did.

The output is usually a dashboard with churn rate over time, retention curves by cohort, and a short list of segments where churn is unusually high. That alone often points to quick wins, like fixing onboarding for the segment that drops off in week one.

Predictive churn analysis: who is likely to leave next

The next step is building a model that scores each active customer by how likely they are to churn in the coming weeks. This is a standard binary classification problem: the label is “churned within the next N days” (yes or no), and the features describe each customer’s recent behavior.

Typical features

  • Days since last login, purchase, or order

  • Change in usage compared with the previous month (a sharp drop is a strong signal)

  • Number of support tickets, complaints, or negative survey answers

  • Plan type, tenure, discount history, and payment failures

  • Product-specific actions, such as projects created, seats used, or items saved

Common models

Many teams start with logistic regression because it is easy to explain to business stakeholders: each feature gets a weight that shows whether it raises or lowers churn risk. Tree-based models such as random forests or gradient boosting often score better on messy behavioral data. Survival analysis is another option when the question is not just whether a customer leaves but when.

Measuring the model honestly

Churners are usually a minority, so plain accuracy is misleading: a model that predicts “nobody churns” can be 95% accurate and useless. Analysts look at precision and recall instead. Precision tells you how many of the customers flagged as at-risk really were; recall tells you how many of the real churners you caught. The right balance depends on the cost of the retention action. A cheap reminder email can tolerate low precision; a big discount cannot.

From analysis to action

A churn score is only valuable if someone does something with it. The usual playbook looks like this:

  1. Prioritize: rank at-risk customers by churn probability and by value, so the team focuses on accounts that matter most.

  2. Match the action to the reason: low usage calls for onboarding help or feature tips; billing friction calls for payment fixes; price sensitivity may call for a plan change rather than a discount.

  3. Test the intervention: run a controlled experiment, holding out part of the at-risk group, so you can prove the action reduced churn instead of just assuming it did. If you are new to this, our guide to A/B testing and statistical significance covers the basics.

  4. Monitor and retrain: customer behavior shifts with seasons, pricing, and competitors, so churn models need regular checks and retraining.

Common mistakes in churn analysis

  • Data leakage: using a feature that only exists because the customer already decided to leave, like “visited the cancellation page,” makes the model look brilliant in testing and useless in practice.

  • A shifting definition of churn: if the inactivity threshold changes between reports, trends become impossible to compare.

  • Averages that hide segments: a stable overall churn rate can hide one segment getting much worse while another improves.

  • Prediction without explanation: a score with no drivers attached gives retention teams nothing to act on.

Where AI fits in

AI is expanding what churn analysis can use. Language models can classify support tickets, chat logs, and open survey answers into themes such as “pricing,” “missing feature,” or “bugs,” turning unstructured text into features a churn model can learn from. AI assistants also help analysts write SQL, explore cohorts faster, and draft personalized retention messages. The fundamentals do not change, though: a clear churn definition, clean data, honest evaluation, and experiments that prove impact.

FAQ

What is a good churn rate?

It depends heavily on the business model. Consumer subscription apps often see much higher monthly churn than B2B software sold on annual contracts. The most useful benchmark is your own trend over time and the comparison between your segments.

Is churn analysis the same as cohort analysis?

No. Cohort analysis is one technique inside churn analysis: it groups customers by a shared starting point and tracks retention for each group. Churn analysis also includes defining churn, finding its drivers, and predicting who will leave.

Do I need machine learning to analyze churn?

Not to start. SQL, a spreadsheet, and a few well-chosen segments can reveal most early insights. Predictive models become worthwhile once you have enough history and a team ready to act on the scores.

Learn to analyze churn with live practice

If you want hands-on experience defining metrics, building retention dashboards, and training models that predict customer behavior, Coderhouse offers live online courses:

  • Data Analytics Course: for career switchers, analysts, and data-driven professionals who want to master metrics, SQL, Python, visualization, and experimentation.

  • AI Engineering Course: for developers moving into AI engineering, covering LLM applications, retrieval, agents, evaluation, and deployment.

Dan Patiño

I'm Dan Patiño, head of AI Strategy & Innovation at Coderhouse. My day-to-day work involves merging the tactical management of e-commerce (CRO, Email Marketing and SEO) with the development of disruptive solutions. I specialize in building internal AI-powered apps to automate tasks and boost innovation within the team. I firmly believe that technology is strategy's best ally. To dive deeper into my professional journey, I'll be waiting for you on my LinkedIn profile.