The Rule of 40: How to Judge a Software Stock's Health
Add a software company growth rate to its profit margin. If the sum clears 40%, the business is probably healthy. Here is how to use the Rule of 40 in 2026.

CRM ranks #9 of 169 · score 63. These 3 lead the sector:
Key Takeaways
- The Rule of 40 says growth rate plus profit margin should add up to at least 40% for a healthy software company.
- It elegantly captures the trade-off between growing fast and making money.
- Software names like CRM, ORCL and NOW can be screened in seconds with it.
- The catch: the rule breaks down outside software and can be gamed by which margin you choose.
Add a software company's revenue growth to its profit margin: if the sum clears 40%, the business is probably healthy. It is the one-line test investors run on names like Salesforce (CRM), and most retail investors have never heard of it.
What is the Rule of 40?
It is a quick health check for subscription software businesses. The idea is simple: a great software company can either grow quickly or be highly profitable, but the sum of the two should clear 40%.
The shortcut spread among venture investors in the mid-2010s as a way to sanity-check fast-growing private software, and it migrated to public markets because it travels well. A company growing 30% with a 15% margin scores 45 and passes. A company growing 10% with a 5% margin scores 15 and fails.
The rule forces you to stop admiring growth in isolation and start pricing the cost of that growth. A business burning cash to post big revenue numbers is not automatically healthy, and this single line exposes it.
The logic is intuitive once you see it. Early on, a software company should sacrifice margin to grab market share, so growth carries the score. As it matures and growth naturally slows, profitability is supposed to rise and pick up the slack. A company that loses growth without gaining margin is the one the rule flags, because both engines are stalling at once.
How do you calculate it?
You add two numbers: the year-over-year revenue growth rate and a profitability margin, usually free cash flow margin or operating margin.
The formula is: Rule of 40 score = revenue growth rate (%) + profit margin (%). If the result is 40 or higher, the company passes. The beauty is that it does not care how you get there.
Picture a mature software firm growing around 12% with a roughly 35% free cash flow margin: that sums to about 47, a clear pass driven by profitability. Now picture a young disruptor growing about 45% while barely breaking even: it can also pass, this time on growth alone. Both can be healthy in very different ways.
The same logic explains why a failing score is a red flag rather than a death sentence. A company at 25 might be a former high-flyer whose growth stalled before its margins caught up, which is a fixable problem if management cuts costs, or a structural loser whose product is being displaced. The score tells you to look closer; it does not tell you which story is true.
Which software stocks screen well on the Rule of 40 in 2026?
Plenty of large-cap software names clear the bar, though the mix of growth and margin differs sharply. The table below uses approximate, illustrative figures to show how the math works, not precise current results.
| Company | Approx growth | Approx margin | Rule of 40 score |
|---|---|---|---|
| Salesforce (CRM) | ~10% | ~33% | ~43 (pass) |
| Microsoft (MSFT) | ~15% | ~45% | ~60 (pass) |
| ServiceNow (NOW) | ~20% | ~30% | ~50 (pass) |
| Snowflake (SNOW) | ~33% | ~10% | ~43 (pass) |
| Oracle (ORCL) | ~10% | ~35% | ~45 (pass) |
Salesforce (CRM), Microsoft (MSFT), ServiceNow (NOW), Snowflake (SNOW) and Oracle (ORCL) all clear 40 in this illustration, but they get there in different ways. The same passing score can describe a hyper-growth disruptor or a mature cash machine, which is exactly why you must look under the hood. A name like Adobe (ADBE) sits in the profitable-and-steady camp, while a faster grower leans the other way.
What mistakes do investors make with the Rule of 40?
The biggest error is treating it as a buy signal. A passing score tells you the business is balanced; it says nothing about valuation, so a 40-plus company trading at roughly 20x sales can still be a poor investment.
The second mistake is inconsistent inputs. Swapping operating margin for free cash flow margin, or using adjusted figures that exclude stock-based compensation, can flatter a borderline name. Pick one definition and apply it consistently across every company you compare.
A third trap is ignoring the trend. A score sliding from 55 toward 40 over several quarters can be more telling than the absolute number today, because it reveals a business losing either its growth or its pricing power.
When should you ignore the Rule of 40?
When the company is not a subscription software business. The rule was designed for recurring-revenue models with high gross margins, so applying it to a bank, a retailer, or a semiconductor maker produces noise.
It also misleads for very early-stage companies where growth rates are huge but unsustainable, and for cyclical businesses where margins swing with the economy. For those, traditional fundamental analysis of cash flow and balance sheet quality serves you far better than a single shortcut.
Even within software, watch for distortions. A recent acquisition can inflate the growth rate for a year, and aggressive add-backs can flatter the margin, so a company can clear 40 on paper while the underlying business is treading water. The rule is a starting point, never the finish line.
What are some pro tips for using it well?
Pair the score with valuation and with the growth-versus-margin mix. A company scoring 45 entirely on growth carries different risk than one scoring 45 entirely on margin, because growth can decelerate fast while a cost structure changes slowly.
Track the score over time, normalize the margin definition, and remember it is a screen, not a verdict. Use it to build a shortlist, then dig into unit economics and competitive position.
One more habit separates careful analysts from casual ones: check the quality of the growth, not just its rate. Revenue expanding because existing customers buy more is far healthier than revenue propped up by heavy discounting or one-time deals, even when both produce the same Rule of 40 score. To see how legendary investors weigh growth against quality, browse the super investors lens and the per-investor models.
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
Largely yes. It was built for recurring-revenue software with high gross margins, and it loses meaning when applied to banks, retailers, or cyclical industrials.


