Investing & Retirement FIRE & Social Security Timing Future value of an annuity (time value of money) with a 4%-rule target

Years to Financial Independence Calculator

This calculator solves for time. It takes what you have invested, what you add each year, and what you spend, works out the portfolio you need at your withdrawal rate, and then inverts the annuity growth formula to find the number of years until the two meet. The dominant driver is not your investment return — it is your savings rate, because every dollar you do not spend both raises what you contribute and lowers the target you are contributing towards. The result is a year count, an age, and the effect of shifting your savings rate five points in either direction.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Invested assets todayEverything you could draw a retirement income from — brokerage, 401(k), IRA, HSA — but not the home you live in.150000 $
Amount invested per yearYour own contributions plus any employer match, totalled across every account.40000 $
Annual spendingWhat you actually spend in a year; this sets both your savings rate and the size of the target.60000 $
Your age nowUsed only to turn the year count into the age at which you reach financial independence.35 yr
Expected real returnReturn after inflation and fees; 4-7% is the usual planning range for a stock-heavy portfolio, and using a real return keeps every dollar here in today's money.5 %
Safe withdrawal rateThe rate you will draw in your first year of retirement; it sets the target as spending divided by this rate.4 %

It returns

  • Years to financial independence — From today, assuming contributions and spending stay level in real terms.
  • Age at financial independence
  • Target portfolio — Annual spending divided by the withdrawal rate, in today's dollars.
  • Savings rate — Amount invested divided by amount invested plus spending.
  • Years if you save 5 points more — Same total income, a savings rate five percentage points higher, so spending and the target both fall.
  • Years if you save 5 points less
  • Total contributed before you get there — Annual amount invested times the number of years — the rest of the target comes from growth.

The formula

n=ln[Fi+APi+A]ln(1+i)
B=P(1+i)n+A(1+i)n1i
s=AA+S

In plain text: n = ln[(F·i + A) / (P·i + A)] / ln(1 + i), where F = S / w

  • nYears until the portfolio reaches the target (yr)
  • FTarget portfolio — annual spending divided by the withdrawal rate ($)
  • PInvested assets today ($)
  • AAmount invested each year, assumed paid at the end of each year ($/yr)
  • iExpected real return per year, as a decimal (decimal)
  • SAnnual spending ($/yr)
  • wSafe withdrawal rate as a decimal (decimal)

This inverts the future-value identity P(1+i)ⁿ + A[((1+i)ⁿ − 1)/i] = F. When i = 0 the logarithms collapse and the answer is simply (F − P)/A. Because i is a real return, every dollar in the calculation stays in today's purchasing power.

Updated Category FIRE & Social Security Timing Verified against published test cases Reading time 14 min

Why the answer depends on your savings rate more than your salary

The question this calculator answers is how many years pass before your invested balance equals the portfolio that funds your spending. Three quantities decide it: what you already have, what you add each year, and how big the target is. The first two are obvious. The third is where the interesting behaviour lives, because the target is set by your spending — and your spending also determines how much you can add.

That double role is why the savings rate, defined as the amount invested divided by the amount invested plus the amount spent, is the dominant variable. Raise it by cutting spending and two things happen simultaneously: contributions go up, and the finish line moves towards you, because a smaller spending figure divided by the same withdrawal rate is a smaller target. A pay rise you invest entirely only does the first of those. That asymmetry is the reason a household earning $90,000 and saving half of it reaches independence sooner than one earning $250,000 and saving 15% of it.

It also means the answer is largely independent of income level. At a 50% savings rate with zero starting assets, a 5% real return and a 4% withdrawal rate, the timeline is about 16.6 years whether you earn $60,000 or $600,000, because both the contribution and the target scale with income. Income determines your standard of living at independence; the savings rate determines when you get there.

The starting balance is what breaks that scale-invariance in your favour. Assets already invested compound without any further effort, which is why the same savings rate produces a shorter timeline for someone with $300,000 banked than for someone starting at zero. If your existing assets are already large enough to reach the target through growth alone by a chosen age, you are at the Coast FIRE point and further contributions become optional rather than necessary.

Inverting the growth equation to solve for time

Start with the forward equation. A balance P growing at rate i with an annual contribution A added at the end of each year reaches, after n years:

B = P(1 + i)n + A · [((1 + i)n − 1) ÷ i]

