Say your repeat purchase rate was 14% last month. Is that good? You can't tell, because it mixes customers who bought yesterday with customers from two years ago. And when a store grows fast, all the new first-time buyers push that average down, even if every single group of customers is coming back more often than before. A cohort analysis takes that mix apart.
This guide shows how to build a repeat purchase cohort for an online store, in Klaviyo or in a spreadsheet, with a worked example. The Klaviyo steps follow its help articles on cohorts in the metrics tab and cohort analysis in Advanced KDP and Personalization, checked in November 2026.
What a cohort is
A cohort is a group of customers who did the same thing in the same period. In ecommerce that's usually their first order. Everyone who first ordered in January is the January cohort. Then you watch each cohort separately: how many order again in month 1, month 2, month 3.
The cohort event doesn't have to be an order. Signing up for email, first subscription order or first purchase of a specific product all work. But start with first order. It answers the question every founder actually has: do the customers we pay to acquire come back?
Option 1: the cohort report in Klaviyo
Every Klaviyo account has a basic cohort report.
- Go to Analytics, then Metrics.
- Pick a conversion metric, usually Placed Order.
- Open the Cohorts tab.
Klaviyo groups profiles by the month of their first occurrence of that metric and always shows the last 12 complete calendar months. The columns run from 0 mos to 11 mos. The 0 mos column is the same calendar month as the first event, and the first event itself is not counted in the numbered columns.
Two settings decide what you see. Measurement switches between conversions, profiles and conversion value. View by switches between percent, count, average and total. For a repeat purchase cohort, choose profiles as percent. Klaviyo calculates percentages and averages on the original cohort size, including people who never came back, which is exactly what you want.
Custom cohorts need Advanced KDP or Personalization. There you can pick a cohorting event and a separate reporting event, add a property filter, choose monthly or weekly intervals and save up to 20 reports. Klaviyo ships four pre-built ones: SMS consent to first order, repeat purchasers, post-purchase and email consent to first order.
Option 2: a spreadsheet from your order export
No add-on, full control. You need an export with one row per order: customer ID or email, order date and order value.
- For each customer, find the date of their first order. That month is their cohort.
- For each order, calculate the months since that first order (0 for the first month, 1 for the next and so on).
- Build a pivot table: cohort month in the rows, months since first order in the columns, and the number of unique customers who ordered as the value.
- Divide each cell by the cohort size, the number of customers in month 0.
- Leave out the first order itself, or you'll show 100% in every first column.
That's it. The spreadsheet version also lets you split cohorts by things Klaviyo's basic report can't, like the first product bought or the discount code used.
A worked example
Made up numbers for a store selling skin care. In March the store launched a new post-purchase flow. The cells show the share of each cohort that ordered again in that month.
| First order month | Customers | Month 1 | Month 2 | Month 3 |
|---|---|---|---|---|
| January | 1,000 | 12% | 8% | 7% |
| February | 1,400 | 11% | 8% | 9% |
| March | 1,800 | 16% | 10% | not yet |
| April | 1,600 | 17% | not yet | not yet |
Across a row: the January cohort drops from 12% to 8% and 7%. Normal. The question is how fast it flattens, because the customers still ordering in month 3 are the ones who drive lifetime value.
Down a column: month 1 goes 12%, 11%, then 16% and 17%. The jump starts with the first cohort that got the new flow. That's the signal you were looking for, and it would be invisible in a blended monthly average.
Diagonally: February's month 2 and January's month 3 both fall in April. If both spiked, look at what happened in April, a sale for example, instead of crediting the cohorts.
Then put money on it. If 1,800 March customers order again at a 5 point higher rate in month 1, that's 90 extra repeat customers from that cohort alone. Multiply by your average order value and you know what the flow earns.
What to do with the result
- Find the drop-off month. If most repeat orders happen in month 1 and then stop, your post-purchase emails between week 4 and week 8 matter most. Our post-purchase flow guide shows how to time them.
- Check whether changes worked. A new flow, an offer or a new product should show up as a step between cohorts. If it doesn't, it didn't change behavior.
- Compare sources. Split cohorts by first product or by acquisition channel. Do customers who came in through a deep discount come back as often as the rest? The cohort table answers that for your store.
- Feed the win-back timing. The month where repeat rates flatten is a good starting point for your win-back flow.
Cohorts tell you how groups develop. To decide who to email this week, use segments instead. RFM analysis in Klaviyo is the natural partner here.
Cohorts for subscriptions
For subscription brands the cohort is the first subscription order, and the cells show the share still active in month 1, 2 and 3. Same table, different question: who is still subscribed? That's the honest way to look at churn when you grow fast, and our guides on calculating churn rate and subscription retention metrics go deeper.
Common mistakes
- Cohorts too small. With 80 customers per month, one person changes the rate by more than a point. Group by quarter until the cohorts are big enough.
- Counting the first order. Then every month 0 looks perfect and the rest looks worse than it is.
- Comparing unequal ages. The April cohort has had one month, January three. Compare only the same columns.
- Reading one cohort as a trend. One good month can be a single big customer. Wait for two or three cohorts to move before you call it.
Questions we get a lot
What is a cohort analysis in ecommerce?
You group customers by when they first did something, usually their first order month, and then track what each group does in the months after. In ecommerce that is most often the share who order again in month 1, 2, 3 and so on.
Can I do a cohort analysis in Klaviyo?
Yes. Klaviyo's base app has a Cohorts tab for conversion metrics under Analytics, then Metrics. It shows the last 12 complete calendar months, grouped by each profile's first occurrence of the metric. Custom cohorts with a separate reporting event need Advanced KDP or Personalization.
How do you read a cohort table?
Read across a row to see how one cohort behaves over time. Read down a column to compare cohorts at the same age. Read diagonally to compare cohorts in the same calendar month, which shows the effect of a sale or a season.
How many customers do I need for a cohort analysis?
There is no official minimum. With small monthly cohorts the percentages jump around, so group by quarter instead of month until each cohort has a few hundred customers. Then the differences between cohorts mean something.
What is the difference between cohort analysis and RFM?
RFM sorts today's customers by recency, frequency and spend, so you know who to email now. A cohort analysis follows groups over time, so you see whether retention gets better or worse. They answer different questions and work well together.