Formula: SaaS Magic Number Mathematical Formula
- quarterlyNetNewArr: Quarterly Net New Arr (USD)
- priorQuarterSalesMarketingSpend: Prior Quarter Sales Marketing Spend (USD)
- grossMarginPct: Gross Margin Pct (%)
Measure how much annualized recurring revenue each S&M dollar generates.
No. The box already asks for annualized net new ARR, so the yearly figure goes in directly. The multiply by four step only applies when you start from a change in quarterly revenue. Doing it twice would make the Magic Number four times too high and the payback a quarter of the true length.
Because sales and marketing spending takes time to turn into contracts. Money spent on campaigns and new sellers in one quarter mostly produces signed deals in the following one. Matching this quarter's ARR with last quarter's spend is an attempt to pair each dollar of spend with the revenue it helped create.
It is the Magic Number turned upside down. On the defaults, the business spent $1.16 on sales and marketing for every dollar of annual recurring revenue it added. Some people find this version easier to talk about, because it reads directly as a cost of acquiring each dollar of ARR.
It is 12 divided by the Magic Number times the gross margin. With the defaults, 0.8636 times 0.80 is about 0.691 dollars of gross profit a year per dollar spent. Dividing 12 by 0.691 gives about 17.37 months, which is how long that gross profit takes to cover the original spend.
The Magic Number compares revenue added with money spent, and margin plays no part in that ratio. Margin only affects the payback and the gross margin-adjusted ARR lines. At 60% margin the ratio stays at 0.86 while payback lengthens to 23.16 months, because less of each revenue dollar is left to repay the spend.
Because a payback period only makes sense when new revenue is being added. The page requires net new ARR, spend and gross margin to be above zero. In a quarter where churn outpaces new sales, the spend is not being earned back at all, so the calculator asks for a positive figure instead of showing a misleading number.
Yes, if you want a net figure, which is what the box asks for. Add new customer ARR and expansion, then subtract cancellations and downgrades in the same quarter. Using gross new bookings instead will make the Magic Number look stronger than the business really is, especially when churn is high.
Everything spent to win customers in that quarter: sales and marketing salaries, commissions, bonuses, advertising, events, agencies and the software those teams use. A share of shared overheads is sometimes added too. Whatever you include, keep it the same every quarter so the ratio can be compared over time.
No. It calculates the ratio and payback but does not grade them. What counts as acceptable depends on how long customers stay, how much cash the company holds and its growth plans. Compare your own figures across quarters, and against any targets your board or investors have actually set.
You can, as long as you keep the same one-period offset and both boxes cover a matching length of time. For example, enter ARR added over a year and the spend for the year that ended one quarter earlier. The ratio then smooths out lumpy individual quarters.
No. It assumes every new customer keeps paying the same amount with no churn, discounts or payment delays, and it ignores the timing of when cash actually arrives. It is a rough way to express efficiency in months, not a projection of the company's bank balance.
That is common, especially for smaller companies where one or two large deals can make or break a quarter. Try entering four-quarter totals for both ARR added and spend, keeping the one-quarter offset. The smoothed ratio is usually a better guide to the trend than any single quarter on its own.
On the default inputs, the example company added $950,000 of annualized net new ARR this quarter. In the quarter before, it spent $1,100,000 on sales and marketing. Divide the first by the second and you get 0.8636, which the page rounds to a Magic Number of 0.86.
In words: each dollar spent on sales and marketing last quarter is associated with about 86 cents of new annual recurring revenue this quarter. The inverse of that ratio is the third supporting line, S&M Spend per $1.00 New ARR, at $1.16. It is simply 1 divided by 0.8636.
The spend is taken from the prior quarter on purpose. Sales cycles take time, so money spent on campaigns and sales hires in one quarter tends to show up as signed contracts in the next. Pairing this quarter's ARR with this quarter's spend would credit deals to spending that mostly had not had time to work yet.
If you only have revenue figures rather than ARR, some people use the change in quarterly revenue multiplied by four. This calculator skips that step. Its first box already asks for an annualized figure, so do not multiply by four again before typing it in.
The word net matters. Net new ARR is the recurring revenue added by new customers and expansions, minus what was lost to cancellations and downgrades during the same quarter. If you enter only gross new bookings, the Magic Number will look better than the business really is.
Be consistent about what goes in. One-off setup fees, services work and usage that is not contracted are usually left out of ARR because they do not recur. If your finance team counts them differently, use their definition, but use the same one every quarter so the trend means something.
The second box should include the full cost of selling and marketing for that prior quarter: salaries and commissions for sales and marketing staff, advertising, events and the tools those teams use. Leaving out headcount is the most common way to flatter the ratio, because salaries are usually the biggest part of the bill.
I checked how sensitive the result is. Raising net new ARR to $1,100,000, the same as the spend, gives a Magic Number of exactly 1. Dropping it to $570,000 gives 0.52.
The Gross-Margin CAC Payback line takes the Magic Number one step further. ARR is revenue, not profit, and a software company keeps only its gross margin on each dollar of revenue. With the default 80% margin, the Gross Margin-Adjusted New ARR line shows $760,000, which is 80% of the $950,000 of new ARR.
Now ask how long that gross profit takes to repay the spend. Per dollar of sales and marketing, the business adds 0.8636 dollars of ARR and keeps 80% of it, which is 0.691 dollars of gross profit a year. Divide by 12 for a monthly figure of about 0.0576. One dollar divided by 0.0576 is about 17.37 months.
The engine does the same thing in one line: 12 divided by the Magic Number times the gross margin. You can check it on a phone calculator. It is a rough payback figure, because it assumes the new customers keep paying at the same rate and do not churn during those months.
Change the gross margin and watch which lines move. At 60% margin the Magic Number stays at 0.86 but payback stretches to 23.16 months. At 100% it drops to 13.89 months, which is the payback on raw ARR with no cost of service at all.
That split is deliberate. The Magic Number is a pure ratio of revenue added to money spent, and margin does not enter it. Payback is about cash, and cash depends on what it costs to serve the customers you won.
This is why two companies with the same Magic Number can be in very different positions. One running at a high margin earns back its sales spend far sooner than one carrying heavy hosting or support costs. Enter the subscription gross margin, not a blended figure that includes services, or the payback line will not mean much.
The page's three preset scenarios keep spend at $1,100,000 and margin at 80% and vary only net new ARR. At $570,000 the Magic Number is 0.52 and payback is 28.95 months. At the default $950,000 it is 0.86 and 17.37 months. At $1,425,000 it is 1.3 and payback falls to 11.58 months.
Notice that payback does not move in a straight line. Going from 0.52 to 0.86 cuts more than eleven months off payback, while going from 0.86 to 1.3 cuts under six. Because payback is 12 divided by a product, each extra point of efficiency saves fewer months than the one before.
The calculator does not tell you which of these is good. It reports the ratio and the payback, and leaves the judgement to you. Whether 17 months is acceptable depends on how long customers stay, how much cash the business has and how fast it wants to grow, none of which are inputs here.
Start with the quarter you just closed. Take ending ARR and subtract ARR at the start of that quarter; that difference is net new ARR, and it goes in the first box. It already includes churn, because ARR at the end of the quarter has lost whatever cancelled.
For the second box, go back one quarter and total every sales and marketing cost for it. If the books lump some of these into general overheads, pull them out as best you can and write down what you included, so the next quarter can be done the same way.
For the third box, use the gross margin on subscription revenue for the latest period, as a percentage. If the figure is not split out, a reasonable approach is to take subscription revenue minus hosting, third-party software and support costs tied to serving customers, then divide by subscription revenue.
Then read the three results in order. The Magic Number shows ARR per dollar of spend. The S&M per dollar line is the same thing flipped. The payback line converts it to months of gross profit. If any of the three looks odd, the cause is almost always in what went into one of the boxes, not in the arithmetic.
It can help to run the page twice for the same quarter: once with the strictest definitions you can defend and once with the loosest. If the two Magic Numbers are far apart, the ratio is telling you more about your accounting choices than about sales efficiency, and that is worth knowing before the figure goes into a board pack.
All three boxes must be positive. Net new ARR and prior-quarter spend must be above zero, and gross margin must be above 0% and no more than 100%. Enter zero or a negative ARR figure and the page shows a message rather than a result.
That is the right behaviour. In a quarter where churn outpaces new sales, net new ARR is negative and the spend is not being paid back from new revenue at all. A payback in months has no meaning there, and showing one, even zero, would suggest the opposite of what happened.
If you want to record a shrinking quarter, the arithmetic is still easy by hand: divide the negative ARR change by last quarter's spend. A negative ratio tells you that the spending was followed by a fall in recurring revenue. Just do not expect a payback figure from it.
The 100% ceiling on margin is a sense check too. At exactly 100% the page shows 13.89 months, the payback on raw ARR with no cost of serving customers, which is the shortest payback the default ARR and spend can produce.
One quarter can be skewed by a single large contract, a delayed renewal, or a burst of event spending that will not pay off until later. A Magic Number of 0.86 in one quarter says much less than a run of quarters showing whether it is rising or falling.
Some teams smooth this by using trailing figures: the ARR added over the last four quarters against spend over the four quarters before each. The calculator accepts any pair of numbers, so you can enter totals of that kind as long as the ARR and spend periods are offset by one quarter in the same way.
It also helps to calculate the ratio for separate channels or segments where your data allows it. A blended figure can hide one channel paying for itself quickly and another one dragging the average down.
The Magic Number assumes that the prior quarter's spend caused this quarter's ARR. For products with long enterprise sales cycles, the lag can be two or three quarters, and a one-quarter offset will misattribute both the spend and the results.
It also says nothing about how long customers stay. Two companies can each show 0.86 while one keeps its customers for years and the other loses many of them within a year. A payback of 17.37 months is only useful if the average customer stays well past that point.
Treat the output as a quick efficiency check to put next to retention, cash runway and unit economics, not as a verdict on the business.