virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / saas magic number calculator

SaaS magic number calculator

The SaaS magic number measures sales efficiency: how much new annual revenue each dollar of last quarter's sales and marketing spend brought in. Enter revenue or ARR for this quarter and last quarter and last quarter's spend, and the result updates as you type. Everything runs in your browser.

Revenue you are entering

See which channel brings the new revenue

Enter what you spend on each channel and Virling shows the revenue credited to it, the profit and the return per dollar, from your real payments. The Retention page shows first-payment revenue by the channel that brought each customer. Virling is open source under AGPLv3: self-host it free, or start a 14-day hosted trial.

Start free trial Virling for SaaS · See the demo

Related: CAC payback calculator, LTV to CAC ratio calculator, how much cash you burn per dollar of new ARR.

The SaaS magic number formula

The magic number compares the growth in revenue this quarter with what was spent on sales and marketing the quarter before, because spend takes time to turn into paying customers. With quarterly revenue, the growth is multiplied by four to make it annual:

magic number = (revenue this quarter - revenue last quarter) × 4 / sales and marketing spend last quarter

With ARR, the figure is already annual, so the change in ARR is used as it is:

magic number = (ARR at end of this quarter - ARR at end of last quarter) / sales and marketing spend last quarter

A worked example

With the defaults above, revenue grew from $250,000 last quarter to $280,000 this quarter, a gain of $30,000. Times four, that is $120,000 of new annual revenue. Last quarter's sales and marketing cost $160,000, so the magic number is $120,000 / $160,000 = 0.75: each dollar spent added 75 cents of annual revenue. The same company entered by ARR, going from $1,000,000 to $1,120,000, gives $120,000 / $160,000 = 0.75 too.

What the other results mean

  • New annual revenue is the quarter's growth in annual terms: the revenue change times four, or the ARR change.
  • Spend per $1 of new annual revenue is the magic number turned around: what one dollar of new annual revenue cost to win.
  • Months of new revenue to repay spend is twelve divided by the magic number: how long the new revenue takes to equal the spend, before gross margin and churn.

The number is net growth: customers who cancelled or downgraded during the quarter pull it down, and upgrades push it up. A quarter with heavy churn can show a low magic number even when sales and marketing worked well, so read it next to your churn rate.

Six companies side by side

Example companies with made-up numbers, not benchmarks, worked out with the calculator's formulas. The first four columns after the name are what you enter, the last four are what it shows:

ExampleEntered asThis quarterLast quarterSpend last quarterMagic numberNew annual revenueSpend per $1 of new annual revenueMonths of new revenue to repay spend
The defaults aboveRevenue$280,000$250,000$160,0000.75$120,000$1.3316.0 months
Small, founder-led salesRevenue$36,000$30,000$12,0002.00$24,000$0.506.0 months
Larger, tracked by ARRARR$3,300,000$3,000,000$500,0000.60$300,000$1.6720.0 months
Churn ate most of the growthRevenue$252,000$250,000$160,0000.05$8,000$20.00240.0 months
Revenue fellRevenue$240,000$250,000$160,000-0.25-$40,000No dataNo data
No spend last quarterRevenue$280,000$250,000$0No data$120,000No dataNo data

The first, fourth and fifth companies spent the same and started from the same revenue. The only input that differs is revenue this quarter, and a $40,000 range in it moves the result from 0.75 to -0.25. The row for churn says nothing about how many customers the spend won, only that the net gain was small.

Edge cases and what the calculator shows

  • Annual plans. Do not enter cash received. Take a company with $250,000 of quarterly revenue and $160,000 of spend that sells one $24,000 annual plan, paid up front. Entered as cash, this quarter is $274,000, new annual revenue shows as $96,000 and the magic number as 0.60. The next quarter falls back to $250,000 and, at the same spend, shows -0.60. Spread over the year, the plan is $6,000 a quarter once it runs for a full quarter: $256,000 against $250,000 gives $24,000 and 0.15. Choosing ARR, $1,024,000 against $1,000,000 gives 0.15 too.
  • No churn. There is no churn field, so nothing extra to enter. With no cancellations or downgrades, the change in revenue is all new sales and upgrades. If the default company had lost $10,000 of quarterly revenue to churn and kept it instead, this quarter would be $290,000 and the magic number 1.00 instead of 0.75.
  • A quarter with no spend. Dividing by zero has no answer, so with spend at 0 the magic number, the spend per $1 and the months show No data. New annual revenue still shows.
  • No revenue last quarter. A first quarter works: $30,000 this quarter, 0 last quarter and $40,000 of spend give 3.00. All of the revenue counts as growth, so do not compare it with later quarters.
  • Flat or falling revenue. The magic number is 0.00 when revenue did not change and negative when it fell. The spend per $1 and the months show No data, because there is no new revenue to divide by.

Why the magic number is more useful per channel

A single magic number blends every channel. Paid search, a sponsorship and organic content cost very different amounts and bring very different revenue, and one strong channel can hide one that loses money. Run the calculator once per channel, with that channel's spend and the new revenue from the customers it brought. That needs each payment tied to the visit that started it: see what revenue attribution is. In Virling, the Retention page groups customers by the channel of their first payment and shows their first-payment revenue, and renewals keep that first channel, so new revenue stays with the channel that earned it. Add your monthly spend per channel and the Profit by channel card shows spend, revenue and return per dollar for any range.

questions

SaaS magic number calculator FAQ

How is the SaaS magic number calculated?

Take the change in revenue from last quarter to this quarter, multiply it by four to make it annual, and divide by last quarter's sales and marketing spend. If you track ARR, divide the change in ARR by last quarter's spend instead.

Why use last quarter's spend?

Sales and marketing spend takes time to turn into paying customers. Comparing this quarter's growth with the previous quarter's spend lines up the money with the revenue it most likely produced.

Should I use revenue or ARR?

Either works if you use the same one for both quarters. Quarterly revenue includes one-off payments and is multiplied by four; ARR counts only recurring revenue and is already annual, so it is often the cleaner input for subscription businesses.

Does churn affect the magic number?

Yes. The formula uses the net change in revenue, so cancellations and downgrades in the quarter reduce it and upgrades increase it. A low result can come from churn rather than from weak sales and marketing.

What counts as sales and marketing spend?

Everything spent to win customers in the quarter: ads, sponsorships, events, sales and marketing tools, and the salaries and commissions of the people doing sales and marketing.

What does a negative magic number mean?

Revenue this quarter was lower than last quarter, usually because cancellations and downgrades took away more than new sales and upgrades added. With quarterly revenue, one-off payments that did not repeat can cause it too. Going from $250,000 to $240,000 with $160,000 of spend gives -0.25. A negative result does not say the spend won no customers, so check churn before changing the budget.

See which channels bring new revenue

These tools estimate. Virling measures: it links every visit to the payment it led to, so you see the customers and revenue each channel brings from your real numbers. 14 days free.

Start free trial See the demo