How to use it
- Type what you spend in a year, in today's money, and the savings you already have invested.
- Enter what you add to the savings each year and the real return you expect after inflation.
- Keep the withdrawal rate at 4% to test the classic rule, or enter a lower one for a longer retirement.
- Read the target and the time to reach it, then open the year-by-year table to see the age at each step.
How the target and the years are calculated
The savings target is the yearly spending divided by the withdrawal rate. At 4%, the target is 25 times the yearly spending, because 1 ÷ 0.04 = 25. The savings are assumed to grow by the real return, and what you add each year is added at the end of the year.
The number of years solves the savings formula for the target. Years can be fractional, so the calculator shows the time in years and months, and the age in whole years, rounded up.
T = spending ÷ w
S(n) = S × (1 + r)^n + A × ((1 + r)^n − 1) ÷ r
n = ln((T + A ÷ r) ÷ (S + A ÷ r)) ÷ ln(1 + r)
T savings target
w withdrawal rate
S savings now
A saved each year
r real return per year
n years to the target
The 4% rule and where it comes from
The 4% rule is a rule of thumb: a portfolio of stocks and bonds can pay 4% of its starting value in the first year, and then raise that amount each year for inflation, without running out over a retirement. It comes from the Trinity Study, published in February 1998 in the AAII Journal by Cooley, Hubbard and Walz of Trinity University. The study tested withdrawal rates against U.S. stock and bond returns from 1926 to 1995, over payout periods of 15 to 30 years.
The study found that withdrawal rates of 3% and 4% were extremely unlikely to exhaust a portfolio that held stocks and bonds, and it reports a 95% success rate for a 4% withdrawal over the periods it tested. Some starting years, such as 1965 and 1966, would have needed a rate a little below 4%.
The limits of the 4% rule
The study uses historical U.S. returns and inflation. Future returns can be lower, and other countries have had different histories. The 4% rule was tested for retirements of 15 to 30 years, so a longer retirement needs a lower rate. The article also suggests that most retirees keep at least half of the portfolio in stocks.
- Taxes and fees, which lower the return you keep.
- Pensions, state benefits and other income, which reduce the savings you need. This calculator counts only the spending that the savings must pay for.
- Spending that rises faster than inflation, for example for health care.
Worked example: 40,000 a year, 50,000 saved, 15,000 a year more, 5% real
The target is 40,000 ÷ 4% = 1,000,000. At a real return of 5% and 15,000 saved each year, the savings reach 1,000,000 in 26.89 years, which is 26 years and 11 months of saving.
At the age of 35 that makes 62: the savings are 944,485.44 after 26 years, 94.45% of the target, and 1,006,709.71 after 27 years, when the target is reached.
| Figure | |
|---|---|
| Savings target | 1,000,000.00 |
| Time to reach it | 26 years 11 months |
| Age at the target (from 35) | 62 |
| Savings after 26 years | 944,485.44 |
| Savings after 27 years | 1,006,709.71 |
Frequently asked questions
What is the 4% rule?
It is a rule of thumb that a portfolio of stocks and bonds can pay 4% of its starting value in the first year and then raise that amount for inflation. It comes from historical U.S. data and is not a guarantee.
Why is the target 25 times the yearly spending?
Because 1 ÷ 0.04 = 25. If the savings are 25 times the spending and you take out 4% each year, the withdrawal equals the spending in the first year.
Should I enter the real return or the nominal return?
The real return, after inflation, because the target is in today's money. A nominal return of 8% with 3% inflation is about 4.9% real, and that is the figure to enter.
Is 4% safe for a retirement of 40 or 50 years?
Less certain. The study tested periods of 15 to 30 years, so a longer retirement needs a lower withdrawal rate. Enter a lower rate to test it.
Does the calculator include my pension?
No. Pensions and other income reduce the savings you need, so enter only the spending that the savings must cover, or a lower spending figure if a pension will pay part of it.
Are my figures stored?
No. The calculation runs in your browser and nothing you enter is sent to us.
Sources
- AAII Journal, February 1998: Retirement Savings: Choosing a Withdrawal Rate That Is Sustainable (the Trinity Study)
- Retirement Researcher: Safe withdrawal rates and the Trinity study
Figures and text last checked on Tuesday, November 10, 2026.