Report templates

Cohort retention tables from billing data

A SaaS cohort retention table groups customers by the month they first paid and shows how many of them, and how much of their revenue, is still there at each month since. This template builds the logo and revenue triangles from raw subscription and invoice records, with rules for trials, add-ons, plan changes and customers who come back.

By Simon DuttonLast reviewed

Why one retention number is not enough

A monthly churn figure blends every customer you have into a single line. Customers who signed up two years ago and customers who signed up last month sit in the same average, so a run of good older accounts can hide a weak batch of new ones, and the reverse. By the time the blended figure moves, the cause is months old.

A cohort retention table pulls those groups apart. Each row is a group of customers who started paying in the same month. Each column is a number of months since that start. The cell where they meet says how much of that group is still with you at that age. Because younger cohorts have had fewer months to age, the filled cells form a triangle: the oldest cohort has the longest row, the newest has one or two cells.

It helps to build two of these triangles side by side:

  • Logo retention counts customers. A cell of 75% means three in four of the customers who started that month are still paying something.
  • Revenue retention counts recurring revenue. A cell of 90% means the cohort's monthly recurring revenue (MRR) is 90% of what it paid at its first invoice, after upgrades, downgrades and cancellations.

The gap between them is often the most useful thing on the page. Logo retention well below revenue retention points to small accounts leaving while larger ones stay or grow. Revenue retention below logo retention points to customers who stay but pay less.

The data model

Everything here can be built from subscription and invoice records in your billing system. You do not need product usage data or a CRM to produce the triangles, though a customer mapping table helps if one company has several billing accounts.

Fields you need

Source Record Fields used
Billing system Subscription subscription ID, customer ID, status, start date, cancellation and end dates, currency, items with price and quantity, billing interval, trial start and end
Billing system Invoice invoice ID, customer ID, status, amount paid, date paid
Billing system Price history the amount on each subscription item from each date it applied, so you can rebuild MRR at any past month end
Your own table Customer map billing customer ID, the account it rolls up to (only needed if one customer has several billing accounts)

In Stripe, the Subscription object carries customer, status, start_date, canceled_at, ended_at, trial_start, trial_end, currency and items, and each item has a price with recurring.interval and a quantity. The Invoice object has customer, status (where paid is one value), amount_paid and status_transitions, which holds a paid_at timestamp. In Chargebee, the subscriptions API has customer_id, status, started_at, activated_at, cancelled_at, currency_code and subscription_items.

The API returns each subscription's current state. To know what a customer paid at the end of June, you need either price changes stored as they happen or a month-end snapshot taken at the time. This is the part most spreadsheet versions skip, and it is why they can only show today's position rather than a true history.

The joins

From To Join key Why
Invoice Customer customer ID Finds each customer's first paid invoice, which sets the cohort month
Subscription Customer customer ID Sums every subscription a customer holds into one MRR figure
Customer Customer map billing customer ID Optional: rolls several billing accounts into one retained customer
Customer (cohort month) Customer (month k snapshot) customer ID Compares the same customer at first invoice and at each later month end

The cohort join is on customer ID, not subscription ID. That choice decides how add-ons, second products and returning customers behave, and it is covered in the rules below.

The formulas

Measure Formula
Cohort month calendar month of the customer's earliest invoice with status paid and amount paid above zero
Customer MRR at a date Σ active subscription items: unit price × quantity, with annual prices ÷ 12
M0 customer MRR on the day of the first paid invoice
Mk customer MRR at the close of the k-th calendar month after the cohort month
Logo retention, cohort c, month k customers in c with Mk > 0 ÷ customers in c
Revenue retention, cohort c, month k Σ Mk for customers in c ÷ Σ M0 for customers in c
Weighted average, month k Σ retained across cohorts that have reached k ÷ Σ starting values of those cohorts

The weighted row at the foot of the table pools cohorts by their size rather than averaging percentages. A straight average of percentages gives a nine-customer cohort the same say as a forty-customer one.

If your data sits in a warehouse, the cohort assignment is a short query over a table of paid invoices:

select customer_id,
       date_trunc('month', min(paid_at)) as cohort_month
