Calculator

Repeat Purchase Rate Formula: How to Calculate It From Shopify Data

Repeat purchase rate is the share of customers who ordered two or more times within a set window. Divide the customers with two or more orders in the window by all customers who ordered in it, then multiply by 100.

The math is two counts and one division. The counts are the hard part. Shopify's customer reports look past the dates you pick, so the repeat number Shopify shows and the one the formula gives often don't match. Before you put either in front of your boss, know which one you're showing.

What is the repeat purchase rate formula?

Repeat purchase rate = (Customers with 2+ orders in the window ÷ Customers who ordered in the window) × 100

  • Customers with 2+ orders in the window: the people who placed at least two orders between the window's start and end dates.
  • Customers who ordered in the window: everyone who placed at least one order in those same dates.
  • × 100: turns the ratio into a percentage.

Before you count anything, settle three rules:

  1. One window for both counts. The top and the bottom of the fraction cover the same dates. A 12-month count over a 90-day count gives you a number that means nothing.
  2. Count people, not orders. A customer with five orders is one repeat customer. In an order export, that means each email address counts once.
  3. Leave out canceled and refunded orders. A customer who bought once and sent it back didn't buy twice.

How to calculate repeat purchase rate: a worked example

Say a coffee brand looks back over the last 12 months.

  1. Count everyone who ordered. 5,000 customers placed at least one order.
  2. Count the ones who ordered again. 1,400 of them placed two or more.
  3. Divide. 1,400 ÷ 5,000 = 0.28.
  4. Multiply by 100. The repeat purchase rate is 28%.
Repeat purchase rate for one coffee brand over 12 months A bar for the 5,000 customers who ordered in the last 12 months, with the 1,400 who ordered two or more times filled in. 1,400 divided by 5,000, times 100, is a repeat purchase rate of 28%. Example coffee brand, last 12 months 28% 1,400 ordered 2+ times 5,000 customers ordered Result: 1,400 ÷ 5,000 × 100 = 28%
The filled part of the bar is the share of customers who ordered at least twice in the window.

How to calculate repeat purchase rate from Shopify data

Shopify has the inputs, but its customer reports don't stay inside your window. Two of its rules explain the gap:

  • Customer report data is "based on the entire order history" of the new customers in the report, not only the orders inside the dates you pick.
  • A returning customer is anyone whose order history already holds an order when they place a new one.

Here's how that plays out for three customers over a January to June window, with the reports run in August:

Three customers, one January to June window Ana placed two orders inside January to June, so the formula counts her as a repeat customer and so does Shopify. Ben ordered last year and once inside the window, so the formula doesn't count him, but Shopify's New vs returning customers report counts his order as returning. Cara ordered in June and again in July, after the window, so the formula doesn't count her, but a Shopify customer report run in August shows her as a repeat customer. The formula gives 1 of 3 customers, or 33%. Last year Window: Jan to Jun July Ana Ben Cara Two orders, both inside the window One order last year, one inside the window One order in June, the next in July Result: repeat customer in the formula. Shopify counts her as repeat too. Result: not repeat in the formula. Shopify counts his order as a returning customer's order. Result: not repeat in the formula. A Shopify report run in August shows her as a repeat customer. Formula: 1 of 3 customers = 33%
Same three customers, same dates. The formula counts only orders inside the window; Shopify's customer reports read each customer's whole order history.

Shopify's Returning customers report lists everyone whose order history holds two or more orders, so all three show up there. The formula counts one. Neither number is wrong. They answer different questions.

To get the windowed number from your own orders:

  1. In your Shopify admin, open Orders, click Export, choose Orders by date and set the window's start and end dates.
  2. In the CSV, delete canceled orders (the Canceled at column has a date) and refunded ones (Financial Status says refunded).
  3. An order with several products takes several rows, so keep one row per order Name. Then count the orders for each Email.
  4. Count the emails with two or more orders, divide by the number of emails, and multiply by 100.

Repeat purchase rate vs returning customer rate

Repeat purchase rate asks: of everyone who ordered in the window, how many ordered at least twice in it? A returning customer rate on Shopify's definition asks how many of them had ordered before, at any time. On a store that's been selling for years, that second number runs higher.

The windowed number is the one to take to your boss. Name the window when you do ("28% over the last 12 months"), and if someone pulls a bigger number out of Shopify, you'll know why.

Repeat purchase rate calculation: which time window to use

Match the window to how long your product lasts. A 12oz bag of coffee and a 90-day bottle of supplements come back on different clocks, so a 30-day rate tells a coffee brand more than it tells a supplement brand.

Short windows also read low: customers who first ordered near the end of the window haven't had time to order again. For a 30- or 90-day rate, count only customers whose first order came early enough to have used up what they bought.

Keep subscription orders out, or report them on their own. Subscribers reorder on a schedule, and mixing them in hides whether everyone else comes back. Our free analytics plan does that split for you on your own Shopify data: your 90-day return rate for one-time buyers and subscribers, side by side.

What's a good repeat purchase rate?

Over 12 months, most stores see 20 to 30% of customers buy again. Brands that sell consumables see 30 to 45%. A 90-day rate reads lower than a 12-month one, so compare like with like. Benchmarks by category, and how to read a 30- or 90-day rate against them, are in what is a good repeat purchase rate.

The benchmark that tells you the most is your own rate, measured the same way every quarter. If this year's customers come back more than last year's did, your second-order program is working, whatever the industry average says. Shopify's Customer cohort analysis report lines that up for you, grouping customers by the month they first bought.

How to increase repeat purchase rate

For a product people use up, the second order comes when they're running low. So make that order easy, and ask when it's due.

That's what reOtter does for Shopify brands on Klaviyo. Each reminder links to a personal reorder page inside your own store, with the items the customer is due for already in the cart and your normal checkout. Your Klaviyo flows send the reminder, and you write it.

Timing comes from each customer's own order history, for each product they bought. Two people buy the same 12oz bag of coffee. One finishes it in a week, the other takes three, and a reminder 30 days after purchase fits neither of them. reOtter works out each one's pace. Open any reminder to see why it went out, and change the timing for that product if you know better.

See how reOtter improves this → Install reOtter free

Frequently asked questions

What's the difference between repeat purchase rate and reorder rate?
Repeat purchase rate counts customers who buy anything from you again. Reorder rate counts only repeat purchases of the same product. If you sell things people use up, watch reorder rate: it shows who came back for the thing they finished.

Keep exploring