Sub topic 2
Compounding and CAGR
This chapter assumes you can read basic financial statements, know what a percentage change is, and have seen compound interest before. The Python examples are optional, but they run as shown with any Python 3 install.
Why compounding matters to growth investors
Compounding means that growth earns growth. A company that grows revenue 20% a year doesn't add the same dollar amount each year. It adds 20% of a base that gets bigger every year. The same holds for the value of a stock you own, if its earnings and valuation rise together.
Growth investing depends on this. A business that can reinvest at high rates for many years can turn a modest stake into a large one. The same arithmetic also limits how long high growth can last, which later chapters on runway and risk build on.
The core formula is:
future value = present value x (1 + r) ^ nHere r is the growth rate per period and n is the number of periods.
How much difference does the rate make?
Small differences in rate produce large differences in outcome over long periods. The table shows $10,000 growing at a steady rate.
| Annual rate | After 10 years | After 20 years |
|---|---|---|
| 10% | $25,937 | $67,275 |
| 15% | $40,456 | $163,665 |
| 20% | $61,917 | $383,376 |
| 25% | $93,132 | $867,362 |
Doubling the rate from 10% to 20% multiplies the 20-year result by about 5.7, not 2. The diagram shows how the two curves separate.
Doubling time
The time to double at rate r is ln(2) / ln(1 + r). The rule of 72 approximates it as 72 / (r in percent).
| Rate | Rule of 72 | Exact |
|---|---|---|
| 10% | 7.2 years | 7.27 years |
| 20% | 3.6 years | 3.80 years |
| 30% | 2.4 years | 2.64 years |
The shortcut drifts as rates rise, so use the exact formula for high-growth cases. The rule is still useful for quick mental checks, such as "this company doubles revenue every four years."
What CAGR is
The compound annual growth rate (CAGR) is the single steady yearly rate that would take a starting value to an ending value over a given period. You get it by rearranging the future value formula:
CAGR = (end value / begin value) ^ (1 / years) - 1Real growth is lumpy. Revenue might rise 35% one year and 12% the next. CAGR replaces that uneven path with one comparable number. That makes it useful for comparing companies, checking management targets, and setting inputs for a valuation model.
def cagr(begin_value, end_value, years):
"""Compound annual growth rate as a decimal."""
if begin_value <= 0 or years <= 0:
raise ValueError("begin_value and years must be positive")
return (end_value / begin_value) ** (1 / years) - 1
# Revenue grew from 200 to 500 (in millions) over 5 years
print(f"{cagr(200, 500, 5):.1%}") # about 20.1%The function rejects a non-positive start value because the formula has no meaning there. A company that went from a loss to a profit has no CAGR for earnings. You need a different measure, such as margin change or the dollar change in earnings.
Counting periods correctly
The most common CAGR mistake is the wrong value for years. Count the intervals between data points, not the data points themselves.
- Fiscal 2019 revenue to fiscal 2024 revenue is 5 years. The table has 6 numbers, but only 5 yearly steps.
- For data that doesn't line up with whole years, use elapsed time. Convert days to years with
days / 365.25. - For quarterly data, a start in Q1 2021 and an end in Q1 2024 is 3 years, which is 12 quarters.
If you are unsure, check by growing the start value forward. begin * (1 + cagr) ** years should return the end value.
CAGR versus the average of yearly returns
An arithmetic average of yearly growth rates overstates what you actually earned when results vary. Take a stock that gains 50% one year and loses 50% the next.
- The arithmetic average is (50% + (-50%)) / 2 = 0%.
- Your money went from 1.00 to 1.50 to 0.75. You lost 25%.
- The CAGR is
0.75 ** 0.5 - 1, about -13.4% a year.
CAGR is a geometric mean, and the geometric mean is the one that matches your actual wealth. The code below computes it from a list of yearly returns.
def cagr_from_returns(returns):
"""Geometric average of a list of yearly returns given as decimals."""
if not returns:
raise ValueError("returns must not be empty")
growth = 1.0
for r in returns:
growth *= 1 + r
return growth ** (1 / len(returns)) - 1
yearly = [0.50, -0.50]
arithmetic = sum(yearly) / len(yearly)
print(f"arithmetic: {arithmetic:.1%}") # 0.0%
print(f"geometric: {cagr_from_returns(yearly):.1%}") # -13.4%The gap between the two averages grows with volatility. This is one reason growth investors care about drawdowns, not only about average returns.
Projecting forward and solving for time
You can use the same formula in three directions.
- Given a rate and a period, find the future value.
- Given a start and an end value, find the rate. This is CAGR.
- Given a start, an end, and a rate, find the time required.
import math
def project(value, rate, years):
"""Value after growing at a steady rate for a number of years."""
return value * (1 + rate) ** years
def years_to_reach(begin_value, target_value, rate):
"""Years needed to grow from begin_value to target_value at a steady rate."""
if begin_value <= 0 or target_value <= 0 or rate <= 0:
raise ValueError("all inputs must be positive")
return math.log(target_value / begin_value) / math.log(1 + rate)
print(round(project(500, 0.20, 5), 1)) # 1244.2
print(round(years_to_reach(500, 1000, 0.20), 1)) # 3.8
print(round(years_to_reach(500, 2000, 0.20), 1)) # 7.6Each doubling of revenue at 20% takes about 3.8 years. Quadrupling takes twice that. This gives you a quick test of a growth claim. If a company says it will reach $2,000 million in revenue from $500 million, you can ask whether 7.6 years of 20% growth is realistic for its market.
Edge cases and common errors
CAGR is a summary, and summaries hide things. Watch for these problems.
Endpoint sensitivity
CAGR uses only two numbers. If the start year was unusually weak, such as a recession year, the CAGR looks excellent. If the end year had a one-time spike, the same happens. Look at the full series, and compute CAGR over several windows, such as 3, 5, and 10 years.
Hidden path
Two companies can share a 15% CAGR with very different paths. One may grow 15% every year. The other may grow 40%, 40%, 0%, then -10%. The second shows a slowdown that the single number does not.
Revenue CAGR versus per-share CAGR
You own a fraction of a company, not all of it. If a company issues many new shares, total earnings can grow faster than earnings per share (EPS). Compare revenue CAGR with EPS CAGR. A large gap usually means dilution, from stock-based compensation or acquisitions paid for in shares.
Acquired growth
Revenue growth that comes from buying other companies is not the same as growth from the existing business. If an acquisition adds revenue in year 3, the CAGR mixes the two. Look for "organic growth," which excludes acquisitions and currency effects.
Compounding ends
Applying a high CAGR forward indefinitely is the largest error in growth analysis. At 20% a year, a $10 billion revenue company reaches about $383 billion in 20 years. Few companies in the world have that revenue. Growth rates tend to decline as a company gets larger. Later chapters on market runway and two-stage valuation models handle this by letting growth fade.
A checklist for using CAGR
- Confirm the number of years by counting intervals.
- Check that the start value is positive.
- Compute CAGR over more than one window.
- Compare revenue CAGR with per-share CAGR.
- Separate organic growth from acquired growth.
- Ask how long the rate can plausibly last, and what the company's size will be if it does.
Exercises
Exercise
A company's free cash flow was 80 million in 2019 and 200 million in 2024. Compute the CAGR using the correct number of years, and say how many years it takes to double at that rate.
Show answer
There are 5 yearly intervals from 2019 to 2024, so years = 5. CAGR = (200 / 80) (1 / 5) - 1 = 2.5 0.2 - 1, about 20.1%. Doubling time = ln(2) / ln(1.201), about 3.8 years.
Exercise
A stock returns +40%, -30%, and +20% over three years. Is the arithmetic average of those returns higher or lower than the CAGR, and by roughly how much?
Show answer
The arithmetic average is (40 - 30 + 20) / 3 = 10%. The growth factor is 1.40 x 0.70 x 1.20 = 1.176, so CAGR = 1.176 ** (1/3) - 1, about 5.5%. The arithmetic average is higher by about 4.5 percentage points. The difference comes from volatility.