from invoices
where status = 'paid' and amount_paid > 0
group by customer_id;

Join that to a table of customer MRR at each month end and the triangle is a pivot of the result.

Rules for messy subscription records

Cohort by first paid invoice, not by subscription start

Stripe documents start_date as the date the subscription was first created, so a subscription that began with a free trial carries a date before any payment. Chargebee documents activated_at as the time the status last changed to active, so it can move after a pause or reactivation. Neither is a safe cohort date on its own. The first paid invoice is: it is the day the customer first gave you money, it does not move later, and it ignores free trials and zero-value plans.

One customer, several subscriptions

Many billing set-ups create a separate subscription for an add-on or a second product. If you build cohorts per subscription, that add-on joins a later cohort as if it were a new customer, and its revenue is missing from the original cohort's row. Sum to the customer. The add-on then shows up where it belongs: as growth in the first cohort.

Plan changes

Upgrades and downgrades change revenue retention and leave logo retention alone. A customer who drops from £300 to £200 a month is still a retained logo. Use the month-end price, not the invoice amount, because a mid-month upgrade can produce a one-off proration charge that is not recurring revenue.

Customers who leave and come back

Keep a returning customer in the cohort of their first paid month. Their row goes to zero while they are away and picks up again when they return, so a logo cell can be higher than the cell before it. The alternative, starting them in a fresh cohort, inflates the newer cohort and makes the older one look worse than it is. Whichever rule you choose, write it down, because vendor tools differ (see the next section).

Annual plans and snapshot timing

Divide annual prices by twelve so an annual customer does not appear as a spike in one month and a gap in the other eleven. Take every snapshot at the same moment, the close of the last day of the month, and use one time zone throughout.

How built-in cohort charts define things

Stripe's Billing analytics has a retention-by-cohort chart. Its support article on subscriber cohorts says subscribers are grouped by when they first generated positive MRR, that a subscriber who churns and returns stays in their original cohort, and that churn is checked per month in UTC. Its article on revenue retention by cohort describes tying each new subscription to the month it first produced positive MRR, which reads as subscription-level rather than customer-level for the revenue view. Chargebee's MRR retention cohort article groups by activation month and tracks the following twelve months.

These charts are a fine starting point for a single billing account. They are harder to use when you need customers rolled up across several billing accounts or currencies, a cohort rule your board has agreed, or the table in the same pack as other figures. If you compare your own triangle with a vendor chart and the numbers differ, check the cohort date and the returning-customer rule first.

IVP.ai / Data Layer

As at 31 October 2026

Cohort retention · Gannetby Software (fictional)

9 monthly cohorts,
built from 113 subscription records.

Customers are grouped by the month of their first paid invoice. Each cell compares the cohort at the close of month k with what it paid at first invoice.

Customers in cohorts
96
9 cohorts, Jan to Sep 2026
Start MRR, all cohorts
£42,750
At each first paid invoice
Logo retention at M6
80%
4 cohorts old enough
Revenue retention at M6
91.7%
Weighted by start MRR

Customers paying at Mk ÷ customers in cohort

Logo retention by cohort: rows are cohorts by first paid month, columns are months since that month, values are percentages. Fictional data.
CohortCustomersM0M1M2M3M4M5M6M7M8M9
Jan 202613100%92.3%76.9%84.6%92.3%92.3%92.3%84.6%76.9%76.9%
Feb 202611100%100%100%90.9%81.8%72.7%72.7%63.6%81.8%
Mar 202613100%92.3%92.3%84.6%76.9%84.6%76.9%76.9%
Apr 2026 · example8100%87.5%87.5%75%62.5%75%75%
May 202611100%90.9%90.9%90.9%90.9%90.9%
Jun 202611100%100%100%90.9%90.9%
Jul 202610100%100%90%80%
Aug 202610100%90%90%
Sep 20269100%88.9%
Weightedby customers100%93.8%90.8%85.7%83.6%83.9%80%75.7%79.2%76.9%

Revenue retention by cohort

Cohort MRR at Mk ÷ cohort MRR at first invoice

