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:

Parameters

get_rule_of_40 accepts the following parameters.

ParameterTypeDescriptionExample
marginstrThe margin to add. Options are: “free_cash_flow” (Free Cash Flow / Revenue), “ebitda” (EBITDA / Revenue). Defaults to “free_cash_flow”."free_cash_flow"
roundingintThe number of decimals to round the results to. Defaults to None.2
growthboolWhether to calculate the growth of the values. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
trailingint | NoneThe 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_columnsstr | list[str] | NoneThe 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

Share