How to Estimate How Long Your 401k Will Last in Retirement
What a 401k longevity calculator does
A 401k longevity calculator estimates how many years your retirement savings will last based on how much you have, how much you plan to withdraw each year, and what investment returns you might earn. It answers the core question: will the money run out before you do?
These calculators work by running a straightforward math model forward year by year. They subtract your annual withdrawals from your balance, explore an assumed investment return (usually between 5% and 8% annually), and repeat until either the balance hits zero or you reach an age you specify. Some calculators also account for inflation, which means your withdrawals increase each year to keep up with rising costs.
The output is not a prediction. It is a scenario. The actual returns your investments earn will differ from the assumption you enter, and your spending may change. But the calculator shows you whether your current plan is roughly sustainable or whether you need to adjust how much you withdraw, how much you have saved, or when you plan to retire.
Key Takeaways
- A longevity calculator subtracts your planned annual withdrawals from your balance, applies an investment return assumption, and repeats year by year to show when money might run out.
- The most important inputs are your current balance, your planned annual withdrawal amount, and the investment return you assume — small changes to any of these shift the result significantly.
- Inflation matters: if you assume 0% inflation, the calculator will underestimate how much you need to withdraw to maintain your lifestyle.
- The result is a scenario, not a forecast — actual returns vary year to year, so running the calculation multiple times with different return assumptions gives you a more realistic picture.
- If the calculator shows your money runs out before your expected lifespan, you can extend it by withdrawing less, saving more before retirement, or delaying retirement.
The three inputs that matter most
Your current 401k balance is the starting point. This is the number on your most recent statement. If you have multiple retirement accounts (a 401k, an IRA, a Roth IRA), add them together — the calculator should account for all your retirement savings, not just one account.
Your planned annual withdrawal is how much you intend to take out each year to live on. This is often expressed as a percentage of your starting balance — for example, 4% per year is a common rule of thumb. To calculate the dollar amount, multiply your balance by the percentage. If you have $500,000 and plan to withdraw 4%, that is $20,000 in year one. If the calculator accounts for inflation, that amount rises each year (often by 2% to 3% annually).
Your assumed investment return is the annual percentage gain you expect from the mix of stocks and bonds in your 401k. Conservative assumptions range from 5% to 6% per year; moderate assumptions are 6% to 7%; aggressive assumptions are 7% to 8% or higher. The higher your return assumption, the longer your money lasts. But higher returns usually mean more stock exposure, which also means larger year-to-year swings in your balance.
These three inputs drive the entire calculation. If you are unsure what return to assume, use 6% as a middle-ground starting point, then run the calculation again with 5% and 7% to see how sensitive the result is to that assumption.
Why inflation changes the answer
Inflation is the annual increase in the cost of living. If inflation is 3% per year and you withdraw $20,000 in year one, you will need to withdraw about $20,600 in year two to buy the same goods and services.
A calculator that ignores inflation will show your money lasting longer than it actually will, because it assumes you withdraw the same dollar amount every year. In reality, you will need to withdraw more each year just to maintain your current lifestyle. Most online calculators let you enter an inflation assumption, usually between 2% and 4% per year. If you leave it at zero, you are assuming prices never rise, which is unrealistic.
The interaction between inflation and investment returns matters too. If your investments earn 6% per year and inflation is 3%, your real return (the growth that actually increases your purchasing power) is roughly 3%. A calculator that accounts for inflation will use a lower effective return, which means your money does not last as long.
How to interpret the result
Most calculators show one of three outcomes: your money lasts until a specific age, it runs out before that age, or it never runs out (the balance stays positive indefinitely).
If the result shows your balance hits zero at age 85, that means under the assumptions you entered, your 401k would be depleted by then. That does not mean you will have no income — you may have Social Security, a pension, or other savings. But it does mean your 401k alone cannot sustain your planned withdrawals for that long.
If the result shows your balance never runs out, that does not mean you can withdraw unlimited amounts. It means the withdrawals you entered are sustainable under the return assumption you chose. If actual returns are lower, the balance will eventually decline.
The most useful approach is to run the calculation three times: once with a conservative return assumption (5%), once with a moderate assumption (6%), and once with an aggressive assumption (7%). If all three scenarios show your money lasting past your expected lifespan, you have a robust plan. If only the aggressive scenario works, your plan is fragile and depends on strong market performance.
Adjusting your plan if the result is concerning
If the calculator shows your money running out too early, you have three levers to pull: withdraw less, save more before retirement, or retire later.
Withdrawing less is the most direct fix. If the 4% withdrawal rate does not work, try 3.5% or 3%. The trade-off is a lower standard of living in retirement. A calculator will show you exactly how much lower your withdrawals need to be to make your money last.
Saving more before retirement extends your runway if you are not yet retired. Even a few extra years of contributions, or a larger lump sum from a bonus or inheritance, can meaningfully shift the result. The calculator should let you enter a future balance instead of a current one to model this scenario.
Retiring later accomplishes two things: your balance grows for a few more years, and you have fewer years of retirement to fund. Delaying retirement by even two or three years often makes a significant difference in whether your money lasts.
Where to find a 401k longevity calculator
Many financial institutions offer free calculators on their websites. Vanguard, Fidelity, and Schwab all have retirement income calculators that account for 401k balances, Social Security, and inflation. The U.S. Securities and Exchange Commission (SEC) maintains a list of educational tools on its website, including retirement calculators.
If your 401k is through your employer's plan, your plan administrator may offer a calculator as part of the plan's website or mobile app. These are often customized to your specific plan rules and investment options.
Online calculators vary in complexity. Some ask only for your balance and withdrawal amount; others let you model Social Security income, account for taxes, and run Monte Carlo simulations (which test your plan against thousands of historical market scenarios instead of a single assumed return). Start with a straightforward calculator to get a rough answer, then use a more detailed one if you want to refine your plan.
Common mistakes when using these calculators
The most common mistake is entering an inflation rate of zero. This makes your money appear to last longer than it will. Always enter a realistic inflation assumption, usually 2% to 3% per year.
Another mistake is using only your 401k balance and ignoring other retirement income. If you will receive Social Security or a pension, the calculator should account for that. Your 401k does not need to fund your entire retirement by itself.
A third mistake is treating the result as a may provide. A calculator shows what happens under specific assumptions. If the market returns 4% instead of 6%, or if you need to withdraw more than you planned, the result changes. Use the calculator as a planning tool, not a prediction.
Finally, some people run the calculator once and never revisit it. Your balance, your spending, and market conditions all change over time. Recalculate every year or two, especially after a major market move or a significant change in your life.
Frequently Asked Questions
What investment return should I assume?
A moderate assumption is 6% per year, which reflects a balanced portfolio of roughly 60% stocks and 40% bonds. If your 401k is more conservative (more bonds), use 5%. If it is more aggressive (more stocks), use 7%. Run the calculation with all three to see how sensitive your result is to this assumption.
Should I include Social Security in the calculator?
Yes, if the calculator allows it. Social Security reduces the amount you need to withdraw from your 401k. You can estimate your benefit at ssa.gov, which provides a personalized estimate based on your earnings history. Subtracting your Social Security income from your total living expenses gives you the amount your 401k needs to cover.
What if my spending changes in retirement?
Most people spend more in early retirement (travel, hobbies) and less in later years. Some calculators let you model different withdrawal amounts at different ages. If yours does not, run two separate calculations: one for your early-retirement spending and one for your later-retirement spending, then see if the transition point makes sense.
How often should I recalculate?
Recalculate annually or after a major market move. If a market downturn reduces your balance significantly, recalculating shows whether your plan is still on track. Similarly, if you receive an inheritance or a large bonus, recalculating shows how that changes your timeline.
What if the calculator shows my money runs out at age 90, but I might live to 95?
That is a signal to adjust your plan now, while you still have time. You can reduce withdrawals, work a few more years, or plan to rely more heavily on Social Security in your later years. Some people also plan to downsize their home or reduce major expenses at a certain age, which lowers their withdrawal needs.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.