# Repeat purchase rate: how to calculate it with an example

> Measure what share of your period’s buyers are identified as returning customers in your order history.


**Repeat purchase rate can use different windows and rules. Here, it measures what share of unique customers who bought during the period made at least one repeat purchase in that period, based on their order history.** Someone can make a first and second purchase in the same month and count as returning on the second order; the earlier purchase does not have to fall in a previous month.

**Repeat purchase rate (%) = unique customers with a returning order during the period ÷ unique customers who placed orders during that period × 100.**

### Example: returning buyers among everyone who ordered

In April, 300 unique customers placed at least one order. The order history shows a previous order for 90 of those customers before one of their April orders.

**90 ÷ 300 × 100 = a 30% repeat purchase rate in April.**

Count each person once in the numerator, even if they placed several returning orders. If someone made a first purchase and bought again in April, they belong in the numerator because one of their orders that month was a repeat purchase. Someone who made only a first purchase in April belongs in the denominator but not the numerator.

### How to read a change from 30% to 20%

April had 90 returning buyers and 210 who placed just one order, their first ever: 300 in total. In May, those 90 returning buyers buy again; the other 210 April buyers make no purchase that month. Another 360 people make their first purchase and do not buy again during May. That gives **90 + 360 = 450 unique May buyers**. The rate moves from **90 ÷ 300 × 100 = 30%** in April to **90 ÷ 450 × 100 = 20%** in May. Returning buyer count stays at 90 while first-time buyer count rises from 210 to 360. The rate falls because the buyer mix changes; the aggregate rate alone does not show that retention worsened.

To decide what to check, look at returning and first-time buyer counts together. Then compare first-purchase cohorts and the product’s expected buying cycle; someone who has not bought again may need more time before their absence means anything. Do not conclude that retention worsened from this rate alone.

In Shopify, the Returning customers report classifies customers with two or more orders in their history as returning. Its customer reports can use full order history even when the selected date range shows one month, so record the report, period, and rule you use. [See Shopify’s definition of returning customers](https://help.shopify.com/en/manual/reports-and-analytics/shopify-reports/report-types/default-reports/customers-reports) and its [analytics metrics glossary](https://help.shopify.com/en/manual/reports-and-analytics/shopify-reports/report-types/analytics-fields). This explanation uses unique customers from the period; a platform’s fields and reports may group orders differently.

## Repeat purchase rate is not cohort retention

Cohort retention follows a defined group, for example, customers whose first purchase was in January, and checks what share placed another order in February, March, or later. If 40 of 200 customers in the January cohort buy in March, cohort retention for that interval is **40 ÷ 200 × 100 = 20%**. It is not the same as April’s 30% repeat purchase rate: the group, period, and denominator differ. For a store without a contract, someone who has not bought again yet has not necessarily left; the expected timing depends on the product’s buying cycle. [Read how customer retention is calculated](/en/guides/customer-retention-rate/).

Before comparing months, keep customer identity, order statuses, and the treatment of returns consistent. If checkout allows guest orders, one person might appear as two customers; if several people share one account, the opposite can happen. The metric counts the records you can link, which may not equal every real individual.

*The 300 customers, 90 returning buyers, and cohort of 200 with 40 repeat orders are fictional figures to explain different denominators; they are not a benchmark.*

The cover is an AI-generated illustration.

## Plan your next post in HeyMark.

Keep the idea, review the draft with your team, and see how it performed in the accounts you connected.

[Start free](https://app.heymark.ai) · [See how it works](https://heymark.ai/en/#product)

## Developer and agent resources

- [HeyMark MCP documentation](https://heymark.ai/en/mcp/)
- [llms.txt](https://heymark.ai/llms.txt)
- [Full site content for language models](https://heymark.ai/llms-full.txt)
- MCP protocol endpoint: `POST https://mcp.heymark.ai`
- OAuth protected-resource metadata: [/.well-known/oauth-protected-resource](https://mcp.heymark.ai/.well-known/oauth-protected-resource)
- MCP server card: [/server-card](https://mcp.heymark.ai/server-card)
