Retention tells you whether customers come back. For an ecommerce brand it drives lifetime value, the payback on acquisition spend and how much of next year's revenue is already likely to arrive. This answer gives the formula, a worked example, how it differs from churn and repeat purchase rate, what published benchmarks say as of 21 November 2026 and how to improve the number.
What is customer retention rate?
Shopify's blog defines it this way: "Customer retention rate is the rate at which a business keeps its customers within a given period of time." It is always measured over a set period, such as a month, quarter or year, and the period you choose changes the result.
How to calculate customer retention rate
Shopify lists the inputs: "You need three variables when calculating the retention rate: the total number of customers at the start of the given period (S), the total number at the end (E), and the number of new customers who transacted between these two dates (N)." The formula is:
Customer retention rate = ((E - N) / S) x 100
Subtracting N removes the customers you won during the period, so only customers you already had are counted. The result is then divided by S, the number you started with. Some worked examples published online divide by the end count instead, which gives a different and wrong answer. Always divide by the starting count.
Invented example: a store starts the quarter with 2,000 active customers, gains 600 new customers during the quarter and ends with 2,100. Retention rate = ((2,100 - 600) / 2,000) x 100 = 75% (our arithmetic). Three in four of the customers it started with stayed.
What counts as a customer at the end of the period?
For subscriptions, a customer is anyone with an active plan. Most online stores have no contract, so you have to decide what counts as still being a customer. In our view, a practical choice is a customer who ordered within a set window, such as the last 12 months, chosen to fit how often your products are bought. Write the definition down and keep it fixed, or the rate will move for reasons that have nothing to do with customers.
Retention rate, churn rate and repeat purchase rate
| Metric | What it measures | Formula |
|---|---|---|
| Customer retention rate | Share of starting customers still active at the end of the period | ((E - N) / S) x 100 |
| Churn rate | Share of starting customers lost during the period | 100 minus the retention rate |
| Repeat purchase rate | Share of customers who have bought more than once | Customers with 2 or more orders / all customers x 100 |
The table is our summary. The repeat purchase rate definition follows Shopify's blog, which describes it as "repeat purchase rate, which measures the proportion of customers that make more than one purchase."
Be careful with churn. The same Shopify blog gives a churn formula that uses only the start and end counts, (S - E) / S x 100. That measures net change in customers, not customers lost. In the invented example above, it gives (2,000 - 2,100) / 2,000 x 100 = -5%, a negative churn rate, even though 500 starting customers left (our arithmetic). Using 100 minus the retention rate gives 25%, which matches the 500 lost customers out of 2,000.
Measuring retention by cohort in Shopify
For most stores, the clearest view of retention is a cohort table: group customers by the month of their first order and track how many order again in later months. Shopify's help center says "The Customer cohort analysis report displays data about your customer acquisition and retention." and "For the default Customer cohort analysis report, customers are grouped into cohorts based on the date that they placed their first order."
- Retention is one of the report's metrics. "Use the Metric menu to change which metric is displayed, including number of customers, customer retention rate, gross sales, net sales, or average order value."
- Period 0 is the first period. "The period 0 column captures returning orders by the cohort's customers in the same period as their first order."
- Projections need two years of data. "If 24 months of data aren't available, then the Show projections toggle won't display and you won't have the ability to view projection data." Shopify also warns that "Projections aren't a guarantee of future sales."
- Customer reports use full order history. "The data in customer reports is based on the entire order history of the new customers in the report, not only the orders that were placed during the selected timeframe." So a customer who first bought in November and again in December shows as a repeat customer even in a November-only report.
Shopify also defines its customer types. "A returning customer is a customer who placed an order, and whose order history already includes at least one order." And "The Returning customers report displays data about all your customers whose order history includes two or more orders." Our cohort analysis answer explains how to read a cohort table.
What is a good customer retention rate?
There is no single good number. Shopify's blog, published 9 December 2022, says "A good customer retention rate varies depending on the industry." It gives two examples:
- Subscription services: "a 90% or higher customer retention rate in the subscription-based services industry is often considered good."
- Hospitality: "the hospitality industry has a relatively low average customer retention rate of about 55%."
The same source says essential businesses such as grocery stores and pharmacies "typically have higher customer retention because they provide goods and services that people need regularly." A second Shopify post suggests that if your industry's average retention rate is between 85% and 95%, a churn rate between 5% and 15% is a fair target.
We did not find a primary-source retention benchmark for non-subscription ecommerce. In our view, the useful comparison is your own: compare each new cohort with the cohorts before it, and compare repeat rates across products, channels and first-order discounts.
How to improve customer retention
These are Brand Media Works recommendations, not vendor rules.
- Find where customers drop off. A cohort table shows whether the loss happens after the first order or later, so you know where to focus.
- Time follow-ups to the product. Send replenishment and cross-sell messages when customers would naturally run out or need the next item, not on a fixed calendar.
- Segment before you message. Lapsed high spenders, recent first-time buyers and loyal regulars need different offers. Our answer on customer segmentation explains how to build those groups.
- Check the first-order offer. Compare repeat rates for customers acquired with deep discounts and without them. A cheap first order can bring buyers who never return.
- Listen to customers. Shopify's blog notes that "Frequently measuring customer satisfaction allows you to quickly and dynamically adjust your retention strategy." Pair it with return and support data.
- Measure the lift. Hold out a random group from each retention campaign so you can see what the campaign added.
Retention feeds straight into customer lifetime value, and it belongs on the same dashboard as acquisition metrics. Our guide to ecommerce KPIs for a marketing dashboard shows where it fits. Brand Media Works builds retention reporting and cohort models for ecommerce brands as part of its marketing analytics work.
Frequently asked questions
What is the formula for customer retention rate?
((E - N) / S) x 100, where S is customers at the start of the period, E is customers at the end and N is new customers gained during the period.
Is churn rate the opposite of retention rate?
Yes, if you calculate it from the same counts. Churn rate is 100 minus the retention rate. A churn formula that uses only start and end counts measures net change instead and can even turn negative when you win many new customers.
What is the difference between retention rate and repeat purchase rate?
Retention rate looks at the customers you had at the start of a period and asks how many stayed. Repeat purchase rate looks at all customers and asks what share have bought more than once.
How do I see retention in Shopify?
Open the Customer cohort analysis report and choose customer retention rate in the Metric menu. Cohorts are grouped by first order date by default.
What is a good retention rate for ecommerce?
Published figures are mostly for subscriptions (90% or more is often considered good, per Shopify's blog) and other industries. For a store without subscriptions, track your own cohorts and aim for each new cohort to retain at least as well as the last.