Revenue retention by cohort: rows are cohorts by first paid month, columns are months since that month, values are percentages. Fictional data.
CohortStart MRRM0M1M2M3M4M5M6M7M8M9
Jan 2026£6,150100%88.6%77.2%89.4%97.6%97.6%100.8%94.3%82.9%85.4%
Feb 2026£4,400100%104.5%104.5%102.3%96.6%93.2%93.2%87.5%97.7%
Mar 2026£5,300100%100.9%104.7%95.3%92.5%105.7%87.7%91.5%
Apr 2026 · example£2,900100%82.8%89.7%74.1%63.8%77.6%77.6%
May 2026£5,200100%95.2%94.2%97.1%97.1%99%
Jun 2026£4,600100%102.2%105.4%87%93.5%
Jul 2026£6,150100%102.4%97.6%82.9%
Aug 2026£4,000100%88.8%92.5%
Sep 2026£4,050100%81.5%
Weightedby start MRR100%95%95.5%90.3%92.3%96.5%91.7%91.5%89.1%85.4%

How the raw records were handled

  1. Customers with overlapping subscriptionsSummed into one customer; the later subscription does not start a new cohort10
  2. Customers who left and came backKept in the cohort of their first paid month7
  3. Plan changes (upgrades and downgrades)Move revenue retention; logo retention unchanged30
  4. Subscriptions that began with a trialCohort set by the first paid invoice, not the trial start20
  5. Annual subscriptionsPrice divided by 12 for MRR13
  6. Extra rows if each subscription were its own cohort memberAvoided by counting customers, not subscriptions17

Reading the triangle

Read across a row to follow one cohort as it ages. Read down a column to compare cohorts at the same age. The weighted row pools every cohort that has reached that month, so later columns rest on fewer cohorts.

Revenue cells can pass 100% when upgrades outweigh losses. Logo cells cannot, but they can rise again when a lapsed customer returns, because returners stay in their first cohort.

Darker cells keep more of the cohort. Gold text marks cells under 70%.

96 customers · 113 subscriptions · month-end snapshots in GBP

Illustrative data

Illustrative, fictional data. Company, customers, plans and prices are invented; not customer results or a live product screenshot.

Worked example (illustrative, fictional)

Gannetby Software is a fictional company. Its April 2026 cohort has eight customers whose first paid invoice fell in April. The table shows each customer's MRR at the first invoice (M0) and at each month end from May (M1) to October (M6).

Customer What happened M0 M1 M2 M3 M4 M5 M6
GB-0401 No change £400 £400 £400 £400 £400 £400 £400
GB-0402 Upgraded in June £250 £250 £450 £450 £450 £450 £450
GB-0403 Cancelled in July £600 £600 £600 £0 £0 £0 £0
GB-0404 Trial from 20 March, first paid 3 April, downgraded in August £300 £300 £300 £300 £200 £200 £200
GB-0405 Added a £150 add-on subscription in July £350 £350 £350 £500 £500 £500 £500
GB-0406 Cancelled in May, returned in September on a smaller plan £500 £0 £0 £0 £0 £400 £400
GB-0407 Annual plan, £3,600 ÷ 12 £300 £300 £300 £300 £300 £300 £300
GB-0408 Cancelled in August £200 £200 £200 £200 £0 £0 £0
Cohort MRR £2,900 £2,400 £2,600 £2,150 £1,850 £2,250 £2,250
Customers paying 8 7 7 6 5 6 6

Applying the formulas:

  • Logo retention at M1: 7 ÷ 8 = 87.5%. At M4: 5 ÷ 8 = 62.5%. At M6: 6 ÷ 8 = 75.0%, up from M4 because GB-0406 came back.
  • Revenue retention at M1: £2,400 ÷ £2,900 = 82.8%. At M2: £2,600 ÷ £2,900 = 89.7%, lifted by GB-0402's upgrade. At M3: £2,150 ÷ £2,900 = 74.1%. At M4: £1,850 ÷ £2,900 = 63.8%. At M6: £2,250 ÷ £2,900 = 77.6%.
  • GB-0404 sits in April, not March, because its March subscription start was a trial with no payment.

