virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / rule of 40 calculator

Rule of 40 calculator

The Rule of 40 adds a SaaS company's revenue growth rate to its profit margin and checks whether the total reaches 40%. Enter your annual growth rate and your EBITDA or free cash flow margin, and the score updates as you type. Everything runs in your browser.

Profit margin you are entering

See which channels drive the growth

The growth half of the Rule of 40 comes from new customers, and each one came from somewhere. Virling links every visit to the payment it led to, so you see the revenue each channel brings and what it cost from your real payments. 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: revenue growth rate calculator, SaaS magic number calculator, burn multiple calculator, SaaS valuation calculator.

The Rule of 40 formula

Both numbers are percentages over the same twelve months, and the margin can be negative:

Rule of 40 score = revenue growth rate (%) + profit margin (%)

A score of 40 or more passes the rule. The profit margin is usually EBITDA divided by revenue, or free cash flow divided by revenue. Pick one, say which, and use the same one each time you compare. If you only know monthly revenue, work out the annual growth rate first with the revenue growth rate calculator.

A worked example

This is an illustrative example, not a real company. With the defaults above, revenue grew 30% over the year and the EBITDA margin was 5%. The score is 30 + 5 = 35, which is 5 points short of 40. At 30% growth, the company would need a 10% margin to pass; at a 5% margin, it would need 35% growth. A second company growing 60% with a free cash flow margin of -15% scores 60 - 15 = 45 and passes, even though it loses money.

Scores at four growth rates and three margins

Example figures, not benchmarks. Each cell is the score the calculator gives, growth rate + profit margin:

Growth (example)Margin -15%Margin 5%Margin 20%
10%-5%15%30%
20%5%25%40%
30%15%35%50%
60%45%65%80%

A cell of 40% or more passes. The defaults are the 30% row and the 5% column, and the second company in the worked example is the 60% row and the -15% column. At 10% growth none of these margins is enough: passing there takes a 30% margin.

What the other results mean

  • Points from 40 is the score minus 40: positive means room to spare, negative means how far short it falls.
  • Margin needed at this growth is 40 minus the growth rate: the margin that would just pass at your current growth.
  • Growth needed at this margin is 40 minus the margin: the growth rate that would just pass at your current margin.

The rule is a single check, not a full picture. It says nothing about churn, cash in the bank or how efficiently growth was bought; the SaaS magic number calculator covers that last one.

Where the growth comes from

A Rule of 40 score blends every channel. The same growth rate can come from one channel that pays back fast and another that burns cash, and raising the score usually means spending more on the first and less on the second. That needs each payment tied to the visit that started it. MRR by acquisition channel shows how to credit recurring revenue to the channel that brought each customer, and in Virling the Retention page groups customers by the channel of their first payment.

Reading the score by acquisition channel

To see what a channel adds, work out the score again without its revenue and its cost. Take an example company that went from $1,000,000 to $1,300,000 with $65,000 of EBITDA: 30% growth, a 5% margin, a score of 35. New customers from search brought $250,000 and from ads $150,000, while existing customers paid $100,000 less than the year before. Search cost $60,000, ads cost $180,000, and the gross margin is 80%.

  • Without ads, revenue is $1,150,000 and EBITDA is $65,000 - $120,000 of gross profit + $180,000 of spend = $125,000. Growth is 15%, the margin 10.9% and the score 25.9, so ads add 9.1 points.
  • Without search, revenue is $1,050,000 and EBITDA is $65,000 - $200,000 + $60,000 = -$75,000. Growth is 5%, the margin -7.1% and the score -2.1, so search adds 37.1 points.

Ads raise the score and still lost $60,000 in the year, because the rule counts a point of growth the same whatever it cost. They only pay if those customers stay, so check their renewals before you spend more. The sums also assume that nothing else would have changed, which is rarely exact: some buyers who clicked an ad would have found you through search.

Three mistakes with the Rule of 40

  • Adding monthly growth to a yearly margin. 2% a month with a 5% margin looks like a score of 7. Compounded over twelve months, 2% is 26.8% a year, so the score is 31.8.
  • Switching the margin between periods. At 30% growth, a 5% EBITDA margin scores 35 and a 12% free cash flow margin in the same year scores 42. Nothing about the business changed, only the measure.
  • Counting one-off revenue as growth. If $100,000 of the rise from $1,000,000 to $1,300,000 was a single project or a batch of lifetime deals, the growth that can repeat is 20%, not 30%, and next year starts from a base that includes the one-off.
questions

Rule of 40 calculator FAQ

What is the Rule of 40?

The Rule of 40 is a rule of thumb for SaaS companies: revenue growth rate plus profit margin, both in percent, should add up to at least 40. It lets a fast-growing company that loses money and a slow-growing profitable one be compared on one number.

How do you calculate the Rule of 40?

Add your revenue growth rate in percent to your profit margin in percent. A company growing 30% a year with a 5% EBITDA margin scores 35. A negative margin is subtracted, so 60% growth with a -15% margin scores 45.

Should I use EBITDA margin or free cash flow margin?

Either, as long as you say which one you used and keep it the same over time. EBITDA margin is closer to operating profit; free cash flow margin shows the cash the business actually produced after capital spending, so it can differ when customers prepay annual plans.

Which growth rate should I use?

Use year-over-year revenue growth: revenue or ARR for the last twelve months compared with the twelve months before. Monthly growth rates are far smaller and should be annualized first, which the revenue growth rate calculator does.

Can a company with negative profit pass the Rule of 40?

Yes. The margin can be negative, so a company growing 70% a year with a -20% margin scores 50. The rule asks whether the growth is large enough to justify the losses.

Does the Rule of 40 work for an early-stage SaaS company?

The arithmetic works at any size, but the score says little while revenue is small. Going from $50,000 to $150,000 a year is 200% growth, so even a -160% margin, a loss of $240,000, scores 40. Until revenue is large enough for growth rates to settle, look at churn and how many months of cash you have as well.

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