Search "repeat purchase rate formula" and the answer takes five seconds to find: repeat customers divided by total customers, times one hundred. The formula has never been the hard part. The hard part is that two people can run that exact formula on the exact same store and land on two different numbers, with neither one making an arithmetic mistake.
One pulls Shopify's built-in returning customer rate for the period, no adjustments. The other exports the raw order list and deduplicates customers by normalized email and shipping address first, because the same shopper checked out as a guest twice under slightly different details. Both ran the same formula correctly. They answered two different questions about what counts as "the same customer," and most stores only ever look at the first answer. That gap is the part a generic repeat purchase rate ecommerce calculator or formula page never mentions.
- Repeat purchase rate is a simple formula, but the formula is the easy part. The hard part is deciding what counts as "the same customer."
- Guest checkout, duplicate customer records, and multi-channel selling all fragment one real person into multiple "new" customer records, which understates repeat purchase rate without anyone noticing.
- Shopify's returning customer rate and a cohort-based repeat purchase rate are both legitimate, differently-defined metrics. Comparing them directly, without knowing that, is where most of the confusion starts.
What the formula actually measures
Repeat purchase rate is the share of customers in a given window who placed more than one order: repeat customers divided by total customers, times 100. Shopify's own analytics field reference defines its built-in version the same way: returning customers divided by all customers who placed orders in the period, where a returning customer is anyone whose order history already includes at least one prior order.
That definition hides two choices that change the output more than most people expect.
The window. A 30-day repeat purchase rate, a 90-day rate, and a trailing-12-month rate are three different numbers for the same store, because the denominator (who counts as "a customer" in that window) and the numerator (who counts as having repeated) both move with the window length. Shorter windows understate repeat behavior for stores with long replacement cycles; longer windows smooth over seasonal spikes. Pick one window, document it, and never compare a 30-day figure to a trailing-12-month figure from a different report.
The customer boundary. Everything downstream of the formula assumes "customer" means one consistent record per real person. That assumption is where the number actually breaks.
Where the number quietly breaks
None of the generic repeat purchase rate guides that rank for this keyword cover this part, because it is a data engineering problem, not a retention-marketing one. It is also the part that determines whether the number on your dashboard means anything.
Guest checkout fragments the same person into multiple "new" customers
A shopper who checks out as a guest, then checks out as a guest again three months later using a different email alias or a slightly different shipping address format, gets recorded as two separate first-time customers on most platforms. Shopify's own matching is email- and (where available) account-based; it does not fuzzy-match across typo'd addresses or alias emails by default. Every one of those false "new" customers is a real repeat purchase that your repeat purchase rate never counts. The more guest checkout volume a store runs, the larger this undercount gets, and it gets worse, not better, during high-traffic periods like a holiday sale when more shoppers skip account creation to check out faster.
Duplicate customer records do the same thing from a different cause
Work email for one order, personal email for the next. A phone-based reorder that creates a new guest record instead of matching to an existing account. Each of these produces a duplicate customer record for one real person, and every duplicate quietly deflates repeat purchase rate the same way guest checkout does.
Shopify's returning customer rate and a true repeat purchase rate are not the same metric
Shopify's returning customer rate is scoped to the customers who placed orders inside your selected date range. A repeat purchase rate computed against your entire historical customer base, asking what share of everyone who ever bought has bought more than once, is a different question with a different denominator. Both are valid. They will not match, and that mismatch is not a bug in either number.
Multi-channel and multi-platform selling fragments identity further
A customer who buys through your Shopify store and later through Amazon, or through a retail partner, looks like a brand-new customer on whichever channel they used second, because very few retailers have a unified customer ID across channels. The same cross-tool identity gap shows up in the numbers you report externally: it is the same underlying problem we cover in our breakdown of GA4 and Shopify revenue mismatches, where two systems disagree not because either is miscounting, but because they are counting different things under the same label.
B2B and multi-buyer accounts inflate the "new customer" count
A single business account with three different employees placing orders under three different names and emails looks like three separate first-time customers to most platforms, not one account with three repeat purchases. Stores selling to both consumers and businesses on the same storefront need to decide, explicitly, whether "customer" means a person or an account before the repeat purchase rate means anything for the B2B portion of the business.
How to calculate one you can actually trust
Fixing this is a data engineering task, not a bigger discount code.
- Fix the window and keep it constant. Trailing 12 months is the most common standard because it absorbs seasonality; run 30- and 90-day versions alongside it only to diagnose early-lifecycle issues, not as the headline number.
- Resolve identity before counting. Deduplicate customer records by normalized email at minimum, and by shipping address or phone where email alone is not reliable. This is the same identity-stitching problem a customer data platform is built to solve at scale, and it is worth building even a lightweight version of before trusting any retention metric built on top of it.
- Segment before you trust a blended number. A blended repeat purchase rate across guest and account checkouts, across B2B and D2C, across channels, averages away the exact problems you are trying to find. Split it by acquisition channel and by first-order cohort before drawing conclusions, which is the same discipline behind cohort analysis for ecommerce.
- Cross-check against the raw order export. Shopify's customer reports, including first-time vs. returning customer sales and customer cohort analysis, are a useful sanity check against a custom calculation, specifically because any large gap between the two tells you where the identity resolution is failing, not just that it is.
- Know what "returning" means in whatever tool reports it to you. If repeat purchase behavior ever gets analyzed in GA4 alongside Shopify data, remember that GA4 counts a "new user" by whether they logged a
first_visitorfirst_openevent in the date range, and counts everyone else who had at least one prior session as "returning", tracked against a client or user identifier, not a customer record. Without a logged-in User-ID passed into GA4, a returning customer and a returning browser session are not the same thing, and conflating them during analysis reintroduces the exact fragmentation problem the steps above are trying to fix.
The benchmark, used correctly
Shopify's Help Center states plainly that most stores display a returning customer rate between 20 and 40 percent, and that higher rates generally correlate with lower acquisition costs. That is a reasonable band to sanity-check against once the number above is actually trustworthy, not before. A store showing 12 percent repeat purchase rate after fixing identity resolution has a real retention problem worth solving. A store showing 12 percent before fixing it might just have a guest-checkout fragmentation problem, and no amount of loyalty program spend will move a number that was never counted correctly in the first place.
Audit the number before you act on it
The honest order of operations is: verify the metric, then decide what to do about it. A repeat purchase rate audit that checks identity resolution, window consistency, and segment-level reporting before anyone reaches for a loyalty app or a win-back campaign is exactly the kind of diagnostic work our product analytics service is built to do, scoped to the metrics your team actually reports on. If the deeper question is whether your reporting stack as a whole can be trusted, not just this one metric, our reporting audit covers that ground, with a sample report showing the format before you commit to anything.
If you are choosing between the two: fix identity resolution first whenever repeat purchase rate looks unusually low relative to the 20 to 40 percent band and guest checkout makes up a meaningful share of orders, because that pattern is a measurement signature, not a retention verdict. Only move on to retention tactics, loyalty programs, or win-back flows once the number you are optimizing against is one you would stake a budget decision on.
