Sub topic 1
Start with a goal: retirement age and lifestyle
Prerequisites
This chapter assumes you can do basic algebra and work with percentages. You should know what interest and compounding mean. You should also know that retirement savings usually sit in employer plans or individual retirement accounts. Python is optional. The code here is short and uses only the standard language.
Why the goal comes first
A monthly saving target is the output of a calculation. Before you can compute it, you need two inputs that are not math problems: when you want to stop working, and how much you want to spend once you do.
Every later step depends on these two numbers:
- The retirement age sets the number of years you have to save. It also sets how many years the money must last.
- The annual spending figure sets the size of the nest egg, which is the pile of savings you need on the day you stop working.
A vague goal such as "retire comfortably" cannot be turned into a monthly number. A specific goal such as "retire at 65 and spend 48,000 a year in today's money" can.
The two parts of a goal
Target retirement age
Your target retirement age is the age at which you plan to stop earning a full salary and start drawing on savings. It affects the result in three ways.
- Saving years. Each extra year of work adds a year of contributions and a year of growth.
- Withdrawal years. Each extra year of work removes a year that the savings must cover.
- Other income. Public benefits and some pensions pay more if you claim them later. This chapter only notes the effect. A later chapter handles it.
Retiring earlier hurts on both sides at once. You save for fewer years and you spend from the pile for more years. The effect is usually larger than people expect.
Target lifestyle
Your target lifestyle is the annual spending you want in retirement. For this calculation, state it as annual spending in today's money. That means the amount it would cost to live that way if you retired this year, at current prices.
Using today's money keeps the goal easy to judge. You know what 48,000 buys now. You have no intuition for what 95,000 buys in thirty years. The next chapters convert the figure to future dollars. For now, keep it in today's terms.
Turning a goal into inputs
Write the goal as a short set of named values. The functions you will build later take these same values as arguments.
| Input | Meaning | Example |
|---|---|---|
| `current_age` | Your age today | 35 |
| `retirement_age` | Age you plan to stop working | 65 |
| `years` | `retirement_age - current_age` | 30 |
| `annual_spend_today` | Yearly spending in today's money | 48,000 |
The only derived value is years. It is the horizon over which both inflation and investment growth will act.
from dataclasses import dataclass
@dataclass(frozen=True)
class RetirementGoal:
current_age: int
retirement_age: int
annual_spend_today: float
def __post_init__(self):
if self.retirement_age <= self.current_age:
raise ValueError("retirement_age must be greater than current_age")
if self.annual_spend_today <= 0:
raise ValueError("annual_spend_today must be positive")
@property
def years(self) -> int:
return self.retirement_age - self.current_age
goal = RetirementGoal(current_age=35, retirement_age=65, annual_spend_today=48_000)
print(goal.years)
print(goal.annual_spend_today)Running this prints 30 and 48000. The validation matters. A retirement age at or below the current age gives a horizon of zero or less years. Later formulas would then divide by zero or return negative contributions with no warning.
How the pieces connect
The goal is the root of the whole plan. The diagram shows what each input feeds.
Years to retirement appears twice. It inflates your spending into future dollars, so it raises the nest egg. It also sets how long contributions have to grow. These two effects pull in opposite directions, and later chapters show how they combine.
Choosing a spending figure
At this stage you only need a defensible first estimate. The next chapter covers methods in detail. Two quick starting points help you avoid a blank page.
- Current spending. Add up what you spend now. Then remove costs that should end by retirement, such as a mortgage, commuting, or saving itself. Add costs that may grow, such as healthcare.
- Percent of income. Many planners start at 70% to 80% of pre-retirement income. This is a rough rule, not a law. Your own spending pattern is better evidence.
def spend_from_income(income_today, replacement_ratio=0.75):
"""Rough first estimate of retirement spending in today's money."""
return income_today * replacement_ratio
print(spend_from_income(64_000))This prints 48000.0. Treat the result as a placeholder to refine, not as a final answer.
Edge cases and common errors
- Mixing money units. The most common error is to take a future price and treat it as today's money, or the reverse. Label every figure as "today's money" or "future dollars" from the start.
- Gross versus net spending. Spending is what you pay for living costs. If part of your withdrawals will go to income tax, the amount you must withdraw is higher than the amount you spend. Decide now whether your figure includes tax, and keep that choice consistent.
- Using household instead of personal figures. For couples, decide whether the goal covers one person or two. A shared goal needs both ages. A simple approach is to use the age of the person who will retire later, or run the calculation for each person.
- Treating the age as certain. Job loss, health, and caregiving can force an earlier exit. A plan that only works for retirement at exactly 65 is fragile. Later chapters test earlier and later ages.
- Aiming for a lifestyle you have not priced. "Travel a lot" is not a number. Put an amount on it, or it will not appear in the target.
Decision criteria: how precise to be now
You do not need a perfect goal to start. You need a goal that is specific enough to compute and honest enough to revise. A practical rule:
- If you are more than 15 years from retirement, a rounded figure is fine. The other assumptions will dominate the error.
- If you are within 10 years, build the spending figure from an itemized budget. A 10% error in spending is a 10% error in the nest egg, and you have little time to correct it.
What comes next
The next chapter builds the annual spending figure properly. After that, the plan converts it to future dollars, subtracts other income, and divides by a withdrawal rate to get the nest egg. Only then does the monthly saving target appear.
Exercise
You are 40 and want to retire at 62 with 36,000 a year of spending in today's money. What is years, and why would stating the goal as "spend 70,000 a year" be a problem if that figure is a future price?
Show answer
years = 62 - 40 = 22. The 70,000 figure would be in future dollars, and the later steps would inflate it again. That counts inflation twice and overstates the nest egg and the monthly target. State the goal in today's money, then convert it once.
Exercise
Using the RetirementGoal class, what happens if you create RetirementGoal(current_age=50, retirement_age=50, annual_spend_today=40_000), and why is that behavior useful?
Show answer
It raises a ValueError because retirementage is not greater than currentage. The check stops a horizon of zero years, which would cause division by zero or meaningless results in the later saving formulas.
Exercise
A person earns 80,000 and uses a 75% replacement ratio. Their current mortgage payments of 15,000 a year end in 10 years, and they plan to retire in 25. Does the 75% figure need adjusting? Which direction?
Show answer
The estimate is 60,000. Since the mortgage will be paid off before retirement, the 15,000 will not be a retirement cost, so the real spending need is probably lower. A reasonable adjustment is to revisit the figure with an itemized budget, which could bring it closer to 45,000 before adding healthcare and other costs that may rise.