Rule of 40 calculator and formula.
The Rule of 40 adds a software company's yearly revenue growth rate to its profit margin. A total of 40 or more passes. Enter your growth and your margin to see your score, which side is carrying it, and the weighted Rule of X next to it.
Growth is carrying the score: 60 points of growth, with 25 taken off by losses.
- Rule of 40 score
- 35
- Short of 40 by
- 5
- Growth
- 60%
- EBITDA margin
- −25%
Bessemer's Rule of X
60 × 2 + −25 = 95. Bessemer uses free cash flow margin here; with EBITDA it is a close guide, not the same number.
Runs in your browser. Nothing you type is sent or saved.
What the Rule of 40 means
Growth and profit usually trade against each other. Money spent on sales and marketing tends to buy growth and cost margin; cutting it tends to do the opposite. The Rule of 40 does not ask a company to be good at both. It asks whether the two together add up to 40.
So a company can lose money and still pass, as long as it is growing fast enough to justify the losses. A slow-growing company can pass too, if it is profitable enough.
The idea comes from investors, not from an academic. Brad Feld wrote it up in February 2015 after hearing it at a board meeting from a late-stage investor whose firm called it the 40% rule. His post is the reason most founders know the name.
Rule of 40 formula
Rule of 40 score = revenue growth rate (%) + profit margin (%)
Pass: a score of 40 or more
Both numbers are percentages, and the margin keeps its sign. A 30% loss is −30, so it comes off the growth rate.
Feld's own three examples: growing 20% a year with a 20% profit, growing 40% while breaking even, and growing 50% while losing 10%. All three score 40.
Rule of 40 calculation examples
Made-up companies, to show the arithmetic.
| Example | Growth | Margin | Score | Result |
|---|---|---|---|---|
| Early, growing fast | 60% | −25% | 35 | Misses by 5 |
| Balanced | 25% | 15% | 40 | Meets it exactly |
| Mature | 10% | 35% | 45 | Passes by 5 |
| Hypergrowth | 100% | −50% | 50 | Passes by 10 |
Which growth rate and which margin to use
Growth is year-over-year revenue growth in almost every source. Feld suggested the year-over-year growth of monthly recurring revenue, which comes to much the same thing for a subscription business.
The margin is where sources split, so write down which one you use and keep it the same every quarter:
- EBITDA marginEarnings before interest, tax, depreciation and amortisation, as a share of revenue. Used by Brad Feld, Bain, SaaS Capital.
- Free cash flow marginCash from operations minus capital spending, as a share of revenue (McKinsey's definition). Used by McKinsey, Bessemer.
For a small software company the two are often close. They drift apart when customers pay a year up front, because the cash arrives months before the revenue is earned, so free cash flow looks better than EBITDA in the quarter you collect.
How many companies meet the Rule of 40
- Bain studied 124 public software companies and found 40% of them beat the Rule of 40 in 2017. Of 86 companies followed from 2013 to 2017, only 25% beat it for three years or more, and 16% in all five years.
- McKinsey looked at more than 200 software companies of different sizes from 2011 to 2021. They exceeded the Rule of 40 only 16 percent of the time, and McKinsey wrote that barely a third of software companies achieve it.
A score in the 20s or 30s is therefore normal. Treat 40 as a target to move towards, not a line most companies already clear.
When the Rule of 40 applies
- Feld wrote it for companies at scale: “assume at least $50 million in revenue.”
- ChartMogul notes that the rule itself says nothing about company size, and suggests using it alongside absolute ARR and margin figures, not instead of them.
- Below a few million in revenue, growth percentages swing a lot. Going from $300,000 to $600,000 is 100% growth, and one large customer can move the score by 30 points. Work it out anyway to see which side is carrying the company, but watch the direction over several quarters rather than judging one.
Rule of 40 vs the Rule of X
Bessemer Venture Partners argues that growth deserves more weight than margin, because growth compounds year after year while a margin improvement adds once. Its Rule of X multiplies growth before adding the free cash flow margin.
Rule of X = revenue growth (%) × multiplier + free cash flow margin (%)
Bessemer uses a multiplier of about 2 for private companies and about 2 to 3 for public ones. On that view a company growing 25% with a 15% margin scores 65, and one growing 10% with a 35% margin scores 55: the faster grower comes out ahead. The plain Rule of 40 puts them the other way round, 40 to 45.
Rule of 40 vs burn multiple
- Rule of 40Are growth and margin together strong enough? Best for: Companies with steady revenue, profitable or close to it.
- Burn multipleHow much cash does each dollar of new ARR cost? Best for: Companies still burning cash. Burn multiple calculator
- RunwayHow many months until the cash runs out? Best for: Every company that is not yet profitable. Cash runway calculator
If your score is below 40
- Growth too slow for the spend: look at what each new customer costs to win and how long it takes to earn back.
- Margin too low for the growth: look at the costs that rise with revenue, such as hosting, support and payment fees.
- Still early: track the score every quarter and look at the trend. A score climbing from 15 to 30 says more than either number alone.
The customer acquisition cost calculator shows what growth is costing you, the burn rate calculator shows whether spending is rising, and the churn rate calculator shows how much revenue you lose before growth even starts.
Rule of 40 questions
What is the Rule of 40?
A rule of thumb for software companies: yearly revenue growth rate plus profit margin should add up to at least 40%. It lets a fast-growing company lose money, and a slow-growing one pass on profit.
What is the Rule of 40 formula?
Rule of 40 score = revenue growth rate (%) + profit margin (%). A company growing 25% a year with a 15% margin scores 40 and meets the rule exactly.
Should I use EBITDA or free cash flow margin?
Either, as long as you say which and keep it the same over time. Feld, Bain and SaaS Capital use EBITDA margin; McKinsey and Bessemer use free cash flow margin.
Can a company losing money pass the Rule of 40?
Yes. Feld's own example is a company growing 50% a year while losing 10%, which scores 40. The losses are fine if growth is fast enough to make up for them.
What percentage of SaaS companies meet the Rule of 40?
Fewer than you might think. Bain found 40% of 124 public software companies beat it in 2017, but only 16% of 86 companies did it in all five years from 2013 to 2017. McKinsey found companies exceeded it only 16 percent of the time between 2011 and 2021.
Does the Rule of 40 apply to early-stage startups?
Feld meant it for companies at scale, with at least $50 million in revenue. Earlier companies can still calculate it to see whether growth or margin is carrying them, but small revenue makes the growth rate swing a lot from quarter to quarter.
What is the Rule of X?
Bessemer's weighted version: revenue growth times a multiplier, plus free cash flow margin. The multiplier is about 2 for private companies and 2 to 3 for public ones, so growth counts for more than margin.
Sources
- Brad Feld, The Rule of 40% For a Healthy SaaS Company (2015)
- Bain & Company, Hacking Software's Rule of 40 (2018)
- McKinsey, SaaS and the Rule of 40 (2021)
- SaaS Capital, Growth, profitability and the Rule of 40 for private SaaS companies (2025)
- ChartMogul, Rule of 40
- Bessemer Venture Partners, The Rule of X (2024)
Fluxion connects read-only to your bank, Stripe and accounting, and works out revenue, money in, money out, burn and runway in code from your real transactions.
See how Fluxion works →More free tools for founders
How many months of cash you have left, with revenue and cost growth, and whether you're default alive.
Burn rate calculatorGross and net burn from your last three months, whether burn is rising, and your burn multiple.
Burn multiple calculatorNet burn divided by net new ARR for a quarter, with David Sacks' benchmarks and what it would take to improve.
SaaS magic number calculatorHow much yearly revenue each $1 of sales and marketing adds, with the gross-margin-adjusted version and Scale Venture Partners' 0.7 baseline.
SaaS quick ratio calculatorMRR added from new customers and upgrades divided by MRR lost to churn and downgrades, with the benchmark of 4.
Churn rate calculatorMonthly and yearly customer churn, revenue churn and net revenue retention.
LTV calculatorCustomer lifetime value from revenue, gross margin and churn, with your LTV to CAC ratio and CAC payback.
Customer acquisition cost calculatorWhat it costs to win one paying customer from your sales and marketing spend, and how many months it takes to earn back.
13-week cash flow forecastPlan cash in and out week by week for the next quarter, find your lowest week, and download the Excel template.
Investor update templateA monthly investor update email to copy, a filled-in example, which numbers to include and the mistakes to avoid.