Sub topic 5
Margins, Unit Economics, and the Rule of 40
This chapter assumes you can read an income statement and a cash flow statement at a basic level. It also assumes you know what revenue growth and free cash flow are from the earlier chapter on measuring growth. Here you will learn how to tell whether growth is profitable, or whether the company is buying it at a price that cannot last.
Why Growth Needs a Profitability Check
Revenue growth alone is easy to produce. A company can sell a dollar of product for 90 cents and grow quickly. A growth investor wants growth that creates value, which means each new dollar of revenue must eventually produce cash for owners.
Three tools help with this check:
- Margins show how much of each revenue dollar the company keeps at each stage.
- Unit economics show whether one customer, or one unit sold, makes money over time.
- The Rule of 40 combines growth and profitability into one screening number.
The Margin Ladder
A margin is a profit measure divided by revenue. Reading margins from top to bottom of the income statement shows where money is lost.
| Margin | Formula | What it tells you |
|---|---|---|
| Gross margin | (Revenue − cost of revenue) / revenue | Profit on the product itself, before overhead |
| Operating margin | Operating income / revenue | Profit after sales, research, and administrative costs |
| Net margin | Net income / revenue | Profit after interest, taxes, and one-off items |
| Free cash flow margin | Free cash flow / revenue | Cash left after operating costs and capital spending |
Gross margin sets the ceiling. A software company with an 80% gross margin has far more room to cover sales and research costs than a hardware maker with a 30% gross margin. Compare gross margins only within similar business models.
Operating margin shows whether the company is gaining leverage. Operating leverage means costs grow more slowly than revenue, so margins widen as the company scales. Many growth companies report low or negative operating margins today. The investment case is that margins will rise as revenue outgrows fixed costs.
Free cash flow margin deserves special attention. Net income includes non-cash items, and growth companies often pay employees heavily in stock. Stock-based compensation (SBC) is pay in shares. It is a real cost to existing owners because it dilutes their share of the company, but it does not reduce free cash flow. A company can show a healthy free cash flow margin while SBC quietly consumes much of it.
def margins(revenue, cost_of_revenue, operating_income, fcf, sbc):
"""Return key margins as decimals, including FCF after stock comp."""
gross = (revenue - cost_of_revenue) / revenue
operating = operating_income / revenue
fcf_margin = fcf / revenue
fcf_after_sbc = (fcf - sbc) / revenue
return gross, operating, fcf_margin, fcf_after_sbc
g, o, f, f_sbc = margins(
revenue=1000, cost_of_revenue=250,
operating_income=-50, fcf=120, sbc=170,
)
print(f"Gross {g:.0%}, operating {o:.0%}, FCF {f:.0%}, FCF after SBC {f_sbc:.0%}")
# Gross 75%, operating -5%, FCF 12%, FCF after SBC -5%In this example the company looks cash-generative at 12%, but after subtracting stock comp the real figure is negative. Always compute both versions.
Unit Economics
Unit economics measure the profit or loss from a single unit of the business: one customer, one subscription, one store, or one delivery. Total company results can hide a broken unit, because new customers keep arriving and masking the losses.
Two measures dominate subscription businesses:
- Customer acquisition cost (CAC) is the total sales and marketing spend needed to win one new customer.
- Lifetime value (LTV) is the gross profit a customer is expected to generate before leaving.
LTV is usually estimated as:
LTV = (average revenue per customer per year × gross margin) / annual churn rate
Churn is the share of customers who leave in a year. If churn is 10%, the average customer stays about ten years, since 1 / 0.10 = 10.
Investors look at two ratios:
- LTV/CAC. A common rule of thumb is that 3 or higher is healthy. Below 1 means each customer loses money over their lifetime.
- CAC payback period. This is the number of months of gross profit needed to recover CAC. Shorter is better, because cash is returned sooner and less capital is at risk.
def unit_economics(arpc, gross_margin, annual_churn, cac):
"""Compute LTV, LTV/CAC, and payback in months."""
if annual_churn <= 0:
raise ValueError("annual_churn must be positive")
annual_gross_profit = arpc * gross_margin
ltv = annual_gross_profit / annual_churn
payback_months = cac / annual_gross_profit * 12
return ltv, ltv / cac, payback_months
ltv, ratio, payback = unit_economics(
arpc=1200, gross_margin=0.75, annual_churn=0.12, cac=1500,
)
print(f"LTV {ltv:,.0f}, LTV/CAC {ratio:.1f}, payback {payback:.0f} months")
# LTV 7,500, LTV/CAC 5.0, payback 20 monthsHere each customer yields 900 per year in gross profit. The company spends 1,500 to win them and earns it back in about 20 months. That is acceptable, but sensitive to churn: if churn doubled to 24%, LTV would halve to 3,750 and LTV/CAC would fall to 2.5.
Net revenue retention
Net revenue retention (NRR) measures revenue this year from the customers you had a year ago, including upgrades, downgrades, and cancellations. An NRR of 120% means the existing customer base spends 20% more than a year earlier, even with no new customers. NRR above 100% means the business grows from its installed base, which lowers the pressure on CAC. NRR below 100% means the company must keep refilling a leaking bucket.
Where unit economics mislead
- Averages hide cohorts. Customers acquired in different years or channels can behave very differently. Look for cohort data when the company discloses it.
- Churn estimates are unstable. LTV divides by churn, so a small error in churn produces a large error in LTV. Treat LTV as a rough range.
- CAC definitions vary. Some companies exclude parts of sales cost or count only paid marketing. Check how the figure is defined.
- Blended CAC can hide rising costs. Free, organic customers lower the average. The cost of the next customer, the marginal CAC, may be much higher.
The Rule of 40
The Rule of 40 is a screen for software and other subscription companies. It says that revenue growth rate plus profit margin should be at least 40%. The profit margin is often free cash flow margin or operating margin. Always state which one is used, since the choice changes the answer.
The logic is a trade-off. A company can spend heavily to grow quickly, or it can slow down and earn profit. Either path can be healthy. The sum measures whether the company is getting enough out of the combination.
| Company | Revenue growth | FCF margin | Rule of 40 score |
|---|---|---|---|
| A | 50% | −10% | 40 |
| B | 15% | 25% | 40 |
| C | 30% | 5% | 35 |
| D | 10% | 5% | 15 |
Companies A and B reach the same score by different routes. Company D grows slowly and earns little, so it fails on both counts.
def rule_of_40(revenue_growth_pct, profit_margin_pct):
return revenue_growth_pct + profit_margin_pct
companies = {
"A": (50, -10),
"B": (15, 25),
"C": (30, 5),
"D": (10, 5),
}
for name, (growth, margin) in companies.items():
score = rule_of_40(growth, margin)
verdict = "pass" if score >= 40 else "fail"
print(name, score, verdict)Limits of the Rule of 40
The rule is a screen, not a valuation. Keep these gotchas in mind:
- It weights growth and margin equally. Many investors value growth more, because growth compounds and a low margin can be fixed later. A fast grower at 60% growth and −20% margin passes, but its cash burn may still be dangerous.
- Scale matters. Growing 40% at 50 million in revenue is far easier than growing 40% at 5 billion. Compare companies of similar size.
- Margin choice can be gamed. Adjusted operating margins often exclude stock comp. Prefer free cash flow after SBC when you can.
- One period is a snapshot. Look at the trend over several years. A score falling from 55 to 41 is a warning even though it still passes.
- It does not fit every industry. It was designed for software. Apply it to banks, retailers, or manufacturers only with great care.
A Short Diagnostic Workflow
The diagram shows one order for working through these checks.
Failing one check is not automatic rejection. A young company may have weak operating margins but excellent unit economics. The task is to understand why a check fails and whether the cause is temporary.
Common Errors
- Comparing gross margins across different business models.
- Using adjusted profit figures that exclude stock comp without checking.
- Treating LTV/CAC as precise when churn is a rough estimate.
- Applying the Rule of 40 to a company of a very different size or industry.
- Ignoring the trend and judging a single quarter.
Exercise
A software company has revenue of 800, free cash flow of 96, and stock-based compensation of 120. Revenue grew 28% this year. Compute the Rule of 40 score using FCF margin, then again using FCF margin after stock comp. Does the company pass each time?
Show answer
FCF margin is 96 / 800 = 12%, so the score is 28 + 12 = 40, which passes. After stock comp, FCF is 96 − 120 = −24, a margin of −3%, so the score is 28 − 3 = 25, which fails. The company passes only because stock comp is excluded.
Exercise
A company spends 2,000 to win a customer who pays 1,000 per year at a 60% gross margin and churns at 20% per year. Compute LTV, LTV/CAC, and the payback period in months. Is the unit healthy?
Show answer
Annual gross profit is 1,000 × 0.60 = 600. LTV = 600 / 0.20 = 3,000. LTV/CAC = 3,000 / 2,000 = 1.5, below the common threshold of 3. Payback is 2,000 / 600 × 12 ≈ 40 months. The unit is weak: payback is long, and a small rise in churn would push LTV below CAC.