Rule of 40 Calculator
- The Rule of 40 says a healthy software company should have a growth rate plus profit margin of at least 40: the two numbers trade off against each other, but their sum should clear the line.
- Revenue growth is 30.00% and the profit margin is 15.00%.
- Rule of 40 score = 30.00% + 15.00% = 45.00%.
- This clears the Rule of 40 line: growth and profitability together are in the range investors associate with healthy, efficient software companies.
The Rule of 40 Calculator tells you whether a software company's growth and profit together clear the Rule of 40 line. The rule says a healthy software company's revenue growth rate plus its profit margin should total at least 40. Enter the two figures and the calculator adds them into a single score, then shows how far that score sits above or below 40. The examples make the logic easy to see: growth of 30% with a 15% margin scores 45 and clears the line. Growth of 55% with a -10% margin also scores 45, because the rule explicitly lets fast growers spend margin. Growth of 12% with an 8% margin scores 20, twenty points short of the line.
The method behind the calculator is the standard health check for SaaS companies past the earliest stage, popularised in 2015 by investor Brad Feld. Because it combines growth and margin into one number, it reflects the trade-off founders actually face rather than judging either figure alone. This page shows the formula, the step-by-step workings, worked examples and the sources behind the rule, so you can check every result yourself instead of taking a score on trust. Use it to test a single company or to compare several against the same 40-point line.
Worked examples
Balanced growth and margin
Primary result: 45.00%. Full step-by-step working is shown with the result. (30 % · 15 %)
| Rule of 40 score | 45.00% |
| Growth rate | 30.00% |
| Profit margin | 15.00% |
| Gap to the 40 line | 5.00% above the line |
Hypergrowth at a loss
Primary result: 45.00%. Try it with your own numbers in the calculator above. (55 % · -10 %)
| Rule of 40 score | 45.00% |
| Growth rate | 55.00% |
| Profit margin | -10.00% |
| Gap to the 40 line | 5.00% above the line |
Slow growth, thin margin
Primary result: 20.00%. Every intermediate value is printed in the worked steps. (12 % · 8 %)
| Rule of 40 score | 20.00% |
| Growth rate | 12.00% |
| Profit margin | 8.00% |
| Gap to the 40 line | 20.00% short |
What the Rule of 40 is
The Rule of 40 says a healthy software company's revenue growth rate plus its profit margin should total at least 40. That is the whole test: one addition problem, one threshold. A company growing 30% a year with a 15% margin scores 45 and clears the line. A company growing 12% with an 8% margin scores 20, twenty points short of the line. The score is not a grade of quality in the abstract; it is a quick read on whether growth and profitability, taken together, are enough to call the business healthy.
The rule comes from SaaS, where the tension between growth and profit is sharpest. Software companies often spend heavily up front — on sales, marketing, and product — to win recurring revenue, and that spending shows up as a thin or negative margin while growth runs high. The rule was popularized in 2015 by investor Brad Feld as a health check for SaaS companies past the earliest stage. The framing caught on because it gave founders, boards, and investors a single number to argue about instead of two separate debates that pulled in opposite directions.
The reason the rule adds the two figures rather than setting a hurdle for each is that it treats growth and margin as tradeable. Growth of 55% with a -10% margin also scores 45, and the rule explicitly lets fast growers spend margin. A company pouring money into expansion can post a negative margin and still pass, as long as the growth is strong enough to make up the difference. Run the same logic in reverse: a mature company with modest growth can pass on margin alone. Two separate hurdles would fail both of these companies — the fast grower for its losses, the slow grower for its growth rate — even though each is making a deliberate, defensible choice about where to invest.
That is what the sum captures: the trade-off itself. Management is always choosing how much near-term profit to give up for future revenue, and the score prices that choice in one place. A high-growth, low-margin company and a low-growth, high-margin company can land on the same score, and the rule treats them as equally healthy because each has paid for its position. A rule of 40 calculator makes that arithmetic immediate — enter a growth rate and a margin, and the score shows how much room, or how large a gap, separates the company from the line.
One caution belongs with the definition. The rule is a health check, not a forecast, and it works best for companies past the earliest stage, where growth and margin are both meaningful numbers rather than noise from a tiny base. It also says nothing about how a company reached its score, so two businesses with the same total can be in very different positions. Used as intended — as a fast, shared summary of the growth-versus-profit balance — it earns its place.
How to calculate your score
To calculate your Rule of 40 score, add two numbers: your year-on-year revenue growth rate and your profit margin. The Rule of 40 says a healthy software company's revenue growth rate plus its profit margin should total at least 40. That is the whole formula — one addition, two inputs. The only decision you have to make is which margin to use, and the key is to pick one and apply it consistently. This page uses operating margin, the share of revenue left after operating expenses, because it is the measure most commonly cited alongside the rule. If you prefer free-cash-flow margin, the arithmetic is identical; just state which margin you are using so your score can be compared fairly over time. A rule of 40 calculator simply performs this addition for you once you enter your growth rate and margin.
The two positive examples show how different companies can reach the same score. A company growing revenue 30% year on year with a 15% operating margin scores 45, since 30 plus 15 equals 45. That clears the line of 40 with five points to spare. A second company growing 55% with a -10% margin also scores 45, because 55 plus negative 10 equals 45. The negative margin means the company is losing money on an operating basis, yet it still passes. This is not a loophole — the rule explicitly lets fast growers spend margin. High growth is treated as worth as much as near-term profitability, so a company pouring money into expansion can still look healthy by this measure.
The failing example shows what a shortfall looks like. A company growing 12% with an 8% operating margin scores 20, since 12 plus 8 equals 20. That is twenty points short of the line. Neither number is disastrous on its own, but together they describe a business that is growing slowly and earning thin margins — the combination the rule is designed to flag. The gap of 20 points is also a useful way to think about the score: it is not a pass/fail stamp but a distance from the threshold, and that distance tells you how much room a company has to improve on either growth or margin.
The rule was popularised in 2015 by investor Brad Feld as a health check for SaaS companies past the earliest stage. That context matters when you read your own score. Very young companies are often judged on different terms, and the rule is not meant to be the only lens on a business. It is a quick sanity check that balances two levers — how fast you are growing and how much profit you keep — in a single number you can track over time.
To use the rule of 40 calculator on this page, enter your year-on-year revenue growth rate as a percentage and your operating margin as a percentage, including the minus sign if the margin is negative. The tool adds them and shows your total against the line of 40. Run it for several periods to see whether your score is rising or falling, and note which margin you used each time so the comparison stays honest.
What counts as the margin
The Rule of 40 says a healthy software company's revenue growth rate plus its profit margin should total at least 40. That sounds simple until you ask which margin goes into the sum. Two candidates dominate: operating margin and free cash flow margin. Operating margin measures profit from core operations before interest and taxes, as a share of revenue. Free cash flow margin measures the cash left after operating expenses and capital spending, as a share of revenue. They answer different questions. Operating margin shows how profitable the business model is on an accrual basis; free cash flow margin shows how much actual cash the business throws off. A company can look healthy on one and strained on the other, especially when working capital swings, capitalized software, or heavy receivables distort the cash picture.
Whichever margin you choose, keep it consistent. A rule of 40 calculator is only useful if the same definition is applied across periods and across companies. If you switch from operating margin to free cash flow margin between quarters, or compare your free cash flow score against a peer's operating margin score, the numbers stop being comparable and the 40 threshold loses its meaning. Pick one definition, state it next to the result, and hold it steady. The rule itself does not mandate a margin; it was popularised in 2015 by investor Brad Feld as a health check for SaaS companies past the earliest stage, and in practice the choice is yours as long as it is applied consistently.
Stock-based compensation is where comparisons get muddiest. Under standard accounting, stock-based compensation is an expense that reduces operating margin, but it is a non-cash charge that does not reduce free cash flow. That single difference can move a company's score by many points depending on how generous its equity grants are. Two companies with identical economics can post very different Rule of 40 scores if one pays heavily in stock and the other pays in cash, and the gap widens when the share price rises. Analysts often adjust operating margin to exclude stock-based compensation, which flatters the score; others treat it as a real cost, which lowers it. Neither approach is wrong, but mixing them across a comparison is.
The arithmetic is straightforward once the inputs are fixed. Growth of 30% with a 15% margin scores 45 and clears the line. Growth of 55% with a -10% margin also scores 45: the rule explicitly lets fast growers spend margin. Growth of 12% with an 8% margin scores 20, twenty points short of the line. Notice how much the margin choice matters in the middle case: a ten-point swing in margin moves the score by ten points, which is often the difference between clearing 40 and missing it. Before you trust any rule of 40 calculator output, confirm which margin it used and whether stock-based compensation was included.
- Operating margin: profit from core operations before interest and taxes, as a share of revenue.
- Free cash flow margin: cash left after operating expenses and capital spending, as a share of revenue.
- Stock-based compensation lowers operating margin but does not lower free cash flow, so it can shift scores between the two methods.
Reading and using the score
A Rule of 40 score is easiest to read as a single number on one side of a line. The rule says a healthy software company's revenue growth rate plus its profit margin should total at least 40. Everything above 40 is a company that is, by this measure, balancing speed and profitability well enough. Everything below 40 is a company that needs to explain itself — either it is buying growth in a way investors will tolerate, or it is falling short on both fronts at once. A rule of 40 calculator gives you that number quickly; the judgment comes from looking at how the score was built.
The arithmetic is deliberately simple, and two very different companies can land on the same score. Growth of 30% with a 15% margin scores 45 and clears the line. Growth of 55% with a -10% margin also scores 45: the rule explicitly lets fast growers spend margin. That second case is the important one for reading scores, because a negative margin would look alarming in isolation. Under the Rule of 40 it is a trade — heavy spending on growth, offset by the growth rate itself. The reverse trade is just as valid: a slower-growing company can clear the line with a strong margin. What the rule will not forgive is weakness on both sides. Growth of 12% with an 8% margin scores 20, twenty points short of the line, and no reading of the components makes that look like a deliberate strategy.
Investors often use the score as a first-pass screen. Because it collapses two headline metrics into one number, it lets someone sort a long list of software companies quickly and flag which ones deserve a closer look. A score comfortably above 40 tends to move forward in the process; a score well below it invites questions about why, and whether the gap is closing. The screen is a filter, not a verdict — it tells you where to look, not what to conclude.
The rule also has limits worth keeping in view. It was popularised in 2015 by investor Brad Feld as a health check for SaaS companies past the earliest stage, and that origin matters. For a very young company, growth rates can be enormous simply because the base is small, so a strong score may say more about starting size than about durable health. For a very mature company, growth naturally slows, and a high margin may carry the score even though the business has little expansion left. In both cases the total can mislead if you read it without the two components behind it. Use the score to compare companies at similar stages, and treat the growth and margin figures separately whenever a company sits at either end of the maturity curve.
FAQs
What is the Rule of 40?
The Rule of 40 is a SaaS health rule of thumb: a company's growth rate plus its profit margin should add to 40 or more. It gives a single quick score for judging whether a subscription business is growing fast enough to justify its profitability, or profitable enough to justify slower growth. A score at or above 40 is considered a pass.
How do you calculate the Rule of 40?
Add the two percentages together. For example, 30% growth plus a 15% margin equals a score of 45. You do not average them or weight them; it is a simple sum of the growth rate and the margin. That makes the calculation fast to do by hand or with a calculator once you have both figures.
Can a company pass while losing money?
Yes. A company with 55% growth and a -10% margin scores 45, because the rule rewards growth bought with margin. The negative margin subtracts from the growth rate, but strong enough growth still clears the 40 threshold. This is why the rule is described as a trade-off between growth and profitability rather than a strict profitability test.
What margin should I use?
Operating margin and free cash flow margin are both used in the Rule of 40. There is no single required choice, but you should pick one and apply it consistently when comparing companies. Mixing the two across a peer set can distort rankings, since the two measures can differ meaningfully for the same business in the same period.
Is the Rule of 40 only for SaaS?
It was framed for software and subscription businesses with recurring revenue, which is where it is most often applied. It transfers poorly to low-margin or asset-heavy industries, where large capital needs and thin margins can make the growth-plus-margin sum misleading. Treat it as a SaaS and subscription benchmark rather than a universal measure.
What is a good Rule of 40 score?
40 or above is the pass mark. Elite public SaaS companies often post 50 or more, so a score in that range is strong. Scores under 20 signal weak growth, weak margins, or both. Use these bands as rough guides when comparing companies, and remember that the score reflects a trade-off rather than a single measure of quality.