ArticleslgStudy

computer science

Rule of 40

Rule of 40 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Rule of 40 rather than just read about it. In short: The Rule of 40 is a financial heuristic used to measure the performance and health of software as a service (SaaS) companies. It states that a SaaS company's annual revenue growth rate and its profit margin should add up to 40% or more.

Key takeaways

  • Rule of 40 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Rule of 40 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Rule of 40 from memory before moving on to harder problems.

Reference excerpt

The Rule of 40 is a financial heuristic used to measure the performance and health of software as a service (SaaS) companies. It states that a SaaS company's annual revenue growth rate and its profit margin should add up to 40% or more. The rule provides a high-level view of a company's sustainability by balancing two competing objectives: growth and profitability. It is widely used by venture capitalists, public market investors, and company executives to assess the trade-offs in capital allocation and strategy, particularly in determining whether to invest more heavily in growth or to focus on operational efficiency.

Formula In corporate finance, the Rule of 40 is represented by the following inequality:

Growth Rate ( % ) + Profit Margin ( % ) ≥ 40 % . {\displaystyle {\text{Growth Rate}}\,(\%)+{\text{Profit Margin}}\,(\%)\geq 40\%.}

Growth rate The growth rate is typically the year-over-year (YoY) growth in revenue. For SaaS companies, this is most often calculated using annual recurring revenue (ARR) or monthly recurring revenue (MRR).

Growth Rate = Revenue t − Revenue t − 1 Revenue t − 1 × 100. {\displaystyle {\text{Growth Rate}}={\frac {{\text{Revenue}}_{t}-{\text{Revenue}}_{t-1}}{{\text{Revenue}}_{t-1}}}\times 100.}

where Revenue t {\displaystyle {\text{Revenue}}_{t}} is the revenue in the current period and Revenue t − 1 {\displaystyle {\text{Revenue}}_{t-1}} is the revenue in the previous period.

Profit margin The definition of "profit margin" can vary, which is a nuance in applying the rule. The two most common metrics used are the EBITDA margin and the free cash flow (FCF) margin. The EBITDA margin—representing earnings before interest, taxes, depreciation, and amortization as a percentage of revenue—is frequently used as a proxy for operational cash flow. Alternatively, many investors prefer the FCF margin, which measures the cash a company generates after accounting for capital expenditures to support operations and maintain assets. The FCF margin is often considered less susceptible to accounting adjustments and represents the actual cash available to the business. The choice of profitability metric can significantly alter the outcome, making consistent application essential for comparisons.

Interpretation The Rule of 40 allows for flexibility in a company's strategy. A company can achieve the 40% benchmark through combinations, as summarized in the table below:

A company's operational strategy typically evolves through these combinations as the business matures. Earlier-stage companies in a high-growth phase aggressively invest in sales, marketing, and product development to capture market share, often resulting in high growth rates offset by negative profit margins. As the business matures, it usually transitions toward a balanced approach, matching moderate growth with moderate profitability. Finally, market leaders in mature niches often focus on maximizing cash flow rather than expansion, meeting the rule through low growth and high profit margins. A company that falls below the 40% threshold is typically scrutinized by investors, as it suggests that its growth is insufficient relative to its investment rate or that its business model lacks operational efficiency.

Strategic implications The Rule of 40 is not just a backward-looking metric but also a forward-looking tool. Studies have shown a strong correlation between a company's Rule of 40 score and its valuation multiple. Companies that consistently outperform the 40% benchmark tend to achieve premium valuations. Management teams use the rule to guide decisions on capital allocation. For example, if a company's score is well above 40%, management may allocate more capital to growth. If the score is below 40%, the focus typically shifts toward improving operational efficiency, optimizing pricing, or reducing customer churn.

History The Rule of 40 gained prominence in the mid-2010s within the venture capital community. While its origin is debated, it was popularized by investors like Brad Feld as a simple way to evaluate the health of their SaaS portfolio companies. Its simplicity has led to its broad adoption in both private and public markets for valuing software businesses.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Rule of 40

Start with the simplest possible case. Write down what Rule of 40 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Rule of 40 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Rule of 40 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Rule of 40

In research
Rule of 40 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Rule of 40 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Rule of 40 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Financial ratios, Software industry, Venture capital, so understanding it makes those chapters shorter.
In everyday life
Look for Rule of 40 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Rule of 40 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Rule of 40 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Rule of 40 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Rule of 40 in simple terms?

The Rule of 40 is a financial heuristic used to measure the performance and health of software as a service (SaaS) companies. It states that a SaaS company's annual revenue growth rate and its profit margin should add up to 40% or more.

Why does Rule of 40 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Rule of 40?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Rule of 40.

Tags

  • Financial ratios
  • Software industry
  • Venture capital

Keep exploring