Rule of 40 Calculator
Rule of 40 Calculator for SaaS: add your revenue growth rate to your profit margin and see instantly whether your company clears the 40% benchmark.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Rule of 40 Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Rule of 40 Score = Revenue Growth Rate (%) + Profit Margin (%)
Worked example โ Score: 45 (Passes) | Growth compensates for losses | Should maintain growth while gradually improving margins
Formula
Rule of 40 Score = Revenue Growth Rate (%) + Profit Margin (%)
The Rule of 40 adds your year-over-year revenue growth rate to your profit margin (typically EBITDA margin). A combined score of 40 or higher indicates a healthy balance between growth and profitability for a SaaS company.
Worked Examples
Example 1: High-Growth, Low-Profit Company
Problem:A SaaS company is growing at 55% year-over-year with a -10% EBITDA margin. Do they pass the Rule of 40?
Solution:Revenue Growth Rate = 55% EBITDA Margin = -10% Rule of 40 Score = 55 + (-10) = 45 Threshold = 40 45 >= 40, so the company PASSES The high growth rate more than compensates for the negative margin.
Result:Score: 45 (Passes) | Growth compensates for losses | Should maintain growth while gradually improving margins
Example 2: Mature, Profitable Company
Problem:A mature SaaS company grows at 12% year-over-year with a 22% EBITDA margin. Evaluate against the Rule of 40.
Solution:Revenue Growth Rate = 12% EBITDA Margin = 22% Rule of 40 Score = 12 + 22 = 34 Threshold = 40 34 < 40, so the company FAILS Gap to 40 = 40 - 34 = 6 points Needs either 6% more growth or 6% more margin to pass.
Result:Score: 34 (Fails by 6 points) | Needs to improve growth to 18% or margin to 28% to pass
Frequently Asked Questions
What is the Rule of 40 for SaaS companies?
The Rule of 40 is a widely used benchmark in the SaaS industry that states a healthy software company should have its combined revenue growth rate and profit margin equal to or exceed 40 percent. For example, a company growing at 50 percent with a negative 10 percent profit margin scores 40 and passes the test. Similarly, a company growing at 20 percent with a 20 percent profit margin also scores 40. The rule was popularized by venture capitalist Brad Feld and has become a standard metric that investors, board members, and executives use to evaluate the balance between growth and profitability in SaaS businesses.
How is the Rule of 40 calculated?
The Rule of 40 is calculated by adding two key metrics together: the year-over-year revenue growth rate (expressed as a percentage) and the profit margin (also expressed as a percentage). The formula is simply Rule of 40 Score = Revenue Growth Rate + Profit Margin. Revenue growth is typically measured as ARR or MRR growth year-over-year. Profit margin can be measured using EBITDA margin, operating margin, or free cash flow margin depending on the context. EBITDA margin is the most commonly used measure. If the resulting sum equals 40 or higher, the company passes the Rule of 40 test.
Why is 40 the magic threshold for SaaS companies?
The threshold of 40 represents the empirical observation that the most successful SaaS companies historically maintain a combined growth-plus-profitability score at or above this level. The number 40 reflects the practical trade-off between investing in growth and maintaining financial sustainability. Companies scoring well above 40 tend to command premium valuations in both private and public markets. The threshold also acknowledges that high-growth companies can afford to sacrifice profitability if their growth rate compensates, while slower-growing companies need higher margins. Research from Bain and Company confirmed that top-quartile SaaS companies consistently score 40 or higher.
Should I prioritize growth or profitability for the Rule of 40?
The optimal balance between growth and profitability depends on your company stage, market conditions, and competitive dynamics. Early-stage companies (under $10 million ARR) typically prioritize growth heavily, often accepting negative margins of 20 to 40 percent if growth exceeds 60 to 80 percent annually. Growth-stage companies ($10 million to $100 million ARR) should aim for balanced improvement in both metrics. Mature companies (above $100 million ARR) typically see growth rates decline naturally and must shift toward profitability. Research shows that investors generally value an additional point of growth more highly than an additional point of margin, so growth is slightly preferred when both options are available.
What profit margin metric should I use for Rule of 40?
The most commonly used profit margin metric for the Rule of 40 is EBITDA margin (Earnings Before Interest, Taxes, Depreciation, and Amortization as a percentage of revenue). EBITDA margin is preferred because it normalizes for differences in capital structure, tax situations, and accounting methods across companies. Some analysts prefer free cash flow margin because it captures actual cash generation including working capital changes. Operating margin (EBIT margin) is another valid option. For consistency when comparing against industry benchmarks, use EBITDA margin. For internal decision-making, free cash flow margin may provide a more accurate picture of financial health.
What happens if a SaaS company fails the Rule of 40?
Failing the Rule of 40 does not necessarily mean a company is in trouble, but it does signal that the balance between growth and profitability needs attention. Companies scoring between 30 and 40 are near the benchmark and can often close the gap through targeted improvements in sales efficiency, pricing optimization, or cost reduction. Companies scoring below 20 may face challenges in fundraising, maintaining competitive valuations, or sustaining operations long-term. Investors may view a low score as a reason to demand a lower valuation or more favorable terms. The key is the trend direction rather than any single quarter measurement.
How do public SaaS companies perform on the Rule of 40?
Among publicly traded SaaS companies, the average Rule of 40 score varies significantly by company size and market conditions. During bull markets, the median score for the BVP Nasdaq Emerging Cloud Index companies tends to hover around 35 to 45. Top-performing companies like Crowdstrike, Datadog, and Snowflake have historically scored well above 60. However, many successful public SaaS companies occasionally dip below 40, particularly during market downturns or heavy investment periods. Only about 40 to 50 percent of public SaaS companies pass the Rule of 40 in any given year, making it a genuinely high bar that separates top performers from the rest.
Can the Rule of 40 be applied to non-SaaS businesses?
While the Rule of 40 was developed specifically for SaaS businesses, the underlying principle of balancing growth and profitability applies broadly. However, the specific threshold of 40 may not be appropriate for other business models. SaaS companies benefit from recurring revenue, high gross margins (typically 70 to 80 percent), and strong retention, which makes the 40 threshold achievable. Businesses with lower gross margins, such as e-commerce (30 to 50 percent margins) or manufacturing (20 to 40 percent), would need a lower threshold. Some analysts apply a modified version using different thresholds for different industries, but no widely accepted standard exists outside of SaaS.
How does the Rule of 40 relate to SaaS company valuation?
There is a strong positive correlation between Rule of 40 performance and SaaS company valuation multiples. Research from multiple investment banks shows that public SaaS companies scoring above 40 trade at significantly higher revenue multiples than those below. Companies scoring above 60 often command 15x to 30x forward revenue multiples, while those below 20 may trade at only 3x to 6x. In private markets, the correlation is similar but less precisely defined. The Rule of 40 score explains roughly 50 to 60 percent of the variance in public SaaS valuations, making it one of the most predictive single metrics for company value.
How often should I measure the Rule of 40 for my SaaS company?
Most SaaS companies track the Rule of 40 quarterly, using trailing twelve-month revenue growth and the most recent quarter or trailing twelve-month profit margin. Quarterly measurement provides enough data points to identify trends while being frequent enough to catch changes early. For board reporting, present both the current quarter score and the trailing four-quarter trend to show directionality. Annual measurement is too infrequent for operational decision-making, while monthly measurement introduces too much noise from seasonal fluctuations and one-time items. Some companies also calculate a forward-looking Rule of 40 using projected growth and expected margins for the next four quarters.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎPitch Deck Metrics Calculator
Calculate the key metrics investors want to see: LTV/CAC, burn multiple, and Rule of 40.
๐งฎAI Video Generation Cost Calculator
Estimate costs for AI video generation across Sora, Runway, Pika, and Kling by duration.
๐งฎAI Voice Cloning Cost Calculator
Compare voice cloning and TTS costs across ElevenLabs, PlayHT, and Resemble AI.
๐งฎAI Chatbot Cost Calculator
Estimate monthly costs of running an AI chatbot from conversation volume and model choice.
๐งฎAI Agent Cost Per Task Calculator
Estimate the cost of running an AI agent that makes multiple LLM calls per task.
๐งฎAI Training Cost Calculator
Estimate the cost of training a model from dataset size, GPU type, and training duration.
๐งฎAI Watermark Detector Probability Calculator
Estimate the probability of AI-generated text detection from text length and watermark strength.
๐งฎAI Automation ROI Calculator
Calculate ROI of implementing AI automation from time saved, error reduction, and labor costs.