Calcs.finance

retirement calculator

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

Enter your numbers

Help
Retirement question

Result

Retirement result
Projected savings are $392,113.37 below the estimated retirement need.
Required at retirement
$2,485,143.11
Projected savings at retirement
$2,093,029.74
Shortfall or surplus
-$392,113.37
Annual savings needed
$0.00
Monthly savings needed
$0.00
Monthly withdrawal capacity
$0.00
Money lasts months
0
Money lasts years
0
Retirement years
23

Working scenario

New scenario

Not saved yet

Compare

Saved scenarios

Compare saved versions

Compare

Save this result, then use saved scenarios to switch between assumptions.

How the Retirement Calculator works

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.

Retirement Calculator formula

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.
SymbolMeaningHow this page uses it
SolveRetirement questionThe selected mode: retirement need, savings required, withdrawal amount, or money last.
CACurrent ageThe current age input used to compute the time until retirement.
RARetirement ageThe planned retirement age input.
LELife expectancyThe age used to estimate how many retirement years are modeled.
YYears to retirementmax(0, retirement age minus current age).
RYRetirement yearsmax(0, life expectancy minus retirement age).
CICurrent incomeThe annual pre-tax income input used in retirement-need mode.
gIncome-growth rateCurrent income increase per year divided by 100.
pIncome-replacement percentIncome needed after retirement divided by 100.
OIOther monthly incomeOther retirement income after retirement per month. The formula multiplies this by 12 before subtracting it from the annual income need.
CSCurrent savingsThe current retirement savings input.
sFuture savings percentFuture retirement savings percent of income divided by 100.
RInvestment returnAverage investment return per year divided by 100.
IInflation rateInflation rate per year divided by 100.
NeedAnnual retirement needIncome at retirement times the income-replacement percent, less other annualized income, floored at zero.
ReqRequired at retirementThe present value at retirement of the modeled annual retirement need over the modeled retirement years.
ProjProjected savings at retirementThe estimated balance at retirement from current savings and modeled contributions.
ShortShortfall or surplusProjected savings at retirement minus required at retirement.
TTarget retirement amountThe amount needed at retirement age in savings-required mode.
AAnnual savings neededThe annual contribution solved to reach the target amount by retirement age.
MSMonthly savings displayAnnual savings needed divided by 12. It is not a separate monthly-compounding deposit solve.
MCMonthly contributionThe monthly contribution used in withdrawal-amount mode when projecting savings to retirement.
ACAnnual contributionThe annual contribution added every 12th month in withdrawal-amount mode.
WDMonthly withdrawalThe planned monthly withdrawal input used in money-last mode.
DurMoney-last durationThe whole-month count until the simulated balance is depleted, capped at 12000 months.

Step by step

  1. Read the selected retirement question and the matching age, income, savings, contribution, return, inflation, target, amount-have, and withdrawal fields.
  2. Compute Y as max(0, retirementAge - currentAge) and RY as max(0, lifeExpectancy - retirementAge). These clamps prevent negative planning periods.
  3. In retirement-need mode, grow current income to retirement with IncRet = currentIncome * (1 + incomeIncrease / 100)^Y.
  4. Apply the income-replacement percent and subtract other monthly income multiplied by 12, then floor the annual retirement need at 0.
  5. Convert return and inflation into a real annual return with realR = (1 + R) / (1 + I) - 1.
  6. Discount the level annual retirement need over RY retirement years. If the real return is near 0, use annual need times retirement years; otherwise use the annuity present-value factor.
  7. Project retirement-need savings with a yearly loop: grow the previous balance by the investment return, then add that year's income times the future savings percent.
  8. Set shortfall or surplus to projected savings at retirement minus required at retirement.
  9. In savings-required mode, grow current savings to retirement, then solve the annual contribution needed to reach the target retirement amount.
  10. If years to retirement is 0 or less, savings-required mode returns the target minus current savings, floored at 0. If the return rate is 0, it divides the remaining gap by years.
  11. Display monthly savings needed as annual savings needed divided by 12. This is a display conversion, not a separate monthly-deposit formula.
  12. In withdrawal-amount mode, convert years to retirement into rounded months, grow the balance monthly, add the monthly contribution after growth, and add the annual contribution every 12th month.
  13. Use a real monthly return from investment return and inflation, then amortize the projected retirement balance across RY * 12 months to estimate monthly withdrawal capacity.
  14. In money-last mode, start with the amount-have input, grow it by the nominal monthly investment return, subtract the smaller of planned withdrawal or current balance, and count whole months until the balance is depleted.
  15. If monthly withdrawal is 0 or less, money-last mode returns the 12000-month cap. That cap is a safety branch, not a longevity or benefit forecast.
  16. Round displayed currency outputs to two decimals after each mode's calculation and keep mode-specific unused outputs at 0.
  17. Use official or primary sources before turning this generic planning math into Social Security, pension, retirement-plan, annuity, tax, investment-product, inflation-statistic, accounting, legal, lending, regulated advice, or jurisdiction-specific claims.

