Customer Cohort Analysis Explained: Retention, Examples and Practical Methods
Total customer numbers can hide important behavioural patterns. Discover how cohort analysis helps businesses understand customer retention, repeat purchases and lifetime value through practical examples, calculations and business applications.

Customer Cohort Analysis: How Businesses Measure Retention, Repeat Purchases and Customer Lifetime Value
Imagine an online subscription company with 50,000 registered customers.
Its monthly dashboard shows that the number of active customers has increased.
At first glance, everything appears positive.
However, management notices something unusual: customers who joined recently are cancelling their subscriptions much faster than customers who joined several months ago.
The overall customer count does not clearly reveal this problem.
To investigate, the company needs to understand how different groups of customers behave over time.
This is where Customer Cohort Analysis becomes valuable.
1. What Is Customer Cohort Analysis?
Cohort Analysis is an analytical technique that groups users or customers based on a shared characteristic or experience and tracks their behaviour over time.
A cohort could consist of:
- Customers who registered in January.
- Users who made their first purchase during a festival.
- Students who enrolled in a particular month.
- Subscribers who joined through a specific campaign.
- Customers who purchased a particular product.
Instead of treating every customer as one large group, analysts study smaller groups with a common starting point or behaviour.
2. Why Is Cohort Analysis Important?
Consider two online education platforms.
Both have 10,000 registered learners.
However, Platform A has strong course engagement, while Platform B loses most students after the first week.
A simple registration report makes the platforms appear similar.
Cohort analysis helps reveal how learners progress after joining.
It can answer:
- How many students return after their first week?
- Which enrolment month has the highest completion?
- Do learners from particular campaigns remain engaged?
- Did a new onboarding process improve retention?
This makes cohort analysis particularly valuable for subscription businesses, e-commerce, SaaS and educational platforms.
3. Types of Cohort Analysis
Acquisition Cohorts
Customers are grouped according to when they first joined.
Example: All customers acquired in January form one cohort.
This helps compare customer retention across acquisition periods.
Behavioural Cohorts
Customers are grouped according to an action.
Example: Users who completed onboarding or purchased a particular product.
This helps understand how behaviour relates to later engagement.
Revenue Cohorts
Customers are grouped according to revenue characteristics.
Example: Customers whose first purchase value falls within a defined range.
This helps investigate how spending behaviour evolves.
4. Understanding a Cohort Retention Table
Consider the following illustrative dataset.
| Cohort | Month 0 | Month 1 | Month 2 | Month 3 | |---|---:|---:|---:|---:| | January | 100% | 60% | 45% | 35% | | February | 100% | 65% | 50% | 40% | | March | 100% | 55% | 38% | 30% |
Month 0 represents the starting period.
The percentages indicate the proportion of each cohort that remained active in later periods.
For example, the January cohort started with 100 customers.
If 60 remained active in Month 1, its Month 1 retention was 60%.
The March cohort shows weaker retention than February.
This gives the company a reason to investigate changes in acquisition quality, product experience or onboarding.
5. How to Calculate Customer Retention
A basic retention formula is:
Retention Rate = Customers from the original cohort who remain active / Original cohort size × 100.
Suppose:
- Initial customers = 1,000.
- Customers active after one month = 650.
Retention rate = 650 / 1,000 × 100 = 65%.
The exact definition of "active" must be established before calculating retention.
For a subscription service, it may mean having an active subscription at the end of the period.
For an e-commerce business, it may mean making another purchase within a defined window.
Different definitions produce different results.
6. Cohort Analysis Using SQL
A simplified example is shown below.
Assume an orders table containing customer_id and order_date.
WITH first_purchase AS (
SELECT
customer_id,
MIN(order_date) AS first_order_date
FROM orders
GROUP BY customer_id
),
customer_activity AS (
SELECT
o.customer_id,
DATE_TRUNC('month', f.first_order_date) AS cohort_month,
DATE_TRUNC('month', o.order_date) AS activity_month
FROM orders o
JOIN first_purchase f
ON o.customer_id = f.customer_id
)
SELECT
cohort_month,
activity_month,
COUNT(DISTINCT customer_id) AS active_customers
FROM customer_activity
GROUP BY
cohort_month,
activity_month
ORDER BY
cohort_month,
activity_month;
This is a conceptual example using SQL syntax supported by several analytical databases.
It identifies each customer's first purchase month and subsequent activity months.
The next step is to calculate the cohort size and divide active customers by that starting population.
7. How to Interpret Cohort Analysis
A cohort table should not simply be created and displayed.
An analyst must interpret the patterns.
Declining retention: Customers may be losing interest, experiencing service problems or finding better alternatives.
Improving retention: A product improvement or onboarding change may be associated with stronger customer engagement.
Different campaign performance: Customers from different acquisition channels may show different long-term behaviour.
Seasonal effects: Cohorts acquired during festivals or promotions may behave differently from regular cohorts.
These observations create hypotheses that should be investigated further.
8. Cohort Analysis vs Funnel Analysis
| Parameter | Cohort Analysis | Funnel Analysis | |---|---|---| | Main focus | Group behaviour over time | Progression through steps | | Typical question | Do customers return? | Where do users drop off? | | Common application | Retention | Conversion | | Example | Monthly customer retention | Registration to purchase |
Both techniques are important in Product Analytics.
9. Common Cohort Analysis Mistakes
- Using inconsistent definitions of active customers.
- Comparing cohorts with incomplete observation periods.
- Ignoring seasonality.
- Confusing customer retention with revenue retention.
- Treating correlation as causation.
- Failing to account for different cohort sizes.
- Ignoring changes in data collection.
10. Practical Exercise for Aspiring Analysts
Create a sample dataset containing:
- Customer ID.
- First purchase date.
- Transaction date.
- Transaction value.
- Acquisition channel.
Then:
- Identify each customer's first purchase.
- Assign a cohort month.
- Calculate monthly activity.
- Create a retention table.
- Compare different acquisition channels.
- Identify the strongest and weakest cohorts.
- Present three business recommendations.
Use SQL for analysis and Power BI or Excel for visualisation.
Frequently Asked Questions
Is cohort analysis only used by subscription companies?
No. E-commerce, banking, education, mobile applications and many other industries use cohort analysis.
What is a cohort retention table?
It is a table showing how groups of users or customers behave over successive periods.
Can cohort analysis be performed using Excel?
Yes. PivotTables and date calculations can support basic cohort analysis. SQL and Python are useful for larger datasets.
What is the difference between customer retention and revenue retention?
Customer retention measures the proportion of customers retained. Revenue retention measures how much revenue from an existing customer base is retained.
Is cohort analysis part of Product Analytics?
Yes. It is an important technique for understanding engagement, retention and customer behaviour over time.
Final Thoughts: Understand Customers Beyond Their First Transaction
Acquiring customers is only one part of business growth.
Businesses also need to understand whether customers return, remain engaged and continue finding value in the product or service.
Cohort analysis helps organisations move beyond total customer counts and investigate long-term behaviour.
At InsightNest, we encourage learners to use analytical techniques to understand real business problems rather than simply memorising formulas.
Learn. Build. Grow.
Want to learn this properly?
The Data Analytics with GenAI for Placement Bootcamp covers Excel, SQL, Python, Power BI and Statistics live over 8 weekends, built on 7 real projects.
See the course