Skip to content
Updated November 2026

Rule of 40: Formula, Benchmarks and Calculator

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% needs a 10% margin; one growing 60% can run a 20% loss. Investors use it to judge whether growth is worth what it costs, mostly for SaaS companies past the early stage.

Also called: 40% rule, Rule of 40 score, R40

Passing score
40 or more
Formula
Growth % + margin %
Beat it 5 years running
16% of public software firms
Private SaaS median, 2024
15

Rule of 40 formula

Rule of 40 score = revenue growth rate (%) + profit margin (%)

Revenue growth rate
Year-over-year growth in revenue, or in ARR for a private subscription business, over the same 12 months as the margin.
Profit margin
Free cash flow, EBITDA or operating margin as a share of revenue. A loss is a negative number.
Score
The sum in percentage points: 25% growth and a 15% margin make 40, which passes.

Pick one margin, say which, and keep it. LeadWave's public company data uses free cash flow margin: operating cash flow minus capital spending and capitalised software, over revenue, from each company's latest annual report. It's the hardest margin to adjust and the one public-market investors quote most.

EBITDA margin is the older choice and is common for private companies and buyouts. It ignores capital spending, which is real cash. Operating margin sits in between; companies that report it usually adjust it for stock-based pay, as Palantir does.

The calculator takes any of the three, but compare your score only with scores built the same way.

Rule of 40 calculator

Use ARR growth if you're private.

A loss is a negative number: −10 for a 10% loss.

Your Rule of 40 score40Passes the Rule of 40.
Higher than this share of 124 public SaaS companies
65%
Median public SaaS company
34
Growth needed at this margin
25%
Margin needed at this growth
15%
Your score against 124 public SaaS companiesEach dot is a company: revenue growth across, free cash flow margin up, from its latest annual report. Above the line passes the Rule of 40.
  • Passes (40+)
  • Below 40
Show the data as a table
CompanyGrowthFCF marginScore
C3.ai−36%−77%−112
Upland Software−21%11%−10
Teradata−5%17%12
Sangoma Technologies−4%17%12
Definitive Healthcare−4%15%11
Skillsoft−3%1%−2
Blackbaud−2%18%16
Dropbox−1%37%36
Consensus Cloud Solutions0%30%30
Huckleberry.ai1%−1%−0
Bandwidth1%8%8
Kaltura1%8%9
Health Catalyst1%0%1
Rapid72%15%17
SoundThinking2%5%7
Expensify2%12%14
Commerce3%5%8
8x83%5%8
ZoomInfo3%31%34
eGain3%23%26
HealthStream4%10%15
Zoom4%40%44
EverCommerce5%14%18
RingCentral5%21%26
PagerDuty5%21%26
Agora6%18%24
Yext6%12%18
VTEX6%13%20
Blend Labs7%0%7
BlackLine7%19%26
Alarm.com8%13%21
Sprinklr8%17%24
SAP8%23%31
NICE8%21%29
Box8%30%38
DocuSign8%33%41
CS Disco8%−11%−3
Paycom9%20%29
LiveRamp9%20%30
Asana9%10%19
N-able9%15%24
Salesforce10%35%44
nCino10%14%24
Qualys10%45%56
Five910%14%24
Adobe11%41%52
Bentley Systems11%35%46
Tenable11%25%36
i3 Verticals11%−2%9
Okta12%30%41
Docebo12%11%23
CCC Intelligent Solutions12%24%36
Descartes Systems12%36%48
Paylocity12%26%38
Nutanix12%29%42
UiPath13%22%35
Sprout Social13%9%21
BILL13%21%34
Doximity13%49%62
Similarweb13%5%18
Workday13%29%42
Varonis13%21%34
Wix13%29%42
Twilio14%19%32
Intuit14%40%54
Phreesia14%12%26
Q2 Holdings14%22%36
Backblaze14%8%22
Intapp15%24%38
Amplitude15%7%22
Fastly15%8%22
Procore15%16%31
DigitalOcean15%19%34
Agilysys16%21%37
Veeva Systems16%43%60
Freshworks16%26%43
Waystar17%26%42
Pegasystems17%28%45
Elastic17%19%36
Oracle17%−35%−18
Autodesk18%33%51
Microsoft18%20%38
Appian18%8%26
SPS Commerce18%20%38
Lightspeed Commerce18%−5%13
Cellebrite19%34%52
SOPHiA GENETICS19%−47%−29
Dynatrace19%26%45
Commvault19%20%39
HubSpot19%18%38
PTC19%31%50
AppFolio20%25%44
Workiva20%16%35
ServiceNow21%34%55
CrowdStrike22%26%48
SentinelOne22%5%27
Guidewire23%24%47
MongoDB23%20%43
Toast24%10%34
JFrog24%27%51
SailPoint24%5%29
Braze24%8%32
ServiceTitan24%9%33
Zscaler25%23%49
GitLab26%23%49
Atlassian26%20%46
monday.com27%25%52
AvePoint27%19%46
Datadog28%27%54
Global-e28%29%57
Via Transportation29%−8%20
Snowflake29%24%53
Samsara30%13%42
Zeta Global30%13%42
Cloudflare30%13%43
Shopify30%17%48
Navan31%2%33
Klaviyo32%15%47
Netskope32%2%33
Alkami Technology33%8%41
Figma41%23%64
Rubrik48%18%67
Palantir56%47%103
SoundHound AI99%−61%38

What the Rule of 40 is and why investors use it

Every software company trades growth against profit. Spend more on sales and product and you grow faster but earn less. Cut back and margins rise while growth slows. The Rule of 40 puts both on one scale: add the growth rate to the profit margin, and a healthy company lands at 40 or above.

That one number lets you compare a company growing 60% at a 20% loss with one growing 15% at a 25% profit. Both score 40. By this test, both are balanced.

Investors use it for three jobs:

  • Valuation. In Bain's 2018 study of 124 public software companies, those above 40 traded at about double the revenue multiple of those below it. Bessemer found the score explains about half the spread in forward revenue multiples.
  • Budgets. Boards use it to decide how much margin to give up for growth. At 40% growth a company can break even; at 20% growth it should earn 20%.
  • Screening. It's a fast filter across a whole sector, which is why the chart below scores every public SaaS company at once.

It's a rule of thumb, not a law. Few companies hold it for long, and the bar moves with the market: the weight investors put on a point of growth versus a point of margin has ranged from about 2x to 9x in recent years.

How to calculate the Rule of 40

Use the same 12 months for both numbers.

  1. Growth rate. Revenue for the period divided by revenue for the same period a year earlier, minus one.
  2. Margin. Free cash flow (or EBITDA, see below) divided by revenue for the period.
  3. Add them in percentage points. 40 or more passes.

Worked example

A company had $50M in revenue last year and $65M this year. Its free cash flow this year was $6.5M.

StepCalculationResult
Growth$65M ÷ $50M − 130%
FCF margin$6.5M ÷ $65M10%
Rule of 40 score30 + 1040: passes

If growth slows to 20% next year, the same company needs a 20% margin to stay at 40. A loss counts as a negative margin: 55% growth with a −15% margin also scores 40.

The margin each growth rate needs

Revenue growthMargin needed to reach 40
100%−60%
60%−20%
40%0% (breakeven)
20%20%
0%40%

The calculator above does the sum, shows the margin you need at your growth rate and ranks your score against the public SaaS companies in the chart.

Which numbers to use: FCF or EBITDA, revenue or ARR

The rule never fixed its inputs. Brad Feld preferred EBITDA; Fred Wilson used operating margin a week later. Any version works if you say which one you used and keep it.

The margin

MarginWho uses itWhat to watch
Free cash flow marginMcKinsey, Bessemer, Elastic, Pegasystems, LeadWave's public company dataUpfront annual billing lifts it in growing companies; stock-based pay doesn't reduce it
EBITDA marginBrad Feld, Bain, BCG, SaaS Capital, most private equityLeaves out capital spending and capitalised software, which are real cash
Operating margin, usually adjustedFred Wilson, Palantir, Sprout SocialAdjusted versions add back stock-based pay, which can be large

Free cash flow is the hardest to massage. It comes straight from the cash flow statement, and capital spending counts. That's why the public company chart uses it. EBITDA is more common in private companies and buyouts, where debt and taxes depend on the owner.

The growth rate

  • Revenue is the default for public companies because it's audited.
  • ARR suits a private subscription business because it shows where revenue is heading. Feld suggested year-over-year growth in recurring revenue.
  • Other bases appear too. Pegasystems uses growth in annual contract value. Block uses gross profit growth, with its margin measured on gross profit.

Leave out revenue from acquisitions, or the score rewards buying growth. Keep the periods aligned: trailing 12 months for both, or one quarter's year-over-year growth with the same quarter's margin, which is how Palantir reports it.

Rule of 40 benchmarks: public and private companies

The chart below scores every public SaaS company LeadWave tracks, from its latest annual report on SEC EDGAR: revenue growth plus free cash flow margin. 44 of 124 companies pass (35%). The median company scores 34, from 13% revenue growth and a 19% free cash flow margin.

Passing once is easier than passing every year. In Bain's study, 40% of public software companies beat the rule in 2017, but only 16% did it five years running. McKinsey found companies cleared it just 16% of the time between 2011 and 2021.

Private companies score lower. Benchmarkit's 2025 survey put the median private B2B SaaS company at 15 in 2024, with the top quartile at 35. Region matters too: Canadian and European companies had medians of 23 to 25, US companies 9. In SaaS Capital's survey, bootstrapped companies beat equity-backed ones, though the gap is closing.

The table after the chart lists each study with its year, sample and margin.

LeadWave dataThe Rule of 40 across 124 public SaaS companies44 of 124 pass (35%). The median company scores 34.
Pass the Rule of 40
44 of 124
Median score
34
Median revenue growth
13%
Median FCF margin
19%

Highest scores

Highest scores
CompanyRevenue growthFCF marginScore
Palantir56%47%103
Rubrik48%18%67
Figma41%23%64
Doximity13%49%62
Veeva Systems16%43%60
Global-e28%29%57
Qualys10%45%56
ServiceNow21%34%55
Datadog28%27%54
Intuit14%40%54
Snowflake29%24%53
Cellebrite19%34%52
Adobe11%41%52
monday.com27%25%52
Autodesk18%33%51

Passing with $1B+ revenue (33)

Passing with $1B+ revenue (33)
CompanyRevenue growthFCF marginScore
Palantir56%47%103
Rubrik48%18%67
Figma41%23%64
Veeva Systems16%43%60
ServiceNow21%34%55
Datadog28%27%54
Intuit14%40%54
Snowflake29%24%53
Adobe11%41%52
monday.com27%25%52
Autodesk18%33%51
PTC19%31%50
Zscaler25%23%49
CrowdStrike22%26%48
Shopify30%17%48

Lowest scores

Lowest scores
CompanyRevenue growthFCF marginScore
C3.ai−36%−77%−112
SOPHiA GENETICS19%−47%−29
Oracle17%−35%−18
Upland Software−21%11%−10
CS Disco8%−11%−3
Skillsoft−3%1%−2
Huckleberry.ai1%−1%−0
Health Catalyst1%0%1

Revenue growth over the prior fiscal year plus free cash flow margin (operating cash flow minus capital spending and capitalised software, over revenue), from each company’s latest annual report on SEC EDGAR, checked November 2026. The full list: public SaaS companies.

Rule of 40 benchmarks from published research

Rule of 40 benchmarks
SegmentBenchmarkSource
Public software companies beating it in one year40% of companiesBain & Company, Hacking Software's Rule of 40 · 2018
Public software companies beating it five years running16%Bain & Company, Hacking Software's Rule of 40 · 2018
Software companies, share of years above 4016% of the timeMcKinsey, SaaS and the Rule of 40 · 2021
Public cloud companies (BVP Cloud Index), averageAbout 31; top decile about 48Bessemer Venture Partners, The Rule of X · 2024
Private B2B SaaS, median15 (top quartile 35, bottom quartile −4)Benchmarkit, 2025 B2B SaaS Performance Metrics Benchmarks · 2025
Private B2B SaaS by ARR, median18 at $5M–$20M; 20 at $20M–$50M; 8 at $50M–$100M; 5 above $100MBenchmarkit, 2025 B2B SaaS Performance Metrics Benchmarks · 2025
Private SaaS, bootstrapped vs equity-backed, median34.5 vs 15SaaS Capital, Growth, Profitability, and the Rule of 40 for Private SaaS Companies · 2025
Growth-equity-backed B2B SaaS beating it, by revenue26% above $80M; 22% at $30M–$80M; 9% below $30MBCG, Rule of 40 Lessons from the Top Performers in Software · 2025

Bain, BCG and SaaS Capital use EBITDA margin; McKinsey and Bessemer use free cash flow margin, like LeadWave's chart. Benchmarkit's survey doesn't say which margin it used. Read private medians as typical, not as targets: most private companies score well under 40.

Using the Rule of 40 to judge software stocks

Stock investors use the score as a first screen, then check it against the price.

  • Compare the score with the multiple. Higher scores usually earn higher revenue multiples, but the market pays more for the growth half. In Jamin Ball's software comps for February 2024, companies expected to grow over 30% traded at a median 15.4x forward revenue; those under 15% at 4.3x.
  • Look forward as well as back. A trailing score shows the last year. Next-12-month growth and margin estimates show what the price already assumes.
  • Read the company's own definition. Palantir uses adjusted operating margin and Block uses gross profit, so their scores don't line up with a free cash flow score like the ones in the chart above.
  • Adjust for dilution. Free cash flow ignores stock-based pay. For a heavy issuer, set the score against the growth in share count.

A high score at a high multiple can still be a poor investment. The rule says the business is balanced, not that the stock is cheap.

How to raise your Rule of 40 score

A score has two halves, so there are two ways up. Investors usually prefer the growth side: Bessemer measured a point of growth as worth about 2.3 points of free cash flow margin in public cloud valuations. Growth only helps if it's efficient, though.

  • Keep the customers you have. Retention is the cheapest growth. In McKinsey's sample, companies with net revenue retention of 120% or more could grow about 20% a year without a single new customer. Top-quartile companies had a median NRR of 130%, the bottom quartile 104%.
  • Spend on sales and marketing that pays back. Top-quartile companies in the same study recovered acquisition costs in about 16 months; the bottom quartile took 47.
  • Price for value. A price rise at renewal lifts growth and margin at once.
  • Focus R&D. BCG's top performers kept a clear strategic focus and got more out of their R&D spend.
  • Simplify. Mature companies gain most from fewer products, legal entities and management layers.
  • Watch the trade. Cutting sales and marketing lifts this year's margin and lowers next year's growth. A score that rises only because spending fell may not last.

Set growth targets from what the current business can reach. McKinsey suggests basing them on what the existing portfolio can do organically over three years.

Common mistakes

  • Mixing periods. A quarter's growth plus a year's margin gives a number nobody can check.
  • Comparing different margins. An EBITDA score next to a peer's free cash flow score flatters whoever picked the friendlier measure.
  • Counting acquisitions as growth. Bought revenue raises the score without saying anything about demand.
  • Reading one quarter. Annual prepayments land in one quarter's cash flow and inflate its FCF margin. Use 12 months.
  • Ignoring stock-based pay. Free cash flow and adjusted margins leave it out, so a company that pays staff in shares can look more profitable than it is.
  • Applying it too early. At $2M ARR, doubling swamps any margin. Feld meant the rule for companies at scale; for early startups the burn multiple is the better test.
  • Treating 40 as a law. It's a rule of thumb. Sprout Social, for one, publicly targets 30 first.

Where the Rule of 40 comes from

Brad Feld of Foundry Group named it in a February 2015 post. He had heard it at a board meeting from a late-stage investor whose firm called it the 40% rule: growth plus profit should add up to 40%. Feld preferred EBITDA as the profit measure and said the rule fits companies at scale, with about $50M in revenue or more.

A week later Fred Wilson of Union Square Ventures restated it in The 40% Rule using operating margin: a company growing 100% can lose 60% of revenue, and one with no growth should earn 40%.

Consulting firms then turned it into a board metric: Bain in 2018, McKinsey in 2021, BCG in 2025. In 2024 Bessemer proposed the Rule of X, which weights growth more heavily. Public companies now report the score in their own results: Palantir, Elastic, BILL and Freshworks among them.

Rule of 40 examples from real companies

Rule of 40 vs related terms

Rule of 40 compared with related terms
Rule of 40 vsThe difference
Rule of XBessemer's version multiplies growth by about 2 for private companies and 2–3 for public ones before adding FCF margin, because markets pay more for growth. In Bessemer's 2024 test it explained valuations better: an R² of 62% vs 50%.
Weighted Rule of 40Gives growth a bigger weight than margin, so a fast grower with a loss outranks a slow, profitable company with the same plain score. The weights vary by author.
Rule of 50, 60 or 70Not separate formulas: the same sum with a higher bar. The Rule of 70 in economics is unrelated (70 ÷ growth rate = years to double).
Burn multipleCash burned per dollar of net new ARR. It suits early startups, where the Rule of 40 swings wildly on a small revenue base.
Magic numberLooks only at sales and marketing efficiency: new revenue per dollar of S&M spend. The Rule of 40 covers the whole P&L.
Free cash flow marginOne half of the Rule of 40 in its FCF version. On its own it rewards a company that stops investing in growth.

The best guides on rule of 40

Hand-picked: the reading we'd send a colleague, and what each one gives you.

More on LeadWave

Frequently asked questions

Sources

Checked November 2026. Spotted something out of date? Email khrystyna@getleadwave.io.

Related terms

Full glossary
  • Burn multiple

    Net burn ÷ net new ARR: dollars a startup burns for each new dollar of ARR. Under 1x is amazing; over 3x is bad.

    Calculator

  • Net revenue retentionNRR

    Revenue kept from last year's customers after upgrades, downgrades and churn. Above 100%, the base grows without new sales.

    CalculatorLeadWave data

  • Annual recurring revenueARR

    The yearly value of a company's live recurring contracts on a given date. For monthly plans, MRR × 12.

    CalculatorLeadWave data

  • CAC payback period

    Months of a new customer's gross profit needed to earn back what it cost to acquire. Under 12 months is the classic target.

    Calculator

  • LTV:CAC ratioLTV:CAC

    Lifetime gross profit per customer divided by the cost to acquire it. 3:1 is the classic floor; the 2025 SaaS median was 4.1x.

    Calculator

  • Revenue per employee

    Revenue or ARR divided by headcount: the simplest efficiency metric in SaaS, and the one AI-native companies are rewriting.

    CalculatorLeadWave data