Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Retirement explained: formula, worked example and common mistakes

Find out how much you need to retire and what to save each month to get there. Free, no sign-up, your numbers stay in your browser.

Updated

What is a retirement calculator?

A retirement calculator is a tool that projects how much money you need to accumulate by the time you stop working, and what monthly savings rate gets you there. It accounts for your current age, target retirement age, expected lifespan after retirement, monthly expenses in retirement, current savings, expected investment return, and inflation. The output is a target retirement corpus and a required monthly contribution to reach it.

Retirement planning is fundamentally a problem of two halves. In the accumulation phase (your working years), you save and invest, and your money grows through compounding. In the decumulation phase (your retirement years), you withdraw from the corpus, which keeps growing but at a slower rate than your withdrawals. The corpus needs to be large enough that you don’t run out of money before you run out of life. A retirement calculator models both halves in sequence and tells you whether your current trajectory works.

The single most important number in retirement planning is the safe withdrawal rate — the percentage of your starting corpus you can safely withdraw each year without depleting the corpus before you die. The classic “4% rule” comes from the Trinity Study (1998), which found that withdrawing 4% of the starting corpus in the first year of retirement, then adjusting that amount for inflation each subsequent year, would have sustained a 30-year retirement in 95%+ of historical scenarios for a portfolio of 50% US stocks and 50% US bonds. This implies a target corpus of 25× your annual expenses (1 ÷ 0.04 = 25).

So if you expect to need 40,000 per year in retirement (in today’s dollars), your target corpus at retirement is approximately 1,000,000 (25 × 40,000). This is the simplest version of retirement math, and it’s the starting point this calculator uses. The full picture includes additional income sources (a state pension, pension, rental income), taxes in retirement, healthcare costs, and sequence-of-returns risk — all of which the calculator can model as adjustments to the core calculation.

The reason most people underestimate what they need is that they think in nominal dollars (which inflation erodes) rather than real dollars (today’s purchasing power). A 1,000,000 corpus in 30 years buys roughly 412,000 worth of goods at 3% inflation. The calculator handles this by computing the corpus in nominal dollars at retirement time, but showing you the inflation-adjusted equivalent so you can see what the money actually buys.

The retirement corpus formula

The retirement corpus calculation has two parts: the corpus you need at retirement (the target), and the monthly savings required to reach that corpus (the path).

Part 1: The target corpus

Using the safe withdrawal rate method:

Corpus required = Annual expenses in retirement ÷ Safe withdrawal rate

Where:

  • Annual expenses in retirement = your expected annual spending in today’s dollars
  • Safe withdrawal rate — the share of the pot taken in the first year; test more than one

Worked example: 40,000 annual expenses in today’s dollars, 4% withdrawal rate.

Corpus = 40,000 ÷ 0.04 = 1,000,000 in today’s purchasing power.

To convert to nominal dollars at retirement (say 30 years from now, with 3% inflation):

Nominal corpus = 1,000,000 × (1.03)^30 = 1,000,000 × 2.427 = 2,427,000

This is the amount your account balance needs to show at retirement. It looks more impressive than the 1,000,000 figure, but it buys the same basket of goods.

Part 2: The monthly savings required

Once you know the target corpus, the monthly savings required is calculated using the SIP future value formula, solving for P (monthly contribution):

P = FV × i / [((1 + i)^n - 1) × (1 + i)]

Where:

  • FV = target corpus (in nominal dollars at retirement)
  • i = monthly investment return (annual return ÷ 12)
  • n = number of months until retirement (years to retirement × 12)

Worked example: target corpus 2,427,000, current savings 100,000, 30 years to retirement, expected return 7% annual (0.583% monthly).

First, calculate how much the current 100,000 will grow to:

Future value of current savings = 100,000 × (1.07)^30 = 100,000 × 7.612 = 761,200
Remaining corpus needed from monthly savings = 2,427,000 - 761,200 = 1,665,800

Monthly contribution required:

P = 1,665,800 × 0.00583 / [((1.00583)^360 - 1) × 1.00583]
P = 1,665,800 × 0.00583 / [7.612 × 1.00583]
P = 1,665,800 × 0.00583 / 7.656
P ≈ 1,268 per month

So a 35-year-old with 100,000 saved, expecting 7% returns and 3% inflation, needs to save approximately 1,268 per month for the next 30 years to retire with a corpus that supports 40,000/year in today’s dollars. The calculator runs these formulas automatically and shows the result for your specific inputs.

When to use a retirement calculator (and when not to)

Use this calculator when:

  • You are 5 to 40 years from retirement and want a target corpus and monthly savings rate.
  • You are deciding whether to retire early — moving retirement age from 65 to 55 dramatically increases the corpus needed (longer decumulation phase, shorter accumulation phase).
  • You want to test different scenarios: what if you save 10% vs. 15% of income? What if you work part-time for 5 years after retirement? What if you downsize your house and reduce expenses?
  • You are comparing job offers with different retirement benefits — a higher salary with no pension vs. a lower salary with a defined-benefit pension.
  • You are stress-testing your plan against bad scenarios — what if returns are 5% instead of 7%? What if inflation is 4% instead of 3%?

