Sub topic 14
Test the Plan with a Monte Carlo Simulation
A single retirement projection uses one assumed return every year. A Monte Carlo simulation tests many possible return paths instead. Each trial draws a different sequence of yearly returns, applies withdrawals, and records whether the portfolio lasts through the planning horizon.
Assume you already know how to estimate the annual spending gap, choose a planning horizon, and express values in today’s dollars. The simulation below also assumes that your withdrawal is a real amount, so it rises with inflation outside the simulation. The investment return is therefore a real return after inflation.
Why the order of returns matters
Two portfolios can earn the same average return but have different outcomes. A portfolio that loses money early in retirement has less money available to recover after withdrawals. This is sequence-of-returns risk.
A simulation does not discover the true probability of success. It estimates outcomes under the assumptions you provide. The mean return, volatility, withdrawal amount, time horizon, taxes, fees, and asset mix all affect the result.
| Input | Example | What it controls |
|---|---|---|
| Starting balance | $900,000 | Money available at retirement |
| Annual withdrawal | $36,000 | Amount removed each year |
| Horizon | 30 years | How long the plan must last |
| Mean real return | 5% | Average assumed after-inflation return |
| Return volatility | 12% | How widely yearly returns vary |
| Trials | 10,000 | Number of possible paths tested |
Run a simple simulation
import random
def success_rate(start, annual_withdrawal, years,
mean_real_return=0.05, stdev=0.12,
trials=10_000, seed=1):
"""Estimate the share of paths that do not run out of money."""
rng = random.Random(seed)
successes = 0
for _ in range(trials):
balance = start
for _ in range(years):
balance -= annual_withdrawal
if balance <= 0:
break
yearly_return = rng.gauss(mean_real_return, stdev)
balance *= max(0, 1 + yearly_return)
else:
successes += 1
return successes / trials
rate = success_rate(
start=900_000,
annual_withdrawal=36_000,
years=30,
)
print(f"Plan survived in {rate:.0%} of simulated runs")The result is a success rate for this particular model. It is not a guarantee. A normal distribution can also be a poor description of market returns because real markets can have unusually large losses, changing correlations, and long periods of weak performance.
Interpret and improve the result
If the success rate is lower than you can accept, change one planning variable at a time and rerun the model:
- Retire later or extend your saving period.
- Save more before retirement.
- Reduce the initial withdrawal.
- Use a flexible withdrawal rule after poor market years.
- Include taxes, fees, healthcare costs, and long-term-care costs.
- Test a longer horizon for the possibility of living well past the original estimate.
A high success rate can still hide uncomfortable outcomes. Examine the ending balances and the paths that fail. A plan that succeeds in 90% of trials may still fail during a severe early-market decline, which is precisely when flexible spending or a cash reserve may matter most.
Exercise
Why does a simulation with a 90% success rate not mean that your retirement has a 90% guarantee?
Show answer
The rate describes only the share of simulated paths that survived under the chosen assumptions. Actual returns, inflation, spending, taxes, and longevity may differ from the model.