Sub topic 2
Computing the required nest egg
This chapter assumes you know basic algebra, percentages, and how interest compounds. You should also be able to read simple Python. A nest egg is the lump sum you hold on retirement day. This section turns a yearly spending goal into that lump sum.
Computing the required nest egg
Start with three inputs: your annual spending in today's money, your other retirement income (such as a pension), and a withdrawal rate. The withdrawal rate is the share of savings you take each year. A 4% rate is a common starting point for planning.
The steps are:
- Subtract other income from spending to get the amount your savings must cover, in today's money.
- Inflate that amount to the retirement year.
- Divide by the withdrawal rate.
def nest_egg(annual_spend_today, years, inflation, other_income_today=0.0, withdrawal_rate=0.04):
"""Nest egg needed at retirement, in future dollars."""
need_today = max(annual_spend_today - other_income_today, 0.0)
need_future = need_today * (1 + inflation) ** years
return need_future / withdrawal_rate
print(round(nest_egg(60000, 20, 0.03, other_income_today=20000)))This prints 1806111.
How money grows: compounding and future value
Compounding means each period's interest also earns interest. A balance grows by a factor of (1 + r) each period. The future value formula is FV = PV × (1 + r)^n, where PV is the starting amount, r is the rate per period, and n is the number of periods.
For example, 10,000 at 5% a year for 10 years becomes 10,000 × 1.05^10, or about 16,289.
Choosing a return assumption: nominal versus real
A nominal return is growth before inflation. A real return removes inflation: real = (1 + nominal) / (1 + inflation) − 1. With a 7% nominal return and 3% inflation, the real return is about 3.9%.
What regular monthly contributions grow into
For regular monthly contributions, the future value of the annuity is FV = P × ((1 + r)^n − 1) / r, where r is the annual rate divided by 12 and n is the number of years times 12. Saving 500 per month at 6% for 10 years gives r = 0.005 and n = 120, so FV ≈ 81,940.
Exercise
Spending today is 50,000 a year, you retire in 25 years, inflation is 2.5%, you have no other income, and the withdrawal rate is 4%. What nest egg does the function return?
Show answer
About 2,317,400. Inflate 50,000 by 1.025^25 (about 1.854) to get roughly 92,700, then divide by 0.04.