Retirement Calculator
Project retirement nest egg, inflation-adjusted purchasing power, longevity, and safe withdrawal scenarios.
Comprehensive dual-phase retirement planner simulating pre-retirement wealth accumulation and post-retirement decumulation. Factoring in salary growth, employer matching, investment returns, inflation drag, Social Security, and pensions to test if your savings will sustain your desired lifespan.
How this calculator works
Accumulation: FV = P*(1+r)^t + Σ [PMT_i * (1+r)^(t-i)]. Decumulation: Portfolio_(t+1) = (Portfolio_t - Spending_t * (1+inf)^t + SS_t + Pension_t) * (1 + r_post). Longevity = Years until Portfolio <= 0.
Key benefits
- Dual-phase accumulation and decumulation simulation
- Calculates both nominal dollars and inflation-deflated purchasing power
- Integrates Social Security and defined benefit pension cash flows
- Stress-tests portfolio longevity across ages 60 to 100
Assumptions & exclusions
- Assumes level annual returns; actual sequence of returns may vary significantly.
- Tax treatment depends on specific account types (pre-tax vs Roth).
Frequently asked questions
What is the difference between nominal and inflation-adjusted retirement savings?
Nominal balance is the actual dollar amount in your future account. Inflation-adjusted (real) balance translates that future sum into today’s purchasing power, showing what goods and services your money will actually buy.
What is considered a safe withdrawal rate in retirement?
The traditional rule of thumb, based on the Trinity Study, is 4.0% of your initial portfolio value adjusted annually for inflation. For early retirees (retiring before age 60), financial planners often recommend a more conservative 3.25% to 3.75%.
Why can the simulation show my plan lasting while I am still below the 25-times target?
The two results use different tests. The target is a simple benchmark that ignores growth after retirement, while the simulation credits your post-retirement return each year and lets Social Security rise with inflation. A plan can pass the detailed simulation and still fall short of the deliberately conservative benchmark.
Does this calculator assume my salary increases over time?
No. Your yearly contribution is calculated once from the salary you enter and held level in dollars for the whole projection, and the employer match is level too. If you expect raises, model them by re-running the page with a higher salary or a higher contribution percentage.
Are taxes taken out of the projection?
No. The simulation grows and spends balances before tax, so a dollar in a pre-tax account and a dollar in a Roth account look identical here even though their spendable value differs. Keep the tax treatment of your own accounts in mind when you judge the result.
What happens to the results if I retire five years earlier?
Retiring earlier attacks the plan from both sides: five fewer years of contributions, match and compounding, and five more years the portfolio must fund, with spending and income escalated further. Re-run the page with the earlier age and compare the nest egg, the target gap and the longevity result together.
Formula-Based Calculator · By QalcTools Editorial Team. Formulas tested against independent reference values · Content reviewed November 2026 by the QalcTools Editorial Team.
Methodology note: Actuarial cash-flow decumulation modeling consistent with IRS life expectancy tables.
Related calculators
Category: Investments & Retirement Calculators
About this calculator
A retirement plan is really two plans joined at one date: the years of building a nest egg, and the years of spending it down while other income helps. This calculator simulates both halves year by year. You set your ages, savings, salary, contribution rate, employer match, expected returns and inflation, plus the spending you want in retirement and the Social Security and pension income you expect. It then reports the nest egg at retirement in both future dollars and today’s purchasing power, whether the money lasts to your lifespan, and how your projected savings compare with a simple 25-times benchmark.
How it works
During the working years the engine adds your contribution and your employer’s match to the balance each year and credits investment growth. Your contribution is your salary multiplied by your contribution percentage, and the match applies the employer percentage to the smaller of your contribution rate and the match limit. Once you retire, the simulation flips: each year your desired spending, Social Security and pension are all raised by inflation, the portfolio pays only the gap between spending and those income sources, and the remaining balance keeps earning the post-retirement return. The year-by-year schedule shows both phases, in nominal and inflation-adjusted terms.
The formula, explained
Each working year: Balance += Salary × Contrib% + Salary × min(Contrib%, Match limit%) × Match% + Growth; Each retirement year: Portfolio pays max(0, Spending − Social Security − Pension), all inflation-escalated; Target nest egg = (Spending − Social Security − Pension) × 25
- Contrib% — Share of salary you contribute each working year (%)
- Growth — Annual investment growth credited by the engine in each phase ($/year)
- Spending — Desired annual retirement spending, entered in today’s dollars and escalated by inflation inside the simulation ($/year)
- Target nest egg — Benchmark fund size in today’s dollars: 25 times the annual spending the portfolio alone must cover ($)
The engine clamps current age to at least 18, retirement at least one year later, and lifespan at least one year past retirement, and caps each phase at 100 years. Contributions are computed once from the starting salary and held level in dollars — this engine does not grow the salary year by year. Growth in a working year is the starting balance plus half the year’s combined contributions, times the pre-retirement return. In retirement, growth is the balance minus half the year’s withdrawal, times the post-retirement return, and the withdrawal itself is capped at the balance available. Real balances divide nominal balances by the inflation factor for the years elapsed. The first-year portfolio withdrawal rate shown is the first retirement year’s portfolio need divided by the nominal nest egg.
Inputs and variables
| Variable | Meaning | Example |
|---|---|---|
| Current Age and Retirement Age | These two ages set the length of the accumulation phase. Every extra working year adds a contribution, a match and a year of compounding, and removes a year the portfolio must fund. | Age 40 now, retire at 65 |
| Life Expectancy (Lifespan) | The age the simulation must fund through. It sets the length of the spending phase, so a longer lifespan demands either a larger nest egg or lower annual spending. | 90 years |
| Current Savings | The retirement balance you start with today. It compounds for the whole accumulation phase, so an early balance has an outsized effect on the final nest egg. | $100,000 |
| Annual Salary | Your current gross salary. Contributions and the employer match are both calculated from this figure, and in this engine the dollar amounts stay level across the projection. | $90,000 |
| Employee Contribution (%) | The share of salary you save each year. At 10 percent of a $90,000 salary the engine adds $9,000 of your own money annually. | 10% of salary |
| Employer Match (%) and Match Limit (%) | How the employer tops up your saving: the match percentage is applied to your contribution only up to the limit percentage of salary. A 50 percent match on the first 6 percent adds at most 3 percent of salary. | 50% match, 6% limit |
| Pre-Retirement and Post-Retirement Returns (%) | The annual growth rates for the two phases. The post-retirement rate is often set lower to reflect a more cautious portfolio once withdrawals begin. | 7.0% before, 5.0% after |
| Inflation Rate (%) | The annual rise in prices used to escalate retirement spending and income, and to convert future balances into today’s purchasing power. | 2.5% per year |
| Desired Annual Spending | The yearly spending you want in retirement, in today’s dollars. The portfolio only has to fund the part of it not covered by Social Security and a pension. | $60,000 per year |
| Expected Social Security and Pension ($/yr) | Annual income from sources other than your portfolio, entered in today’s dollars. Every dollar here removes a dollar of annual need from the portfolio, year after year. | $24,000 Social Security, $0 pension |
Worked example
A 40-year-old with $100,000 saved earns $90,000, contributes 10 percent with a 50 percent employer match on the first 6 percent, earns 7 percent before retiring at 65 and 5 percent after, with 2.5 percent inflation, wants $60,000 a year of spending and expects $24,000 of Social Security.
- Ages: 40 now, retire at 65, lifespan 90
- Current savings / salary: $100,000 / $90,000
- Contribution and match: 10% employee; 50% match up to 6%
- Returns / inflation: 7.0% before, 5.0% after; 2.5% inflation
- Spending / Social Security: $60,000 / $24,000 per year
- Your contribution: $90,000 × 10% = $9,000 a year, $225,000 over 25 years. The match applies to the first 6% only: $90,000 × 6% × 50% = $2,700 a year, $67,500 in total.
- With the starting $100,000 and 7% growth on the balance plus half of each year’s additions, the nest egg at 65 reaches $1,308,657 in future dollars — $705,878 in today’s purchasing power.
- The 25-times benchmark: ($60,000 − $24,000) × 25 = a $900,000 target in today’s dollars, so the projection sits $194,122 below that benchmark.
- First retirement year: inflation lifts desired spending to $111,237 and Social Security to about $44,495, leaving $66,742 for the portfolio — a 5.1% first-year withdrawal rate.
- In the year-by-year simulation the portfolio still lasts the full 25 retirement years to age 90, helped by the 5% post-retirement return and inflation-rising Social Security.
Nest egg of $1,308,657 at 65 ($705,878 in today’s dollars) against a $900,000 benchmark target — a $194,122 gap in today’s dollars — with $225,000 contributed by the employee, $67,500 of employer match, and a 5.1% first-year withdrawal rate.
The two verdicts on this page measure different things, and this example shows why both are shown. The 25-times benchmark is a blunt rule that ignores the post-retirement growth the simulation credits, so it flags a shortfall; the year-by-year simulation, which lets the remaining balance keep earning 5 percent while Social Security rises with inflation, carries the plan to age 90. Treat the benchmark gap as a warning to strengthen the plan — a higher contribution or a later retirement closes it — rather than proof the plan fails, and treat survival in the simulation as dependent on those steady returns actually arriving.
Understanding your results
Keep the two nest egg figures straight. The nominal figure is the account balance you would actually see at retirement; the real figure restates it in today’s purchasing power, and it is the real figure the page compares with the 25-times target, because the target is also expressed in today’s dollars. A plan can look rich in future dollars and thin in today’s dollars at the same time — inflation over 25 years at 2.5 percent nearly halves the value of a dollar.
The contribution totals reveal where the nest egg comes from. In the example you and your employer together put in $292,500, yet the fund reaches over $1.3 million nominal: compounding does most of the work, which is why starting earlier and capturing the full match matter more than small differences in spending later. The longevity result then answers the only question that finally counts — does anything remain at your lifespan age — and the schedule shows the path, including the years when the balance falls fastest.
Assumptions and limitations
The simulation credits the same return every single year, before and after retirement, while real markets deliver uneven sequences in which early losses during the withdrawal years do lasting damage. Contributions are held level in dollars from your starting salary, so raises, career breaks and contribution increases are not reflected unless you re-run the page with new figures. No taxes are taken out anywhere in the projection, and the outcome will differ between pre-tax and Roth balances of the same size. Social Security and pension income are assumed to start at retirement and rise fully with inflation every year, with no claiming-age adjustment, earnings test or benefit change.
Common mistakes to avoid
- Reading the nominal nest egg as today’s money. A $1.3 million balance in 25 years buys what about $706,000 buys today at 2.5% inflation. Judge the plan by the real figure and the target comparison, not the headline number.
- Contributing below the full match limit. The match only applies up to its limit percentage. Contributing 3% when the plan matches the first 6% leaves half the employer money — an instant 50% return — unclaimed every year.
- Assuming the salary and contribution grow automatically. This engine holds your dollar contribution level from the starting salary. If you expect raises to lift your saving, model them by re-running with a higher salary or contribution rate.
- Entering retirement spending in future dollars. Spending is entered in today’s dollars and the engine escalates it by inflation. Entering an already-inflated figure double-counts inflation and makes the plan look far worse than it is.
- Treating one steady-return run as a promise. The projection is a single smooth path. Stress it with a lower post-retirement return and a longer lifespan before relying on it — small changes compound over decades.