Worked example

Default examples across the four retirement modes

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.

  1. Retirement-need fixture: current age 35, retirement age 67, life expectancy 90, current income $85,000, income growth 3 percent, income replacement 75 percent, other income $1,200 per month, current savings $120,000, future savings 12 percent of income, return 6 percent, and inflation 3 percent.
  2. The app models 32 years to retirement and 23 retirement years. The required amount at retirement is $2,485,143.11.
  3. The same fixture projects savings at retirement of $2,093,029.74, so the displayed shortfall is $392,113.37.
  4. Savings-required fixture: with current age 35, retirement age 65, current savings $75,000, a $1,000,000 target, and 6 percent return, the annual savings solve is $7,200.24.
  5. The app displays monthly savings needed as $600.02 because it divides the annual savings solve by 12.
  6. Withdrawal-capacity fixture: current age 50, retirement age 67, life expectancy 92, current savings $250,000, no monthly or annual contributions, 5 percent return, and 3 percent inflation project $583,879.71 at retirement.
  7. That projected balance supports an estimated inflation-adjusted withdrawal capacity of $2,453.44 per month over 25 modeled retirement years.
  8. Money-last fixture: amount-have $750,000, monthly withdrawal $4,000, and 5 percent return lasts 366 simulated months, displayed as 30.5 years.
  9. These outputs are mechanical estimates from the entered assumptions. They are not Social Security estimates, pension valuations, annuity quotes, tax answers, investment recommendations, lender decisions, or personalised financial advice.

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.

Assumptions and what this calculator ignores

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.

What this formula does not include

Common mistakes to avoid

Key terms

Retirement need
The modeled amount required at retirement for the entered income need. The app estimates it from income growth, replacement percent, other income, retirement years, return, and inflation.
Real return
A return assumption adjusted for inflation inside need and withdrawal formulas. The app uses real annual or monthly return when estimating required amount or withdrawal capacity.
Money-last duration
The whole-month count until the simulated balance is depleted. It uses the amount-have and monthly-withdrawal inputs, a nominal monthly return, and a 12000-month cap.

Frequently asked questions

How much money will I need at retirement by this calculator's math?

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.

Can it tell me how much to save each month for retirement?

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.

What do the withdrawal and how-long-will-it-last modes do?

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.

Methodology, sources, and disclaimer

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.

Related reading

When another calculator fits better

retirement

401K Calculator

Project a 401(k) balance, estimate early withdrawal costs, and find the salary contribution needed to capture an employer match.

retirement

RMD Calculator

Estimate a required minimum distribution from a tax-deferred retirement account and project next year's RMD.

retirement

Annuity Calculator

Estimate deferred annuity accumulation from starting principal, regular additions, growth rate, and contribution timing.

retirement

Annuity Payout Calculator

Estimate a fixed-length annuity payout amount or how long an annuity can last with a fixed payout.

investment

Investment Calculator

Solve an investment goal from starting amount, end amount, return rate, contribution amount, and investment length.

savings

Savings Calculator

Estimate savings growth from an initial deposit, growing contributions, interest, compounding, and tax drag.

investment

Present Value Calculator

Discount a future lump sum or a stream of equal periodic deposits back to today's value.