Guide · Shopify customers
How to calculate repeat purchase rate in Shopify
Repeat purchase rate is the number of customers with two or more orders divided by all customers who ordered, over the same window. In Shopify, export your customers, drop records with no orders, and divide those with two or more orders by the rest. Use a window longer than your usual gap between orders.
What is the repeat purchase rate formula?
Repeat purchase rate = customers with 2 or more orders divided by customers with at least 1 order. Both counts must cover the same window and the same set of customers. The example below uses made-up figures.
Datae's customer retention analysis uses the same formula. Its scorecard reads above 30% as good and below 20% as needing work. Treat those as rough rules of thumb: a store selling mattresses and one selling coffee should expect very different rates.
| Step | Figure |
|---|---|
| Customers who placed at least one order in the last 12 months | 1,200 |
| Of those, customers with two or more orders | 300 |
| Repeat purchase rate | 300 divided by 1,200 = 25% |
| One-time buyer share | 900 divided by 1,200 = 75% |
Is repeat purchase rate the same as Shopify's returning customer rate?
No, and mixing them up is the most common mistake. Shopify's returning customer rate is the share of customers who ordered in a period and had bought from you before. It answers 'how much of this month's buying came from past customers?' A month with a big acquisition push lowers it even if loyalty hasn't changed.
Repeat purchase rate follows a set of customers and asks how many came back. Both are useful. Just don't compare one store's returning customer rate with another store's repeat purchase rate.
How long a window should you use?
Longer than the usual gap between a customer's first and second order. If most second orders come four months after the first, a 90-day window will make loyal customers look like one-time buyers. Twelve months suits most stores; consumables can use less, furniture needs more.
Recent customers haven't had time to come back yet, so a plain 12-month rate always includes some people who are still 'due'. For a fairer read, use cohorts: take the customers whose first order fell in one month and count how many ordered again within 90, 180 and 365 days. Shopify's customer cohort analysis report groups customers by their first order date in this way.
What skews repeat purchase rate in Shopify?
Check these before you trust the number.
- Customer records with no orders, such as newsletter signups, belong out of the count. Leave them in and the rate looks far lower than it is.
- Shopify generally ties a guest checkout to a customer record by email address, so one person using two emails counts as two customers, and an order placed without an email may not be tied to a customer at all.
- Cancelled and test orders can make a one-time buyer look like a repeat buyer.
- Wholesale or B2B buyers reorder by habit and lift the rate. Work them out separately.
- Subscription renewals count as orders, so a subscription store's rate mostly reflects its subscriptions.
- If you moved to Shopify from another platform, customers only have the order history you imported.
Can ShopifyQL work out repeat purchase rate?
Yes, for your whole customer base. This query lists the share of customers by lifetime order count, leaving out records with no orders: FROM customers SHOW percent_of_customers WHERE customer_number_of_orders >= 1 GROUP BY customer_number_of_orders ORDER BY customer_number_of_orders ASC. Your lifetime repeat purchase rate is 100% minus the share on the row for 1 order.
How do you calculate repeat purchase rate in Shopify by hand?
The customer export gives a lifetime rate. The order export gives a rate for any window.
- In the Shopify admin, open Customers, choose Export, and export all customers as a CSV.
- In a spreadsheet, delete rows where Total Orders is 0.
- Count the rows where Total Orders is 2 or more, and divide by the rows left. That is your lifetime repeat purchase rate.
- For a set window, open Orders, filter to the date range, and export. Leave out cancelled and test orders.
- Make a pivot table counting orders per customer email, then divide the emails with two or more orders by all emails.
- Cross-check the counts against the Returning customers and One-time customers reports under Analytics, Reports, and use Customer cohort analysis to see how cohorts come back over time.
How does Datae calculate repeat purchase rate?
Run the customer retention analysis skill, or ask. Datae works from your Shopify customers and orders and returns a retention scorecard: repeat purchase rate, average time between orders, how many top customers are at risk, and the share of one-time buyers. It ranks your top 10% of customers by spend and flags those who haven't ordered in more than 45 days as at risk, then suggests five retention steps for your store.
It covers the last 90 days by default; ask for 12 months or a cohort view and it can query Shopify's customer report with ShopifyQL. With Klaviyo connected through a full access key, Datae can draft a win-back segment or campaign in Klaviyo, which waits for your approval in Tasks. It doesn't send anything itself.
- Install Datae. Shopify is connected from the start.
- Run the customer retention analysis skill with / in the chat, or ask one of the questions below.
- Ask for the window that fits your buying cycle if 90 days is too short.
What can you ask Datae?
Install Datae, open the chat and paste one in. The answer comes from your own store's data.
- “What is my repeat purchase rate over the last 12 months, and how long do customers usually take to order a second time?”
- “Which of my top customers haven't ordered in more than 45 days?”
- “Of the customers who first ordered in January, how many have ordered again?”
Related
Common questions
Should repeat purchase rate count customers or orders?
Customers. Count each customer once, then ask whether they have two or more orders. Counting orders lets a handful of frequent buyers inflate the number.
Why is my repeat purchase rate so low in the first year?
A young store has many recent customers who haven't had time to order again. Look at cohorts that are at least one full buying cycle old before judging the rate.
What is Datae?
An AI store manager that lives inside your Shopify admin. Ask about your store, ads, SEO or email and it pulls the live numbers, explains them, adds what needs doing to a task list and prepares the fix.
Is my data secure?
Connections use OAuth and tokens are encrypted at rest. Datae fetches data on demand to answer each question rather than syncing your store. Chat transcripts, including the data tools returned, are kept so you can revisit past analyses; you can delete any chat at any time, and uninstalling removes all of your shop's data. Datae implements Shopify's mandatory privacy webhooks. See our Privacy Policy for the full picture.
Ask your store its first question
Free plan, no credit card. Datae installs read-only.