METRICS & DELIVERABILITY

Customer retention rate for ecommerce: how to calculate it

Customer retention rate is the share of customers you had at the start of a period who are still buying from you at the end of it. The formula is ((customers at the end − new customers gained) ÷ customers at the start) × 100. This is for Shopify founders who want a retention number they can actually track, and who want to know which levers move it.

Jack White
Jack White Founder, Bardown Digital
Updated · 8 min read
KEY TAKEAWAYS
  • Retention rate = ((E − N) ÷ S) × 100, where S is customers at the start, E is customers at the end and N is new customers gained during the period.
  • New customers are taken out on purpose. Retention measures who stayed, not who you added.
  • Shopify's Customer cohort analysis report shows retention by first-order month, so you don't have to build it in a spreadsheet.
  • There's no reliable ecommerce benchmark worth chasing. Compare your rate to itself every 90 days.
  • For consumable brands, a reorder reminder flow is usually the fastest way to move the number. Across 4 brands, replenishment flows earn $2.23 per person, about 28 times the best campaign.

How do you calculate customer retention rate?

Use this formula, which Shopify gives in its own guides:

Customer retention rate = ((E − N) ÷ S) × 100

  • S = customers at the start of the period
  • E = customers at the end of the period
  • N = new customers gained during the period

Here's a made-up example. You start the quarter with 5,000 customers. You gain 1,000 new customers during the quarter. At the end of the quarter, 5,100 customers are still active.

((5,100 − 1,000) ÷ 5,000) × 100 = 82%

So 82% of the customers you started with are still around. One small warning: some worked examples online divide by the end count instead of the start count. Divide by S, the number you started with.

What counts as an "active" customer in ecommerce?

This is the part the formula skips, and it matters more than the math. A software company knows exactly who canceled. A Shopify store doesn't. Most customers never cancel anything. They just stop ordering.

So you have to pick a window. A customer is "retained" if they ordered again within some number of days. The right window depends on how often people need your product. For a supplement someone takes daily, 60 to 90 days is a reasonable test. For a mattress, a year might be too short.

Pick one window, write it down and use it every time. The number is only useful when you compare it against itself.

What's the difference between retention rate, repeat purchase rate and churn rate?

They're related, but they answer different questions.

Metric What it measures Formula
Customer retention rate Of the customers you had at the start of a period, how many are still buying ((E − N) ÷ S) × 100
Churn rate Of the customers you had at the start, how many you lost ((S − E) ÷ S) × 100
Repeat purchase rate Of all customers, how many have ordered more than once Customers with 2+ orders ÷ all customers

Shopify calls churn rate "the opposite of retention rate." In ecommerce that's only roughly true, because churn depends on the inactivity window you picked. Repeat purchase rate is a lifetime number, while retention is tied to a period. If you want the repeat purchase side in detail, I wrote a full post on repeat purchase rate.

Where do you find customer retention rate in Shopify?

Shopify has a built-in Customer cohort analysis report. Go to Analytics, then Reports, and look under the Customers category.

Per Shopify's Help Center, the report groups customers by the date of their first order (weekly, monthly or quarterly). It shows customer retention rate, gross and net sales, AOV and amount spent per customer for each group. It's a heatmap by default, and you can switch to a retention curve. You can filter it by sales channel, marketing channel, product, email subscription status and subscription.

Cohorts are more useful than a single retention number. A single number blends your January customers with your November Black Friday customers. A cohort view shows whether people who first bought in a given month came back, and how fast. That's where you'll see if a holiday sale brought in customers who never return.

Where do you find retention data in Klaviyo?

Klaviyo has two places worth knowing about.

Cohort analysis in the Metrics tab. Go to Analytics, then Metrics, pick a conversion metric like Placed Order, then open the Cohorts tab. Klaviyo groups profiles by the month of their first conversion and shows counts, conversions or conversion value over time. Klaviyo's Help Center says this is included in the base marketing app.

Predictive analytics. Klaviyo adds fields to customer profiles like predicted customer lifetime value, churn risk, average time between orders and expected date of next order. You need at least 500 customers with an order, at least 180 days of order history with orders in the last 30 days, and some customers with three or more orders. I covered how to use those fields in my Klaviyo predictive analytics post.

Why does customer retention rate matter?

