Repeat purchase rate: the formula, and the number that matters more

Repeat purchase rate is the share of customers who bought more than once in a set window. Divide customers with two or more orders by all customers who ordered, then multiply by 100. The window and the definition of customer change the answer, so write both down next to the number.

Cosmic AI cover for the topic Retention measured honestly: orbits around one bright point, lavender on dark purple.

A repeat purchase rate of 41% and one of 15% can describe the same store in the same quarter. Both are correct. They count different things, and most dashboards do not say which one you are looking at, which is how two people in one meeting end up quoting different repeat rates for the same store while both read the data correctly.

This guide gives the formula, works one dataset four ways, and then shows the figure I would put beside it: contribution margin per order. A repeat rate can climb for a quarter while the business earns less, and the rate alone will never tell you.

What is the repeat purchase rate formula?

Repeat purchase rate is the share of customers who placed two or more orders in a window you choose.

Repeat purchase rate = customers with 2 or more orders in the window
                       / customers with 1 or more orders in the window
                       x 100

Shopify's own guide to ecommerce KPIs gives the same formula: repeat customers divided by total customers, times 100.

Two choices sit inside that formula, and each one moves the result.

  1. The window. A 30 day window on a product people reorder every 90 days will show almost nobody repeating. A lifetime window will keep rising for as long as the store exists.
  2. Who counts as a repeat customer. Someone with two orders inside the window is one answer. Someone who ordered once in the window and once three years ago is another.

Write both choices beside the number every time it appears in a report. A rate without its window cannot be compared with last quarter, and it cannot be compared with anyone else's.

How do you calculate it two ways, customers and orders?

The first way counts people. The second counts orders. Shopify reports the people version under the name returning customer rate, and its analytics field reference defines it as returning customers divided by customers. In Shopify's customer reports, a returning customer is someone who placed an order and already had at least one order in their history.

The order version is returning order share: orders from customers who had bought before, divided by all orders.

Returning customer rate = returning customers / customers who ordered x 100
Returning order share   = orders from returning customers / all orders x 100

The two drift apart because returning customers tend to place more than one order in a period. A store where a small loyal group orders weekly will show a modest customer rate and a large order share. Neither figure is wrong. The customer rate tells you how many people came back. The order share tells you how much of the order volume depends on them.

One quarter, four honest answers

Here is a made-up store, with round numbers chosen so the arithmetic is easy to check. It is an illustration, not data from any brand.

In the third quarter, 10,000 customers placed 11,500 orders. Of those customers, 6,500 were buying for the first time and 3,500 had bought before the quarter began. Among the first-time buyers, 600 came back for a second order before the quarter ended. Among the 3,500 earlier customers, 900 ordered twice in the quarter and the rest ordered once. Of the 2,000 people whose first order fell in July, 360 ordered again within 90 days.

MeasureArithmeticResult
Repeat purchase rate, in the window(600 + 900) / 10,00015.0%
Returning customer rate(3,500 + 600) / 10,00041.0%
Returning order share(600 + 4,400) / 11,50043.5%
90 day second order rate, July cohort360 / 2,00018.0%

One store, one quarter, and results from 15% to 43.5%. A team that reports 41% and an agency that reports 15% can both be reading the data correctly.

The last row is the one I trust most for judging retention. It follows a fixed group of new customers for a fixed number of days, so a flood of new buyers or a long store history cannot bend it. Its cost is patience: a 90 day rate for October's customers is not final until the end of January.

Why does Shopify's number differ from your spreadsheet?

Three reasons account for most gaps between a Shopify report and a hand-built sheet.

First, Shopify's customer reports use each customer's entire order history, whatever dates you picked. Shopify's documentation gives the example of a report for November alone: a customer who first bought in November still shows as a repeat customer if the second purchase came in December. A spreadsheet built from a November export of orders would count that person as a one-time buyer.

Second, guest checkouts and duplicate profiles split one person into two customers. That pushes every repeat measure down.

Third, the window. A report set to 12 months and a sheet built on a calendar quarter are answering different questions.

Shopify's field reference also notes that most stores show a returning customer rate between 20% and 40%. Treat that as a description of Shopify's own field. It is not a benchmark for the 15% figure in the table above, which uses a stricter definition.

Why can a rising repeat rate be bad news?

Every measure above counts orders or people. None of them counts what an order earned. A discount sent to past customers raises all four figures and lowers the margin on each order it brings in.

Here is the arithmetic for one order, using example costs: product cost of $31.50, shipping of $7.50, and payment fees of 2.9% plus $0.30. The calculation is mine.

