Customers & retention

Customer retention rate (CRR)

Customer retention rate is the share of customers you had at the start of a period who are still customers at the end of it. New customers won during the period are left out, so it shows loyalty, not growth.

Formula

Retention rate=Customers at the end − New customersCustomers at the start× 100%
Customers at the end
Active customers on the last day of the period.
New customers
Customers who were won during the period.
Customers at the start
Active customers on the first day of the period.

Try it with your numbers

Change any value and the result updates. Nothing you type leaves your browser.

Customer retention rate—
Full calculator: Churn revenue impact calculator

Worked example

You start the quarter with 1,000 customers, win 150 new ones and end with 1,050. Retention = (1,050 − 150) ÷ 1,000 = 90%: 100 of the original customers were lost.

How to read it

Retention and churn are two sides of one number for the same starting group. Track it per cohort (customers who joined in the same month) to see whether newer customers stay better than older ones.

How to calculate CRR in SQL, Power BI and Excel

Copy, rename the tables and columns to match yours, and run. The SQL is written for PostgreSQL and works with small changes in BigQuery, Snowflake or SQL Server.

-- Quarterly retention: starting customers who are still active at the end
WITH start_c AS (
  SELECT DISTINCT customer_id FROM customer_activity
  WHERE active_date = date '2026-07-01'
), end_c AS (
  SELECT DISTINCT customer_id FROM customer_activity
  WHERE active_date = date '2026-09-30'
)
SELECT COUNT(*)                                        AS customers_at_start,
       COUNT(e.customer_id)                            AS still_active,
       ROUND(100.0 * COUNT(e.customer_id) / COUNT(*), 1) AS retention_pct
FROM start_c s
LEFT JOIN end_c e USING (customer_id);

Excel: B2 = customers at the start, B3 = customers at the end, B4 = new customers in the period.

Common mistakes

  • Dividing end customers by start customers. New customers inflate the result and hide losses.
  • Using different definitions of "active" at the start and at the end.
  • Comparing a month with a quarter. Longer periods always show lower retention.

Questions people ask

How is retention rate different from repeat purchase rate?

Retention asks "is the customer still active?" over a period. Repeat purchase rate asks "did they buy more than once?" Shops without subscriptions usually need both, with a clear rule for what active means.

What counts as an active customer in e-commerce?

There is no contract, so pick a window that fits how often people buy, for example "ordered in the last 180 days", and use it everywhere.

Want CRR measured the same way everywhere?

We define it with your team, build it into your data and dashboards, and keep it right. See Churn & retention analytics, or start with a two-week Data Health Check.