Sub topic 11
Planning for retirement and choosing accounts
This chapter assumes you have read the earlier chapters on budgeting, taxes, and asset allocation. You should know your monthly surplus, your marginal tax bracket, and roughly what stock and bond mix fits your time horizon. The account names below are US ones (401(k), IRA, HSA). Other countries have equivalents with different rules. Contribution limits and income thresholds change every year, so look up the current figures before you commit to numbers.
Two separate decisions
Retirement planning answers two questions that are easy to mix up:
- How much do you need to save? This is a target and a savings rate.
- Which account should each dollar go into? This is a tax and access decision.
The account does not change how much you need. It changes how much of the money you keep after taxes, and when you can touch it.
Estimating a target
Start from spending, not from income. Estimate what you expect to spend per year in retirement, in today's money. Subtract guaranteed income you expect, such as Social Security (your statement is at ssa.gov) or a pension. The gap must come from your portfolio.
A common rule of thumb is the 4% rule. You withdraw 4% of the starting portfolio in year one, then adjust that amount for inflation each year. It is a planning shortcut, not a guarantee. Poor returns early in retirement (called sequence-of-returns risk) can drain a portfolio faster than the average return suggests. A lower rate, such as 3.5%, gives more margin for a long retirement.
Divide the gap by the withdrawal rate to get the target. A gap of $34,000 at 4% gives $850,000 in today's dollars.
The next script works in real terms, meaning after inflation. It turns the target into a required monthly contribution:
def required_monthly_contribution(target, nominal_rate, inflation, years, current_balance=0.0):
"""Monthly saving needed to reach `target` (in today's dollars)."""
real_annual = (1 + nominal_rate) / (1 + inflation) - 1
r = real_annual / 12
n = years * 12
needed = target - current_balance * (1 + r) ** n
if needed <= 0:
return 0.0
if r == 0:
return needed / n
return needed * r / ((1 + r) ** n - 1)
annual_spending = 48000 # today's dollars
guaranteed_income = 14000 # e.g. estimated Social Security
withdrawal_rate = 0.04
gap = annual_spending - guaranteed_income
target = gap / withdrawal_rate
monthly = required_monthly_contribution(
target, nominal_rate=0.05, inflation=0.025, years=30, current_balance=38000
)
print(f"Target (today's dollars): {target:,.0f}")
print(f"Required monthly saving: {monthly:,.0f}")With 30 years, a 5% nominal return, 2.5% inflation, and $38,000 already saved, the required saving is about $1,450 a month. If that exceeds your budget surplus, you have four levers:
- Save for more years.
- Lower the spending target.
- Plan for more guaranteed income.
- Accept more investment risk. This is usually the weakest lever, because risk you can't tolerate gets abandoned in a downturn.
The result is only as good as its inputs. Run the function with a lower return (3% to 4%) and a longer life (35 years of withdrawals) before you trust the answer.
The main account types
| Account | Money goes in | Growth | Money comes out | Notes |
|---|---|---|---|---|
| Traditional 401(k) / 403(b) | Pre-tax, through payroll | Tax-deferred | Taxed as ordinary income | Employer match is common. Investment menu is chosen by the plan. |
| Roth 401(k) | After-tax | Tax-free | Tax-free if rules are met | Same limits as the traditional 401(k). Match usually goes into the traditional side. |
| Traditional IRA | Deductible only if you meet income and workplace-plan rules | Tax-deferred | Taxed as ordinary income | You choose any provider and nearly any investment. |
| Roth IRA | After-tax | Tax-free | Tax-free if rules are met | Direct contributions are limited by income. Contributions (not earnings) can be withdrawn without tax. |
| HSA | Pre-tax | Tax-free | Tax-free for medical costs | Requires a qualifying high-deductible health plan. After 65, non-medical withdrawals are taxed like a traditional IRA. |
| Taxable brokerage | After-tax | Taxed on dividends and realized gains | Gains taxed at capital gains rates | No limits, no age rules. Most flexible. |
Filling accounts in order
Most people don't have enough surplus to max every account, so order matters. This sequence is a reasonable default. Adjust it for your situation.
Step 1 comes first because a match is an immediate return on your contribution that no market investment reliably offers. Here is the arithmetic:
def employer_match(salary, employee_pct, match_rate, match_cap_pct):
"""Dollars the employer adds in a year."""
matched_pct = min(employee_pct, match_cap_pct)
return salary * matched_pct * match_rate
# Plan: employer matches 50 cents per dollar, up to 6% of salary
for pct in (0.03, 0.06, 0.10):
print(f"{pct:.0%} contribution -> match {employer_match(72000, pct, 0.5, 0.06):,.0f}")This prints matches of 1,080, 2,160, and 2,160. Contributing 10% earns no more match than 6%. Contributing 3% leaves $1,080 a year unclaimed.
Also check the vesting schedule. Your own contributions are always yours. Employer contributions may vest over several years, so leaving a job early can forfeit part of the match.
Traditional or Roth
The choice comes down to comparing your tax rate now with your expected tax rate in retirement.
- If you expect a lower rate in retirement, traditional usually wins. You skip tax at a high rate and pay at a low one.
- If you expect a higher rate, Roth usually wins.
- If the rates are equal, the two give the same after-tax result.
The script below compares them for the same after-tax cost. A $6,000 traditional deposit costs only $4,680 after a 22% tax saving, so the Roth deposit is $4,680.
def compare(pretax_deposit, tax_now, tax_retirement, growth_factor):
traditional = pretax_deposit * growth_factor * (1 - tax_retirement)
roth = pretax_deposit * (1 - tax_now) * growth_factor
return round(traditional), round(roth)
growth = 1.05 ** 25 # 25 years at 5%
for t_ret in (0.12, 0.22, 0.32):
trad, roth = compare(6000, 0.22, t_ret, growth)
print(f"retirement rate {t_ret:.0%}: traditional {trad:,} roth {roth:,}")The output is 17,880 vs 15,848 at 12%, 15,848 vs 15,848 at 22%, and 13,816 vs 15,848 at 32%.
You can't predict your future bracket, so many people hold both types. That gives you a choice of which account to draw from each year and helps you manage taxable income in retirement.
Edge cases and common errors
- Not capturing the full match. This is the most common and most costly error. Check your payroll contribution percentage once a year.
- Leaving contributions in cash. A 401(k) or IRA is a container. The money must be invested in the allocation you chose. Some default settings park IRA deposits in a money-market fund until you pick something.
- Early withdrawals. Taking money from tax-advantaged retirement accounts before 59½ usually triggers ordinary income tax plus a 10% penalty, with some exceptions. Roth contributions (not earnings) can come out without tax or penalty. Don't count retirement balances as your emergency fund.
- Cashing out on a job change. Roll the balance into the new employer's plan or an IRA, and ask for a direct (trustee-to-trustee) transfer. A check made out to you can trigger withholding, and you must replace the withheld amount within 60 days to avoid tax.
- Required minimum distributions. Traditional accounts require annual withdrawals starting at an age set by law (currently in the early 70s, and it has changed before). Roth IRAs don't have them during the owner's lifetime. Missing an RMD brings a penalty.
- Outdated beneficiaries. Retirement accounts pass by beneficiary designation, not by your will. An ex-spouse listed on an old form can receive the money. Review forms after any life event.
- High fund costs. A plan menu with expensive funds can cost more over decades than the tax benefit is worth. Compare expense ratios, and prefer low-cost index funds in each account.
- Spending the match target as a ceiling. The match gets you started. Your required-contribution result from the first script is the real target.
What goes in your plan
Record these items in the written plan:
- Your retirement spending estimate, guaranteed income estimate, withdrawal rate, and resulting target, each with its assumptions.
- The monthly or per-paycheck contribution needed, and which account each dollar goes to.
- The contribution percentage that captures the full match.
- The traditional/Roth split and the reason for it.
- The date and results of your last beneficiary check.
Exercise
Your employer matches 100% of contributions up to 4% of salary. Your salary is $60,000 and you contribute 2%. How much match money are you leaving unclaimed each year, and what should you change first? Separately, you are in the 24% bracket now and expect 15% in retirement. Which account type does the comparison favor?
Show answer
At 2% you contribute $1,200 and receive a $1,200 match. At 4% you would contribute $2,400 and receive $2,400, so you leave $1,200 unclaimed. Raise your contribution to at least 4% first, before any other retirement step. With a 24% rate now and 15% expected later, the traditional account is favored, since you avoid tax at 24% and pay at 15%. This holds only if your expectations about the future rate are right.