Skip to content
Until end of January: 90 days free
Metrics & growth

Cohort Analysis: Definition, Example & Why It Matters for Loyalty Programmes

Cohort analysis tells you whether the customers you win today stay longer than the ones you won three months ago. Instead of a single average, you see how each group of new customers develops over time – and whether your stamp card actually changes anything.

mystamp editorial teamUpdated: 5 min readAuf Deutsch lesen

Quick answer

Cohort analysis groups customers by a shared starting point – usually the month of their first visit – and then tracks how many of each group come back in the following months. It shows whether new customers are retained better today than before, for example after introducing a stamp card, instead of hiding the trend in one blended return rate across all customers.

Key takeaways

  • Cohort = shared start: Everyone who first visited in the same month forms one group.
  • Retention by month: A cohort table shows what share of each group is still active after 1, 2, 3 … months.
  • Before-and-after view: You can see whether cohorts after a change (e.g. a stamp card) stay longer than earlier ones.
  • The critical gap: Most customers drop off between the first and second visit – that is where reminders pay off.
  • No customer data, no cohorts: Anonymous paper cards cannot do it; digital cards create the data with every scan.

Cohort analysis groups customers by when they started – usually the month of their first visit – and follows each group separately over time. It tells you not just how many customers return, but whether new customers are retained better or worse than before. For any shop running a loyalty card, it is the most honest answer to the question: is my stamp card actually working?

What is cohort analysis?

A cohort is a group of people who share a characteristic at a given point in time. The term comes from demography and medicine, where researchers follow, say, everyone born in the same year for decades. Retail borrows the idea: all customers who first visited you in January form the January cohort, everyone from February the February cohort, and so on.

The point is to compare like with like. An overall repeat purchase rate mixes regulars who have been coming for years with yesterday’s walk-ins. If it goes up, you cannot tell whether you got better at keeping new customers or whether your old regulars are simply carrying the number. Cohort analysis separates the two.

Common types of cohorts

  • Time-based: by week or month of first purchase (the default for small shops)
  • Behaviour-based: e.g. “customers who received a welcome stamp on their first visit”
  • Acquisition-based: customers from an Instagram giveaway versus customers who saw the sign in your window

How cohort analysis works

You need only two pieces of information per customer: when they first visited and when they came back. From that you build a cohort table in four steps:

  1. Form cohorts: assign each customer to the month of their first visit.
  2. Set the time grid: month 0 is the starting month, then month 1, 2, 3 and so on.
  3. Count active customers: how many members of each cohort visited at least once in each month?
  4. Convert to percentages: divide the active customers by the cohort’s starting size.

Formula

Cohort retention in month n = active cohort customers in month n ÷ cohort customers in month 0 × 100

How you define “active” matters. For a café with weekly visits, “at least one visit per month” works well. For a hair salon where clients come every six to eight weeks, use two-month blocks – otherwise every cohort looks worse than it is.

Example: a café in Munich

A café introduces a digital stamp card in March and, in May, adds an automatic win-back message for guests who have not visited for 30 days. The owner wants to know whether it pays off. Her cohort table (illustrative numbers):

Cohort (first visit) New customers Month 1 Month 2 Month 3
March 120 38% 27% 22%
April 140 40% 29% 23%
May 135 47% 36% 31%
June 150 49% 38% –

How to read it:

  • Down a column: month-1 retention jumps from around 40% to almost 50% from the May cohort onwards – exactly when the win-back message started.
  • Across a row: every cohort loses the most between month 0 and month 1. The second visit is the critical hurdle.
  • Empty cells: the June cohort is too young for month 3. That is normal.

A quick calculation: 31% of 135 guests is about 42 regulars after three months. At the March cohort’s rate (22%) it would be only around 30. With an average transaction value of €6 and four visits a month, those twelve extra guests bring in roughly €290 a month – from a single cohort.

Benefits and limits of cohort analysis

Benefits Limits
Shows whether retention is improving, not just how high it is Needs customer-level data (who came when?)
Makes the impact of individual changes visible Small cohorts fluctuate – a few guests make a big difference
Reveals the exact point where customers drop off Seasonal effects (summer, Christmas) can distort results
Works in a simple spreadsheet Shows plausibility, not proof of cause and effect

Rule of thumb: with fewer than about 30 new customers per cohort, do not read too much into differences of a few percentage points. Merge two months into one cohort instead.

Cohort analysis vs. retention rate and churn rate

