Sub topic 11
Logo retention and net revenue retention
This chapter assumes you can build and read a user cohort table from the earlier chapters. You should also be comfortable with monthly recurring revenue (MRR), the subscription revenue a company expects each month. The code uses pandas.
User retention tells you whether people keep coming back. It does not tell you whether the business keeps the money. Two cohorts with identical user curves can have very different revenue curves, because customers differ in size and in how much they grow. This chapter adds two revenue-side lenses: logo retention and net revenue retention. Together with your usage cohorts, they feed the product-market fit judgment in the final chapter.
Logo retention
A logo is one paying customer account, whether it is a person, a team, or a company. Logo retention is the share of customers who were paying at the start of a period and are still paying at the end of it.
logo retention = customers from the starting group still paying at the end / customers in the starting groupThis is the classic retention definition from earlier, applied to paying accounts. "Active" means "has a live subscription" instead of "performed a key event". Three rules keep the number honest:
- Fix the starting group. Count only customers who were paying on the start date. Customers who sign up during the window never enter the numerator or the denominator.
- Fix the window. Twelve months is the usual choice for B2B products with annual contracts. Monthly logo retention suits self-serve products with monthly plans.
- Decide how to treat reactivations. A customer who cancels and returns inside the window can be counted as retained (if you measure only at the end) or churned (if you require continuous payment). Pick one rule and apply it to every cohort.
Logo retention is blind to size. Losing one customer who pays 50 dollars a month and losing one who pays 50,000 dollars a month both count as one lost logo.
Net and gross revenue retention
Revenue retention follows the money from the same starting group. Take the MRR of the starting customers at the start date, then compare it with what those same customers pay at the end. Start with these terms:
- Expansion is added revenue from existing customers: upgrades, extra seats, higher usage.
- Contraction is reduced revenue from customers who stay: downgrades, fewer seats.
- Churned revenue is the revenue of customers who left entirely.
The two standard measures are:
NRR = (starting MRR + expansion - contraction - churned) / starting MRR
GRR = (starting MRR - contraction - churned) / starting MRRNet revenue retention (NRR) includes expansion. Gross revenue retention (GRR) leaves expansion out, so it can never exceed 100%. Neither measure includes revenue from customers who joined after the start date.
| Measure | Counts expansion | Can exceed 100% | Question it answers |
|---|---|---|---|
| Logo retention | No revenue at all | No | Do customers stay? |
| GRR | No | No | How much of the starting revenue survives, ignoring growth? |
| NRR | Yes | Yes | Does the starting group pay more or less than before? |
Here is the arithmetic for one starting group.
start_mrr = 100_000
expansion = 8_000
contraction = 2_000
churned = 5_000
nrr = (start_mrr + expansion - contraction - churned) / start_mrr
grr = (start_mrr - contraction - churned) / start_mrr
print(f"NRR={nrr:.2%}, GRR={grr:.2%}")The output is NRR=101.00%, GRR=93.00%. This group lost 7 percent of its starting revenue to downgrades and departures. Expansion from other customers more than covered that loss, so the group as a whole pays 1 percent more than it did a year ago.
Computing all three from customer data
In practice you rarely have the four totals. You have one row per customer with MRR at the start and the end. The code below derives everything from those two columns.
import pandas as pd
customers = pd.DataFrame({
"customer": ["a", "b", "c", "d", "e"],
"mrr_start": [40_000, 25_000, 15_000, 12_000, 8_000],
"mrr_end": [64_000, 25_000, 13_000, 0, 0],
})
# Only customers paying at the start belong to the cohort.
group = customers[customers["mrr_start"] > 0]
start = group["mrr_start"]
end = group["mrr_end"]
delta = end - start
expansion = delta.clip(lower=0).sum()
contraction = -delta[(end > 0) & (delta < 0)].sum()
churned = start[end == 0].sum()
logo = (end > 0).mean()
nrr = end.sum() / start.sum()
grr = end.clip(upper=start).sum() / start.sum()
print(f"expansion={expansion}, contraction={contraction}, churned={churned}")
print(f"logo={logo:.2%}, NRR={nrr:.2%}, GRR={grr:.2%}")The output is:
expansion=24000, contraction=2000, churned=20000
logo=60.00%, NRR=102.00%, GRR=78.00%The clip(upper=start) step is the shortcut for GRR. Each customer contributes at most what they paid at the start, so growth is capped and only losses remain.
Only 60 percent of the logos survived, yet NRR is above 100 percent. Customer a grew by 24,000, which more than paid for the two lost customers. This is the central warning of the chapter: NRR alone can hide heavy churn.
Reading the three numbers together
No single number gives a verdict. The combination is informative.
| Pattern | Likely reading |
|---|---|
| High logo retention, high GRR, NRR above 100% | Customers stay, keep their spend, and grow. This is the strongest fit signal. |
| Low logo retention, NRR above 100% | A few large accounts expand while many leave. Fit may exist for one segment only. |
| High logo retention, GRR low | Customers stay but downgrade. They like the product but not at the current price or scope. |
| High GRR, NRR near 100% | The product is sticky, but there is no expansion path yet. |
| Low everything | The product is not retaining paying customers. Treat it as a fit problem, not a pricing problem. |
The second row connects to segmentation. If expansion comes from one customer type, split the cohort by that type and check whether the other types retain at all.
Revenue cohort tables
Everything from the user cohort chapters carries over. Group customers by the month they first paid, then sum MRR by age instead of counting distinct users. Divide each age by the age-0 total, as you did for retention. The resulting curve is a revenue retention curve.
Its shape differs from a user curve in one way. A user curve can only fall or stay flat. A net revenue curve can rise after an early dip, sometimes called a smile. A rising curve means expansion outpaces losses, which is a strong sign of fit. A gross revenue curve behaves like a user curve: it can only decline, and its flattening is the plateau you looked for earlier.
The pitfalls from the earlier chapters apply too. Blank out periods that have not happened yet. Be cautious with small cohorts, where one large customer moves the percentage by itself.
Edge cases and gotchas
- Concentration. If one customer holds 40 percent of a cohort's MRR, NRR is mostly that customer's story. Recompute with and without the largest accounts.
- Price increases. A list-price increase raises NRR without any change in how customers value the product. Separate price-driven expansion from seat or usage-driven expansion where you can.
- Usage-based billing. Revenue moves with consumption, so seasonal swings look like expansion and contraction. Use a longer window or compare the same months across years.
- Annual contracts. Customers cannot churn before renewal, so a 12-month window can look perfect until the first renewal. Measure at or after the renewal date, and watch the renewal cohort separately.
- Discounts and free periods. MRR measured at the discounted rate understates later revenue. Define MRR the same way for every cohort.
- Currency and billing noise. Failed payments can look like churn for a few days. Use a grace period before marking a customer as lost.
- Free and consumer products. Without revenue, these measures do not apply. Use user retention and consider whether monetization is a separate question.
Each of these can change NRR by several points, so write down your MRR definition once and reuse it for every cohort.
Setting expectations
Reasonable values depend on customer size and contract length. Products sold to large enterprises on annual contracts typically show higher logo and gross retention than self-serve products for small teams, where customers leave more easily. Treat published benchmarks as rough context, and compare your own cohorts with each other over time. A cohort that beats the previous one on GRR is better evidence than a match to an industry figure.
What to carry forward
- Logo retention measures survival of paying customers and ignores size.
- GRR measures surviving revenue without growth and is capped at 100%.
- NRR adds expansion and can exceed 100%, which makes it the most useful and the most easily misread number.
- Read all three together, on a fixed starting group and a fixed window.
- Feed these numbers into the final judgment alongside usage cohorts, plateau shape, and segment results.
Exercise
A cohort starts with 10 customers paying 200,000 dollars of MRR in total. After 12 months, 2 customers have left, taking 30,000 dollars of MRR with them. The remaining customers downgraded by 10,000 dollars in total and expanded by 50,000 dollars in total. Compute logo retention, GRR, and NRR.
Show answer
Logo retention is 8 / 10 = 80%. GRR = (200,000 - 10,000 - 30,000) / 200,000 = 160,000 / 200,000 = 80%. NRR = (200,000 + 50,000 - 10,000 - 30,000) / 200,000 = 210,000 / 200,000 = 105%.
Exercise
A product reports 118% NRR and 55% logo retention over 12 months. Name one reason this should not be accepted as clear evidence of product-market fit, and one check you would run next.
Show answer
With only 55% of customers retained, most of the starting group left, and a small number of expanding accounts may be producing the whole NRR figure. The product may fit only one segment. Next, check the revenue concentration (recompute NRR without the largest accounts) and segment the cohort by customer type or size to see which groups retain and which do not. Also check GRR to see how much revenue survives without expansion.