Strategy

How to calculate retention rate, and what a good number actually is.

The formula fits on one line. The hard part is deciding who counts as retained and over what window. Here's the math with an example, the difference between period and cohort retention, and benchmarks with a source you can open.

Retention rate tells you how many of your customers are still buying from you after a set amount of time. The formula fits on one line, and yet two people in the same company often land on very different numbers. That's almost never the math. It's the definition: who counts as an active customer, and over what window? This guide works through retention rate properly, with period and cohort retention, a worked example, and benchmarks you can check at the source yourself.

If you run subscriptions, churn rate is the more direct number, and our guide to subscription churn rate shows how to calculate it. This guide is about stores where people order one at a time, and how many of them come back.

What retention rate actually measures

Customer retention rate is the share of customers you keep over a period. New customers from that period don't count. That's the whole point: a store can have more customers every month and still lose half of its existing ones. The total hides that. Retention shows it.

With a subscription, "retained" is obvious, because the subscription is either running or it isn't. A normal store has no cancel button. Customers just stop ordering. So you have to decide what "active" means, for example at least one order in the last 12 months. Without that decision, every retention number is a guess.

The formula

The standard formula, as used for example in Shopify's guide to retention rate:

Retention rate = (customers at end of period − new customers during period) / customers at start of period × 100

You need these numbers, and all of them depend on how you define "active":

  • Customers at the start (S): every active customer on day one of the period.
  • Customers at the end (E): every active customer on the last day, old and new together.
  • New customers (N): everyone who placed their first order during the period.

You subtract new customers so that only people who were already customers before are left. Otherwise a strong ad month would make your retention look better than it is.

A worked example

These are made up round numbers to show the math. They are not a benchmark for any category.

A store counts anyone who ordered in the last 12 months as active. On January 1 that's 4,000 customers. On March 31 it's 4,600. During the quarter, 1,400 new customers placed a first order.

  • Customers at the end minus new customers: 4,600 − 1,400 = 3,200
  • Divided by customers at the start: 3,200 / 4,000 = 0.80
  • Retention rate for the quarter: 80%

The customer base grew by 600, and yet 800 existing customers dropped out of the "active" definition. If you only look at the 4,600, you miss that.

One more catch. With a 12 month window, a customer only drops out a full year after their last order, so the number moves slowly. To see quickly whether your flows are working, cohort retention, below, does a better job.

Period retention vs. cohort retention

The formula above is period retention. It looks at your whole base and mixes customers who've been ordering for three years with people who placed their first order two weeks ago. Fine for an overview. To see whether things are getting better, you need cohorts.

Year over year period retention

A version that often works best for stores without subscriptions: take everyone who bought last year and count how many bought again this year.

Made up example: 10,000 customers ordered in 2025. 2,900 of them ordered again in 2026. Retention rate: 2,900 / 10,000 = 29%.

That's also how the benchmark further down measures it. The upside: you don't need a definition of "active", just two customer lists and the overlap between them.

Cohort retention

A cohort is a fixed group, usually everyone who first ordered in a given month. You then check how many of them placed a second order within 30, 90, 180 and 365 days. The group never changes, so new customers can't water it down.

Made up numbers, just to show the math:

First order monthCustomers2nd order within 30 dayswithin 90 dayswithin 180 days
January1,000110 (11%)200 (20%)260 (26%)
February90099 (11%)189 (21%)252 (28%)
March (new post-purchase flow)1,200180 (15%)300 (25%)not yet

Each number is cumulative: 20% within 90 days means 20% of the January cohort placed a second order at some point in their first 90 days. In this example you can see right away that the March cohort is four points ahead at 30 days. That's a sign the new flow is working. In period retention it would have disappeared in the noise.

Shopify's reports include a customer cohort analysis. Klaviyo has repeat purchase reporting in its analytics too and, depending on your plan, predictions like the expected date of a customer's next order. More on that in our guide to RFM analysis in Klaviyo.

Picking the right time window

This is where most retention numbers fall apart. If you sell coffee and measure at 30 days, you'll get a very different number than someone selling mattresses at 30 days. For the mattress, 30 day retention is close to zero, and that tells you nothing.

  • Consumables like coffee, supplements or skincare: 60 to 90 days as a first look, plus 12 months.
  • Apparel and accessories: 6 and 12 months, since a lot of buying is seasonal.
  • Durable goods like furniture or electronics: 12 to 24 months. And look at whether people buy accessories or a second product.

A good rule of thumb: find the median number of days between first and second order, then pick a window that's clearly longer. You need that number anyway for the delays in your post-purchase flow.

Retention rate and churn rate

