Getting someone to place their first order takes work. You need to reach the right person, give them a reason to choose your product, and deliver an experience that earns their trust. Whether they come back tells you a lot about how well that experience held up.
Customer retention rate helps you measure that next part of the relationship. It shows how many customers keep buying from you, giving you a clearer view of your store's ability to turn new sales into ongoing business.
The calculation is straightforward once you've decided which customers you're tracking and how long you're giving them to return. For ecommerce, those choices matter just as much as the formula.
What is customer retention rate?
Customer retention rate is the percentage of an existing group of customers who continue buying from your business over a defined period.
For an ecommerce store, that might mean the share of last year's buyers who purchase again this year. You could also track how many first-time customers place a second order within 90 days of their first purchase.
Both approaches help you understand repeat business, but they answer slightly different questions. Annual retention tells you how well you're keeping an established customer base. Tracking new buyers tells you how effectively you're getting people past their first order.
Choose the approach that fits the decision you're making. If you're improving your post-purchase emails, a first-to-second purchase measure will be more useful than a broad annual figure.
How to calculate customer retention rate
The clearest way to calculate retention is to start with a specific group of customers and count how many of them buy again during your chosen follow-up period.
Customer retention rate = Customers from the original group who return ÷ Customers in the original group × 100
Suppose 2,000 people bought from your store last year, and 600 of those same people buy again this year. Your annual customer retention rate is:
600 ÷ 2,000 × 100 = 30%
New customers acquired this year don't enter that calculation. You're measuring what happened to the people you already had.
The traditional customer retention formula
You'll also see retention expressed using the number of customers at the start and end of a period:
Customer retention rate = (Customers at the end − New customers added) ÷ Customers at the start × 100
This is useful when your business has a clearly defined active customer base, such as subscribers. For example, a subscription business starts a month with 1,000 subscribers. By the end, 800 of those original subscribers remain, alongside 300 new subscribers, giving it 1,100 in total.
Its retention rate is (1,100 − 300) ÷ 1,000 × 100 = 80%.
For a regular online store, the customer list alone won't tell you this. A shopper's account usually stays in your database even if they stop buying. Tracking purchases from a defined group is a more useful way to measure the relationship.
Measuring first-to-second purchase retention
If you want to understand the first few months after acquisition, group customers by when they placed their first order. This group is called a cohort.
Imagine you acquire 500 customers in January. You give each person 90 days from their first purchase to return, and 125 place another order within that window.
Your 90-day second-purchase rate is 25%:
125 ÷ 500 × 100 = 25%
You can repeat the calculation for February's customers once they've had the same amount of time to buy again. Comparing groups at the same age makes it easier to see whether changes to your products, marketing or customer experience are helping.
Customer retention rate vs. repeat customer rate
Retention reports can look similar while describing different parts of your business. It helps to know what each number includes before using it to set a target.
| Metric | What it tells you |
|---|---|
| Customer retention rate | How many customers from an existing group continue buying in a later period. |
| Second-purchase rate | How many new customers place another order within a chosen window after their first purchase. |
| Returning customer share | How much of the current period's buying audience consists of people who have bought before. |
| Purchase frequency | How many orders customers place, on average, during a period. |
A store can retain the same number of customers while its returning customer share falls. That can happen during a successful acquisition campaign, when a large number of first-time buyers enters the mix.
Likewise, a customer who orders twice and a customer who orders ten times both count as retained. Purchase frequency helps you see the difference between those relationships.
What is a good customer retention rate?
A good retention rate depends on what you sell and how often customers have a reason to buy it. A coffee customer may need another order within weeks. Someone who buys a dining table may be happy with their purchase for years before needing another.
That makes your product category a useful starting point for comparison. Our ecommerce retention benchmarks break down annual retention across retail categories, including beauty, apparel and home goods.
Your own previous cohorts give you a more specific target. If customers usually replenish after six weeks, track whether more of them are returning within 60 or 90 days. If you sell seasonal collections, compare buyers from the same season in earlier years.
A steady improvement among comparable customers is a meaningful result, even if your store's rate looks very different from a broad retail average.
How to track retention in Shopify
Shopify's customer reports provide a starting point for understanding who comes back. In your admin, go to Analytics > Reports and open Customer cohort analysis.
The report groups customers by their first-order date by default and shows their later purchasing activity. You can adjust the metrics and filters to explore specific groups. Shopify's customer reports guide explains the available views.
If you're reading a monthly retention grid, each cell describes activity in that month. Don't add the percentages together to get a cumulative repeat rate, because the same customer can appear in several months.
For a custom measure such as a second purchase within 90 days, use order-level data or an analytics tool that calculates that window. You'll need a consistent customer identifier, each customer's first-order date, and their subsequent order dates.
What your retention rate can tell you
Once you have a reliable baseline, retention becomes a useful way to investigate what's happening after the sale. Breaking it down by product or customer group will usually reveal more than watching the storewide percentage alone.
Whether the first purchase meets expectations
If customers who buy a particular product rarely return, look at the experience around that product. Sizing problems, confusing instructions, delivery damage or an overstated product promise can all affect someone's willingness to order again.
Support conversations and return reasons can help explain the pattern. Fixing a recurring problem may do more for retention than adding another promotional email.
Which customers your marketing attracts
Different offers can bring in customers with different intentions. A shopper trying your main product at full price may behave differently from someone buying a heavily discounted gift.
Compare retention by first product, acquisition campaign and initial discount. Those differences can help you decide which offers deserve more attention, especially when you also consider the value customers generate over time.
Whether your follow-up matches the buying cycle
A useful follow-up arrives when the customer has a reason to act. For a replenishable product, that might be a reminder shortly before they run out. For a more involved purchase, it might be advice that helps them get comfortable using it.
Use the timing of repeat orders to guide your messages. Customers who've already reordered should move out of a second-purchase campaign, while people with unresolved support issues should receive help before another sales pitch.
Final thoughts
Customer retention rate gives you a practical way to understand what happens after you win a customer. With a clear starting group and a sensible timeframe, you can see whether people are finding enough value in your products and experience to come back.
Over time, those patterns help you make better decisions about what to sell, who to reach and how to look after customers after the sale. That's where retention becomes useful in the day-to-day work of running an ecommerce business.




