Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Years to Retirement
16.6
years of saving to reach financial independence
Savings rate 50%
Spending rate 50%
Target nest egg 25× annual spending
Assumed real return 5%
Withdrawal rate 4%

What the savings rate to retirement calculator does

This calculator turns a single number, your savings rate, into an estimate of how many years you need to keep saving before you can retire, a milestone often called financial independence (FI). It uses the classic "shockingly simple math" behind early retirement: the more of your take-home pay you save, the sooner your invested savings can cover your spending forever. Your actual income does not change the answer, only the percentage you keep.

How to use it

Enter the share of your take-home income that you save each period as the savings rate. Optionally adjust the expected real (after-inflation) annual return on your investments, where 5% is a common long-run assumption for a stock-heavy portfolio, and the safe withdrawal rate, where 4% corresponds to the well-known 4% rule (a nest egg of 25 times your annual spending). The calculator returns the number of years of saving needed, assuming you start from zero and keep the same savings rate throughout.

The formula explained

Let s be your savings rate as a decimal, r the real annual return, and w the safe withdrawal rate. Because you save a fraction s and spend a fraction 1 minus s of the same income, income cancels out of the problem. Your invested savings grow each year, and the balance after n years (starting from zero) is:

$$ \text{Portfolio}(n) = A \times \frac{ (1 + r)^n - 1 }{ r } $$

where A is the amount saved each year. Retirement becomes possible once that balance reaches the target nest egg, which under a withdrawal rate w is:

$$ \text{Target} = \frac{ 1 }{ w } \times \text{annual spending} $$

Setting the portfolio equal to the target and solving for the number of years gives the headline formula:

$$ n = \frac{ \ln\left( 1 + \dfrac{ r\,(1 - s) }{ w\,s } \right) }{ \ln(1 + r) } $$

With w equal to 0.04 the target is 25 times annual spending, matching the 4% rule.

Advertisement

Worked example

Suppose you save half of your take-home pay, so s = 0.50, and you assume a 5% real return (r = 0.05) with the 4% rule (w = 0.04). The bracket becomes 1 + (0.05 times 0.50) divided by (0.04 times 0.50) = 1 + 0.025 divided by 0.02 = 2.25. Then n = ln(2.25) divided by ln(1.05) = 0.8109 divided by 0.04879, which is about 16.6 years. A 50% savings rate puts financial independence roughly 17 years away, whether you earn 40,000 or 400,000 a year.

Frequently asked questions

Does this assume I start with zero savings? Yes. The standard formula assumes you begin from a zero balance and keep a constant savings rate, so it is a clean rule of thumb rather than a personalized projection. If you already have investments, your real timeline will be shorter than the figure shown.

What return and withdrawal rate should I use? A 5% real (after-inflation) return and a 4% withdrawal rate are the common defaults from the early-retirement community and the Trinity study. More cautious planners use a lower return or a 3.5% withdrawal rate, which lengthens the timeline.

Why does my income not matter? Both the amount you save and the nest egg you need scale directly with income, so income cancels out. Only your savings rate, the gap between what you earn and what you spend, determines how many years it takes.

Last updated: