Customer retention rate formula: how to calculate it (with examples)

IN THIS ARTICLE

The customer retention rate formula is ((E – N) / S) x 100. E is the number of customers you have at the end of a period, N is the new customers you added during it, and S is the number you started with.

We’ll add one opinion to the math. Retention rate is a receipt. It’s printed after the customers have left, and it’s an average, when nobody churns on average. One customer stays or one customer goes. The teams that keep this number high spend their time on next quarter’s retention, one customer at a time, before the receipt prints. You’ll get the math first, then the way to get ahead of it.

What is customer retention rate?

Customer retention rate is the percentage of customers a business keeps over a set period, such as a month, quarter or year. It counts only customers who were already there at the start, so new customers acquired during the period are left out of the calculation.

It’s the number every subscription and repeat-purchase business watches, since keeping a customer nearly always costs less than winning a new one. (If you came here for employee retention, the math is close, but this guide is about customers.)

The customer retention rate formula

Customer retention rate = ((E – N) / S) x 100

  • E = customers at the end of the period
  • N = new customers acquired during the period
  • S = customers at the start of the period

Why subtract N? Because E counts everyone on your books at the end, including people who signed up last week. Leave them in and a strong sales month hides a weak retention month. You could lose a fifth of your base, replace every one of them, and report 100%.

Skipping that subtraction is the most common mistake we see. Taking N out removes acquisition from the picture, so the result answers a single question: of the customers we started with, how many stayed?

How to calculate retention rate, step by step

  1. Pick a period. A month, a quarter or a year. Keep it the same every time you report, or your trend line means nothing.
  2. Count S. Every active customer on day one of the period.
  3. Count E. Every active customer on the last day.
  4. Count N. Every customer who joined between those two dates.
  5. Apply the formula. Subtract N from E, divide by S, multiply by 100.

Here’s a worked example with round numbers. You started the quarter with 2,000 customers, added 300 new ones, and ended with 1,900.

((1,900 – 300) / 2,000) x 100 = 80%

You kept 1,600 of your original 2,000. Skip the subtraction and you’d get 1,900 / 2,000 = 95%, which is fifteen points of flattery.

In Excel or Google Sheets, put S in cell B1, E in B2 and N in B3, then enter =(B2-B3)/B1 and format the cell as a percentage.

A tip before you count anything: write down what “active customer” means. For subscriptions, that’s a paid, live account. For repeat-purchase businesses, there’s no cancel button, so you have to choose a rule, such as “bought at least once in the last 90 days.” Whatever you pick, apply it to S, E and N alike.

Monthly vs annual retention: which period to use

Match the period to how often customers get a chance to leave.

Monthly subscriptions hand customers twelve exits a year, so measure monthly. Annual contracts offer one exit, at renewal. Measure those annually, because a monthly figure will look perfect for eleven months and then fall off a ledge. Repeat-purchase businesses should follow the natural buying cycle. A coffee subscription and a mattress brand don’t belong on the same calendar.

Converting between the two trips people up. You can’t multiply a monthly rate by 12, and you can’t average it either. Retention compounds, which means each month’s rate applies to whoever is left from the month before. A 95% monthly rate sounds healthy. Over a year it’s 0.95 multiplied by itself twelve times, and that comes to 54%. Nearly half your customers, gone.

Going the other way, an 80% annual rate works out to about 98.2% a month.

Other ways to measure retention: N-day, cohort and revenue retention

The classic formula counts heads over a calendar period. Three other views answer questions it can’t.

N-day retention is the standard for apps and games. It’s the share of new users who come back on a specific day after their first session, usually day 1, day 7 and day 30. If 1,000 people install on Monday and 250 open the app the following Monday, your day 7 retention is 25%. It tells you how fast new users drop off, which a quarterly rate never will.

Cohort retention groups customers by when they joined and follows each group over time. Picture a table with one row for every signup month and one column for each month after. It shows whether your March customers are sticking better than your January ones did, so you can tell if product and onboarding changes are working.

