Rule of 40
Calculate the Rule of 40 score: the revenue growth plus the profit margin, the measure of software and other subscription companies that trade growth against profitability.
A score of 40% (0.40) or more is seen as healthy: a company growing 30% a year should keep a margin of at least 10%, one that grows 10% a margin of 30%.
The formula is as follows:
\[\text{Revenue Growth} = \frac{\text{Revenue}}{\text{Revenue a year earlier}} - 1\] \[\text{Free Cash Flow Margin} = \frac{\text{Free Cash Flow}}{\text{Revenue} \;\left(\text{or EBITDA Margin} = \frac{\text{EBITDA}}{\text{Revenue}}\right)}\] \[\text{Rule of 40 Score} = \text{Revenue Growth} + \text{Free Cash Flow Margin} \;(\text{or EBITDA Margin})\]The rule comes from venture capital practice for software companies (attributed to Brad Feld, 2015) and has no academic source; investors use the free cash flow margin and the EBITDA margin, which the margin parameter chooses between.
Also known as: Rule of 40, 40% rule, growth plus margin, SaaS rule of 40.
Example · CRM, NOW, ADBE · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_rule_of_40:
from financetoolkit import Toolkit
toolkit = Toolkit(
["CRM", "NOW", "ADBE"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.models.get_rule_of_40().xs("Rule of 40 Score", level=1)
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
Did Salesforce, ServiceNow and Adobe pass the Rule of 40 from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| ADBE | 0.6627 | 0.5354 | 0.4601 | 0.4741 | 0.5198 |
| CRM | 0.4460 | 0.3848 | 0.3843 | 0.4153 | |
| NOW | 0.6097 | 0.5287 | 0.5396 | 0.5353 | 0.5535 |
3 rows
Parameters
get_rule_of_40 accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
margin | str | The margin to add. Options are: “free_cash_flow” (Free Cash Flow / Revenue), “ebitda” (EBITDA / Revenue). Defaults to “free_cash_flow”. | "free_cash_flow" |
rounding | int | The number of decimals to round the results to. Defaults to None. | 2 |
growth | bool | Whether to calculate the growth of the values. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
trailing | int | None | The number of periods to sum the revenue and cash flows over. The window counts calendar periods, so a period without a report makes it NaN. Defaults to None, which is 4 on quarterly data (a trailing twelve months, its growth against the trailing twelve months a year earlier) and single years on yearly data. | 4 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Feld, B. (2015). “The Rule of 40% For a Healthy SaaS Company.” Feld Thoughts (https://feld.com/archives/2015/02/rule-40-healthy-saas-company/).