Sub topic 8
Projecting How Long a Portfolio Lasts
This chapter assumes you understand compound growth, the difference between stocks, bonds, and cash, and the basic role of retirement accounts and pensions. The projection uses Python, but the underlying method also works in a spreadsheet.
A deterministic projection is a calculation that uses one fixed return and one fixed inflation rate. It answers a narrow question:
> If these assumptions held every year, how long would the portfolio fund the planned spending?
It is useful for understanding the mechanics of a withdrawal plan. It is not a prediction of market results.
Set up the annual cash flows
Suppose a retiree starts with:
- A portfolio balance of $1,000,000
- First-year spending of $40,000
- A nominal return of 5%
- Inflation of 3%
A nominal return is the percentage increase measured in future dollars. Spending rises by inflation so that the retiree attempts to maintain the same purchasing power.
For each year, the model follows this order:
- Withdraw that year's spending.
- Check whether the remaining balance is negative.
- Apply the investment return to the remaining balance.
- Increase next year's spending by inflation.
The order matters. A withdrawal at the start of the year has less time to earn a return than money left invested.
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 function returns the number of complete years funded. The max_years argument prevents the loop from running indefinitely when the assumptions produce a portfolio that never runs out during the modeled period.
Read the result correctly
The model's result is conditional on its inputs. A result of 35 years does not mean the portfolio will certainly last 35 years. It means the portfolio lasts 35 years under the same return, inflation, spending pattern, and withdrawal timing every year.
| Input | Effect of increasing it |
|---|---|
| Starting balance | Usually increases the number of funded years |
| First-year spending | Usually reduces the number of funded years |
| Nominal return | Usually increases the number of funded years |
| Inflation | Usually reduces the number of funded years |
| Planning horizon | Changes how long the result must cover |
Try changing one input at a time. For example, compare 4%, 5%, and 6% nominal returns. Then compare 2%, 3%, and 4% inflation. This is sensitivity analysis: changing assumptions to see which ones have the greatest effect.
Why the model is incomplete
A constant return hides sequence-of-returns risk. This is the risk that poor returns occur early in retirement, when withdrawals are reducing the portfolio. Two portfolios can have the same average return but very different outcomes if their yearly returns occur in a different order.
The model also treats inflation as a single rate. Actual expenses may rise at different rates. Medical care, housing, food, and travel can each have their own price changes. A retiree's spending may also change with age.
Finally, the model does not estimate the chance of each outcome. A more advanced simulation uses many randomly generated return sequences and reports the percentage of simulated plans that remain funded. That Monte Carlo result depends on the return data, probability assumptions, fees, taxes, and other model choices.
Draw the calculation loop
A prudent plan compares the modeled duration with a planning horizon longer than average life expectancy. It also tests lower returns, higher inflation, larger early withdrawals, and unfavorable return sequences. The goal is to identify which assumptions would break the plan and which protections could reduce that risk.
Exercise
If spending rises with 3% inflation and the portfolio earns a 5% nominal return, does the portfolio gain 5% of its original purchasing power each year?
Show answer
No. The return is measured in future dollars. After accounting for inflation, the approximate real return is 5% - 3% = 2%, and the exact real return is (1.05 / 1.03) - 1, or about 1.94%.