Sub topic 2
Longevity risk: the cost of living longer than planned
This chapter assumes you know compound growth, the difference between stocks, bonds, and cash, and basic Python.
Longevity risk
Longevity risk is the chance that you live longer than your savings were planned to last. Life expectancy is an average, so about half of people live longer than it. Some live well past it.
Each extra year of retirement needs another year of spending, and that spending rises with inflation. A plan that funds 25 retirement years leaves you short if you live to 95 and need 30.
Sequence-of-returns risk
Sequence-of-returns risk is the danger that poor market returns arrive early in retirement. When you withdraw during a market drop, you sell more shares to fund the same spending. Those shares cannot recover when the market rebounds. Two portfolios with the same average return can end at very different balances, depending on the order of the returns.
Withdrawal rates with inflation-adjusted spending
A withdrawal rate is the share of your starting balance you spend in year one. Under an inflation-adjusted rule, you raise the dollar amount by the inflation rate each year, whatever the market does. This keeps your buying power steady, but it also means the portfolio must grow faster than inflation just to stay even.
Projecting how long a portfolio lasts
A deterministic projection uses one fixed return and one fixed inflation rate for every year. The function below withdraws spending at the start of each year, grows the remaining balance, and then raises spending by inflation.
def years_funded(balance, spending, nominal_return, inflation, max_years=60):
for year in range(1, max_years + 1):
balance -= spending
if balance < 0:
return year - 1
balance *= 1 + nominal_return
spending *= 1 + inflation
return max_years
print(years_funded(1000000, 40000, 0.05, 0.03))> The projection assumes the same return every year. Real markets do not, so treat the output as a baseline, not a forecast.
Monte Carlo simulation and its limits
A Monte Carlo simulation runs thousands of random return sequences and reports the share in which the money lasts through the chosen horizon. A 90 percent result means 90 of 100 simulated paths lasted. Unlike a single projection, it captures sequence risk.
Its results depend on the inputs:
| Input | Effect if wrong |
|---|---|
| Return assumptions | Success rate overstated or understated |
| Inflation rate | Spending power misjudged |
| Horizon | Longevity risk ignored or overstated |
Exercise
Using years_funded with spending of 50000 instead of 40000, and all other inputs unchanged, will the portfolio last longer or shorter?
Show answer
Shorter. Higher withdrawals drain the balance faster, and every later year's spending is also higher.