Sub topic 2
Why inflation-adjusted returns matter
This chapter assumes you know what stocks and bonds are, how a percentage return compounds, and what inflation is. It covers the difference between nominal and real returns, how to convert between them, and why every calculation in this tutorial uses real returns.
Nominal returns hide the cost of living
A nominal return is the percentage change in the dollar value of an investment. It ignores what happens to prices. A real return is the percentage change in what those dollars can buy.
Suppose your portfolio earns 7% in a year and prices rise 3%. Your account is 7% larger, but a basket of groceries, rent, and utilities costs 3% more. Your purchasing power grew by a little under 4%. That 4% is the real return.
Retirees spend goods and services, not dollars. A withdrawal plan that ignores inflation answers the wrong question. It tells you how long the dollars last, not how long your lifestyle lasts.
Converting nominal to real
The exact relationship is multiplicative:
(1 + real) = (1 + nominal) / (1 + inflation)Solving for the real return gives real = (1 + nominal) / (1 + inflation) - 1.
The common shortcut is real ≈ nominal - inflation. It works when rates are small and drifts when they are large.
| Nominal return | Inflation | Shortcut (nominal − inflation) | Exact real return |
|---|---|---|---|
| 7% | 3% | 4.00% | 3.88% |
| 10% | 3% | 7.00% | 6.80% |
| -20% | 3% | -23.00% | -22.33% |
| 5% | 12% | -7.00% | -6.25% |
The shortcut error grows with the size of the numbers. In the last row, which resembles the high-inflation 1970s, the shortcut is off by 0.75 percentage points in a single year. Over decades these errors compound, so use the exact formula in code.
def to_real(nominal, inflation):
"""Convert a nominal return to a real return."""
return (1 + nominal) / (1 + inflation) - 1
print(round(to_real(0.07, 0.03), 4)) # 0.0388
print(round(to_real(0.05, 0.12), 4)) # -0.0625To convert a whole history, apply the function to each year's nominal return and that year's inflation rate.
def real_series(nominal_returns, inflation_rates):
return [to_real(n, i) for n, i in zip(nominal_returns, inflation_rates)]
nominal = [0.10, -0.05, 0.08]
inflation = [0.03, 0.04, 0.02]
print([round(r, 4) for r in real_series(nominal, inflation)])Why inflation matters more to retirees than to savers
While you work, your pay tends to rise with prices, so inflation partly takes care of itself. In retirement, your income is a withdrawal from a pile of money. Nothing adjusts it unless you adjust it.
Inflation also compounds. At 3% a year, prices roughly double in 24 years. A retirement that starts at 65 and runs to 95 spans 30 years, and prices at the end are about 2.4 times those at the start. Spending that costs $40,000 in year one costs about $97,000 in year thirty to buy the same things.
def future_cost(cost_today, inflation, years):
return cost_today * (1 + inflation) ** years
print(round(future_cost(40_000, 0.03, 30))) # 97090How the 4 percent rule uses real returns
The rule fixes the first-year withdrawal as a percentage of the starting balance. In every later year, you raise the withdrawal by the previous year's inflation so that it buys the same things. In real terms, the withdrawal never changes.
That is why the survives function from the Topic Spine uses one constant withdrawal and a list of real returns:
def survives(real_returns, withdrawal_rate=0.04, start=1_000_000):
balance = start
withdrawal = start * withdrawal_rate # constant in real terms
for r in real_returns:
balance -= withdrawal
if balance <= 0:
return False
balance *= 1 + r
return TrueWorking in real terms removes inflation from the loop. The balance is measured in today's dollars, and the withdrawal is a fixed amount of today's purchasing power. You do not need to track a rising withdrawal, because the rise is already built into the real return.
Here is the same idea in nominal terms, to show both views agree:
def survives_nominal(nominal_returns, inflation_rates, withdrawal_rate=0.04, start=1_000_000):
balance = start
withdrawal = start * withdrawal_rate
for n, i in zip(nominal_returns, inflation_rates):
balance -= withdrawal
if balance <= 0:
return False
balance *= 1 + n
withdrawal *= 1 + i # raise next year's withdrawal by inflation
return TrueBoth functions give the same answer when fed consistent data. The real version is shorter and easier to check.
flowchart TD
A[Nominal returns] --> C[Convert with exact formula]
B[Inflation rates] --> C
C --> D[Real returns]
D --> E[Constant real withdrawal]
E --> F[Survive or fail]The diagram block below shows the same workflow in the required format.
Edge cases and common errors
Mixing real and nominal inputs
The most common error is feeding nominal returns into a function that expects real ones. The test will look far too optimistic. A 7% nominal year looks like a 7% real year, when it may be closer to 4%. Name variables clearly (real_returns, nominal_returns) and check the source of every data series.
Using the wrong inflation measure
Inflation is measured by an index, most often a consumer price index (CPI). A retiree's own basket may differ. Healthcare costs, for example, have often risen faster than the general index. A published backtest uses the general index, so treat its results as an average, not a promise about your costs.
Averaging returns incorrectly
An average of yearly real returns is not the same as the long-run growth rate. Consider two years: +50% then -50%. The simple average is 0%, yet $100 becomes $75. The compound (geometric) growth rate is negative. When you convert, compare geometric rates, and do not treat the arithmetic mean as the rate at which wealth grows.
def geometric_mean(returns):
growth = 1.0
for r in returns:
growth *= 1 + r
return growth ** (1 / len(returns)) - 1
print(round(geometric_mean([0.5, -0.5]), 4)) # -0.134Real return is not guaranteed by asset type
Stocks have historically earned positive real returns over long periods, but individual decades have been flat or negative. Cash and many bonds can have negative real returns when inflation exceeds their yield. A high-inflation decade can damage a fixed-income portfolio even though its nominal balance never falls.
Deflation
If prices fall, inflation is negative and the real return exceeds the nominal return. The formulas still hold. Withdrawals indexed to inflation would shrink in a deflationary year under a strict reading of the rule, which is one reason some planners hold withdrawals flat instead.
What real returns do not tell you
Real returns fix the purchasing-power problem. They do not remove uncertainty. Two portfolios can have the same average real return and very different outcomes depending on when the good and bad years arrive. The next chapters take up that ordering problem, called sequence of returns risk, and then define what a sustainable withdrawal rate means.
Summary of the working model
- Nominal returns measure dollars. Real returns measure purchasing power.
- Convert with
(1 + nominal) / (1 + inflation) - 1. - Retirement spending is a fixed amount of purchasing power, so a constant real withdrawal is the natural model.
- Always check whether a series is real or nominal before you run a simulation.
- Use geometric, not arithmetic, averages when judging long-run growth.
Exercise
A portfolio earns a nominal 9% in a year when inflation is 4%. What is the exact real return, and by how much does the shortcut (nominal minus inflation) differ from it?
Show answer
The exact real return is 1.09 / 1.04 - 1 = 0.0481, or about 4.81%. The shortcut gives 9% - 4% = 5.00%. The shortcut overstates the real return by about 0.19 percentage points.
Exercise
A retiree spends $50,000 in the first year of retirement. With 2.5% inflation each year, roughly how much must the retiree spend in year 20 to buy the same things? Write the Python expression.
Show answer
Use futurecost(50000, 0.025, 20), which is 50_000 1.025 * 20. That is about $81,930. If you count year 1 as the starting year with no inflation yet, use 19 years of growth instead, which gives about $79,930. Either way the cost is far higher than $50,000.
Exercise
A series of yearly returns is [0.20, -0.20]. What is the arithmetic average, and what is the geometric average? Which one describes how your balance actually changed?
Show answer
The arithmetic average is 0%. The geometric average is (1.2 0.8) 0.5 - 1 = 0.96 * 0.5 - 1, about -2.02%. The geometric average describes the balance: $100 grows to $120, then falls to $96.