Sub topic 2
Find the annual spending gap
This chapter assumes you can calculate percentages, understand compound growth, and have a rough figure for your current annual spending. The code uses Python 3.
Find the annual spending gap
Your spending gap is the part of retirement spending that your savings must cover. Start with estimated annual retirement spending, then subtract guaranteed income such as pensions and public benefits. Keep every figure in today's dollars so the numbers stay comparable.
annual_spending = 60_000 # estimated retirement spending, today's dollars
guaranteed_income = 24_000 # pension and public benefits, today's dollars
gap = annual_spending - guaranteed_income
print(f"Annual spending gap: {gap:,.0f}") # 36,000Cross-check the estimate with an income replacement ratio, the share of pre-retirement income you expect to need. Many planners start near 70 to 80 percent, but your own spending records are more reliable.
Plan for a long life
Plan your horizon to age 95 or later, not to average life expectancy. If you retire at 65 and plan to 95, your savings must last 30 years. For a couple, plan to the age of the longer-lived spouse.
Choose a withdrawal rate and understand the 4% guideline
The withdrawal rate is the percentage of your savings you take out in the first year. The 4% guideline comes from historical US market studies of 30-year retirements. It is a starting point, not a guarantee. Divide the gap by the rate to get the target nest egg.
withdrawal_rate = 0.04
nest_egg = gap / withdrawal_rate
print(f"Target nest egg: {nest_egg:,.0f}") # 900,000Account for taxes and account types
Withdrawals from tax-deferred accounts, such as traditional 401(k) and IRA accounts, count as taxable income. To cover the gap after tax, you must withdraw more than the gap. Assume a 12% effective tax rate:
tax_rate = 0.12
gross_withdrawal = gap / (1 - tax_rate)
taxed_nest_egg = gross_withdrawal / withdrawal_rate
print(f"Pre-tax withdrawal: {gross_withdrawal:,.0f}") # 40,909
print(f"Taxed target nest egg: {taxed_nest_egg:,.0f}") # 1,022,727Exercise
Your spending is 80,000 a year and guaranteed income is 30,000. Using a 3.5% withdrawal rate and no taxes, what is the target nest egg?
Show answer
The gap is 50,000. Dividing 50,000 by 0.035 gives about 1,428,571.