If both cover the same group and the same period, retention rate = 100% − churn rate. With 80% retention for the quarter, you have 20% churn for the quarter. With subscriptions this adds up cleanly.

In a store without subscriptions it only works once you decide when a customer counts as lost. Say "no order in 12 months" and you can convert between the two. Say nothing and every team calculates it differently. Write the definition down somewhere everyone can find it.

Split retention by segment

One number for the whole store is a start. It gets useful once you split it, because customers often behave very differently depending on how they came in.

  • By first product. Some products bring in people who never return. Others start a long customer relationship. You want to know which is which before you pick the product for your ads.
  • By first order discount. People who only bought because of 30% off often wait for the next code the second time too. Compare cohorts with and without a discount.
  • By channel. Customers from referrals or organic search often stick around differently from customers who came in through a social media promo.
  • By country. If you sell in several countries, calculate each one on its own. Shipping times, payment methods and prices differ, and it shows in retention.

In Klaviyo you build segments for this, by first product ordered or signup source for example, and compare how many of each place a second order. Our guide to Klaviyo segmentation shows how to set them up cleanly. Even a rough split once a quarter often shows where your ad budget would do more.

Benchmarks: what others measure

Good benchmarks with an open method are rare. Here's one we can point you to. In an article from September 2026, Shopify cites retention rates from the Bluecore 2025 Customer Growth Benchmarks Report. Bluecore defines retention rate as the share of a retailer's prior year purchasers who keep buying. The data covers the 2024 calendar year and more than 100 retailers.

VerticalRetention rate (Bluecore, 2024 data)
All seven verticals combined27.4%
Health and beauty41.2%
Department stores36.2%
Apparel31.7%
Sports and hobbies27.8%
Footwear22.2%
Home goods21.4%
Jewelry and accessories19.1%

Two things to keep in mind. These are retailers, not single product DTC brands. And it's the year over year version from above, prior year buyers who bought again. Don't compare a 90 day cohort with these numbers. You'll learn the most from comparing your own cohorts over time anyway.

Common mistakes

  • Not subtracting new customers. Retention then goes up in every good ad month, even when nothing changed for existing customers.
  • Counting orders instead of customers. A customer with five orders is one retained customer, not five.
  • Double counting guest checkouts. Someone who orders once as a guest and once with an account can look like two new customers. Check whether your store merges customers by email address.
  • Changing the definition halfway through the year. Then you're comparing apples with oranges and won't even notice.

How we handle it at Email Scales

We're a Klaviyo agency for email, SMS and WhatsApp, working with DTC brands doing $150K+ a month. In every new account we look early at how many first time buyers place a second order and how long that takes. That's exactly where the flows that drive repeat orders come in: the post-purchase flow, replenishment reminders and the winback flow for people who are drifting away.

How to push that second order rate up is covered in our guide to the repeat purchase rate. And what a retained customer is worth in dollars is in our guide on how to calculate customer lifetime value. Our retention work itself is on the customer retention page.

Want to see where you're losing customers?Book a free 30 minute Klaviyo audit. We go through your account together and show you where we'd start.

Questions we get a lot

How do you calculate customer retention rate?

Take the customers you have at the end of a period, subtract the new customers you gained during it, and divide by the customers you had at the start. Multiply by 100 for a percentage. Before you do any of that, decide who counts as an active customer and how long the period is.

What's the difference between period and cohort retention?

Period retention looks at your whole customer base over a window, with old and new customers mixed together. Cohort retention follows one fixed group, like everyone who first ordered in January, and shows how many came back after 30, 90 or 365 days. For decisions, the cohort is usually the more honest number.

What is a good retention rate for ecommerce?

It depends heavily on category, buying cycle and definition. Shopify, citing Bluecore's report on 2024 data, gives a 27.4% retention rate across seven retail verticals, with 41.2% for health and beauty and 19.1% for jewelry and accessories. That measures how many prior year buyers bought again. Only compare yourself with numbers defined the same way.

Is retention rate just 100% minus churn rate?

Only when both numbers cover the same customers and the same period. With subscriptions that works cleanly, because every subscriber is either active or cancelled. In a store without subscriptions you first have to decide when a customer counts as lost, or the two numbers won't line up.

What time window should I use for retention rate?

One that fits how often people buy from you. For products that run out in four to six weeks, 90 days is a good first look. For furniture or jewelry you'll want 12 months. Pick one, then stick with it, or you can't compare one month with the next.

See it in real results

All case studies

Want to see where your extra revenue is?

Book a free 30 minute audit. We go through your Klaviyo together and show you what we would change first.

Get a free audit