Sub topic 7
The 4 percent rule step by step
This chapter assumes you know what a sustainable withdrawal rate is, how real (inflation-adjusted) returns differ from nominal ones, and why the order of returns matters. It also assumes you are comfortable reading short Python. Here we put the rule to work: how it is set up, how each year's withdrawal is computed, and where people most often misapply it.
What the rule actually says
The 4 percent rule is a procedure for setting spending. It is not a promise about returns. It has three parts:
- In the first year of retirement, withdraw 4 percent of the starting portfolio.
- In every later year, raise the previous year's dollar withdrawal by the latest inflation rate.
- Do not recompute the withdrawal from the current balance, whether markets are up or down.
The third part is the one people forget. The rule fixes spending in real terms (constant purchasing power) at the start. After that the portfolio balance does not change the dollar amount you spend.
Where the 4 percent comes from
William Bengen's 1994 backtest used US stock and intermediate-term Treasury data starting in 1926. He asked: for each possible retirement start year, what is the highest first-year rate that still lasts 30 years? The lowest of those answers was a little over 4 percent, for retirements beginning in the mid-1960s. These retirees faced high inflation and weak real returns early on. He rounded to 4 percent.
The Trinity study (1998) reframed the question as a success rate. It tested fixed rates against many historical 30-year periods and counted how often the money lasted. For portfolios holding roughly half to three quarters in stocks, 4 percent succeeded in the large majority of periods. The exact figures depend on the data range and the portfolio mix.
So the 4 percent figure is the historical worst case for a 30-year retirement, rounded. It is not an average.
Step by step
Step 1: Find the starting withdrawal
Multiply the portfolio value on the day you retire by 0.04.
For a $1,000,000 portfolio, the first-year withdrawal is $40,000.
You can also work backward. The reciprocal of 4 percent is 25, so the target portfolio is 25 times your first-year spending. Annual spending of $50,000 implies a portfolio of $1,250,000.
Step 2: Adjust for inflation each year
Each year, multiply last year's withdrawal by one plus the inflation rate for the past year. The following table uses made-up inflation figures.
| Year | Inflation in the prior year | Withdrawal |
|---|---|---|
| 1 | not applicable | $40,000.00 |
| 2 | 3% | $41,200.00 |
| 3 | 5% | $43,260.00 |
| 4 | 1% | $43,692.60 |
The portfolio could be worth $1.1 million or $700,000 in year 4. The withdrawal is still $43,692.60.
Step 3: Ignore the balance (mostly)
Suppose the portfolio falls to $700,000 after year 1 and you take $41,200 in year 2. That is 5.9 percent of the current balance, well above 4 percent. The rule accepts this. Bengen's worst cases included exactly this experience, and the rule's historical success depended on markets recovering enough afterward.
If you cannot tolerate that outcome, you need a flexible strategy. Those come in a later chapter.
Computing it in code
The first function builds the nominal withdrawal schedule for a constant inflation rate. Real spending stays the same while the dollar amount grows.
def withdrawal_schedule(start=1_000_000, rate=0.04, inflation=0.03, years=5):
first_year = start * rate
return [round(first_year * (1 + inflation) ** y, 2) for y in range(years)]
print(withdrawal_schedule())
# [40000.0, 41200.0, 42436.0, 43709.08, 45020.35]The next function tests survival in real terms. Because each return is already inflation-adjusted, the withdrawal can stay constant. This is the same function the earlier chapters used.
def survives(real_returns, withdrawal_rate=0.04, start=1_000_000):
balance = start
withdrawal = start * withdrawal_rate # constant in real terms
for r in real_returns:
balance -= withdrawal
if balance <= 0:
return False
balance *= 1 + r
return True
# A flat 0% real return is a useful floor: money only runs out by subtraction.
print(survives([0.0] * 30, 0.04)) # False: 25 withdrawals of 4% drain the account
print(survives([0.0] * 30, 0.03)) # True: 30 withdrawals of 3% leave 10%
print(survives([0.05] * 30, 0.04)) # TrueThe flat 0 percent case shows how much work returns do. At 4 percent, a portfolio earning nothing real lasts only 25 years. Real returns of about 1 percent or more are what stretch it to 30. The historical worst case worked because the bad early years were followed by enough growth.
The procedure at a glance
Notice that the market return never feeds into the next withdrawal. Only inflation does.
Common errors
Applying 4 percent to the balance every year
Some people recalculate 4 percent of the current balance each year. That is a different strategy, a constant-percentage rule. It essentially cannot run out of money, but spending falls in every downturn. It also does not match what Bengen and the Trinity study tested.
Treating the first year as the only year that matters
The first-year amount sets the real spending level for life. A mistake there carries forward. A $50,000 start instead of $40,000 on a $1,000,000 portfolio is a 5 percent rule, which fails far more often over 30 years.
Mixing nominal and real numbers
The simulation functions assume real returns. If you feed in nominal returns and keep the withdrawal constant, you are assuming spending never rises with prices. That makes results look better than they are. Convert returns first, or inflate the withdrawal each year.
Reading the success rate as a forecast
A 95 percent historical success rate means the strategy lasted in 95 percent of the tested periods. Those periods overlap heavily, so the true number of independent samples is small. It does not mean a 95 percent chance for you.
Forgetting what "success" means
In the original studies, a path succeeded if the balance stayed above zero at the end of 30 years. A path that ended with $1,000 counted the same as one that ended with $5 million. Historically many successful paths ended with far more than the starting balance, which is one reason people look for ways to spend more when markets are strong.
Edge cases to keep in mind
- Deflation: Some formulations let the withdrawal fall when prices fall. Others hold it flat. Check which your tool uses.
- Timing within the year: The code withdraws at the start of the year, before that year's return. Withdrawing at year end gives slightly better results. Choose a convention and keep it.
- Horizon: The rule was tested over 30 years. A 40- or 50-year retirement usually needs a lower starting rate. A later chapter covers how horizon and allocation change it.
- What is included: The 4 percent is the amount leaving the portfolio. Fees and taxes are normally drawn from it too, which cuts your spendable income.
Exercise
Exercise
You retire with $1,500,000. You follow the 4 percent rule. Inflation is 2% after year 1 and 4% after year 2. After year 1, your portfolio has fallen to $1,200,000. (a) What is your year 1 withdrawal? (b) What is your year 2 withdrawal, and what percent of the $1,200,000 balance is it? (c) What is your year 3 withdrawal?
Show answer
(a) 4% of $1,500,000 = $60,000. (b) Year 2 = $60,000 x 1.02 = $61,200. As a share of $1,200,000 it is 61,200 / 1,200,000 = 5.1%. The rule does not change the dollar amount because the balance fell. (c) Year 3 = $61,200 x 1.04 = $63,648.
Exercise
Using the survives function with a constant real return of 0%, how many years does a 4% initial withdrawal last, and why does survives([0.0] * 30, 0.04) return False?
Show answer
It lasts 24 full years with money left. The 25th withdrawal brings the balance to exactly zero, and the function treats a balance of zero or less as failure. With no returns, each year removes 4% of the starting balance, so 25 withdrawals use up 100%.