Your money lasts until withdrawals use up the balance and the interest it earns along the way. With a balance P, a withdrawal W at the end of each month and a monthly interest rate i, that takes n = −ln(1 − i × P ÷ W) ÷ ln(1 + i) months; if W is no more than i × P, it never runs out. At 5% compounded monthly, $400,000 lasts 35 years 11 months at $2,000 a month, or 20 years 10 months if the $2,000 rises 3% a year.
To answer “how long will my money last” for your own figures, the Compound Interest Calculator with Withdrawals shows when the money runs out and the most you can withdraw.
How long will my money last? The formula
Without interest it is simple division: $400,000 ÷ $2,000 = 200 months, or 16 years 8 months. Interest stretches that, because the balance keeps earning. For withdrawals at the end of each month:
months = -ln(1 - i * P / W) / ln(1 + i)
P is the balance, W the monthly withdrawal and i the monthly rate: the annual rate ÷ 12 if it compounds monthly, or (1 + annual rate)^(1/12) − 1 for a yearly return or an APY.
In the example, i = 0.05 ÷ 12 = 0.0041667, so the first month earns $1,666.67. Then −ln(1 − 1,666.67 ÷ 2,000) = 1.7918, and dividing by ln(1.0041667) = 0.0041580 gives 430.9 months: 430 full withdrawals and a smaller one in month 431, which is 35 years 11 months.
If W is no more than i × P, about $1,666.67 here, each month's interest covers the withdrawal and the money never runs out. For withdrawals at the start of each month, replace W with W × (1 + i): the example drops to 426.0 withdrawals, running out after 35 years 5 months.
The same terms give the balance after n months, the formula for compound interest with withdrawals:
balance = P * (1 + i)^n - W * ((1 + i)^n - 1) / i
After 10 years, (1 + i)^120 = 1.64701, so the balance is $658,803.80 − $310,564.56 = $348,239.24, matching the calculator's year-10 end balance.
The same answers in Excel or Google Sheets
In NPER, FV and PMT, money you pay in, including the starting balance, is negative and money you take out is positive (Microsoft's FV reference); a final argument of 1 means the start of each period:
=NPER(5%/12, 2000, -400000) 430.9 months
=NPER(5%/12, 2000, -400000, 0, 1) 426.0 (start of month)
=FV(5%/12, 120, 2000, -400000) 348,239.24 after 10 years
=PMT(5%/12, 360, -400000) 2,147.29 a month for 30 years
=PMT(5%/12, 360, -400000, 100000) 2,027.13, leaving 100,000
They need a payment that never changes, so they can't model a withdrawal rising with inflation.
How to see when your money runs out with Zutilium
- Open the Compound Interest Calculator with Withdrawals and choose My balance over time. Replace the example figures with yours; results update as you type.
- Under Starting point, enter the Starting balance and Annual interest rate (%), and set Compounding: Monthly (12/yr) for a rate compounded monthly, Annually (1/yr) for a yearly return or an APY.
- Set Time in years longer than the money could last (100 at most): the calculator stops at the time you enter.
- Under Regular withdrawals, enter the Withdrawal amount, pick How often, and set Withdrawals are made to At the end of each period or At the start of each period.
- Put your inflation assumption in the withdrawals' Increase each year (%). If you are still saving, add a Deposit amount under Regular deposits (optional), then set Deposit for the first (years) and Start withdrawing after (years) to the years you have left to save; left blank, deposits continue after withdrawals start.
- Read the answer, such as “Your money runs out after 20 years 10 months”, or switch to The most I can withdraw to find an amount that lasts.
Under the answer, Money runs out after is how long until the first withdrawal that can't be paid in full, which gets whatever is left. Withdrawals not paid totals every missed withdrawal to the period's end. Effective annual rate (APY) shows the rate actually applied. The Year by year table splits each year into deposits, withdrawals and interest, and Download table (CSV) saves it. Everything is worked out in your browser; nothing is uploaded.
Compound interest with withdrawals: what changes the answer
The same $400,000 at 5% with $2,000 a month, under different settings:
| Setting | Money runs out after | Total withdrawn |
|---|---|---|
| Flat, end of each month | 35 years 11 months | $861,835.38 |
| Flat, start of each month | 35 years 5 months | $851,958.02 |
| Flat, 5% compounded annually | 34 years 7 months | $829,570.83 |
| Rising 3% a year, end of month | 20 years 10 months | $678,665.56 |
The yearly increase matters most by far: at 3% a year the $2,000 becomes $3,612.22 a month by year 21, and the money runs out 15 years sooner.
When withdrawals rise with inflation, what counts is roughly the return minus inflation: 5% with withdrawals rising 3% a year lasts about as long as 2% with flat withdrawals (20 years 10 months against 20 years 4 months).
Timing shifts the result by a few months and compounding by over a year: 5% compounded monthly is 5.116% a year. If your bank quotes an APY, enter it with Annually (1/yr) so it isn't compounded twice; how to calculate an interest rate explains APR and APY.
How long savings last at each withdrawal rate
Your withdrawal rate is the first year's withdrawals divided by your savings: $2,000 × 12 ÷ $400,000 = 6%. The answer depends only on that rate, so $1 million at $5,000 a month lasts exactly as long. With withdrawals at the end of each month, rising 3% a year, and returns compounded monthly:
| First-year withdrawal | 3% return | 5% return | 7% return |
|---|---|---|---|
| 3% of savings | 34 yr 2 mo | 57 yr 6 mo | 100+ yr |
| 4% | 25 yr 7 mo | 35 yr 10 mo | 100+ yr |
| 5% | 20 yr 5 mo | 26 yr 3 mo | 42 yr 6 mo |
| 6% | 17 yr | 20 yr 10 mo | 28 yr 7 mo |
| 8% | 12 yr 9 mo | 14 yr 9 mo | 17 yr 10 mo |
| 10% | 10 yr 3 mo | 11 yr 5 mo | 13 yr 2 mo |
“100+ yr” means the balance is still growing after 100 years, the calculator's limit. At 8% or more, a better return adds only about three to five years; at 3% or 4%, it is the difference between 25 to 34 years and a balance that keeps growing.
The most you can withdraw in retirement
Working backward gives the largest withdrawal that lasts a set time, which is what a retirement withdrawal calculator does. For a flat withdrawal at the end of each month, leaving F at the end:
W = (P - F / (1 + i)^n) * i / (1 - (1 + i)^-n)
For $400,000 at 5% compounded monthly over 30 years, (1 + i)^−360 = 0.22383, so W = $1,666.67 ÷ 0.77617 = $2,147.29. The most I can withdraw gives $2,147.28: it rounds down to the cent so every withdrawal is paid in full, ending with $5.40. A reserve goes in Balance to leave at the end.
With a yearly increase, the calculator searches for the largest first withdrawal. For $400,000 at 5% compounded monthly, withdrawn at the end of each month:
| Yearly increase | Lasting | Left at the end | Most you can withdraw |
|---|---|---|---|
| None | 30 years | $0 | $2,147.28 a month |
| 3% | 25 years | $0 | $1,729.65 |
| 3% | 30 years | $0 | $1,509.42 |
| 3% | 30 years | $100,000 | $1,424.96 |
| 3% | 35 years | $0 | $1,353.72 |
| 3% | 40 years | $0 | $1,238.34 |
The 30-year rising amount reaches $3,557.05 a month by its final year (Last planned withdrawal). Its first year is 4.53% of savings, but only because the calculator assumes exactly 5% every year.
Where the 4% rule comes from
The “4% rule” comes from a 1994 Journal of Financial Planning article by William Bengen. Using US returns from 1926 to 1992 for a portfolio split evenly between large-company stocks and intermediate-term Treasuries, he found that 4% of the starting balance, raised each year for inflation, was the highest first-year withdrawal that lasted at least 30 years even in the worst period (Journal of Financial Planning review). FINRA says no single percentage suits everyone and expert opinion clusters between 3% and 5%. This article explains the arithmetic and is not financial advice.
The compound interest formula with monthly contributions
While you are still saving, deposits work like withdrawals with the sign flipped. For a deposit D at the end of each month:
balance = P * (1 + i)^n + D * ((1 + i)^n - 1) / i
Take $100,000 plus $1,000 a month for 15 years at 6% compounded monthly: i = 0.005 and (1.005)^180 = 2.45409, so the balance is $245,409.36 + $290,818.71 = $536,228.07, of which $256,228.07 is interest. In a spreadsheet, =FV(6%/12, 180, -1000, -100000) returns the same figure.
To plan both phases at once, set Deposit for the first (years) and Start withdrawing after (years) to 15. Withdrawing $3,000 a month from then on at the same 6%, rising 3% a year, the money runs out after 35 years 4 months, 20 years 4 months into withdrawals. That $3,000 is in year-16 dollars; to match $3,000 of today's spending after 15 years of 3% inflation, enter $3,000 × 1.03^15 = $4,673.90.
Why your real answer will differ
The calculator assumes the same return every year. Real returns vary, and while you withdraw, their order matters. Over two years, $100,000 with $10,000 taken at the end of each year ends at $74,000 after a 20% loss then a 20% gain, but at $78,000 if the gain comes first. FINRA's guidance is to withdraw as conservatively as possible early in retirement and be ready to adjust.
- Fees and taxes. Enter the return after fees. For the withdrawal, enter the full amount you take out, including any tax due on it.
- Inflation. The Bureau of Labor Statistics' Consumer Price Index is the usual measure. The calculator raises withdrawals once a year, on each anniversary of the first one.
- How long you need. Social Security's life expectancy calculator is a starting point, but an average is not a limit.
- Your inputs. Base the withdrawal on real spending, which Bank Statement to CSV can pull from PDF statements, minus any Social Security, pension or part-time pay; the Work Hours Calculator works out the last from shifts. The Interest Rate Calculator finds the yearly return that grew one balance into another.
Troubleshooting
It says the money lasts the whole time
When the money outlasts the period you entered, the answer shows Final balance and Money lasts instead of Money runs out after. Raise Time in years, up to 100.
The result is a month later than simple division
At 0%, $400,000 ÷ $2,000 = 200 full withdrawals, the last at 16 years 8 months. The calculator shows 16 years 9 months, the first withdrawal it can't pay. With interest, the last withdrawal is usually partial and falls in the month shown.
Another calculator gives a different answer
Check whether 5% is divided by 12 or treated as a yearly return (35 years 11 months against 34 years 7 months above), start or end of month, and whether inflation raises withdrawals monthly or yearly.
Frequently asked questions
How long will $500,000 last in retirement?
At 5% compounded monthly, with withdrawals at the end of each month rising 3% a year, $500,000 lasts 35 years 10 months at $1,666.67 a month (4%), 27 years 9 months at $2,000 and 20 years 10 months at $2,500 (6%). Double the amounts for $1 million; the years stay the same.
What is the 4% rule?
A rule of thumb from William Bengen's 1994 research: withdraw 4% of your savings in the first year, then raise that amount with inflation each year. It was the highest starting rate that lasted 30 years in every period of US returns from 1926 to 1992 he tested, not a guarantee.
Will my money last forever if I only withdraw the interest?
In dollars, yes: if each withdrawal is no more than that period's interest, the balance never falls. $400,000 at 5% compounded monthly earns $1,666.67 a month, and asking the calculator to leave $400,000 after 30 years gives $1,666.66. That flat withdrawal still buys less every year.
How do I calculate how long my money will last in Excel?
Use =NPER(rate/12, withdrawal, -balance): =NPER(5%/12, 2000, -400000) returns 430.9 months, just under 36 years. For withdrawals at the start of each month, add , 0, 1 before the closing bracket. NPER needs a fixed withdrawal, so use the calculator when it rises with inflation.