When NOT to use this calculator:

  • If you want a probabilistic view (success rate, failure scenarios), use the Monte Carlo Goal Simulator. This calculator uses a fixed rate of return, which ignores sequence-of-returns risk — the most important retirement risk.
  • If you want to test specific withdrawal strategies during retirement (e.g., 3% vs. 4% vs. 5% withdrawal rate), use the Withdrawal Sustainability Calculator. That calculator focuses on the decumulation phase.
  • If you want a single lump-sum projection (no monthly contributions), use the Compound Interest Calculator. This calculator assumes ongoing monthly savings.
  • If you want the monthly contribution needed to hit a specific dollar target (not a retirement corpus), use the Goal Planner or Investment Goal Calculator.

Common mistakes people make

1. Using nominal returns instead of real returns. If you expect 7% nominal returns and 3% inflation, your real return is about 4%. Most retirement calculators (including this one) let you enter either. If you enter nominal return and nominal inflation, the calculator handles the conversion internally — but you need to interpret the output as nominal dollars at retirement, not today’s purchasing power. The cleanest approach is to enter a real return (4% in this case) and ignore inflation in the calculator — the output is then in today’s purchasing power, which is what you actually care about.

2. Underestimating lifespan. The classic error is to plan for a 20-year retirement (to age 85), when modern medicine makes 30+ year retirements increasingly common. Plan to age 95 at minimum, ideally 100. The corpus needed for a 30-year retirement is roughly 50% larger than for a 20-year retirement at the same withdrawal rate. Outliving your money is the worst retirement outcome — plan for it.

3. Ignoring a state pension and pension income. Many people calculate the corpus needed to cover 100% of their retirement expenses, when a state pension might cover 30-50% of those expenses. Subtract expected a state pension and pension income from your annual expenses before dividing by the withdrawal rate. If you need 40,000/year and a state pension covers 18,000, your corpus only needs to generate 22,000/year — which at 4% withdrawal means a 550,000 corpus, not 1,000,000.

4. Underestimating what retirement costs. The familiar rule of thumb — that you need somewhat less than you earned — is often wrong in the early years, when there is suddenly time to spend money and healthcare may not yet be covered. Later years are often cheaper. Planning on the full figure is the cautious choice.

5. Forgetting about healthcare. Depending on where you live and what the state covers, healthcare can be the largest single line in a retirement budget, and the part that grows fastest. Long-term care is a separate question again. Both belong in the expense figure as their own line rather than buried in it.

6. Taking the 4% rule as settled. It was derived from one country’s history over one stretch of decades. Whether it holds for the next thirty years depends on returns and inflation nobody has seen yet, and a lower withdrawal rate implies a larger pot — the two are the same statement. Test more than one figure.

Frequently asked questions

How much money do I need to retire?

The short answer is 25× your annual expenses in retirement, using the 4% safe withdrawal rate. If you expect to need 40,000 per year in today's dollars, your target corpus is 1,000,000. This is the starting point — adjust for a state pension, pension, taxes, healthcare, and your personal risk tolerance.

What is the 4% rule?

The 4% rule comes from the Trinity Study (1998), which found that withdrawing 4% of the starting corpus in the first year of retirement, then adjusting that amount for inflation each year, sustained a 30-year retirement in 95%+ of historical scenarios for a 50/50 stock/bond portfolio. It implies a target corpus of 25× annual expenses.

What decides the age you can retire?

Arithmetic rather than preference: retiring earlier means a shorter time to build the pot and a longer time to live off it, and both move the required figure the same way. A decade either side changes it by a great deal. Part-time work in the early years pulls it down from both ends at once.

How does inflation affect retirement planning?

Inflation erodes the purchasing power of your corpus over time. A 1,000,000 corpus today buys roughly 412,000 worth of goods in 30 years at 3% inflation. Either enter a real (inflation-adjusted) return in the calculator, or interpret nominal results carefully. Plan for at least 3% long-term inflation; some planners use 3.5-4% for conservatism.

What is the safe withdrawal rate?

The share of the starting pot taken in the first year, then adjusted for inflation each year after, that the pot can sustain without running out. The widely quoted figure comes from the Trinity Study; later work has argued for lower figures under different starting conditions. The calculator lets you test any of them rather than assuming one.

How does a state pension affect retirement planning?

a state pension reduces the corpus you need to accumulate. If your annual expenses are 40,000 and a state pension pays 18,000/year, your corpus only needs to generate 22,000/year. At a 4% withdrawal rate, that's a 550,000 corpus instead of 1,000,000.

What does an adviser add to a retirement plan?

For most people with simple situations (W-2 income, standard retirement accounts, no business ownership), DIY retirement planning with calculators like this one is sufficient. For complex situations (business owners, equity compensation, large ordinary accounts, estate planning), a fee-only fiduciary advisor can pay for themselves many times over. Avoid advisors who earn commissions on products they recommend.

What if I want to retire early (FIRE)?

Early retirement (Financial Independence, Retire Early) requires a much larger corpus. A 40-year retiree needs roughly 33× annual expenses (using a 3% withdrawal rate for added safety); a 50-year retiree needs 40×. The accumulation phase is also shorter, requiring much higher savings rates (often 50%+ of income). Use the Monte Carlo Goal Simulator to stress-test an early retirement plan against sequence-of-returns risk.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “Retirement Calculator”. Updated 2026-10-27. https://investmentmathcalculator.com/guides/retirement-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.