Back to Learn

What Is the Rule of 40? A Simple SaaS Health Check for Growth and Profitability

Fundamentals
8 min read
By ScreenerHub Team

What Is the Rule of 40?

The Rule of 40 is a SaaS performance benchmark that adds a company's revenue growth rate and operating margin to show whether it is balancing growth and profitability well enough to clear a 40% combined score.

For software and subscription businesses, investors rarely judge growth and margins separately. A company growing 35% with a 10% operating margin can be healthier than one growing 8% with a 20% margin, because the first business is still compounding quickly while already showing operating discipline. The Rule of 40 turns that trade-off into one simple benchmark.

TL;DR: The Rule of 40 combines revenue growth and operating margin into one number. A result above 40% is usually considered strong for SaaS companies because it suggests the business is not sacrificing profitability for growth forever. On ScreenerHub, it works best when you start with revenue growth and then add operating margin as the second filter.


Why the Rule of 40 Matters

High-growth software companies often look weak on traditional valuation screens because they intentionally reinvest heavily in sales, marketing, and product development. Mature, profitable businesses can look safer, but they may already be growing too slowly to justify a premium multiple. Looking at only one side of the equation leads to bad comparisons.

The Rule of 40 matters because it solves that problem in a practical way:

  • It balances speed and discipline. Investors can quickly see whether growth is being bought at an unsustainable cost.
  • It fits recurring-revenue businesses. SaaS companies can tolerate lower current margins when revenue growth is durable and retention is strong.
  • It improves peer comparisons. Two software companies with very different strategies become easier to compare on one combined score.
  • It helps separate healthy compounders from cash-burning stories. Fast growth alone is not enough if the operating model never improves.

Rule of 40 vs. Looking at One Metric Alone

If you only look at revenue growthIf you only look at operating marginWhat the Rule of 40 adds
You can overrate unprofitable growthYou can underrate healthy reinvestmentA combined view of growth quality
A 30% grower can still be fragileA 15% margin business can still be stagnatingA quick benchmark for trade-offs
You miss whether growth converts into future earnings powerYou miss whether profits come at the cost of weak expansionA better first-pass SaaS filter

How the Rule of 40 Is Calculated

The formula is intentionally simple:

Rule of 40 Score=Revenue Growth Rate+Operating Margin\text{Rule of 40 Score} = \text{Revenue Growth Rate} + \text{Operating Margin}

In most cases, both figures are measured in percentages. If a company is growing revenue 28% year over year and has a 14% operating margin, its Rule of 40 score is:

2828% + 14% = 42%

That company clears the benchmark.

Worked examples

Company profileRevenue growthOperating marginRule of 40 scoreInterpretation
Fast, efficient compounder32%12%44%Strong balance of expansion and profitability
Hypergrowth, still scaling45%-3%42%Acceptable if losses are narrowing and retention is strong
Mature SaaS operator11%31%42%Slower growth, but very profitable and still healthy
Weak middle-ground case14%6%20%Neither fast enough nor profitable enough

Which margin should you use?

Operating margin is the most common version because it captures core business profitability without mixing in taxes and financing decisions. Some investors use free cash flow margin instead, especially for software businesses with meaningful stock-based compensation or large deferred-revenue effects. That can be useful, but it is a different variation. If you are using the classic Rule of 40, pair revenue growth with operating margin.


How to Interpret the Rule of 40

The famous threshold is 40%, but the number only becomes meaningful in context. A company at 41% is not automatically attractive, and a company at 37% is not automatically weak. You still need to understand retention, valuation, dilution, and whether growth is organic.

Rule of 40 benchmark guide

Rule of 40 scoreWhat It Typically Signals
Above 50%Exceptional execution; often seen in elite SaaS names or unusually strong phases
40% - 50%Strong; good balance between growth and operating discipline
30% - 40%Decent, but not elite; may still be investable with strong qualitative factors
20% - 30%Weak to middling; the business likely needs better growth, better margins, or both
Below 20%Concerning for most SaaS companies unless the business is in a deliberate transition

Context matters: The Rule of 40 is most useful for software, cloud, and other recurring-revenue businesses. It is much less informative for banks, commodity producers, retailers, or industrial companies where capital intensity, cyclicality, and accounting structure make the growth-margin trade-off very different.