The first term is compound growth on what you already own; the second is the future value of an ordinary annuity — the contribution stream. Set B equal to the target F, gather the terms in (1 + i)n, and you get (1 + i)n = (F·i + A) ÷ (P·i + A). Take logarithms of both sides and divide by ln(1 + i):

n = ln[(F·i + A) ÷ (P·i + A)] ÷ ln(1 + i)

Two details in that expression matter. The numerator inside the log contains F·i — the income the target itself throws off — and the denominator contains P·i, the income your current assets throw off. So the ratio is really comparing the total annual inflow you need against the total annual inflow you have. A common shortcut version of this formula drops the P·i term and writes ln[1 + (FPi/A], which is only correct when you start from zero; it overstates the timeline for anyone with existing assets, sometimes by years.

The second detail is that the formula divides by i implicitly and by ln(1 + i) explicitly, so i = 0 has to be handled separately. With no growth, the target is closed purely by contributions: n = (FP) ÷ A. This calculator branches to that case exactly rather than approximating it.

Real returns, not nominal ones

Enter a return net of inflation. Doing so keeps every dollar on the page in today's purchasing power: your spending, your contributions and your target are all quoted in current money, and the timeline is comparable to your own experience of prices. Feeding in a nominal 8% while holding spending flat in today's dollars silently assumes your lifestyle gets cheaper every year, and shortens the answer by several years. If you would rather work in nominal terms, use the FIRE number calculator to inflate the target first and enter a nominal return here.

Worked example: $150,000 invested, $40,000 a year, $60,000 of spending

You are 35, you have $150,000 invested, you put away $40,000 a year including your employer match, and you spend $60,000. You assume a 5% real return and a 4% withdrawal rate.

  1. Find the target. F = $60,000 ÷ 0.04 = $1,500,000.
  2. Find your savings rate. $40,000 ÷ ($40,000 + $60,000) = 40%.
  3. Build the numerator. F·i + A = $1,500,000 × 0.05 + $40,000 = $75,000 + $40,000 = $115,000.
  4. Build the denominator. P·i + A = $150,000 × 0.05 + $40,000 = $7,500 + $40,000 = $47,500.
  5. Take the log of the ratio. $115,000 ÷ $47,500 = 2.42105; ln(2.42105) = 0.884202.
  6. Divide by ln(1.05). ln(1.05) = 0.048790, so n = 0.884202 ÷ 0.048790 = 18.12 years.
  7. Convert to an age. 35 + 18.12 = 53.1.

Check it forwards. After 18.12 years the growth factor is 1.0518.12 = 2.4210, so the existing assets become $150,000 × 2.4210 = $363,150 and the contribution stream becomes $40,000 × (2.4210 − 1) ÷ 0.05 = $40,000 × 28.421 = $1,136,840. Together that is $1,499,990 — the target, to rounding.

Now the lever. Total income here is $100,000. Move the savings rate from 40% to 45% and you invest $45,000 while spending $55,000, which cuts the target to $1,375,000. Rerun the formula from zero assets and the timeline falls from 21.64 years to 19.01; from the same $150,000 starting balance it falls from 18.12 to 15.85. Five percentage points of savings rate bought roughly two and a quarter years. Note that the contributions do only part of the work: you will contribute $40,000 × 18.12 = $724,800 in total, your existing $150,000 is already there, and growth supplies the remaining $625,200 of the target.

What the number does and does not promise

Read the year count as a planning midpoint, not a date. The formula assumes a constant real return applied smoothly year after year, and real markets do nothing of the sort. A sequence that front-loads good years can pull the date in by several years; one that front-loads a bear market can push it out by as many. What the smooth model gets right is the shape of the answer — which lever moves it, and by how much — and that is what you use it for.

Compare the three timelines the calculator returns rather than fixating on the middle one. The spread between the plus-five and minus-five figures tells you how sensitive your plan is to spending discipline. A wide spread means the savings rate is doing the work and small lifestyle changes matter enormously. A narrow spread usually means your existing assets are already large relative to the target, so returns are doing the work and further frugality buys less than it used to.

Watch the contributions figure too. Early in a plan, most of the target arrives as contributions; late in a plan, most of it arrives as growth. If total contributions are close to the whole target, you are early in the curve and additional saving has maximum leverage. If contributions are a small fraction of it, you are in the compounding phase and the biggest risks to your date are market returns and fee drag rather than your budget. That is the moment to check your expense ratio drag, because a 0.75% fee comes straight off the real return you entered.

Three assumptions deserve explicit testing. First, level real contributions: most careers do not have flat real income, and a plan that assumes today's saving continues for twenty years is optimistic for anyone facing childcare and conservative for anyone early in a career. Second, level real spending: if you plan to pay off a mortgage before the target date, your retirement spending is lower than today's and the target should reflect that, not today's outflows. Third, tax. Money in a traditional 401(k) is not yours in full, and a target built on pre-tax balances overstates what you can actually spend.

Finally, remember that the target itself embeds a withdrawal-rate assumption you should interrogate separately with the safe withdrawal rate calculator. Moving from 4% to 3.5% raises the target from $1,500,000 to $1,714,286, which on the worked example above pushes the date from 18.12 years to 19.95 — an addition of 1.8 years, comparable in size to the 2.3 years that a five-point rise in the savings rate removes. Test both before you commit to a date.

Years to financial independence by savings rate

Starting from zero invested assets, with a 5% real return and a 4% withdrawal rate. The target is 25 times the spending that remains after saving, so both columns move together as the rate changes.
Savings rateTarget as a multiple of incomeYears to FI
10%22.5×51.4
15%21.25×42.8
20%20.0×36.7
25%18.75×31.9
30%17.5×28.0
40%15.0×21.6
50%12.5×16.6
60%10.0×12.4
70%7.5×8.8
80%5.0×5.6

Every figure is the formula above evaluated at P = 0, i = 0.05, w = 0.04. Because both the contribution and the target scale with income, the year counts hold at any income level — which is why this table needs no dollar figures. Existing invested assets shorten each row.

The savings rate must be measured, not estimated

Use the same twelve months for both halves of the fraction. Add up everything that actually went into invested accounts over the last year — your contributions, your employer's match, and any lump sums — and everything that actually left your accounts as spending. Do not compute the savings rate as a percentage of gross salary, because payroll taxes and health premiums sit in neither bucket and will distort it in whichever direction happens to flatter you. If you want a dedicated tool for this measurement, the retirement savings rate calculator handles the definitional details.

Assumptions this model makes that reality does not

  • Returns arrive smoothly. A constant real return is a modelling convenience. Sequence risk means the same average can produce dates several years apart, and it matters most in the final third of the accumulation.
  • Contributions are level in real terms. Careers are not flat. Model a raise or a career break by rerunning with the new figures rather than averaging them.
  • Contributions arrive at the end of each year. Investing monthly gets money to work sooner and shortens the timeline slightly — typically by a few months over a twenty-year horizon.
  • Spending after independence equals spending now. Often false in both directions: a mortgage that ends lowers it, while buying your own health insurance raises it.
  • All balances are equally spendable. A traditional 401(k) owes income tax on withdrawal, and money in retirement accounts before 59½ needs a Rule 72(t) plan or a Roth conversion ladder to reach without penalty.
  • No income arrives from anywhere else. Social Security, a pension or an inheritance reduces the portfolio you need, but only from the year it starts.

How this fits with the other timeline tools

Three related questions each need a different calculation. “How much?” is a single division and belongs to the FIRE number calculator. “Can I stop contributing and still arrive on time?” is the Coast FIRE question, which discounts the target back to today at your expected return instead of solving for time. “Will the money survive once I stop?” is a depletion question that needs a withdrawal sequence rather than a growth formula.

There is also a generic version of this arithmetic that is worth knowing about, because it applies to any goal and not only to independence: the same inversion answers “when does this account reach $X?” for a house deposit, a college fund or a sabbatical. The investment goal timeline calculator handles that framing, and the compound interest calculator runs the same equation forwards if you would rather fix the years and see the balance.

Use this page the way a practitioner uses a model: to rank interventions, not to predict a date. Run it once with your current figures, then run it three more times — once with a savings rate five points higher, once with a real return one point lower, and once with a withdrawal rate of 3.5% instead of 4%. The spread across those four answers is your honest planning range, and it is usually wide enough that any single date to the decimal place is false precision. Recompute annually against measured spending and a measured balance, and the range narrows on its own as the compounding term takes over from the contribution term.

Key terms

Savings rate
Amount invested divided by amount invested plus amount spent, measured over the same period. It is the single strongest predictor of the timeline because it moves contributions and the target in opposite directions.
Real return
Investment return after inflation and fees. Using it keeps the whole calculation in today's purchasing power so the target does not need separate inflating.
Ordinary annuity
A stream of equal payments made at the end of each period. The contribution term in this formula is the future value of one.
Coast FIRE
The point at which existing assets alone will grow into the full target by a chosen age with no further contributions. It arrives before financial independence itself.

Frequently asked questions

What savings rate do I need to retire in ten years?

About 66–67% starting from zero assets, at a 5% real return and a 4% withdrawal rate. The table above brackets it: 60% gives 12.4 years and 70% gives 8.8, and solving the formula for exactly ten years puts the rate at 66.5%. Existing invested assets shorten it materially — someone with five times their annual spending already invested reaches ten years at a noticeably lower rate. Enter your own starting balance rather than reading the zero-asset row, because that term does more work than most people expect.

Should I enter a real return or a nominal one?

Real, meaning after inflation and after fees. Everything else on the page — your spending, your contributions, the target — is in today's dollars, so the return must be too. If you enter a nominal 8% while leaving spending in current money you are implicitly assuming your lifestyle gets cheaper every year, and the timeline comes out several years short. Subtract your expected inflation and your fund expense ratios from your nominal expectation.

Why is my timeline shorter than the savings-rate table suggests?

Because the table starts from zero invested assets and you have not. Existing assets compound without further effort, so they close part of the gap on their own. In the formula this shows up as the denominator term P·i: the larger your current balance, the larger that denominator and the smaller the logarithm. It is also the reason the same savings rate becomes progressively more powerful the longer you have been at it.

Does the calculator account for taxes?

Not directly, and you need to handle it in two places. First, your annual spending figure should include the income tax you expect to pay on retirement withdrawals, which raises the target. Second, a balance held in a traditional 401(k) or IRA is not fully yours, so a target expressed in pre-tax dollars overstates what you can spend. The cleanest fix is to work entirely in after-tax spending terms and treat your account mix as a separate question.

What if I plan to increase my savings each year?

This model assumes level real contributions, so rising contributions will beat its estimate. The practical approach is to bracket rather than model: run it with today's figure for a conservative date and with your expected mid-career figure for an optimistic one, then recompute annually as the real number becomes known. Averaging the two contribution levels understates the answer's sensitivity, because later contributions have less time to compound than earlier ones.

Why does the answer say the target is never reached?

Because contributions and growth together cannot exceed the gap at the figures entered. That happens when the annual amount invested is zero or very small and the real return is zero or negative, so nothing closes the distance. Check the real return first — a negative figure means the portfolio loses purchasing power each year — and then the contribution field. It can also happen with a very low withdrawal rate, which pushes the target above what the inputs can ever reach.

How accurate is a projection twenty years out?

Accurate about the ranking of your choices and vague about the date. The mathematics is exact given its inputs, but one of those inputs is a twenty-year average return you cannot know, and the order in which returns arrive changes the date even when the average holds. Treat a result of 18.1 years as “roughly the late fifties”, run it again with a return a point lower, and use the spread rather than the point estimate.

Does reaching financial independence mean I have to stop working?

No — it means employment income becomes optional rather than structural. Many people who reach the target keep working, negotiate differently, or shift to lower-paid work they prefer, and each of those extends the portfolio's life because withdrawals start later or smaller. The date this calculator returns is the point at which the constraint releases, which is a different thing from a retirement date.

Should I count my house or my emergency fund?

Count neither in the invested-assets field. A primary residence produces shelter rather than withdrawals, and an emergency fund exists precisely so you do not have to sell investments at a bad moment — spending it into the portfolio defeats its purpose. What the house does instead is lower your spending once the mortgage ends, which cuts the target through the division and often shortens the timeline more than adding the equity would.

References

  • Determining Withdrawal Rates Using Historical Data — William P. Bengen, Journal of Financial Planning, October 1994
  • Fundamentals of Corporate Finance (time value of money and annuity formulas) — Ross, Westerfield and Jordan, McGraw-Hill Education
  • Retirement Savings: Choosing a Withdrawal Rate That Is Sustainable — Philip L. Cooley, Carl M. Hubbard and Daniel T. Walz, AAII Journal, February 1998