Retention rate and churn rate are metrics – single numbers. Cohort analysis is a method that breaks those numbers down by starting group. You need both: the metric for a quick overview, the cohorts for finding out why.

Why it matters for small shops

For a barbershop in Vienna or a bakery in Zurich, “cohort analysis” may sound like corporate controlling. Yet the idea is especially valuable for small businesses, because every single regular counts:

  • Judge what works: did the free first stamp get more guests to come back a second time? Compare the cohort before with the one after.
  • Spot seasonality: summer guests at an ice cream parlour may return less often than winter guests at a café. That is a pattern, not a failure.
  • Secure the second visit: cohorts almost always shrink most between month 0 and 1, so reminders pay off exactly there. Our stamp card reminder messages give you ready-made wording.

Where the data comes from

You cannot build cohorts from anonymous paper cards, because you never know when a customer first came in. With a digital stamp card in Apple Wallet or Google Wallet, that information is recorded automatically with every scan. In mystamp, the dashboard shows your return rate, extra revenue and lapsing regulars, and the automatic win-back after 30 days targets precisely the gap between first and second visit. For the bigger picture, see our guide to loyalty programme KPIs.

Common mistakes

  • Wrong definition of “active”: a monthly grid for a business with infrequent visits makes everything look bad.
  • Comparing young and old cohorts: a cohort that is two months old has no value for month 6 yet.
  • Launching several changes at once: you will not know what worked. Change one thing at a time or run an A/B test.

Frequently asked questions

What is cohort analysis in simple terms?

Cohort analysis puts customers into groups that share something, usually the month of their first purchase. You then look at each group separately and count how many are still buying after one, two or three months. That reveals trends in customer retention that a single average across all customers would hide.

What is an example of cohort analysis?

A café in Berlin compares all guests who picked up a stamp card for the first time in March with those from April. Of the March cohort, 40% stamp again the following month; of the April cohort, 48% do. Because an automatic win-back message started in April, that is a strong hint the message works.

What types of cohorts are there?

The most common are time-based cohorts, grouped by the week or month of first purchase. There are also behaviour-based cohorts, such as customers who used a welcome offer on their first visit, and acquisition cohorts, such as customers from an Instagram giveaway versus walk-ins. For small shops, monthly time-based cohorts are almost always enough.

How do you read a cohort table?

Each row is one cohort, for example all new customers from January. Each column is a time step after the start: month 1, month 2, month 3. Each cell shows the percentage of that cohort that was active in that month. Reading a column from top to bottom tells you whether newer cohorts are retained better than older ones.

What is the difference between cohort analysis and retention rate?

Retention rate is a single metric: what share of customers stay over a period. Cohort analysis is a method that calculates retention separately for each starting group and puts the results side by side. It shows not only how well you keep customers, but whether that is improving or getting worse.

Do I need special software for cohort analysis?

No. For a small shop, a spreadsheet such as Excel or Google Sheets is enough, as long as you know when each customer first visited and when they came back. The real hurdle is the data: anonymous paper cards do not record it, while a digital stamp card captures it with every scan.

Sources & further reading

  1. Cohort analysis – Wikipedia
  2. The Value of Keeping the Right Customers – Harvard Business Review

About this guide

Written by the mystamp editorial team in Mannheim, Germany. We build digital stamp cards for local shops, and our guides bring together what actually works day to day in small businesses. We back numbers and legal statements with sources and update the article when things change.

Published: 1 December 2026 · Updated: 1 December 2026 · Spotted a mistake or have a question? Write to us

Related industry guides

Free-forever plan available

See which customers come back

With mystamp, every stamp builds a clean data trail: return rate, lapsing regulars and peak hours appear right in your dashboard.

  • Free-forever plan
  • Ready in 10 minutes
  • Back to Free any time – cards stay
  • No app needed

Try the card

Live preview: build your card in 30 seconds.

Café Sonnenschein

now

Fancy a cappuccino? Double stamps today.

Tap the card to collect a stamp

Stamps until the reward
Colour
Logo

Your logo stays on your device and is not uploaded.

Just a preview – you create your real card yourself in 10 minutes.

Even more design options in the dashboard: There you can also customise icons, font colours and background patterns – this preview only shows the basics.

Create this card for free & win regularsCreate this card for free
Launching January 2027

We go live in January 2027

Sign-up isn’t open yet – but you can be first in line. Leave your email and we’ll let you know as soon as we launch.

Your giftAll plans free for 90 days for everyone who signs up now.