NRR and Magic Number Calculator
Enter one quarter of MRR movements. Gross revenue retention is starting MRR minus contraction and churn, divided by starting MRR, and net revenue retention adds expansion back. Both are annualized by raising the quarterly rate to the fourth power and compared with Bessemer Venture Partners' bands. The magic number multiplies the quarter's net new MRR, new customers included, by 12 and divides it by the previous quarter's sales and marketing spend.
Enter one quarter of MRR movements: the MRR you started the quarter with, new MRR from customers who signed during it, expansion from existing customers, contraction from downgrades and the MRR lost to cancellations, plus what you spent on sales and marketing in the quarter before. The calculator returns net and gross revenue retention for the quarter and annualized, compares them with Bessemer Venture Partners' benchmarks, and works out net new MRR and the magic number, Scale Venture Partners' measure of how much recurring revenue each dollar of sales and marketing brings in. On the defaults, net revenue retention is 101.5% for the quarter and 106.1% annualized, and the magic number is 0.84.
Where the metrics come from
The magic number started with one investment decision. Scale Venture Partners' own history of it, published in 2020, says that in 2005, while evaluating Omniture, Scale's Rory O'Driscoll compared the company's revenue traction with its sales and marketing spend. Omniture was generating more than $2 of first-year revenue for every $1 invested, and he exclaimed "It's Magic!" In a May 2010 post called "Magic Number Facts", O'Driscoll tested the measure on twelve publicly traded software-as-a-service companies over the three years after each passed $20 million of annual revenue. Salesforce, Omniture and Constant Contact combined magic numbers above 1 with fivefold growth while spending around 50% of revenue on sales and marketing. SuccessFactors and NetSuite grew as fast with lower magic numbers, but spent around 90% of revenue to do it.
Retention metrics show up in stock market filings too. In March 2012, Eloqua's amended registration statement for its initial public offering reported a "Net Dollar Retention Rate": the contracted monthly subscription revenue of its customer base at the end of a 12-month period, compared with the same customers at the start. It said the rate had exceeded 100% in both 2010 and 2011. Recent annual reports define the measure the same way. Klaviyo, Okta and Procore all start from the customers they had twelve months earlier, count expansion, contraction and churn, and leave new customers out.
Benchmarks followed. Bessemer Venture Partners' State of the Cloud 2019 set gross retention targets by segment: 70 to 80% for SMB companies with average contracts under $12,000, 80 to 90% for mid-market companies with contracts of $12,000 to $50,000, and more than 90% for enterprise contracts of $50,000 and up. The same report describes the Bessemer Efficiency Score, which the firm coined in 2017. For companies under $30 million of ARR it divides net new ARR by net burn, so it charges growth for all the cash a company consumes rather than for sales and marketing alone. Bessemer's State of the Cloud 2023 called net revenue retention of 100% good, 110% better and 120% or more best. Scale's guidance on the magic number, from 2015, fits in a line: below 0.7, ask whether the go-to-market model needs to change; above 0.7, think about stepping on the gas.
How the calculation works
Gross revenue retention removes downgrades and cancellations but ignores expansion, and net revenue retention adds expansion back:
GRR = (start − contraction − churn) ÷ start
NRR = (start + expansion − contraction − churn) ÷ start
NRR minus GRR is always expansion divided by starting MRR. To annualize, the calculator raises each quarterly rate to the fourth power, which assumes the quarter repeats four times. The magic number multiplies net new MRR by 12 to make it annual recurring revenue and divides by the previous quarter's sales and marketing spend:
magic number = (new + expansion − contraction − churn) × 12 ÷ spendprevious quarter
Scale's own version uses GAAP revenue, because public companies do not report ARR and private companies' ARR figures are hard to compare. It takes the change in quarterly revenue, multiplies it by 4 and divides by the previous quarter's sales and marketing expense, on the assumption that one quarter's spending drives the next quarter's growth:
magic numberGAAP = (revenuethis quarter − revenuelast quarter) × 4 ÷ spendlast quarter
Scale says the GAAP figure should equal its ARR-based net sales efficiency with a one-quarter lag. For that ARR measure itself, Scale prefers to compare a quarter's net new ARR with the same quarter's spend, so enter this quarter's spend if that is the version you track.
The defaults, worked through
The default company starts the quarter at $400,000 of MRR. Downgrades take $6,000 and cancellations $10,000, so GRR is 384,000 ÷ 400,000 = 96%. Expansion adds $22,000, so NRR is 406,000 ÷ 400,000 = 101.5%. Compounded over four quarters, NRR becomes 106.1%, inside Bessemer's good band but short of better, and GRR becomes 84.9%, in the mid-market range. A 4% loss in one quarter looks small, but repeated four times it removes 15.1% of the starting revenue.
New customers add $36,000, so net new MRR is 36,000 + 22,000 − 6,000 − 10,000 = $42,000, or $504,000 of annual recurring revenue. Divided by the previous quarter's $600,000 of sales and marketing spend, that gives a magic number of 0.84, above Scale's 0.7 line.
Gross retention conventions differ
Not every company measures gross retention the same way, so compare definitions before comparing numbers. Bessemer's gross retention nets out customers who turned off or downgraded the service but does not count expansion, which is the formula above. Yext's dollar-based gross retention rate also counts contraction and churn and leaves expansion out. Procore's GRR counts only customers who cancelled and ignores downgrades, so it reads higher than the other definition whenever customers downgrade. Leaving expansion out account by account caps each customer at its starting revenue, which is why gross retention can never exceed 100%. This calculator pools the quarter's movements, so the cap holds automatically.
A quarter versus a trailing year
Public filers such as Klaviyo, Okta and Procore report NRR over a trailing twelve months. Klaviyo takes the customers it had twelve months before each month-end, compares their annual recurring revenue then and now, and reports a weighted average of those monthly figures, which came to 110% for 2025. Raising one quarter to the fourth power is a shortcut that assumes every quarter looks like this one, so a seasonal burst of upgrades or one large cancellation can move the annualized figure a long way. Track several quarters, and switch to twelve-month cohorts once you have the data. The MRR churn calculator projects what a monthly churn rate does to revenue over a year. Retention by revenue and by customer are different numbers, though: customer lifetime value divides an account's monthly margin by the share of customers who cancel each month, not by revenue churn.
Reading the magic number
Scale's 2019 benchmarks put the median magic number between 0.7 and 0.8, with the quartiles at 0.5 and 1.5. Its inverse is a payback period on a revenue basis: a magic number of 0.7 earns back sales and marketing spend in 1 ÷ 0.7 years, about 17 months. The CAC payback calculator works out payback for a single customer on a gross margin basis instead. Read the magic number next to gross retention. It subtracts this quarter's churn, but not the churn still to come from the customers just signed, so a high magic number with weak gross retention overstates how much of the new revenue the company will keep.
Retention and efficiency figures here are benchmarks for planning, not a valuation of any company or advice on investment or spending. See the site disclaimer.
Frequently asked questions
What is the difference between NRR and GRR?
Both start from what existing customers paid at the beginning of the period. Gross revenue retention subtracts downgrades and cancellations and stops there, so it can never exceed 100%. Net revenue retention also adds expansion from upgrades and add-ons, so it can. On the defaults, quarterly GRR is 96% and NRR is 101.5%. The 5.5-point gap is $22,000 of expansion on a $400,000 base.
What is a good net revenue retention rate?
Bessemer Venture Partners' 2023 benchmarks call 100% good, 110% better and 120% or more best. The calculator compares them with the annualized figure, because filers such as Klaviyo, Okta and Procore report NRR over a trailing twelve months. Bessemer's 2019 report added that retention depends on the customer segment, with companies selling to small businesses expected to run lower than those selling to enterprises.
How do I annualize quarterly NRR?
Raise the quarterly rate to the fourth power. 1.015 to the fourth power is about 1.061, so 101.5% a quarter becomes 106.1% a year. Compounding works against gross retention: 96% a quarter becomes 84.9% a year. Companies such as Klaviyo, Okta and Procore measure over a trailing twelve months instead, comparing what customers paid a year ago with what the same customers pay today.
What is a good SaaS magic number?
Scale Venture Partners, which developed the measure, draws the line at 0.7. Below it, review the go-to-market model; above it, consider stepping on the gas. Scale's 2019 data put the median between 0.7 and 0.8, with the quartiles at 0.5 and 1.5. On the defaults, $42,000 of net new MRR, or $504,000 a year, against $600,000 of spend gives 0.84.
Why does the magic number use last quarter's sales and marketing spend?
Because spending takes time to turn into revenue. Scale's version divides the change in GAAP revenue by the previous quarter's spend, on the assumption that one quarter's spending drives the next quarter's growth. Scale's net sales efficiency compares net new ARR with the same quarter's spend instead, so enter this quarter's spend if you want that version.
Is the Bessemer Efficiency Score the same as the magic number?
No. Bessemer coined its efficiency score in 2017, and for companies under $30 million of ARR it divides net new ARR by net burn. That charges growth for all the cash the company consumes, while the magic number divides by sales and marketing spend alone.
Sources
- SaaS Metrics: A History of the Magic Number, Scale Venture Partners, 2020
- Magic Number Facts, Scale Venture Partners, 2010
- Magic Number Calculator for SaaS, Scale Venture Partners, 2015
- Four Vital Signs of SaaS, Scale Venture Partners, 2019
- From $0 to $1M: The Magic Number, Scale Venture Partners, 2021
- State of the Cloud 2019, Bessemer Venture Partners, 2019
- State of the Cloud 2023, Bessemer Venture Partners, 2023
- Scaling to $100 Million, Bessemer Venture Partners, 2021
- Eloqua, Inc. Form S-1/A, Amendment No. 3, U.S. Securities and Exchange Commission, 2012
- Klaviyo, Inc. Form 10-K for 2025, U.S. Securities and Exchange Commission, 2026
- Okta, Inc. Form 10-K for fiscal 2026, U.S. Securities and Exchange Commission, 2026
- Procore Technologies, Inc. Form 10-K for 2025, U.S. Securities and Exchange Commission, 2026
- Yext, Inc. Form 10-K for fiscal 2026, U.S. Securities and Exchange Commission, 2026