Revenue retention swaps customers for money. Gross revenue retention (GRR) is the recurring revenue you kept from existing customers after cancellations and downgrades, and it tops out at 100%. Net revenue retention (NRR) adds upgrades and expansion back in, so it can pass 100%. If your accounts vary a lot in size, track these next to the customer count. We cover the formula and its uses in our guide to net revenue retention.

Retention rate vs churn rate

They’re two halves of the same number. Measured on the same base and the same period, churn rate equals 100% minus retention rate. In the example above, 80% retention means 20% churn, or 400 of your 2,000 starting customers.

Watch the “same base” part. Teams often quote monthly churn next to annual retention, or count customers in one and revenue in the other, and then wonder why the two don’t add up to 100. For the churn rate formula, its variations and a full analysis framework, see our guide to churn rate analysis.

What is a good customer retention rate?

It depends on what you sell and how often people can walk away. That sounds like a dodge, so here are dated numbers.

First Page Sage’s 2026 report on customer retention rates by industry, covering 10,214 firms, puts average annual customer retention at 86% for commercial insurance, 74% for B2B SaaS, 62% for ecommerce and 55% for hotels and hospitality. On the revenue side, SaaS Capital’s 2025 survey of private B2B SaaS companies found a median gross revenue retention of 91%.

Now for the awkward part. A separate 2026 benchmark, from Aleph and Benchmarkit, puts that same median at 84% for the same year. Two credible surveys, seven points apart.

That’s the trouble with benchmarks. Samples differ, definitions differ, and a single industry average blends very different businesses together. Use them for a rough sense of the neighborhood. Then judge yourself against your own trend, cohort by cohort, because that’s the comparison you can do something about.

Why retention rate is a lagging indicator

Go back to the receipt. Your quarterly retention rate reports who left over the last 90 days. By the time it’s on a slide, some of those customers have been gone for almost three months.

It also hides where the problem is. An 80% blended rate could be 95% among annual plans and 60% among customers who joined on a discount. The average looks stable while one segment slides.

And it never gives you names. The rate says 400 customers left. It can’t say which 400 are leaving next quarter, so it gives your retention team no list to work from. A number that only looks backward is fine for a board deck. For saving a customer, you need one that looks ahead.

How to predict retention instead of just measuring it

Predicting retention means scoring every active customer on how likely they are to leave within a set window, such as the next 90 days. A churn model learns from your history. It looks at the customers who left before and finds what their behavior had in common in the weeks leading up to it: purchases spacing out, logins dropping, a run of support tickets, a plan downgrade.

See what you could predict with your existing data

Each customer then gets a score and the drivers behind it. Those land in your CRM and marketing tools, where your retention team already works. Now there’s a list. The high-risk, high-value accounts get a call. The price-sensitive ones get an offer. The loyal majority gets left alone, which saves you from discounting people who were staying anyway.

Two things keep this honest. A score only pays off if you treat customers differently because of it. And some people will leave whatever you do. The goal is to spend your effort on the ones you can keep.

With Pecan, you bring your historical data and the question (say, “which subscribers will cancel in the next 90 days?”). Our Predictive AI Agent reads that history, trains and validates the model, and scores every active customer. We put the predictions live in the tools your team already uses, and we keep them accurate as your business changes. Comparing options? Our roundup of churn prediction software lays out the field, and our walkthrough of predictive churn modeling explains how the models work. Or see how we predict customer churn on your own history.

Frequently asked questions

What is the formula for retention rate?

How do you calculate retention rate in Excel?

Should new customers be included in retention rate?

What is a good net revenue retention rate?

How is retention rate different from churn rate?

Get next quarter's number working for you

See what you could predict with your existing data
asaf katz
About the author
Asaf Katz
Asaf is the Head of Customer Success at Pecan AI, where he helps enterprise customers turn predictive analytics into real, measurable business outcomes. He’s grown through Pecan from AI Success Manager to Team Lead to Director, bringing a strategic consulting background and an Economics degree from the Hebrew University of Jerusalem (plus a serious scuba diving habit).

Ask a question. Get a prediction. Act with confidence.