Contents

How to Calculate Customer Retention and Churn

Here’s a practical guide for calculating customer retention and churn from transaction data.

Preface

The general idea of customer retention is self explanatory; It’s a measure of how well a business retainins their customers. Unfortunately the specifics of how to calculate a retention metric are not so clear. Likewise, customer churn is the complement of retention; It’s a measure of how many customers end their relationship with a business - i.e. how poorly a business retains their customers. High retention = good. High churn = bad. As soon as you measure one of these metrics, you immediately know the other.

Motivating Example

Let’s motivate our future retention and churn calculations with an example. Suppose we run an ecommerce store that sells sporting goods and we have the following set of 2,007 transactions from 2010-01-06 to 2018-12-30.

TransactionID TransactionDate CustomerID Amount Product
1 2010-06-30 1 $30.96 basketball
2 2017-08-26 1 $15.64 baseball
3 2013-04-11 1 $3.24 football
... ... ... ... ...
2005 2013-07-22 500 $4.66 basketball
2006 2018-09-27 500 $15.63 baseball
2007 2015-03-20 500 $2.84 basketball

Customer Retention

In order to start understanding our customer retention, it makes sense to analyze the behavior of groups of customers acquired around the same time. Such an analysis is called a cohort analysis where the cohorts are monthly/quarterly/annually acquired customers.

Here we analyze the activity of annually acquired customers across annual periods.

Table 1: Active Customers
Cohort 0 - 12 12 - 24 24 - 36 36 - 48 48 - 60 60 - 72 72 - 84 84 - 96 96 - 108
2010-01-01 - 2010-12-31 49 23 25 27 25 24 25 25 16
2011-01-01 - 2011-12-31 65 29 24 25 30 26 25 19
2012-01-01 - 2012-12-31 55 26 24 19 21 24 20
2013-01-01 - 2013-12-31 60 30 28 31 21 27
2014-01-01 - 2014-12-31 54 19 20 21 18
2015-01-01 - 2015-12-31 37 16 17 18
2016-01-01 - 2016-12-31 56 21 23
2017-01-01 - 2017-12-31 59 20
2018-01-01 - 2018-12-31 65

The first row of this table represents the customers acquired between 2010-01-01 and 2010-12-31. The second row represents all the customers acquired between 2011-01-01 and 2011-12-31. And so on..

The first column of this table represents the number of customers who made at least one purchase between 0 and 12 months since the start of their cohort period. In other words, the columns show the number of customers who were active in subsequent 12-month periods.

To make this more clear, let’s break down the first row of the table. The first entry, 67, tells us that 67 customers made at least one purchase 0-12 months after 2010-01-01. Alternatively stated, 67 customers made a purchase betweeen 2010-01-01 and 2010-12-31. Notice that this is eaxctly the cohort period represented by the row, so this tells us that 67 customers were acquired in that period. The second column shows that only 29 of those 67 customers made a purchase in the subsequent 12-month period, i.e. 12-24 months after 2010-01-01, i.e. between 2011-01-01 and 2011-12-31. Notice we immediately have an insight into our customer retention. More on that in a bit.. The third column shows that 34 customers in the cohort made a purchase in the next year, so we’ve actually regained some customers since the second period.

If we scan our eyes across the top row from left to right, we can get a sense of our customer retention. We started with 67 customers in the first year, dropped to 29 in the second year, rose to 34 the year after, then 27, 30, … So, our retention rate was about 43% in year 2 vs year 1, but appears to have stabilized around that number. With this idea in place, we can build the following table of annual customer retention rates.

Table 2: Customer Retention
Cohort Customers 12 - 24 24 - 36 36 - 48 48 - 60 60 - 72 72 - 84 84 - 96 96 - 108
2010-01-01 - 2010-12-31 49 47% 51% 55% 51% 49% 51% 51% 33%
2011-01-01 - 2011-12-31 65 45% 37% 38% 46% 40% 38% 29%
2012-01-01 - 2012-12-31 55 47% 44% 35% 38% 44% 36%
2013-01-01 - 2013-12-31 60 50% 47% 52% 35% 45%
2014-01-01 - 2014-12-31 54 35% 37% 39% 33%
2015-01-01 - 2015-12-31 37 43% 46% 49%
2016-01-01 - 2016-12-31 56 38% 41%
2017-01-01 - 2017-12-31 59 34%

Cool - we now have a table of customer retention we can use to understand our busines. ..Not so fast. There’s a fundamental issue we’ve overlooked and have to deal with.

Suppose we own a car dealership and we have the same Active Customer metrics as above. Again, looking at the row of data we see that we acquired 67 customers in 2010. Well, we certainly wouldn’t expect our customers to come back an buy a new car every year. In fact, it’s possible that the 29 repeat customers in year 2 and 34 repeat customers in year 3 may be completely different customers, in which case our annual retention rate of ~47% is really understating our true customer retention.

The takeaway here is that a retention rate has to be defined in terms of an appropriate purchase duration which is completely dependant on the nature of the business. If your company sells potato chips, you’d expect customers to repeat purchase on the order of weeks or 1-2 months, so it’s appriate to look at quarterly retention rates. On the other hand, if you sell cars, you should probably be measuring 3-5 year retention rates.

Customer Churn

This’ll be quick. Churn is simply the complement of retention. If your retention rate is 30% then your churn rate is 100% - 30% = 70%, implying that 70% of the customers in a cohort have stopped purchasing from your business. The Customer Churn table implied by the Active Customers table above is the following

Table 3: Customer Churn
Cohort Customers 12 - 24 24 - 36 36 - 48 48 - 60 60 - 72 72 - 84 84 - 96 96 - 108
2010-01-01 - 2010-12-31 49 53% 49% 45% 49% 51% 49% 49% 67%
2011-01-01 - 2011-12-31 65 55% 63% 62% 54% 60% 62% 71%
2012-01-01 - 2012-12-31 55 53% 56% 65% 62% 56% 64%
2013-01-01 - 2013-12-31 60 50% 53% 48% 65% 55%
2014-01-01 - 2014-12-31 54 65% 63% 61% 67%
2015-01-01 - 2015-12-31 37 57% 54% 51%
2016-01-01 - 2016-12-31 56 62% 59%
2017-01-01 - 2017-12-31 59 66%