Skip to content

Retirement Calculator - Plan Your Financial Independence

Free retirement calculator estimates when you can retire based on savings, expenses, and investment returns. Plan your path to financial independence today.

Retirement Calculator

Calculate how long you have until you can retire based on your financial parameters.

Loading calculator...
📚

Documentation

What is a retirement calculator?

A retirement calculator is a tool that estimates how many years a person must keep saving before they can afford to retire. It uses current age, savings, income, spending, taxes, inflation, and expected investment returns to project a savings balance year by year, then finds the first year that balance is large enough to fund the rest of retirement.

The result is an estimated retirement age and a chart of projected savings over time. The estimate depends entirely on the numbers entered. Small changes in the assumed rate of return or spending level can shift the result by years.

How to calculate retirement age

The calculator works in two phases. During the saving phase, it adds a yearly contribution to the balance and credits investment growth. During the retirement phase, it subtracts yearly spending instead. Each year before retirement, it checks whether the current balance is already enough to cover every year of spending left until life expectancy. The first age where that check passes is the retirement age.

Inputs

  • A — current age
  • L — life expectancy
  • Sm — monthly savings amount
  • Em — expected monthly spending in retirement, in today's dollars
  • T — expected tax rate, as a decimal (for example, 22% = 0.22)
  • I — expected inflation rate, as a decimal
  • C — current savings
  • R — expected nominal annual interest rate, as a decimal
  • P — annual pension income
  • H — desired inheritance to leave at death

Step 1: Annual contribution

Sa=12×SmS_a = 12 \times S_m

Monthly savings are added up for the year. This money has already been taxed as income, so it is not taxed again when it goes into savings.

Step 2: Annual spending covered by savings

Enet=12×EmP×(1T)E_{\text{net}} = 12 \times E_m - P \times (1 - T)

Pension income is taxed at the same rate as investment income. The after-tax pension offsets part of yearly spending; savings must cover the rest.

Step 3: Real interest rate

Rreal=1+R1+I1R_{\text{real}} = \frac{1 + R}{1 + I} - 1

This converts the nominal return into a real return: what the money actually gains after inflation eats into it.

Step 4: After-tax real rate of return

r=Rreal×(1T)r = R_{\text{real}} \times (1 - T)

Investment gains are taxed at rate T. This is the rate the balance actually grows (or shrinks, during withdrawals) by each year.

Step 5: Required savings formula

To retire at a given age, the balance must be large enough to fund every remaining year of spending, plus the inheritance, in present-value terms. With n years remaining until life expectancy:

Required(n)=Enet×1(1+r)nr+H(1+r)n\text{Required}(n) = E_{\text{net}} \times \frac{1 - (1 + r)^{-n}}{r} + \frac{H}{(1 + r)^n}

If r is 0, this simplifies to a straight multiplication:

Required(n)=Enet×n+H\text{Required}(n) = E_{\text{net}} \times n + H

This is the present value of an annuity: the amount of money needed today, invested at rate r, that can pay out Enet every year for n years and still leave H at the end. It is smaller than simply multiplying yearly spending by the number of years remaining, because the leftover balance keeps earning a return while it is being drawn down.

Step 6: Year-by-year projection and retirement condition

Starting from the current balance C, the calculator steps forward one year at a time.

While still working:

Balancen+1=Balancen×(1+r)+Sa\text{Balance}_{n+1} = \text{Balance}_n \times (1 + r) + S_a

After retiring:

Balancen+1=Balancen×(1+r)Enet\text{Balance}_{n+1} = \text{Balance}_n \times (1 + r) - E_{\text{net}}

Each year before retirement, the calculator compares the current balance to Required(n), where n is the number of years left until life expectancy at that point. The first age at which the balance meets or exceeds Required(n) becomes the retirement age. If the balance never catches up before life expectancy, the calculator reports the shortfall: the gap between Required(n) and the balance in the last year retirement is still possible.

Example

Consider someone who is 45 years old, expects to live to 85, and has 200,000savedalready.Theysave200,000 saved already. They save 1,500 a month, plan to spend 3,000amonthinretirement(intodaysdollars),andexpecta63,000 a month in retirement (in today's dollars), and expect a 6% annual return before a 22% tax rate and 2.5% inflation. They expect 15,000 a year in pension income and want to leave a $50,000 inheritance.

Step 1 — Annual contribution: Sa = 12 × 1,500 = $18,000

Step 2 — Annual spending from savings: Enet = 12 × 3,000 − 15,000 × (1 − 0.22) = 36,000 − 11,700 = $24,300

Step 3 — Real interest rate: Rreal = 1.06 / 1.025 − 1 ≈ 3.41%

Step 4 — After-tax real rate: r = 3.41% × (1 − 0.22) ≈ 2.66%

Steps 5–6 — Projecting forward: the calculator adds 18,000ayear,compoundedat2.6618,000 a year, compounded at 2.66%, and checks each year against the required-savings formula. At age 56, with 29 years left until life expectancy, the projected balance is about 493,600 — short of the roughly 510,000neededtofund29yearsofretirementspendingplustheinheritance.Byage57,with28yearsleft,theprojectedbalancereachesabout510,000 needed to fund 29 years of retirement spending plus the inheritance. By age 57, with 28 years left, the projected balance reaches about 524,800, above the roughly $499,300 now required (fewer years left means a smaller required amount). Retirement age: 57, twelve years from now.

Retirement planning use cases

Individuals use this kind of calculator to test how changing a savings rate, retirement age, or spending target changes the result. Financial advisers use it to walk clients through scenarios. It also works as a teaching tool for compound interest, inflation, and the effect of taxes on long-term savings.

The calculator is a simplified model. It assumes a constant real rate of return every year, which real markets never provide, and it does not account for market downturns near retirement, changes to tax law, employer matching, or Social Security rules. It is a starting point for planning, not a substitute for a financial adviser.

Frequently asked questions

Are monthly savings contributions taxed by this calculator? No. Contributions are treated as money already taxed as ordinary income. Only investment returns and pension income are taxed in the calculation.

Why isn't required savings just yearly spending times years remaining? Because the money keeps earning a return while it is withdrawn. The calculator uses the present value of an annuity, which is smaller than a flat multiplication whenever the after-tax real rate of return is above zero.

How does inflation affect the result? Inflation lowers the real rate of return, calculated with the Fisher equation: (1 + nominal rate) / (1 + inflation rate) − 1. A higher inflation rate means the balance grows more slowly in real terms, which delays the retirement age.

Is Social Security or pension income taxed the same way as investment returns? In this calculator, yes. Pension income is reduced by the same tax rate applied to investment growth before it offsets retirement spending.

What does the "shortfall" result mean? It appears when the projected balance never reaches the required amount before life expectancy. It is the dollar gap, in present-value terms, between the balance and what would be needed in the last year retirement was still mathematically possible.

What is a typical rate of return to enter? Historical long-term stock market returns average roughly 7-10% a year before inflation; more conservative portfolios often return less. The figure entered should reflect the investor's own mix of assets and risk tolerance, since actual returns vary from year to year.

References

  1. Investopedia: Retirement Planning
  2. U.S. Department of Labor: Savings Fitness
  3. Investopedia: Present Value of an Annuity
  4. Investopedia: Fisher Equation