Because keeping a customer is usually cheaper than finding a new one. Harvard Business Review reported that, depending on the study and the industry, acquiring a new customer is anywhere from 5 to 25 times more expensive than retaining one. The same article cites research by Frederick Reichheld of Bain & Company showing that a 5% increase in retention increases profits by 25% to 95%.

Those are old, broad numbers, and the exact multiple will be different for your store. The direction isn't.

Here's a real example of what it looks like when retention shows up in email revenue. A tallow skincare brand's flows went from 60% to 83% of its email revenue after the flows were rebuilt. Flows are the emails that go to people who already bought, at the moment they're likely to buy again. When retention improves, that's where you see it first.

What is a good customer retention rate for ecommerce?

There isn't a reliable one to aim for. The benchmarks you'll find online are mostly cross-industry averages with no sample size or method listed, and they don't separate a consumable brand from one selling a one-time purchase. A coffee brand and a furniture brand will never have the same retention rate, and they shouldn't.

My advice: measure your own rate the same way every time, then check it every 90 days. The first 90 days of any retention work is mostly setup. By month 6, real reorder periods are visible in the data, so you can see whether people are actually coming back on the schedule you expected.

How do you improve customer retention rate?

Start with the flows that go to people who already bought:

  1. Post-purchase flow. Help a first-time buyer use the product and set up the next order. Here's my post-purchase email flow guide.
  2. Reorder reminder. If you sell something people use up, this is the biggest lever. Across 4 brands, replenishment flows earn $2.23 per person, about 28 times the best campaign. Only 2 of those 4 brands had one. The setup is in my Klaviyo replenishment flow post.
  3. Winback. For customers who've gone past your inactivity window. Don't stop after one email.
  4. Customer lifetime value work. Cross-sells, bundles and VIP treatment. More in how to increase customer lifetime value.

For the bigger picture of how these pieces fit together, start with my guide to retention marketing for Shopify.

FAQ

What is the formula for customer retention rate?

Customer retention rate = ((E − N) ÷ S) × 100. S is customers at the start of the period, E is customers at the end, and N is new customers gained during the period.

How do I calculate customer retention rate in Shopify?

Use the Customer cohort analysis report under Analytics, then Reports, in the Customers category. It shows retention rate by the month (or week or quarter) of each customer's first order.

Is customer retention rate the same as repeat purchase rate?

No. Retention rate is tied to a period and leaves out new customers. Repeat purchase rate is the share of all customers who've ever ordered more than once.

How often should I check customer retention rate?

Every 90 days works for most Shopify brands, using the same inactivity window each time. Monthly cohorts in Shopify or Klaviyo show trends sooner.

What's the fastest way to improve retention for a consumable brand?

A reorder reminder flow timed to when people run out. It's usually the highest-earning retention flow for brands that sell something people use up.

Jack White, founder of Bardown Digital
WRITTEN BY Jack White

Founder of Bardown Digital, a Chicago-based Klaviyo email and retention agency for Shopify brands. He's worked with brands doing $500K to $100M a year, with $100M+ in email-attributed revenue across them.

SOURCES

Keep reading

All posts →
METRICS & DELIVERABILITY · 7 MIN READ

Is your email domain blacklisted? How to check and fix it

How to check if your email domain is blacklisted, which blocklists actually matter for a Klaviyo sender, and how to get delisted and stay off them.

Read the post →
METRICS & DELIVERABILITY · 9 MIN READ

How to get Klaviyo data into Google Sheets (and what to look at)

How to get Klaviyo campaign and flow data into Google Sheets with a CSV import or the Reporting API, and which numbers to look at once it's there.

Read the post →
METRICS & DELIVERABILITY · 9 MIN READ

How to export Klaviyo campaign data and find your winning patterns with AI

How to export your Klaviyo campaign and flow data to a CSV, what's in the file, and how to use Claude or ChatGPT to find your winning subject line patterns.

Read the post →

Find out who's coming back

If you don't know how many of your customers come back, or why the rest don't, that's the first thing to fix. The first strategy session is free: one hour, live with me in your Klaviyo account, and you leave with a fix list even if we never work together. Not ready to book? Grab one of my free resources instead.

Book a strategy session
Or email me at jackwhite@bardowndigital.com