Arron Bennett, Founder of Bennett Financials

That's one of my recent videos, where I run through every business KPI that matters. In the revenue section, there are two retention numbers I care about a lot.

Net revenue retention. Revenue from your existing customers this period, divided by what those same customers paid a year ago. Upgrades count. Downgrades and cancellations count against you.

Gross revenue retention. The same, but upgrades are stripped out. It's the pure leak rate of your customer base.

If net revenue retention is above 100%, your existing customers alone grow the business before you add a single new one. Gross revenue retention tells you how much is leaking out underneath.

I ran these numbers for a founder recently. Their total MRR had grown every quarter, and they felt great about it.

"Arron, our churn can't be that bad. We're growing."

When we ran retention on the customers they'd had a year earlier, net retention was under 90%. New sales were covering a leak they hadn't noticed.

Here's a short script that calculates both from a billing export.

The data

This is a hypothetical example. The numbers are made up to show the method.

Let's say a small B2B product has seven customers paying in December 2025, and we want to know what happened to them by December 2026. One extra customer signed up during the year. They shouldn't count, because retention is about the customers you already had.

The input is the shape most billing tools can export: one row per customer per month, with the recurring amount billed.

The code

import pandas as pd # One row per customer per month: recurring revenue billed that month. billing = pd.DataFrame( [("acme", "2025-12", 2000), ("acme", "2026-12", 2600), # upgraded ("birch", "2025-12", 1500), ("birch", "2026-12", 1500), # flat ("cobalt", "2025-12", 3000), ("cobalt", "2026-12", 2200), # downgraded ("delta", "2025-12", 1200), # canceled ("ember", "2025-12", 800), ("ember", "2026-12", 1400), # upgraded ("fjord", "2025-12", 2500), ("fjord", "2026-12", 2500), # flat ("garnet", "2025-12", 900), # canceled ("harbor", "2026-12", 3000)], # new this year columns=["customer", "month", "mrr"]) def retention(df: pd.DataFrame, start: str, end: str) -> dict: wide = df.pivot_table(index="customer", columns="month", values="mrr", aggfunc="sum").fillna(0) base = wide[wide[start] > 0] # only customers paying at the start start_mrr = base[start].sum() end_mrr = base[end].sum() # the same customers, a year later kept_mrr = base[[start, end]].min(axis=1).sum() # cap each customer at their starting MRR return { "starting_mrr": start_mrr, "same_customers_now": end_mrr, "net_revenue_retention": end_mrr / start_mrr, "gross_revenue_retention": kept_mrr / start_mrr, "canceled": int((base[end] == 0).sum()), "new_customers_ignored": int(((wide[start] == 0) & (wide[end] > 0)).sum()), } r = retention(billing, "2025-12", "2026-12") print(f"Starting MRR (Dec 2025 customers): ${r['starting_mrr']:,.0f}") print(f"Same customers, Dec 2026: ${r['same_customers_now']:,.0f}") print(f"Net revenue retention: {r['net_revenue_retention']:.0%}") print(f"Gross revenue retention: {r['gross_revenue_retention']:.0%}") print(f"Customers who canceled: {r['canceled']}") print(f"New customers (not counted): {r['new_customers_ignored']}") 

The output

Starting MRR (Dec 2025 customers): $11,900 Same customers, Dec 2026: $10,200 Net revenue retention: 86% Gross revenue retention: 76% Customers who canceled: 2 New customers (not counted): 1 

How it works

Pivot to one row per customer. pivot_table turns the long billing export into a table with a column for each month. Customers who didn't pay in a month get zero.

Filter to the starting base. base keeps only customers who were paying at the start. That's the key step. The new customer, harbor, is dropped because they weren't there a year ago.

Net retention. Add up what the starting customers pay now and divide by what they paid then. Upgrades push it up. Downgrades and cancellations pull it down.

Gross retention. For each customer, take the lower of their starting and ending MRR. That caps upgrades at zero, so only losses count. Then divide by the starting total.

Reading the result

Net revenue retention is 86%. So without any new customers, this business would be 14% smaller in a year.

Gross revenue retention is 76%. Almost a quarter of starting revenue leaked out through cancellations and downgrades. Two upgrades (acme and ember) won some of that back.

Here's the thing. The headline MRR for this business probably went up over the year, because harbor signed at $3,000. That hides the leak. Retention numbers pull it into the light.

The problem is, most founders only look at total MRR. It's possible to grow total MRR for a long time while the base underneath slowly drains, as long as new sales keep outrunning the leak. When new sales slow down, the leak is suddenly all you can see.

Mistakes that skew the numbers

Counting new customers. If you include customers who joined during the year, net retention looks great and means nothing. The script filters them out on purpose.

Mixing annual and monthly billing. A customer on an annual plan shows a big payment once a year. Spread it into a monthly figure before running this, or they'll look like they canceled for 11 months.

Counting one-off charges. Setup fees and one-time projects aren't recurring. Leave them out, because they inflate both numbers.

Ignoring failed payments. A customer whose card failed shows as zero. If they're recovered next week, you'll undercount retention. Run it on a month that's been fully settled.

Too small a sample. With seven customers, one cancellation swings the number a lot. That's fine for a demo. In a real business, watch the trend across several periods.

Things to try

  • Load a real export. Replace the billing DataFrame with pd.read_csv("billing.csv"). Rename columns to customer, month and mrr so the function works unchanged.
  • Run it every month. Loop over months and compare each one with the same month a year earlier. Plot the two lines.
  • Split by plan or segment. Filter billing by plan before calling retention(). Often one plan leaks far more than the others.
  • Add a cancellation reason. If your billing tool records why people left, join it in and count reasons for the customers where the end month is zero.

What good looks like

There's no single right number, because it depends on who you sell to. Businesses selling to larger companies often see higher retention than those selling to very small ones, since bigger customers switch tools less often.

A few rough markers I use when looking at a small recurring business:

  • Net revenue retention above 100%. Existing customers are growing on their own. That's a strong engine.
  • Gross revenue retention in the 80s or 90s. Not much is leaking out.
  • Gross revenue retention below about 75%. A big part of the base is leaving each year. Fix that before spending more on new customers.

Then watch the direction. A business going from 78% to 85% over a year is in better shape than one sliding from 90% to 84%, even though the second number is higher.

What to do when the leak is big

Start by sorting the lost revenue into buckets: full cancellations, downgrades and failed payments.

Failed payments are usually the cheapest to fix. Retries, card-update reminders and a banner in the app can recover a surprising share.

Downgrades often mean customers aren't using what they pay for. Better onboarding and check-ins help.

Cancellations need a reason. Ask everyone who leaves, and group the answers. One or two reasons usually account for most of it.

Why it matters beyond the dashboard

When a business with recurring revenue is valued, buyers look closely at retention. They want to know how much of the revenue base they'd need to replace over the next few years. A business that keeps and grows its existing customers is usually worth far more than one that has to replace a big chunk every year.

So even if you never plan to sell, it's worth knowing these two numbers under the hood of your MRR.

I've put more on recovering failed SaaS payments and why recurring revenue can double your multiple on our site.