What a high score can hide

A strong score is not the same as a strong investment case. Here are a few reasons a high number can still mislead:

  1. Growth may be acquisition-driven. Buying revenue is not the same as earning it organically.
  2. Margins may be temporarily inflated. Cost cuts can boost margin for a few quarters while hurting future product quality.
  3. Dilution may be severe. A software company can post a solid operating result while issuing heavy stock-based compensation.
  4. Valuation may already price in perfection. A great Rule of 40 score does not protect you from overpaying.

Rule of 40 in a Stock Screener

On ScreenerHub, the cleanest way to apply the Rule of 40 is to start with the two ingredients rather than chasing the headline number in isolation. In practice, you usually want one growth threshold, one profitability threshold, and then a size or quality filter to avoid tiny, noisy names.

Screener 1: Balanced SaaS quality screen

FilterSetting
Revenue growth (YoY)> 15%
Operating margin> 10%
Gross margin> 60%
Market cap> $500M

This is the most practical Rule of 40-style setup for public software names. It looks for companies still growing fast enough to matter while already demonstrating a real economic model.

Screener 2: Early-stage but promising software names

FilterSetting
Revenue growth (YoY)> 25%
Operating margin> -10%
Gross margin> 65%

This setup allows modest losses, but only when growth is strong enough to justify that reinvestment. It is useful when you want earlier-stage compounders without drifting into pure story stocks.

Screener 3: Mature software operators

FilterSetting
Revenue growth (YoY)> 8%
Operating margin> 25%
EV/EBITDA< 25x

This variation fits more mature software businesses. Growth is slower, but margins are high enough to keep the combined quality profile attractive. It pairs well with a valuation check such as EV/EBITDA.

<!-- [SCREENSHOT: ScreenerHub Studio — Revenue Growth YoY filter above 15%, Operating Margin above 10%, and Gross Margin above 60% applied to a SaaS-focused screen] -->

Try this screen in ScreenerHub: Revenue Growth YoY > 15%, then add Operating Margin > 10% →

If you want to go one step further, pair this workflow with How to Screen for Growth Stocks or use it alongside a more complete playbook such as Find Momentum Stocks Using Trend Strength when you want business momentum and price momentum working together.


Common Mistakes When Using the Rule of 40

  1. Applying it outside SaaS. The metric was built for software-style recurring-revenue businesses, not every listed company.
  2. Treating 40 as a hard law. It is a benchmark, not a magical cutoff that makes a stock good or bad.
  3. Ignoring gross margin and retention. A company can clear the Rule of 40 while still having weak unit economics or poor customer stickiness.
  4. Using adjusted margins without checking the adjustments. Heavily adjusted figures can make a mediocre business look much healthier.
  5. Forgetting valuation. A high-quality business can still be a poor investment if the stock already discounts years of perfect execution.

Frequently Asked Questions

What is a good Rule of 40 score?

For most SaaS companies, a score above 40% is the traditional benchmark for a healthy balance of growth and profitability. Above 50% is usually excellent. Below 30% is often a sign that either growth has slowed too much, margins are too weak, or both.

Can a company pass the Rule of 40 with a negative operating margin?

Yes. A company growing revenue 45% with a -4% operating margin still scores 41% and technically clears the rule. That can be acceptable for an earlier-stage software business, but it only works if the losses are controlled and the company has a credible path to margin improvement.

Is the Rule of 40 only for SaaS stocks?

Mostly yes. It is best suited to software and subscription-style businesses where recurring revenue, high gross margins, and scalable overhead make the growth-versus-margin trade-off meaningful. It is much less useful for banks, manufacturers, retailers, and commodity businesses.

Should you use operating margin or free cash flow margin?

If you want the classic version, use operating margin. If you care more about cash conversion, free cash flow margin can be a useful companion metric. Many experienced investors check both because software companies can look healthy on one and weaker on the other.

What should you combine with the Rule of 40 in a screener?

Pair it with gross margin, a size filter like market cap, and one valuation measure such as EV/EBITDA or revenue multiple. That keeps you from finding businesses that grow fast but are too small, too fragile, or already extremely expensive.


Keep Learning

Ready to build one? Open ScreenerHub Studio and start with Revenue Growth YoY →