The Rule of 40: How Wall Street Grades SaaS Companies
The Rule of 40 says a software company growth rate plus profit margin should top 40%. Here is how to use it to separate healthy SaaS from hype.

Key Takeaways
- The Rule of 40 says a software company's revenue growth rate plus profit margin should add up to at least 40%.
- It forces a trade-off discussion: hypergrowth at zero profit can pass, and slow growth with fat margins can pass — but not weakness on both.
- Mature names like Salesforce (CRM) and high-growth names like Palantir (PLTR) can clear the bar very differently.
- The biggest pitfall is the margin definition — operating, EBITDA and free-cash-flow versions give different answers.
- It is a heuristic for subscription software, not a valuation tool, and it breaks outside SaaS.
Wall Street has a one-line stress test for software stocks: add a company's growth rate to its profit margin, and if the total clears 40%, it is probably healthy.
What Is the Rule of 40?
It is a balance test between growth and profitability. The Rule of 40 holds that for a healthy software business, the sum of its revenue growth rate and its profit margin should be at least 40%.
The logic is that investors will tolerate low profits if growth is fast, and low growth if profits are fat — but a company weak on both is burning resources without building durable value.
The rule's power is that it refuses to let a company hide behind one number. A business growing 15% with a 25% margin (sum of about 40) is considered just as healthy as one growing 35% at a 5% margin — the framework treats them as equally balanced.
It became a venture-capital and public-market shorthand precisely because it captures the central tension of any subscription business in a single line. For where this fits among broader approaches, see our investment strategies guide.
How Do You Calculate It?
Add two percentages, but define them carefully. The first input is year-over-year revenue growth. The second is a profit margin — and which margin you choose changes everything.
Common choices are operating margin, EBITDA margin, or free-cash-flow margin. A company might score around 45 on a free-cash-flow basis but closer to 30 on an operating basis once stock-based compensation is included.
The single most important discipline is to use the same margin definition for every company you compare — otherwise you are measuring different things and calling them the same. Most disciplined analysts favor free-cash-flow margin because it is the hardest to game with accounting choices.
To understand why the margin you pick matters so much, our primer on fundamental analysis breaks down the difference between these profit lines.
Which SaaS Stocks Pass the Test?
The cleanest passers combine durable growth with real cash margins. The table below uses approximate, illustrative figures to show how very different businesses can clear — or miss — the same bar.
| Company | Approx. growth | Approx. FCF margin | Rule of 40 score |
|---|---|---|---|
| ServiceNow (NOW) | ~20% | ~30% | ~50 (passes) |
| Palantir (PLTR) | ~30% | ~25% | ~55 (passes) |
| Shopify (SHOP) | ~25% | ~16% | ~41 (passes) |
| Salesforce (CRM) | ~9% | ~33% | ~42 (passes) |
| Workday (WDAY) | ~15% | ~25% | ~40 (borderline) |
ServiceNow (NOW) and Palantir (PLTR) clear the bar through growth, while Salesforce (CRM) clears it the mature way — modest growth funded by strong margins.
Shopify (SHOP) and Workday (WDAY) sit closer to the line, which is exactly where the rule earns its keep: it flags companies that need to improve one side of the equation. Note that even Adobe (ADBE), a far more mature franchise, comfortably passes thanks to roughly 13% growth on very high margins.
Common Mistakes With the Rule of 40
The first mistake is treating it as a valuation. A company can pass the Rule of 40 and still be wildly overpriced — the rule measures operating health, not whether the stock is cheap.
The second is mixing margin definitions, which makes cross-company comparison meaningless. The third is applying it to businesses it was never built for.
The Rule of 40 was designed for subscription software with high gross margins and recurring revenue — apply it to a hardware maker or a bank and the number is noise. It assumes the economics of SaaS, where growth and margin genuinely trade off against each other.
When Should You Ignore the Rule of 40?
Ignore it for very early-stage hypergrowth and for non-software businesses. A company deliberately growing 60% while running deep losses can be building an enormous franchise, even if its score temporarily looks ugly.
In land-grab markets, sacrificing margin to capture customers can be the right call, and the rule penalizes exactly that strategy. Judging an early hypergrowth name purely on a single year's score can lead you to dismiss the next category leader.
The rule also says nothing about durability. A score of 45 built on a fad product is worth less than a 38 from a company with deep switching costs and a widening moat. Critics argue the rule is a starting filter, not a verdict.
Pro Tips for Using It Well
Use it as a trend, not a snapshot. A company whose score is climbing from 35 toward 45 is telling a very different story than one sliding from 50 to 40, even if they cross at the same point.
Always pair the score with growth durability and gross margin. A high-quality 42 with 80% gross margins and low churn beats a fragile 48 every time.
The rule is most useful as a conversation starter — it tells you which question to ask next, not what the answer is. Treat it as the opening filter in a deeper process, and it will keep you from overpaying for unbalanced growth or falling for cheap-looking decline.
Ready to analyze these stocks yourself? Search any ticker on MainRatios to see valuations from 6 legendary investors - free.
See Peter Lynch's PEG framework in action
Growth-adjusted valuations that reveal what Lynch would call cheap.
View Lynch's valuationsFrequently Asked Questions
It is a quick health check for software companies: add the revenue growth rate to the profit margin, and a result of 40% or higher suggests a balanced, healthy business. It rewards either fast growth or strong profitability.


