Rule of 40: Formula, Calculator and SaaS Companies Ranked
Software unit economics
How the engine scores it: methodology
The Rule of 40 says a software company's revenue growth rate plus its profit margin should add up to at least 40%. A company growing 30% a year with a 10% margin passes; so does one growing 10% with a 30% margin. It is a quick test of whether growth is being bought at a sensible cost.
1. Rule of 40 Companies: 20 SaaS Stocks Ranked
The table below is recalculated from each company's latest reported figures and sorted by score. Each score is revenue growth plus EBITDA margin, the same two inputs our fundamental engine uses when it scores a software company. The rating column is the engine's overall rating for the stock.
A high score describes the business, not the share price. It says nothing about whether the stock is cheap, and the market usually prices the best scorers accordingly.
| Company & Ticker | Price | Revenue Growth | EBITDA Margin | Score | Engine Rating | Result |
|---|---|---|---|---|---|---|
| Palantir Technologies (PLTR)Enterprise AI & Ontology Software | $172.17 | +95.9% | +46.0% | 141.9% | NEUTRAL | Well above 40 |
| Microsoft Cloud (MSFT)Azure & Enterprise Cloud | $492.85 | +18.8% | +59.4% | 78.2% | NEUTRAL | Well above 40 |
| Adobe (ADBE)Creative & Digital Experience Cloud | $234.79 | +12.9% | +38.2% | 51.1% | NEUTRAL | Well above 40 |
| ServiceNow (NOW)Enterprise Workflow Automation | $92.80 | +20.5% | +21.0% | 41.5% | NEUTRAL | Passes |
| Datadog (DDOG)Cloud Observability & Security | $165.75 | +35.2% | +4.0% | 39.2% | NEUTRAL | Borderline |
| CrowdStrike Holdings (CRWD)Cloud Cybersecurity Platform | $217.20 | +28.3% | +3.3% | 31.6% | NEUTRAL | Borderline |
| Autodesk (ADSK)Design & Engineering SaaS | $251.88 | +0.0% | — | — | NEUTRAL | Pending |
| AppLovin (APP)AI AdTech & App Monetization | — | — | — | — | NEUTRAL | Pending |
| Salesforce (CRM)Enterprise CRM & Data Cloud | — | — | — | — | NEUTRAL | Pending |
| Fortinet (FTNT)Converged Networking & SASE | $139.48 | +20.2% | — | — | SELL | Pending |
| HubSpot (HUBS)Mid-Market CRM & Marketing Cloud | $207.45 | +20.1% | — | — | NEUTRAL | Pending |
| Intuit (INTU)SMB Financial & Tax SaaS | — | — | — | — | NEUTRAL | Pending |
| MongoDB (MDB)Developer Data Platform | $320.12 | +0.0% | — | — | SELL | Pending |
| Cloudflare (NET)Connectivity Cloud & Edge Security | — | — | — | — | NEUTRAL | Pending |
| Oracle (ORCL)OCI Cloud Infrastructure & ERP | — | — | — | — | NEUTRAL | Pending |
| Palo Alto Networks (PANW)Next-Gen Security & SASE | — | — | — | — | NEUTRAL | Pending |
| Snowflake (SNOW)AI Data Cloud Platform | — | — | — | — | NEUTRAL | Pending |
| Atlassian (TEAM)Developer & Collaboration SaaS | $145.95 | +26.6% | — | — | SELL | Pending |
| Workday (WDAY)Enterprise Cloud HCM & Financials | — | — | — | — | NEUTRAL | Pending |
| Zscaler (ZS)Zero Trust Cloud Security | — | — | — | — | NEUTRAL | Pending |
2. Rule of 40 Calculator
Enter a company's year-over-year revenue growth and its profit margin, both as percentages. Use a negative margin for a company that is losing money.
3. How to Calculate the Rule of 40
Formula
Score (%) = year-over-year revenue growth (%) + profit margin (%)
Example: 28% revenue growth + 22% free cash flow margin = 50%, comfortably above 40.
Example: 45% revenue growth − 12% margin (still losing money) = 33%, borderline.
The formula is simple; the choice of margin is not. Analysts use three versions, and the same company can pass on one and fail on another:
| Version | Formula | Suits | Blind spot |
|---|---|---|---|
| EBITDA margin | Revenue growth + EBITDA margin | Mature, profitable software companies. This is the version our table uses. | Ignores working capital and the cash collected upfront on annual contracts. |
| Free cash flow margin | Revenue growth + FCF margin | The most common choice; it counts upfront billings as cash. | Flattered by stock-based compensation, which costs shareholders but not cash. |
| Dilution-adjusted | Revenue growth + (FCF − SBC) margin | The strictest test of cash earned for existing shareholders. | Hard for young public companies that pay heavily in stock. |
Rule of 40 vs. Rule of X, and the Rules of 50 and 60
Bessemer Venture Partners' Rule of X weights growth more heavily, typically doubling it: 2 × revenue growth % + FCF margin %. The reasoning is that growth compounds for years while a one-off cost cut lifts margins once. Some investors also use stricter Rule of 50 or Rule of 60 thresholds for the strongest companies. The calculator above shows the Rule of X alongside the standard score.
4. Why Software Companies Need a Different Yardstick
A subscription software company pays to win a customer now and earns the revenue over years. Sales commissions and marketing are expensed immediately, while a multi-year contract's revenue is recognised month by month (ASC 606). A company growing quickly can therefore report thin or negative earnings while building a valuable book of recurring revenue, and a P/E ratio makes it look expensive or unprofitable.
The Rule of 40 sidesteps that by asking a different question: is the combination of growth and margin strong enough to justify the spending? A company can lean either way and still pass.
5. Calculated Billings: An Early Read on Revenue
Because subscription revenue is recognised evenly over a contract, reported revenue lags new business. Calculated billings adds back the change in deferred revenue to show what customers committed to in the period:
Calculated Billings Formula
Calculated Billings = GAAP Revenue + Δ Current Deferred Revenue (YoY)
• Billings-to-revenue ratio: calculated billings ÷ GAAP revenue
• Above 1.10x: commitments are growing faster than recognised revenue.
• Below 1.00x: the backlog is shrinking, often ahead of slower revenue growth.
The SaaS magic number ([net new ARR × 4] ÷ sales & marketing expense) asks a related question: how much recurring revenue each dollar of sales spending brings in.
6. Pitfalls When Applying the Rule of 40
A company can show a 25% free cash flow margin while paying staff stock worth 20% of revenue. The cash stays in the business, but existing shareholders are diluted. Our valuation model penalises companies whose stock compensation exceeds 15% of revenue.
Companies that charge by consumption (Snowflake, for example) can see revenue fall quickly when customers cut budgets, while seat-based companies (Salesforce, for example) move more slowly. A single quarter's growth rate can mislead for the first group.
Some vendors bundle consulting to close large deals. When professional services exceed about 15% of revenue at thin or negative margins, they drag overall gross margin below the roughly 70% typical of software.
7. Frequently Asked Questions
A rule of thumb that a software company's revenue growth rate plus its profit margin should be at least 40%. It lets you compare a fast-growing, loss-making company with a slower, profitable one on one scale.
The ranked table in section 1 is recalculated from the latest reported figures, so it is more current than any list written into an article. Companies with both high growth and high margins, such as Palantir and AppLovin, have recently scored well above 40.
Free cash flow margin is the most common choice and counts cash collected upfront. EBITDA margin is steadier from quarter to quarter. Whichever you use, use the same one when comparing companies.
It was built for subscription software, where upfront spending distorts earnings. For most other industries, returns on capital say more; see our ROIC guide.
Not on its own. It measures the business, and strong businesses are often priced for it. Valuation still matters; our DCF calculator shows what growth a price already assumes.
8. How Stock Investing Pro Uses It
When you open a software stock such as Salesforce (CRM) or Microsoft (MSFT), the engine scores its Rule of 40 as one of its fundamental checks, alongside billings, returns on capital and a DCF valuation. The checks describe the company; they are not a forecast of the share price. We publish what we have tested about the ratings, including what did not work, on our evidence page.
Check a Software Stock
See the Rule of 40, billings ratio, cash flow quality and fair value estimate for any US software company, free on the web, iOS and Android.
Analyze a Stock