How to use this calculator
Enter your current invested savings — retirement accounts included.
Enter the amount you invest in a typical month.
Enter the annual spending the portfolio must eventually cover. A good first pass is your current yearly spending minus what work costs you.
Set the withdrawal rate: 4% is the classic rule; use 3–3.5% if you expect a long retirement or want more margin.
Enter an expected annual return in inflation-adjusted terms — around 5% is a common long-run diversified estimate — and read your FI date, target portfolio, and the savings rate driving it.
The standard formula
financial-independence-calculatoryears to FI = ln(1 + 25r(1 − s) ÷ s) ÷ ln(1 + r)
The closed form behind the projection: with savings rate s (as a fraction of income) and real return r, it gives the years until a portfolio reaches 25× annual spending, starting from zero. It assumes income, spending, and returns are level in real terms — the simulation on this page relaxes exactly that, which is why the two can differ slightly.
How the calculation works
financial-independence-calculatorFI number = annual spending ÷ withdrawal rate balance(m) = balance(m−1) × (1 + r/12) + monthly savings FI month = first month where balance ≥ FI number implied savings rate = monthly savings × 12 ÷ (monthly savings × 12 + annual spending)
The FI number inverts the withdrawal rate: at 4%, spending of $40,000 needs a portfolio of $1,000,000 (25× spending). The projection then simulates the portfolio month by month — end-of-month contributions compounding at the entered rate — until it first crosses the FI number.
Site-wide conventions and all calculator formulas — rounding policy, period conventions, and how every formula is verified.
Worked example
Input
Starting savings: $25,000. Saving: $1,000 per month. Spending to cover: $40,000 a year. Withdrawal rate: 4%. Expected return: 5% inflation-adjusted.
Result
FI number: $40,000 ÷ 0.04 = $1,000,000. Time to FI: 372 months — 31 years. Implied savings rate: 23.1%. The portfolio arrives at $1,004,525.49, of which $397,000.00 is what you contributed and $607,525.49 is investment growth.
Years to FI by savings rate, at a 5% real return
| Savings rate | Years to financial independence |
|---|---|
| 10% | 51.4 years |
| 20% | 36.7 years |
| 30% | 28.0 years |
| 40% | 21.6 years |
| 50% | 16.6 years |
| 60% | 12.4 years |
Computed with the closed form above, starting from zero at a constant 5% real return. The curve is brutal at the low end and merciful at the high end: going from 10% to 20% saves almost fifteen years, while 50% to 60% saves four.
Assumptions and important notes
- Contributions arrive at the end of each month and the entered return compounds monthly.
- The projection runs in today’s dollars: enter an inflation-adjusted (real) return so spending and balances stay comparable.
- Rates are held constant for the whole projection; real markets swing year to year.
- No taxes, fees, or portfolio changes are modeled.
- The withdrawal-rate guideline comes from historical US portfolio studies (the “4% rule”) and describes a planning rule, not a guaranteed outcome.
- The simulation caps at 100 years; plans that cannot cross the FI number within it are reported as unreachable.
Frequently asked questions
Why is the FI number 25× my spending?
It is the arithmetic of the 4% rule: 1 ÷ 0.04 = 25. Historical studies of US portfolios found that a first-year withdrawal of about 4%, adjusted for inflation each year, survived most 30-year retirements. Longer retirements — early ones included — are often planned at 3–3.5%, which raises the multiple to 29–33×.
What return should I enter?
An inflation-adjusted return, because the calculator keeps everything in today’s dollars. Long-run real returns for diversified stock-heavy portfolios have historically landed near 5–7%, but future returns are unknown and not guaranteed. Running the projection at a conservative rate tells you more than an optimistic one.
Does reaching the number mean I can quit my job that day?
It means the math plausibly works at your withdrawal rate — a rule of thumb, not a promise. Real retirements face sequence risk: poor early returns hurt more than poor late ones. Most people build a margin (a lower withdrawal rate, flexible spending, or a buffer year or two of cash) before pulling the trigger.
Which lever moves the date the most?
The savings rate, because it works both ends: more saving grows the portfolio faster while shrinking the spending it must cover. Cutting the spending your portfolio must fund lowers the FI number directly — a 10% spending cut can pull the date in by several years at moderate rates. Test both levers and watch the date respond.
What is the formula for years to financial independence?
Years to FI = ln(1 + 25r(1 − s) ÷ s) ÷ ln(1 + r), where s is your savings rate and r your real return. It comes from solving the compound-growth equation for the moment savings reach 25× annual spending. Two features are worth staring at: s appears in the numerator and the target simultaneously, and r sits inside a logarithm — meaning savings rate moves the date roughly linearly while return moves it only logarithmically.
Does the FI number include taxes in retirement?
It has to, because the spending the portfolio must cover includes any taxes owed on withdrawals. If you plan to withdraw from traditional 401(k)/IRA balances, those withdrawals are taxed as income, so gross up your annual spending figure to include expected retirement taxes (for example, $40,000 of living expenses + $5,000 of taxes = $45,000 entered above), whereas Roth withdrawals come out tax-free.
Sources
The claims on this page are backed by these official sources:
- Bureau of Labor Statistics — Consumer Price Index — the inflation baseline that separates real returns from nominal ones in this projection.
- CFPB — Consumer tools hub — federal guides on saving and investing toward long-horizon goals.