The rules change the answer. Count subscriptions instead of customers, and GB-0405's add-on moves to a July cohort while GB-0406's return moves to September. April's M6 revenue then falls to £2,250 − £150 − £400 = £1,700, or 58.6% of £2,900, and its logo retention falls to 5 of 8 subscriptions, 62.5%. Same customers, same money, a 19-point difference in revenue retention from one counting choice.

In the asset above, April is the highlighted row. Its figures match this table because the asset is built by the same script from the same fictional records.

Reading the table for decisions

Some patterns are worth looking for, offered here as general guidance rather than benchmarks:

  • A column that drops sharply at the same age across many cohorts suggests something that happens at that point in every customer's life, such as the end of an onboarding period, a first renewal or a price step.
  • One row that is weaker than its neighbours points to something specific to that month's intake: a campaign, a discount, a sales push into a less suitable segment.
  • Revenue cells above logo cells in the same row mean the customers who stay are growing. Below means they are shrinking.
  • Late columns built on one or two cohorts should be read with care. The weighted row says how many cohorts each column rests on for this reason.

Retention after the first year, and how upgrades offset losses in your whole customer base rather than one cohort, is the job of net revenue retention. Why individual customers leave is covered in the churn analysis template.

How to automate it with IVP.ai

The IVP.ai Data Layer loads subscriptions, invoices and price changes from your billing system on a schedule and keeps a month-end MRR snapshot for every customer, so the triangle can be rebuilt for any past month rather than only from today's state. Stripe users can see what that connection covers on the Stripe integration page. Customer mapping, the cohort rule and the returning-customer rule are set once and written down in the model, so the board pack and the finance team see the same numbers.

A Deskless by IVP.ai agent can run the table each month and flag what has changed: a cohort whose latest cell fell more than an agreed amount, a customer whose first paid invoice cannot be found, or a subscription with no customer mapping. By default Deskless flags and drafts, and a person decides what to do. It can be set up to send the finished table to the board pack owner if you choose. More on how Deskless works, and the rest of the SaaS templates are on the SaaS reporting hub.

Building this on a governed data platform rather than in-house is where one fintech saved over £120,000 compared with building the same platform itself; the case study has the detail.

To see logo and revenue triangles built from your own billing records, start with the free 48-hour pilot. We connect up to three sources, clean the data and set one report or agent running on real data within 48 hours of read-only access. You then have 14 days of access to choose a plan or walk away.

Questions

Frequently asked questions

What is the difference between logo retention and revenue retention in a cohort table?

Logo retention counts customers: the share of a cohort still paying anything at a given month. Revenue retention counts money: the cohort's recurring revenue at that month divided by what it paid at its first invoice. Revenue retention can pass 100% when upgrades outweigh losses; logo retention cannot. Showing both side by side tells you whether you are losing small accounts, shrinking large ones, or both.

Should a customer who cancels and comes back join a new cohort?

The approach in this template keeps them in the cohort of their first paid month. Their row drops to zero while they are away and recovers when they return. Starting them in a new cohort makes the newer cohort look stronger and the older one weaker than they really are. Vendor charts differ on this, so whichever rule you pick, write it down and apply it every month.

Why use the first paid invoice rather than the subscription start date?

A subscription can be created before any money changes hands, for example when it starts with a free trial, and some billing fields record the latest activation rather than the first. The first paid invoice is fixed once it happens, excludes trials and free plans, and marks the point at which someone actually became a paying customer. That makes it a stable anchor for the cohort month.

How do add-ons and second subscriptions affect cohort retention?

If cohorts are built per subscription, an add-on bought months later lands in a later cohort as though it were a new customer, and the original cohort loses that revenue. Summing every subscription to the customer keeps the add-on in the first cohort, where it shows up as growth. In the worked example, counting subscriptions instead of customers moves one cohort's six-month revenue retention by 19 points.

About the author

Simon Dutton

Simon has more than 10 years of experience as a data scientist, working with start-ups, SMEs, Google and the CMA.

Last reviewed 13 November 2026.

Your first report or agent in 48 hours.

Tell us which systems feed it. We connect them, clean the data and set the report running automatically. If it isn’t useful, walk away.