See how many years of consistent investing it takes to hit your first million at a given return.
How the Millionaire Calculator works
This calculator solves for time: it tells you how many years until your balance reaches a target like $1,000,000. Most savings tools solve for an ending balance; this one fixes the destination at the top and asks "how long?"
It rearranges the future-value-of-a-series formula to isolate the number of months t:
t = ln((Target × i + PMT) / (P × i + PMT)) / ln(1 + i)
- Target = the balance you want to hit (default $1,000,000)
- P = your current savings (principal you start with)
- PMT = your fixed monthly contribution
- i = your monthly return = annual return ÷ 12
- ln = the natural logarithm; the result t is in months
Step by step, here is what the tool does internally:
- Converts your annual return to a monthly rate (i = rate / 12).
- Plugs P, PMT, Target, and i into the formula above to get t in months.
- Divides by 12 to report years to reach your target, plus the exact month count.
- Builds a milestone schedule so you can see when you cross $100k, $250k, $500k, and so on.
It also handles edge cases. If your return is 0%, the log formula breaks (you cannot grow by compounding), so it falls back to simple division: months = (Target - P) / PMT. If you already start at or above the target, time is zero. If both PMT and growth are too small to ever reach the goal, it flags that the target is unreachable rather than returning a nonsense number. This time-first design is what sets it apart from a savings goal calculator, which instead solves for the monthly deposit.
Example calculation
Here are three fully worked examples, each recomputed with the time formula above. Every figure below has been verified.
Example 1 - The steady saver. You start with P = $25,000, add PMT = $1,000 per month, and expect an 8% annual return, so i = 0.08 / 12 = 0.0066667. Plugging into t = ln((1,000,000 × 0.0066667 + 1,000) / (25,000 × 0.0066667 + 1,000)) / ln(1.0066667) gives t = ln(7,666.67 / 1,166.67) / ln(1.0066667) = 283.35 months, or about 23.6 years.
Example 2 - The late starter playing catch-up. P = $100,000, PMT = $2,000, return 8%. Here t = ln((6,666.67 + 2,000) / (666.67 + 2,000)) / ln(1.0066667) = 177.4 months, or about 14.8 years. A bigger head start plus a heavy contribution roughly halves the timeline versus Example 1.
Example 3 - The young aggressive investor. P = $10,000, PMT = $1,500, return 10%, so i = 0.0083333. t = ln((8,333.33 + 1,500) / (83.33 + 1,500)) / ln(1.0083333) = 220.1 months, or about 18.3 years. Less starting cash, but a high contribution and return still beat Example 1.
| Scenario | Start (P) | Monthly (PMT) | Return | Years to $1M |
|---|---|---|---|---|
| 1. Steady saver | $25,000 | $1,000 | 8% | 23.6 |
| 2. Late catch-up | $100,000 | $2,000 | 8% | 14.8 |
| 3. Young aggressive | $10,000 | $1,500 | 10% | 18.3 |
The takeaway: the contribution amount and the return drive the timeline far more than your starting balance. Want to see the dollar path instead of the date? Run the same inputs through the investment calculator to watch the balance climb year by year.
Tips for using the Millionaire Calculator
- Raise the contribution before chasing returns. In the steady-saver case ($25,000 start, 8%), adding $250/month (to $1,250) cuts the timeline from 23.6 to 21.6 years, while bumping the return from 8% to 10% only gets you to 20.5 years - and a higher return means higher risk you cannot control.
- Index your contribution to your raises. A flat $1,000/month loses ground to inflation; routing half of every pay raise into the account quietly compresses the timeline without changing your lifestyle. Size the increase with the pay raise calculator.
- Inflation-adjust the target. At 3% inflation, $1,000,000 in 30 years buys what about $412,000 buys today. If you want $1M of real purchasing power in 30 years, set the target near $2,427,000 instead.
- Use a return you would actually accept long term. Plugging in 12% to make the number look good just sets you up for disappointment; 6-8% nominal is the conservative band most people model.
- Front-load early years. Because of compounding, a dollar added in year 1 does far more work than a dollar in year 20 - so prioritize maxing contributions now, even temporarily, over a steady drip later.
- Don't double-count taxes. The calculator grows pre-tax; if the money sits in a taxable brokerage, your real after-tax return is lower, so shave roughly 0.5-1.5 points off your return assumption to stay honest.
- Shelter the growth where you can. Reaching $1M inside a Roth IRA or 401k means the compounding is tax-advantaged, which is effectively a higher net return than the same number in a taxable account.
- Watch the cost of waiting. Starting the steady-saver plan ($25,000 / $1,000 / 8%) five years late forces the monthly contribution from $1,000 up to about $1,739 to still finish in the same calendar year - delay is the most expensive variable.
- Re-run it once a year. Treat the output as a moving target: update P with your actual balance and PMT with your new contribution each January to see your finish date pull closer.
- Set sub-milestones, not just $1M. With $0 saved at $500/month and 7%, you cross $100k in about 11 years but go from $500k to $1M in only about 9 years - tracking the smaller crossings keeps you investing through the slow early years when the balance barely moves.
Which lever moves your timeline most: contribution, return, or starting balance?
Your monthly contribution and your return move the finish line far more than your starting balance does. Starting from a base case of $25,000 saved, $1,000/month, and an 8% return (23.6 years to $1M), here is what changing one lever at a time does:
| Change one lever | New value | Years to $1M | Years saved |
|---|---|---|---|
| Base case | - | 23.6 | - |
| Contribution +$250 | $1,250/mo | 21.6 | 2.0 |
| Return +2 points | 10% | 20.5 | 3.1 |
| Double the start | $50,000 | 21.9 | 1.7 |
Notice that doubling your starting balance saves the least time (1.7 years), because in a multi-decade plan the contributions you keep adding eventually dwarf the lump you began with. A higher return looks powerful here, but it is the one lever you can't reliably control - markets do what they do. The contribution is the lever fully in your hands. To pressure-test a specific return assumption, the compound interest calculator shows exactly how the curve steepens over time.
Why time in the market beats almost everything else
Time is the most powerful input because compounding is exponential, not linear - the last few years do most of the heavy lifting. With $0 saved, $500/month, and a 7% return, you cross $100,000 in about 11 years, $250,000 in about 20 years, $500,000 in about 27 years, and $1,000,000 in about 36 years. Look at the spacing: the first $100k took 11 years, but the jump from $500k to $1M takes only about 9 years even though it's a far bigger dollar amount. That acceleration is compounding at work.
This is also why delay is so costly. Waiting five years to start the base plan ($25,000 / $1,000 / 8%) means you'd have to raise your contribution from $1,000 to about $1,739/month to still finish in the same calendar year. You can't buy back lost compounding with effort later - you can only start. If your real goal is an early-retirement number rather than a round $1M, the FIRE calculator frames the same math around your annual spending.
What will $1,000,000 actually be worth? Inflation-adjusting the goal
A million dollars in the future buys far less than a million today, so the round number can quietly fool you. Inflation steadily erodes purchasing power, and over a saving horizon that erosion is large. At a 3% inflation rate:
| If you hit $1M in... | Its value in today's dollars | To keep $1M of real value, aim for |
|---|---|---|
| 20 years | about $553,676 | about $1,806,111 |
| 25 years | about $477,606 | about $2,093,778 |
| 30 years | about $411,987 | about $2,427,262 |
So if you're 30 years out, hitting a nominal $1,000,000 gives you roughly the lifestyle that $412,000 would buy now. That's still meaningful money - but it may not be the "set for life" figure the headline implies. Two honest fixes: raise your target to the inflation-adjusted number, or grow your contribution with inflation each year. You can model the shrinking purchasing power directly with the inflation calculator before locking in your target.
How many years to $1,000,000 by monthly contribution and return
Reaching $1,000,000 from $0 takes anywhere from about 19 to 51 years depending on how much you invest each month and the return you earn. The table below shows the approximate years to hit a $1,000,000 target starting from a $0 balance, with contributions made monthly and growth compounded monthly. Two patterns stand out: doubling your monthly contribution typically saves about 8 to 10 years, while every extra 1 to 2 percentage points of return saves only a few years. Contribution size is the lever you fully control; return is not. Remember that a future $1,000,000 is not today's million. At 3% inflation it buys only about $553,676 in 20 years and $411,987 in 30 years of today's purchasing power.
| Monthly contribution | 6% return | 7% return | 8% return | 10% return |
|---|---|---|---|---|
| $250 | 50.9 yrs | 45.7 yrs | 41.6 yrs | 35.5 yrs |
| $500 | 40.1 yrs | 36.4 yrs | 33.4 yrs | 28.8 yrs |
| $750 | 34.0 yrs | 31.1 yrs | 28.7 yrs | 25.0 yrs |
| $1,000 | 29.9 yrs | 27.5 yrs | 25.5 yrs | 22.4 yrs |
| $1,500 | 24.5 yrs | 22.7 yrs | 21.3 yrs | 18.9 yrs |
Figures assume a $0 starting balance and a $1,000,000 nominal target. Any existing savings, employer match, or annual contribution increase will pull these timelines shorter.
How to do it by hand or in Excel / Google Sheets
You don't need this page to find the timeline - the built-in NPER function does the same math. NPER returns the number of periods needed to reach a future value given a rate, payment, and present value. Use monthly figures so the result comes out in months:
=NPER(rate, pmt, pv, fv)
For the steady-saver case ($25,000 start, $1,000/month, 8% return, $1M goal), enter:
=NPER(0.08/12, -1000, -25000, 1000000)
That returns 283.35, which is months - divide by 12 to get about 23.6 years, matching the calculator exactly. Two things matter: the rate must be monthly (annual ÷ 12), and the payment and present value are entered as negative numbers because they're money leaving your pocket, while the target future value is positive. To do it purely by hand, use the formula t = ln((Target × i + PMT) / (P × i + PMT)) / ln(1 + i) with i = 0.08/12; any scientific calculator with an ln key gives the same 283.35 months. If your sheet returns a #NUM! error, your contribution and return are too small to ever reach the goal.
Common mistakes that throw off your timeline
The most common error is entering an annual return where a monthly rate belongs (or forgetting to divide by 12). Watch for these:
- Using a fantasy return. Plugging in 12-15% to make the years look short. Long-term diversified returns are usually modeled at 6-8% nominal; rosy inputs produce a date you'll miss.
- Ignoring inflation entirely. Treating a future $1M as if it spends like today's $1M, when at 3% inflation a million in 30 years is worth about $412,000 today. See the inflation section above.
- Forgetting taxes on a taxable account. The tool grows money pre-tax. In a regular brokerage, taxes on dividends and gains drag your real return down, so the timeline is optimistic unless you shave your return assumption.
- Assuming a flat contribution forever. Most people earn more over time. A static PMT understates how fast you could actually arrive.
- Confusing this with a balance calculator. This solves for time. If you instead want to know what you'll have by a set date, use the savings calculator; if you want the monthly deposit for a fixed deadline, use the savings goal calculator.
- Setting return to exactly 0% and expecting compounding. With no growth, the tool just divides the gap by your monthly deposit - the log formula doesn't apply.
Is your timeline good? Reference benchmarks
There's no single "right" number of years - what's good depends on your age, income, and start date - but a few reference points help you judge your result.
- Contribution as a share of income. Many planners suggest saving 15-20% of gross income toward long-term goals. If your PMT is well below that, expect a long timeline; if it's above, you're ahead of the curve.
- The 30-year reality. A first-job saver putting away $500/month at 7% from $0 reaches $1M in roughly 36 years - close to a full career. That's normal, and it's why starting early matters more than starting big.
- The 15-year sprint. Hitting $1M in 15 years generally requires a strong head start plus a heavy contribution - on the order of $100,000 saved and $2,000/month at 8% (about 14.8 years), as in Example 2.
- Return sanity check. If your assumed return is above 8% nominal, ask whether you'd actually hold that allocation through a downturn. A timeline built on a return you'll abandon in a bad year isn't real.
The honest benchmark is simple: a timeline you can sustain beats a shorter one built on assumptions you can't keep. If retirement is the true goal behind the million, sanity-check the whole picture with the retirement calculator.
Advanced uses and variations
The same time-to-target engine works for any goal, not just $1,000,000. A few ways to push it further:
- Any milestone. Set the target to $250,000 for a house-down-payment-plus-cushion goal, or $5,000,000 for a fat-FIRE number. The math is identical.
- Couples and households. Combine both partners' balances into P and both contributions into PMT to see a joint finish date.
- Inflation-real targets. Instead of $1M nominal, enter the inflation-adjusted figure (e.g., about $2,427,262 for real $1M in 30 years at 3%) to get a timeline in today's purchasing power.
- Account-specific runs. Model your tax-advantaged accounts separately from taxable ones, using a slightly higher return for the sheltered money since its growth isn't taxed along the way.
- Cost-of-delay tests. Run the same goal at today's start date and again as if you started five years ago to see, in years, what procrastination costs.
If you're funding the goal mostly through retirement accounts, pair this with the 401k calculator to factor in employer matching, which effectively boosts your contribution and pulls the date in.
Related on this site
Investment Calculator · Savings Goal Calculator · FIRE Calculator · Compound Interest Calculator · Inflation Calculator · Rule of 72 Calculator
For a related deep dive, see SEC Investor.gov saving and investing.
How we calculate this
This tool uses the standard formula shown above, runs entirely in your browser and stores nothing you type. Results are estimates for planning — not financial, tax or legal advice. Background reading: Investor.gov (U.S. SEC) — compound interest. Found an error? Tell us and we will fix it.
Millionaire Calculator — frequently asked questions
- Is a million dollars enough?
- It depends on lifestyle and location; inflation erodes future value.
- What return is realistic?
- Long-term diversified equity averages are often cited near 7–8% nominal.
- How long does it take to become a millionaire saving $500 a month at 7%?
- Starting from $0 and adding $500 a month at a 7% annual return, you reach $1,000,000 in about 36 years (roughly 437 months). Of that total, only about $218,260 comes from your own contributions and the other ~$781,740 is compound growth. Raising the deposit to $1,000 a month cuts the timeline to about 27.5 years. Try your own figures in the millionaire calculator.
- How long to reach $1 million with $1,000 a month at 8%?
- Contributing $1,000 a month from $0 at an 8% return reaches $1,000,000 in about 25.5 years (around 307 months). You personally put in roughly $306,550, so nearly 70% of the final balance is compounding, not cash you deposited. Drop the return to 6% and the same $1,000 a month takes about 30 years; lift it to 10% and you finish in about 22.4 years. Time and rate both move the needle hard.
- Is it better to double my contribution or add 2% more return?
- Raising your contribution usually wins, because it is fully in your control while extra return is not guaranteed. From $0 at 7%, $500 a month reaches $1,000,000 in about 36 years. Doubling to $1,000 a month (same 7%) finishes in about 27.5 years, cutting roughly 9 years. Keeping $500 a month but lifting the return to 9% finishes in about 31 years, saving only ~5 years and adding real risk. More cash beats chasing yield.
- How much do I need to invest monthly to be a millionaire in 20 years?
- To hit $1,000,000 in 20 years from $0, you need roughly $1,700 a month at 8% or about $1,920 a month at 7%. Lower returns demand bigger deposits: at 6% you would need close to $2,165 a month. A higher 10% return drops the requirement to around $1,320 a month. Because the window is short, the bulk of the work falls on your contribution rather than compounding.
Guides & articles
Related calculators
Compound Interest Calculator · Simple Interest Calculator · Savings Calculator · CD Calculator · APY Calculator · Investment Calculator