retirement
401K Calculator
Project a 401(k) balance, estimate early withdrawal costs, and find the salary contribution needed to capture an employer match.
retirement calculator
The Retirement Calculator is a generic fixed-assumption planning model with four modes. Retirement Need compares an estimated amount required at retirement with projected savings. Savings Required solves the annual contribution needed to reach a target amount. Withdrawal Amount estimates an inflation-adjusted monthly withdrawal from a projected balance. Money Last estimates how many whole months an entered balance may last at a fixed monthly withdrawal.
Your scenario
Working scenario
Not saved yet
Saved scenarios
Save this result, then use saved scenarios to switch between assumptions.
Use this calculator when you want to compare one retirement scenario at a time and keep the active mode, ages, return, inflation, savings, target, and withdrawal assumptions visible. Use 401(k) for workplace contribution and match inputs, RMD for required distribution estimates, Annuity or Annuity Payout for product-style payout math, Investment or Savings for generic accumulation, and Future Value or Present Value for narrower time-value-of-money questions. Use SSA, IRS, DOL/EBSA, Investor.gov, SEC, FINRA, FCA, MoneyHelper, The Pensions Regulator, plan administrator, provider, prospectus, fee-disclosure, tax-authority, inflation-statistics, legal, or local regulator sources before making Social Security, retirement-plan, pension, tax, annuity, product, fee, inflation, legal, regulated-advice, or jurisdiction-specific claims.
The calculator first sets years to retirement as max(0, retirementAge - currentAge) and retirement years as max(0, lifeExpectancy - retirementAge). Retirement Need grows current income by incomeIncrease, multiplies it by retirementIncomePercent, subtracts otherMonthlyIncome * 12, floors the annual need at 0, discounts that annual need with a real annual return from investmentReturn and inflationRate, then projects currentSavings with a yearly income-savings loop using futureSavingsPercent. Savings Required grows currentSavings to retirement and solves an annual ordinary contribution needed to reach targetRetirementAmount; monthlySavingsNeeded is annualSavingsNeeded / 12, not a separate monthly-deposit solve. Withdrawal Amount rounds years to retirement into months, grows currentSavings monthly, adds monthlyContribution after each month's growth, adds annualContribution every 12th month, and estimates withdrawal capacity with a real monthly return. Money Last starts with amountHave, grows it with nominal monthly investmentReturn, subtracts the planned monthlyWithdrawal or remaining balance, counts whole months, and stops at 12000 months as a computational cap.
This formula page covers the app's Retirement Calculator: four generic planning modes for retirement need, savings required, withdrawal capacity, and how long money may last. It uses the ages, income, contribution, return, inflation, savings, target, and withdrawal assumptions entered by the user. It does not calculate Social Security benefits, pension rights, annuity quotes, tax treatment, account limits, required distributions, market volatility, provider fees, guaranteed income, legal entitlements, or personalised retirement advice.
Y = max(0, RA - CA); RY = max(0, LE - RA); IncRet = CI * (1 + g)^Y; Need = max(0, IncRet * p - OI * 12); realR = (1 + R) / (1 + I) - 1; Req = realR ~= 0 ? Need * RY : Need * (1 - (1 + realR)^-RY) / realR; income-savings projection: B_y = B_(y-1) * (1 + R) + CI * (1 + g)^y * s; savings-required: A = max(0, (T - CS * (1 + R)^Y) * R / ((1 + R)^Y - 1)); MS = A / 12; withdrawal projection: B_m = B_(m-1) * (1 + R / 12) + MC + (m % 12 === 0 ? AC : 0); realM = ((1 + R) / (1 + I))^(1 / 12) - 1; WCap = B * realM / (1 - (1 + realM)^-(RY * 12)); money-last: grow monthly by R / 12, subtract min(WD, balance), stop at zero balance or 12000 months
The calculator first clamps the pre-retirement and retirement periods from the entered ages. Each mode then uses the same fixed return and inflation assumptions differently: retirement-need mode discounts an income-replacement need, savings-required mode solves an annual contribution, withdrawal-capacity mode projects contributions then solves an inflation-adjusted monthly withdrawal, and money-last mode simulates monthly withdrawals from an existing amount.| Symbol | Meaning | How this page uses it |
|---|---|---|
| Solve | Retirement question | The selected mode: retirement need, savings required, withdrawal amount, or money last. |
| CA | Current age | The current age input used to compute the time until retirement. |
| RA | Retirement age | The planned retirement age input. |
| LE | Life expectancy | The age used to estimate how many retirement years are modeled. |
| Y | Years to retirement | max(0, retirement age minus current age). |
| RY | Retirement years | max(0, life expectancy minus retirement age). |
| CI | Current income | The annual pre-tax income input used in retirement-need mode. |
| g | Income-growth rate | Current income increase per year divided by 100. |
| p | Income-replacement percent | Income needed after retirement divided by 100. |
| OI | Other monthly income | Other retirement income after retirement per month. The formula multiplies this by 12 before subtracting it from the annual income need. |
| CS | Current savings | The current retirement savings input. |
| s | Future savings percent | Future retirement savings percent of income divided by 100. |
| R | Investment return | Average investment return per year divided by 100. |
| I | Inflation rate | Inflation rate per year divided by 100. |
| Need | Annual retirement need | Income at retirement times the income-replacement percent, less other annualized income, floored at zero. |
| Req | Required at retirement | The present value at retirement of the modeled annual retirement need over the modeled retirement years. |
| Proj | Projected savings at retirement | The estimated balance at retirement from current savings and modeled contributions. |
| Short | Shortfall or surplus | Projected savings at retirement minus required at retirement. |
| T | Target retirement amount | The amount needed at retirement age in savings-required mode. |
| A | Annual savings needed | The annual contribution solved to reach the target amount by retirement age. |
| MS | Monthly savings display | Annual savings needed divided by 12. It is not a separate monthly-compounding deposit solve. |
| MC | Monthly contribution | The monthly contribution used in withdrawal-amount mode when projecting savings to retirement. |
| AC | Annual contribution | The annual contribution added every 12th month in withdrawal-amount mode. |
| WD | Monthly withdrawal | The planned monthly withdrawal input used in money-last mode. |
| Dur | Money-last duration | The whole-month count until the simulated balance is depleted, capped at 12000 months. |
These examples use the app's current fixtures. They show how the formulas behave under fixed assumptions, not what any person needs to save or withdraw.
The Retirement Calculator is useful for comparing fixed-assumption retirement scenarios. The result can change sharply when ages, return, inflation, income growth, savings rate, target, or withdrawal amount change.
Geographic scope: works globally. The math is currency-agnostic, so enter amounts in your own currency; local taxes, fees, and product rules are not included.
Retirement-need mode grows your current income to retirement age, takes your chosen replacement percentage (75 percent by default), subtracts other income sources like a pension or Social Security estimate, and prices the resulting annual need over your retirement years at a real (inflation-adjusted) return. The default profile - age 35, retiring at 67, $85,000 income - produces a lump-sum requirement and the shortfall or surplus against your projected savings.
Savings-required mode solves exactly that: given a target amount, your current savings, years to retirement, and a return assumption, it computes the annual and monthly savings that close the gap. The math grows existing savings first, then solves the contribution annuity for the remainder - so starting earlier visibly shrinks the required monthly figure, which is the most actionable output on the page.
Withdrawal-capacity mode computes a sustainable inflation-adjusted monthly withdrawal from a balance over your retirement years. Money-last mode inverts it: at a fixed withdrawal (the default tests $4,000 per month against $750,000), it simulates monthly growth minus withdrawals until the balance hits zero and reports the duration. Together they bracket the drawdown question from both directions - all on fixed assumptions, with no market volatility, taxes, or benefit rules.
This calculator is an original four-mode retirement planner covering retirement need with real-return discounting, savings required, inflation-adjusted withdrawal capacity, and a money-last simulation, validated by deterministic fixtures and edge-case tests. It is not copied from a single source.
Fixtures pin each mode's formula path, including the real-rate conversion and the 12,000-month simulation cap. The result remains an educational estimate, not a pension projection or a retirement-income guarantee.
Formula version 2026.05.22-generic-retirement-planning-modes. The version marks the calculation logic and validation fixture set used for this estimate.
Results are educational estimates, not advice. Read the full disclaimer.
retirement
Project a 401(k) balance, estimate early withdrawal costs, and find the salary contribution needed to capture an employer match.
retirement
Estimate a required minimum distribution from a tax-deferred retirement account and project next year's RMD.
retirement
Estimate deferred annuity accumulation from starting principal, regular additions, growth rate, and contribution timing.
retirement
Estimate a fixed-length annuity payout amount or how long an annuity can last with a fixed payout.
investment
Solve an investment goal from starting amount, end amount, return rate, contribution amount, and investment length.
savings
Estimate savings growth from an initial deposit, growing contributions, interest, compounding, and tax drag.
investment
Project a starting amount and equal periodic deposits forward to a future value.
investment
Discount a future lump sum or a stream of equal periodic deposits back to today's value.
investment
Estimate future value from principal, a fixed annual rate, and whole-year annual compounding.