The Rule of 40 has become one of the most discussed metrics in technology investing, and for good reason. It tries to solve one of the hardest problems in public market analysis: how do you value a company that’s growing rapidly but choosing to sacrifice profitability for that growth? If you’ve been wrestling with whether a high-growth SaaS stock deserves its premium valuation, understanding this framework isn’t optional—it’s essential.
The Rule of 40 is simple on its surface: a software company’s revenue growth rate plus its profit margin (typically measured as free cash flow margin or operating margin) should equal at least 40%. If a company is growing at 30% year-over-year, it should maintain at least a 10% profit margin. If it’s growing at 50%, it can afford to be unprofitable—or even losing money.
The concept emerged from venture capital practice in the mid-2010s, particularly from investors at firms like Andreessen Horowitz and Bessemer Venture Partners who were trying to benchmark SaaS companies at various stages. The logic was straightforward: at some point, growth becomes less valuable if it comes at the cost of extreme unprofitability. The Rule of 40 represented a heuristic for finding that balance.
Here’s where most articles get it wrong, though. The Rule of 40 isn’t a law—it’s a framework for thinking about the trade-off between growth and profitability. It gained traction because public market investors desperately needed something to replace the inefficient private market valuations they were seeing. But treating it as a pass-fail test misses the entire point.
The metric matters most when you’re comparing companies at similar stages. A 60% growth company trading at 15x revenue might look expensive until you realize it has a 25% free cash flow margin—well above the threshold—making it actually cheaper than a slower-growing competitor burning cash.
The calculation seems elementary, but there are important nuances in what numbers you use and where you find them.
Growth rate: Use year-over-year revenue growth, typically from the most recent quarter annualized or the trailing twelve months. Some analysts prefer sequential quarterly growth, but year-over-year remains the standard for public company comparison. For companies in their early high-growth phase, you might see growth rates exceeding 100%—which immediately raises questions about sustainability.
Profit margin: This is where confusion sets in. You can use operating margin, EBITDA margin, or free cash flow margin. Free cash flow margin is the most conservative and the one most sophisticated investors prefer, since it accounts for real cash being generated (or consumed). Operating margin includes stock-based compensation and other non-cash expenses that can mask underlying cash burn. If a company reports 20% operating margin but 5% free cash flow margin, the Rule of 40 looks very different depending on which you choose.
The formula in practice: Take revenue growth (say, 25%) and add free cash flow margin (say, 15%). If the sum is 40 or higher, the company passes—on paper. But you need to look at both components individually, not just the total.
Salesforce provides a useful example. In their fiscal year 2024, they reported revenue growth of approximately 11% year-over-year with a free cash flow margin around 32%. That totals roughly 43%—comfortably above the threshold. But that 11% growth is dramatically slower than the 25%+ growth rates investors were accustomed to from Salesforce a few years ago. The Rule of 40 would have told you they passed, but it wouldn’t have told you that the growth deceleration was the bigger story.
Software companies occupy a unique position in the market. Unlike traditional businesses, they can scale revenue with relatively marginal cost increases—a dollar of additional revenue often flows straight to gross margin and eventually to profit. This characteristic means that extremely high growth can justify temporarily negative margins, as investors bet that profitability will arrive at scale.
The challenge is that public market investors need a way to compare companies at different stages, with different growth profiles, across different time horizons. A company growing 80% with 40% negative free cash flow is making a very different bet than one growing 20% with 25% positive free cash flow. The Rule of 40 lets you see both on the same scoreboard.
This became particularly important during the 2020-2021 growth stock boom, when virtually every SaaS company went public at 20x or 30x revenue regardless of fundamentals. Investors needed some framework to separate companies that would eventually earn their valuations from those that would need constant capital raises or face painful corrections. The Rule of 40 became that framework—imperfect, but functional.
The metric also serves as a useful shorthand for management teams. When a CEO can say “we’re committed to the Rule of 40,” they’re signaling a balance between growth investment and financial discipline. It’s become a communication tool as much as an analytical one.
Here’s the counterintuitive reality the Rule of 40 often obscures: a company can pass the threshold while building a fundamentally unsustainably business.
Consider a company growing at 45% with a -5% free cash flow margin. It scores 40% on the metric and passes. But that -5% margin might be widening. The growth might be driven by unsustainable customer acquisition costs. The Rule of 40 treats a company growing 45% with -5% margin the same as one growing 20% with 20% margin—but these are completely different businesses with completely different risk profiles.
This is the critical limitation nobody talks about enough. The Rule of 40 is a point-in-time snapshot, not a trend analysis. A company can pass today while heading toward a cliff. You need to look at the trajectory of both components over multiple quarters.
Datadog offers an interesting case study here. Through 2022 and early 2023, they were growing at roughly 25-30% while generating positive free cash flow—a classic Rule of 40 winner. But as growth decelerated toward the mid-teens by 2024, their free cash flow margin expanded to over 30%, allowing them to stay above the threshold even as the growth component shrank. The Rule of 40 would have flagged the deceleration, but an investor looking only at the total score would have missed the structural shift in the business model.
Let me give you specific examples of how this plays out with actual public companies, because abstract discussion doesn’t help you when you’re analyzing a ticker.
ServiceNow consistently demonstrates Rule of 40 excellence. In 2023, they reported approximately 22% revenue growth with free cash flow margins around 22-23%, putting them solidly above 40%. What’s notable is that they’ve maintained this balance while continuing to invest in platform expansion and AI capabilities. They’re not sacrificing growth for profitability or vice versa—they’ve found an equilibrium that makes their valuation defensible.
Snowflake tells a different story. Despite strong revenue growth (approximately 35% in their fiscal year 2024), their free cash flow margin remained significantly negative. They were well below the Rule of 40 threshold. The market punished them accordingly, with significant multiple compression. They’ve recently shifted toward profitability goals, recognizing that the market was no longer willing to give them infinite credit for growth alone.
HubSpot represents the middle ground well. They’ve historically grown at 25-30% while maintaining low-double-digit positive free cash flow margins—comfortably above 40%. As they’ve scaled, their growth has naturally decelerated into the high-teens, but their margin expansion has compensated. This is the ideal trajectory the Rule of 40 is supposed to identify.
Atlassian has been more volatile. Their growth remained strong (20%+), but they operated at significant free cash flow negative for years, well below the threshold. The market gave them credit for the growth component, but their valuation compressed as investors questioned when (or if) profitability would materialize. Their recent push toward profitability has improved their Rule of 40 profile.
The pattern is clear: companies that can maintain Rule of 40 scores above the threshold while their growth naturally decelerates (as all high-growth companies do) tend to sustain their valuations better than those that fall below the line as they scale.
Don’t make the mistake of using the Rule of 40 as your sole decision criterion. Use it as a filter and a starting point for deeper analysis.
First, screen for companies above the threshold. This gives you a manageable list of businesses that have demonstrated some balance between growth and profitability. But immediately investigate why they’re above the line. Is it because growth is exceptional? Because margins are excellent? Both?
Second, examine the trend. A company at exactly 40% this year after being at 35% last year is very different from one at exactly 40% after being at 55% last year. The trajectory matters more than the current number. Look at at least eight quarters of historical data if possible.
Third, understand the company’s growth drivers. If growth is coming from a new product line or market expansion, that’s more valuable than growth coming from discounting or acquire-then-churn customer acquisition. The Rule of 40 won’t tell you this—you need to read the earnings calls and understand the business.
Fourth, compare within sectors. A 30% Rule of 40 score in enterprise software means something different than 30% in cybersecurity or cloud infrastructure. Each sub-sector has different normal growth rates and margin profiles. Use the metric to compare companies fairly within their competitive set.
Fifth, consider your time horizon. If you’re investing for five-plus years, you might tolerate a company below the Rule of 40 today if you believe profitability will arrive at scale. If you’re trading more frequently, you need the current score to hold.
The honest truth is that the Rule of 40 has significant blind spots, and any article pretending otherwise is doing you a disservice.
It ignores capital structure. A company can pass the Rule of 40 while loading up on debt or burning through equity capital. Free cash flow margin doesn’t capture the full picture of financial health if a company is financing its operations through debt raises or stock sales.
It treats growth and margin as equally valuable. Many investors would prefer a company growing at 20% with 25% margin (45% score) over one growing at 40% with 5% margin (45% score), even though the Rule of 40 treats them identically. Growth is often more valuable at scale because it compounds—margins tend to converge across competitors over time, but growth trajectories differ more persistently.
It doesn’t account for reinvestment needs. Some businesses need to reinvest heavily to maintain growth (sales and marketing, R&D), while others have more efficient models. The Rule of 40 treats a dollar of profit and a dollar of growth investment as fungible, which they aren’t.
It’s backward-looking. The Rule of 40 uses historical data. A company might be in the process of a fundamental business model shift that won’t show up in current numbers. You’d miss the story if you only looked at this metric.
It varies by stage. A Series C private company should have very different Rule of 40 characteristics than a mature public SaaS company. Applying the same threshold across stages creates false comparisons.
The best investors use the Rule of 40 as one input among many, not as a definitive answer. It’s a useful shorthand, not a comprehensive framework.
Because the Rule of 40 has limitations, you should know what else to look at.
The 60-40 rule is a stricter variant: 60% growth plus 40% profit margin (or some variation) for companies in hyper-growth mode. It applies to the fastest-growing SaaS companies where the market expects exceptional performance on both dimensions.
Rule of 50 pushes the threshold higher, arguing that 40 has become too easy for mature SaaS companies and that true compounder businesses should aim for 50. You’ll hear this from investors like Fury Capital who believe the baseline has risen.
TAM-based frameworks ignore current financials entirely and focus on whether the total addressable market is large enough to support the company’s growth aspirations. Useful for early-stage analysis where current numbers are meaningless.
Payback period and LTV:CAC look at unit economics—how long it takes to earn back customer acquisition costs and what lifetime value those customers generate. These matter more for private companies or those with lumpy revenue, but they’re essential complements to Rule of 40 analysis for understanding the underlying business quality.
Now that you understand what the Rule of 40 measures and where it falls short, how do you actually use it?
Start by building a watchlist of SaaS and tech companies that interest you. Pull their last eight quarters of revenue growth and free cash flow margin. Calculate the Rule of 40 for each quarter. Look for companies that have consistently scored above 40 and whose scores are stable or improving.
For companies below 40, investigate why. Is it a temporary investment phase (new product launch, market expansion)? Or is it a structural inability to generate profit at scale? The answer changes everything about how you value the company.
When you find a company above the threshold, dig into the components. Is the growth sustainable? What’s driving margin expansion? Is the company investing appropriately for future growth, or has it maximized short-term profitability at the expense of long-term positioning?
Most importantly, use the Rule of 40 to start conversations about a business, not to end them. It identifies companies worth looking at. It identifies potential red flags. It does not tell you whether to buy.
The Rule of 40 emerged from a specific period in market history—the post-ZIRP era when growth was effectively free and investors rewarded revenue at almost any cost. That world has changed. Interest rates rose, growth became more expensive, and the market began demanding profitability much earlier in company lifecycles.
We’re now seeing a new generation of SaaS companies that are profitable or nearly profitable from early stages—something almost unthinkable a decade ago. This shifts the relevance of the Rule of 40. It’s becoming a baseline expectation rather than a distinguishing characteristic. The best companies are shooting for Rule of 50 or 60, not just 40.
This evolution matters for how you think about the metric going forward. A company that just barely clears 40 in 2024 is making a weaker statement than one that cleared 40 in 2019. The benchmark is rising, and your analysis should account for that.
What remains constant is the underlying tension the Rule of 40 captures: every company must decide how much to invest in growth versus how much to return to shareholders. That tension never resolves—it just manifests differently depending on market conditions, competitive dynamics, and management philosophy. The Rule of 40 gives you a lens to see that tension clearly, even if it doesn’t tell you which side is right.
The Rule of 40 isn’t a magic formula that tells you what to buy. It’s a lens—one that works better in some contexts than others, and one that tells you more about the past than the future. But it’s a lens every serious tech investor needs in their toolkit. Use it wisely, understand its blind spots, and remember that the best investment decisions come from understanding businesses deeply, not from applying simple rules to incomplete data.
Additive manufacturing — building three-dimensional objects layer by layer from digital models — has moved…
The 3D printing industry has matured significantly over the past decade, but two distinct worlds…
The 3D printing sector confuses more investors than almost any other technology space. Part manufacturing…
Carbon credits are moving from environmentalist niche to legitimate asset class. Major institutions are allocating…
The renewable energy sector has evolved from a niche investment theme into a cornerstone of…
The nuclear energy sector is finally moving again, and the investment world is noticing. After…