Sub topic 11
Calculate Your Target Nest Egg
This chapter turns the annual spending gap into a savings target. It assumes you can already estimate retirement spending, subtract guaranteed income to get a gap, and read basic Python. It also assumes you know that figures can be stated in today's dollars (real) or in future dollars (nominal). Earlier chapters covered those steps. Here you combine them and adjust the result for taxes and healthcare.
The core formula
A nest egg is the pot of invested savings you draw from in retirement. The target is the amount that can fund your spending gap at a chosen withdrawal rate:
target nest egg = annual spending gap ÷ withdrawal rate
The withdrawal rate is the share of the starting balance you take out in the first year of retirement. After that you adjust the amount for inflation. This is the mechanism behind the 4% guideline.
Dividing by a rate is the same as multiplying by a factor. A 4% rate means you need 25 times the gap. A 3% rate means about 33 times. A 5% rate means 20 times.
annual_spending = 60_000 # today's dollars
guaranteed_income = 24_000 # pension and public benefits, today's dollars
withdrawal_rate = 0.04
gap = annual_spending - guaranteed_income
nest_egg = gap / withdrawal_rate
print(f"Annual gap: {gap:,.0f}")
print(f"Target nest egg: {nest_egg:,.0f}") # about 900,000The gap is 36,000 and the target is 900,000. Every input is in today's dollars, so the answer is also in today's dollars. Keep that consistent for the rest of the chapter.
Why the answer is a range
The formula is simple, but each input is uncertain. The withdrawal rate has the largest effect, because it sits in the denominator and small changes move the result a lot.
| Withdrawal rate | Multiple of gap | Target for a 36,000 gap |
|---|---|---|
| 3.0% | 33.3 | 1,200,000 |
| 3.5% | 28.6 | 1,028,571 |
| 4.0% | 25.0 | 900,000 |
| 4.5% | 22.2 | 800,000 |
| 5.0% | 20.0 | 720,000 |
Moving from 4% to 3% adds 300,000 to the target. That is a third more savings, and it comes from one assumption you cannot know in advance. A longer retirement, higher stock risk, or a desire for a bigger safety margin all push you toward the lower rates. A short horizon or flexible spending lets you use higher ones.
A useful habit is to compute a low, middle and high target and plan around the middle while watching the high one.
Adjust the gap for taxes and extra costs
The basic formula assumes the gap is the amount you need to receive after tax, and that nothing is missing from your spending estimate. Two adjustments usually matter.
Taxes
Withdrawals from some accounts, such as traditional pre-tax retirement accounts, are taxed as income. If you need 36,000 after tax and expect to pay 15% on average, you must withdraw more than 36,000. Divide by one minus the tax rate:
gross withdrawal = after-tax gap ÷ (1 − tax rate)
Here that is 36,000 ÷ 0.85, or about 42,353. Withdrawals from after-tax accounts such as Roth-type accounts may carry little or no tax, so your effective rate depends on how your savings are split across account types. Use an average rate across the whole portfolio, and treat it as an estimate.
Healthcare and long-term care
If your spending estimate came from current budgets, it may leave out costs that grow in later life. Health insurance premiums, out-of-pocket costs and possible long-term care are the main ones. Add an explicit line for them instead of hoping the general estimate covers them. Include it in the gap before you divide.
A function that combines them
def target_nest_egg(spending, guaranteed, withdrawal_rate,
tax_rate=0.0, extra_costs=0.0):
"""Target savings in today's dollars.
spending, guaranteed and extra_costs are annual, after-tax amounts.
tax_rate is the average tax rate on withdrawals.
"""
gap = spending + extra_costs - guaranteed
gross_withdrawal = gap / (1 - tax_rate)
return gross_withdrawal / withdrawal_rate
scenarios = [
("Base", 0.0, 0),
("With 15% tax on withdrawals", 0.15, 0),
("Tax plus 6,000 extra healthcare", 0.15, 6_000),
]
for label, tax, extra in scenarios:
target = target_nest_egg(60_000, 24_000, 0.04,
tax_rate=tax, extra_costs=extra)
print(f"{label}: {target:,.0f}")
# Base: 900,000
# With 15% tax on withdrawals: 1,058,824
# Tax plus 6,000 extra healthcare: 1,235,294The same 60,000 lifestyle now needs anywhere from 900,000 to about 1.24 million, depending on two assumptions. That spread is the reason to compute scenarios instead of a single figure.
Keep real and nominal values straight
The target above is in today's dollars. Your future spending will cost more in nominal terms. Compounding 3% inflation for 25 years roughly doubles a cost:
spending_today = 60_000
inflation = 0.03
years = 25
spending_at_retirement = spending_today * (1 + inflation) ** years
print(f"{spending_at_retirement:,.0f}") # about 125,600There are two consistent ways to work, and mixing them is the most common error.
- Real approach. Keep spending, the target and the balance in today's dollars. Use real returns, which are returns after inflation, in projections. The result is directly comparable with the target.
- Nominal approach. Inflate the spending figure to the retirement date. Use nominal returns. The target is then a future-dollar number that sounds large but buys the same lifestyle.
The first approach is easier to reason about, so the rest of this chapter uses it.
Compare the target with your projection
A target is useful only next to a projection of what you will have. The projection function grows today's balance with real returns, adding contributions each year end:
def project_savings(balance, annual_contribution, real_return, years):
"""Grow a balance in today's dollars, adding contributions at each year end."""
for _ in range(years):
balance = balance * (1 + real_return) + annual_contribution
return balance
projected = project_savings(
balance=100_000,
annual_contribution=15_000,
real_return=0.05,
years=25,
)
print(f"{projected:,.0f}") # about 1,054,500Now compare the projected balance of about 1,054,500 with each target:
| Scenario | Target | Projected | Difference |
|---|---|---|---|
| Base | 900,000 | 1,054,500 | About 154,500 ahead |
| With 15% tax | 1,058,824 | 1,054,500 | About 4,300 short |
| Tax plus healthcare | 1,235,294 | 1,054,500 | About 180,800 short |
The same savings plan passes or fails depending on the assumptions. A shortfall means one of the levers has to move: save more, retire later, plan to spend less, accept a higher withdrawal rate, or raise guaranteed income. Because you now have a function, you can change one lever at a time and see its effect.
Common errors
- Using the 4% guideline as a promise. It comes from historical US market data over roughly 30-year periods. It is a starting point, not a guarantee, and a longer horizon often calls for a lower rate.
- Treating the target as exact. A figure like 900,000 implies precision the inputs do not have. Quote a range.
- Forgetting that the gap shrinks or grows over time. Public benefits that start later, or a pension that is not indexed to inflation, change the gap in different years. The single-number formula averages over these.
- Ignoring the order of returns. The formula assumes steady returns. Poor returns early in retirement hurt more than the same returns later. The simulation in a later chapter tests this.
- Mixing real and nominal values. Check that spending, target, returns and balance all use the same basis.
Summary of the method
- Estimate annual spending in today's dollars and add healthcare and any missing costs.
- Subtract guaranteed income to get the gap.
- Gross up the gap for the average tax rate on withdrawals.
- Divide by a withdrawal rate that fits your horizon and risk tolerance.
- Compute a low, middle and high target.
- Compare each with a real-dollar projection and note which levers close any shortfall.
Exercise
Your estimated retirement spending is 70,000 a year in today's dollars, and guaranteed income will cover 30,000. You expect to pay an average of 20% tax on withdrawals, and you choose a 3.5% withdrawal rate because you expect a long retirement. The 70,000 is already after tax and includes healthcare. What is the target nest egg, in today's dollars?
Show answer
The after-tax gap is 70,000 − 30,000 = 40,000. Grossing up for tax gives 40,000 ÷ (1 − 0.20) = 50,000. Dividing by the withdrawal rate gives 50,000 ÷ 0.035 ≈ 1,428,571. The target is about 1.43 million. Without the tax adjustment it would be 40,000 ÷ 0.035 ≈ 1,142,857, so ignoring tax would understate the target by about 285,700.
Exercise
A colleague inflates their 60,000 spending to 125,600 for a retirement 25 years away, subtracts 24,000 of guaranteed income in today's dollars, divides by 4%, and compares the result with a projection made using real returns. Name the error and say which direction it pushes the result.
Show answer
They mix nominal and real values. The spending is in future dollars, the guaranteed income is in today's dollars, and the projection is in real dollars. The inflated spending makes the gap, and so the target, too large, which makes the plan look much further behind than it is. The fix is to keep everything in today's dollars, or to inflate every figure and use nominal returns.