LineFull price20% off
Order value$75.00$60.00
Product cost$31.50$31.50
Shipping$7.50$7.50
Payment fees$2.48$2.04
Contribution margin before ads$33.52$18.96

The discount took 20% off the price and 43% off the margin, because product cost and shipping did not shrink with the price. To earn the same margin dollars, the discounted campaign has to bring in 77% more orders than the full-price one would have (33.52 / 18.96 = 1.77).

A win-back email with a code can clear that bar. It can also pull forward orders that loyal customers were about to place at full price, in which case the repeat rate rises and the quarter earns less. The rate cannot tell those two outcomes apart. Margin per order can. The full method for that figure is in contribution margin per order, and the line-by-line definition is in the contribution margin formula.

What does this look like on a store's numbers?

Every figure in this section is an example figure from an example store, not a customer result. The example store is far larger than most, so read the shares and ratios, not the totals. Over the last 30 days the example store had 227,671 orders and a returning order share of 72.85%. By the order measure, nearly three in four orders came from people who had bought before.

Two other numbers changed the picture. In the last 10 days of that window, discounts took 11.1% of gross sales against 2.8% in the 30 days before. In the latest week, orders rose 44% and average order value fell from $75.56 to $67.74.

Read alone, the example share of 72.85% says the customer base is loyal. Read beside the discount share, it says those orders came in during a stretch when the store was giving away four times as much of each sale. Whether that trade paid is a margin question. Dividing the example store's 30 day contribution margin after ads of $3,332,439.80 by its 227,671 orders gives $14.64 per order, which is my arithmetic on example figures and not a result any customer achieved.

Which number should you watch each week?

Watch three figures together each week, and one each month.

  • Weekly: returning order share. It is available the next morning and it moves quickly when something breaks.
  • Weekly: discounts as a share of gross sales. This is the context for the first figure.
  • Weekly: contribution margin per order, split by new and returning customers if your data allows it.
  • Monthly: the 60 or 90 day second order rate for each monthly cohort of new customers. This is the slow, honest measure of whether first-time buyers come back.

When returning order share rises while margin per order holds, retention is improving. When the share rises and margin per order falls, the store bought those orders with discounts, and the next question is whether they would have arrived anyway.

Email platforms add one more trap. A flow can be credited with repeat orders that customers would have placed regardless, and the way to test that is covered in how to check Klaviyo attributed revenue.

Where Cosmic AI fits

Cosmic AI works out contribution margin from your own orders once you set your costs, so a repeat figure can sit beside what those orders earned. It checks supported figures against their source before it reports a number. When costs are missing or the data is thin, it answers "not enough data" and gives no estimate.

Frequently asked questions

How do you calculate repurchase rate?

Pick a window, count the customers who placed two or more orders inside it, divide by all customers who placed at least one order inside it, and multiply by 100. If 1,500 of 10,000 customers ordered twice or more in a quarter, the repurchase rate for that quarter is 15%.

What is a good repeat purchase rate?

It depends on the definition and the product. Shopify's field reference says most stores show a returning customer rate of 20% to 40%, which counts anyone with an earlier order. A stricter measure, such as second orders within 90 days of a first purchase, will be lower for the same store. Compare a rate only against the same measure and window.

What is the difference between repeat purchase rate and retention rate?

Repeat purchase rate counts customers who bought more than once within a single window. Retention rate follows a group of customers from one period into the next and asks how many are still buying. A cohort view, such as the share of July's new customers who order again within 90 days, is a retention measure.

What is it called when you have repeat customers?

The people are called repeat customers or returning customers. The measures built on them go by several names: repeat purchase rate, repeat customer rate, returning customer rate and repurchase rate. The names are used loosely, so check the formula behind any figure before comparing it with another.

Is returning customer rate in Shopify the same as repeat purchase rate?

Not always. Shopify's returning customer rate divides returning customers by all customers who ordered, and a returning customer is anyone with an earlier order on record. A repeat purchase rate limited to two orders inside one window is stricter and will usually be the lower of the two.

Check a number before you report it.

The free CLI compares a figure with its source record and marks it REPORT or HOLD, with the reason.

Cosmic AI is one desktop app where a lead agent and its specialists do the marketing work for a Shopify store. Each figure is checked against its source, and agents act on their own inside limits you set.

Book a callInstall the free CLI

Get Jake's AI newsletter

Three short emails a week with the AI news that matters for running or building a business. Every item links to its source.

I'll try to point you to something useful for it in your first email. No passwords or keys.

You will get Jake's newsletter and occasional Cosmic AI news. Unsubscribe in one click from any email. Privacy