How this calculator works
Most calculators start from what you put in and tell you where you end up. This one starts from where you want to end up. You type the goal, the years, what you already have and a return, and it works out what to invest each time to get there. It can also find how long it takes with an amount you pick, or the return you’d need.
The boxes start with a goal of $1,000,000 in today’s money in 30 years, $10,000 already invested and 7% a year. With 3% inflation, that goal comes to $2,427,262 in 30 years, and you’d need to invest $2,010 at the end of every month. Your deposits, with the $10,000, add up to $733,766, about 30% of the goal, and the growth does the rest.
I put in 7% on purpose. It’s below what the S&P 500 compounded at from 1928 to 2025, more on that below, and the range around it goes from 4% to 10%. For inflation I put in 3%, close to the 3.04% a year US prices rose over those same years.
To see where a fixed amount takes you, the other way around, use the investment calculator.
Today’s money or future dollars?
A million dollars in 30 years won’t buy what a million buys today. At 3% inflation, prices are about 2.4 times higher after 30 years, so a goal of $1,000,000 in today’s money comes to $2,427,262 in the dollars of that year. That’s why the goal starts in today’s money here. Leave inflation out and the same goal takes $790.01 a month, which looks easier than it is.
If you’d rather keep your deposit the same in today’s money, raise it each year by your inflation. You start lower and end higher. With the default numbers, raising it 3% a year means starting at $1,465 a month.
Which return should you put in?
The S&P 500 grew 10.02% a year, compounded, from 1928 to 2025, with dividends put back in. After US inflation, 6.78%. Those years include the Depression, the 1970s and 2008, and that’s the return of a whole index. One stock can do much better or much worse.
The forecasts for the next 10 years are lower. Vanguard’s forecast for US stocks was 4.8% to 6.8% a year, as of September 30, 2026. That’s why the calculator shows three returns. With the default numbers, 4% a year takes $3,495 a month and 10% takes $1,092. The 4% sits below the low end of that forecast, and the 10% is about what the index did from 1928 to 2025.
You may hear 12%. That’s the simple average of the yearly returns, 11.86% over the same years, and it’s more than money really grew, because returns swing. Use it here and the monthly amount comes out too small.
S&P 500 is a registered trademark of Standard & Poor’s Financial Services LLC, and the index is a product of S&P Dow Jones Indices LLC. Bufetico isn’t affiliated with them or endorsed by them.
Would that amount have worked?
The answer in the box assumes the same return every year. Real years don’t do that, so the calculator also runs your plan through history. It takes the S&P 500 month by month since 1871, with dividends, and starts your plan in every month that has enough years after it. For a 30-year plan, that’s 1,509 start months, from January 1871 to September 1996.
With the default numbers, $2,010 a month would have reached the goal in 1,412 of those 1,509 start months. The worst start, June 1902, got to 64% of the goal. To reach it in 9 of every 10 start months, you’d have needed $1,878 a month, and to reach it in every one of them, $3,159.
With these numbers, 7% is on the cautious side. With 3% inflation it’s about 3.9% a year after inflation, and the S&P 500 did better than that in most stretches, so history needed less than $2,010 a month in more than 9 of every 10 start months. It needed more in the worst stretches, like the one that started in June 1902.
That isn’t a probability. The start months overlap, and the next 30 years don’t have to look like any of them. What it gives you is the spread, and a sense of how much room to leave above the smooth answer.
The order of the years matters too. A crash in the last few years hits the plan when it holds the most money, with little time left to come back. A crash in the first years mostly hits money you haven’t put in yet, and your deposits buy more while prices are down.
If the number is too big
It happens a lot. The goal is real, and the monthly amount doesn’t fit the budget. There are five things that bring it down, and the calculator shows each one.
More time does the most. With the default goal, 30 years takes $2,010 a month, 35 years takes $1,582 and 40 years takes $1,259. The table “Other deadlines” has the rest.
Raising the deposit a little every year lets you start lower, at $1,465 a month if it rises 3% a year. Starting now matters as well: with the same deadline, starting 5 years later takes $3,003 a month, and 10 years later, $4,632.
An employer match counts. Put it under “Help from others and extras,” and your part goes down by that much. A smaller goal, or the same goal reached in two steps, works too.
Typing a higher return makes the number on the screen smaller, but it doesn’t change what the market pays.
Fees and taxes
A 1% yearly fee looks small. With the default numbers, it takes the monthly amount from $2,010 to $2,464.
Taxes depend on the account. In a 401(k) or a traditional IRA you pay income tax when you take the money out, so the account has to grow past your goal. At a 22% rate, the default goal takes $2,596 a month. In a regular account you pay tax on the gain when you sell, and in a Roth IRA, if you follow its rules, you pay none. Pick yours under “Fees, taxes and safe years,” and the goal becomes what’s left after tax.
A goal only a few years away
Money you need in 2 or 3 years is a different problem. Stocks can be down a lot right when you need the money, and there’s no time to wait. Try the down payment example: $60,000 in today’s money in 5 years, with $5,000 already saved. All in stocks, the plan reaches the goal in 1,286 of 1,809 start months, and the worst start gets to 44% of it. With the last 2 years in safe savings at 3%, it reaches it in 1,239 of 1,809, and the worst start gets to 51%.
So the safe years make the worst cases less bad and give up some of the good ones, because savings grow slower than stocks did in most years. In the history check, safe money earns the rate you type, the same in every year. The calculator shows both sides, and the choice is yours.
What a goal calculator doesn’t see
A goal calculator is a good place to start, but there are seven things it can miss.
- A steady return. Real years swing. The history check shows what that did to the same plan.
- The average year. The simple average of the yearly returns is higher than what money grew at, so put in the compound rate.
- Inflation. A goal in future dollars looks closer than it is.
- Fees. They come off every year and add up. There’s more on that in the hidden costs of buying stocks.
- Taxes. Not all of a 401(k) balance is yours to spend.
- Missed months. The calculator assumes you never skip a deposit. Life gets in the way, so leave some room.
- Your own behavior. Morningstar found that the money people had in US funds earned about 1.2 percentage points a year less than the funds themselves, because of when they bought and sold (Mind the Gap 2026). The calculator assumes you stay in through the bad years.
To see where a fixed amount grows, try the investment calculator. To test a nest egg once you retire, try the retirement calculator.
Questions people ask
How much do I need to invest each month to reach $1 million?
It depends on the years, what you already have and the return. With $10,000 to start and 7% a year, $1 million in future dollars in 30 years takes $790.01 a month. If you want $1 million in today’s money, with 3% inflation, it takes $2,010. In 20 years, it’s $1,894 and $3,482. In 40 years, $344.02 and $1,259.
How much a month to have $1 million in 10 years?
Starting from zero at 7% a year, $5,846 a month, or $7,857 if you want it in today’s money. Over only 10 years, the growth covers about 30% of the goal, and the rest has to come from your deposits.
How long will it take to reach my goal?
Pick “How long it takes” and type what you can invest each time. With the default goal and $1,000 a month at 7%, it takes 45 years and 3 months.
What return do I need to reach my goal?
Pick “The return I need.” With the default goal, $1,000 a month and 30 years, you’d need 10.41% a year. The S&P 500 compounded at 10.02% a year from 1928 to 2025, so a plan that needs more than that is counting on a lot.
Should my goal be in today’s money or in future dollars?
In today’s money, if you think of the goal as what it buys. A house, a year of college and a monthly income all cost more each year. The calculator raises the goal with inflation and shows you the figure in future dollars.
What rate of return should I use?
For a mix of US stocks over many years, 6% to 8% is a cautious middle. From 1928 to 2025 the S&P 500 compounded at 10.02% a year with dividends, and Vanguard’s 10-year forecast as of September 30, 2026 was 4.8% to 6.8%. For a savings account, use its APY. If you’d rather type a return after inflation, set inflation to 0. Then look at the range and the history check, because no single number is right.
Can I plan for several goals at once?
Run the calculator once for each goal, a house in 5 years and retirement in 30, for example, and add up the amounts. Copy the link of each one to keep them. Money you already have can only count once, so split it between the goals.
How is this different from an investment calculator?
An investment calculator starts from what you put in and tells you where you end up. This one starts from the goal and tells you what to put in, how long it takes or the return you need. Bufetico has both, and the other one is the investment calculator.
Why do calculators give different monthly amounts for the same goal?
Because they count differently. Many treat 7% as an APR with interest added every month, which works out to 7.23% a year. $1 million in 10 years from zero takes $5,846 a month here and $5,778 that way. Some put the deposits in at the start of the month, and many leave inflation out. The table under the calculator shows each one with your numbers.
What if I can’t afford the monthly amount?
Give it more time, raise the deposit a little each year, count any employer match, start sooner, or split the goal in two. With the default goal, 30 years takes $2,010 a month and 40 years takes $1,259. The table “Other deadlines” and the one for starting later show the rest with your numbers.
Does it count my employer’s 401(k) match?
Yes. Put the match under “Help from others and extras.” It goes in with your deposits and rises with them, and the answer shows your part. Contribution limits aren’t in this calculator. The 401(k) calculator has them.
Should I invest a lump sum or a monthly amount?
If you already have the money, the calculator shows how much more today would do the same job as the deposits: $308,862 with the default numbers. Whether to put a lump sum in all at once or spread it out is its own question, and the dollar cost averaging calculator tests both with real history.
What does the history check tell me?
It runs your plan from every month since 1871 that has enough years after it, with the S&P 500’s real monthly returns and dividends, and counts how many times the money reached the goal. It isn’t a probability, because the start months overlap and the future can be worse than any of them. Read it as a guide to how much room to leave.
Why not a Monte Carlo simulation?
A Monte Carlo makes up thousands of possible paths and reports percentiles, which are hard to read and change with the assumptions behind them. The history check only uses what the S&P 500 really did, month by month since 1871.
Should money for a goal 5 years away be in stocks?
That’s your call, and the history check shows you the risk. For the down payment example, $60,000 in today’s money in 5 years, the plan all in stocks fell short in 523 of 1,809 start months, and the worst start got to 44% of the goal. With the last 2 years in safe savings at 3%, it fell short in 570, and the worst got to 51%. A short goal is where a bad year hurts most, because there’s no time to wait it out.
Is the result before or after tax?
Before tax, unless you pick an account under “Fees, taxes and safe years.” Then the goal is what’s left after tax: income tax on the whole withdrawal for a 401(k) or a traditional IRA, tax on the gain for a regular account, and none for a Roth IRA that follows its rules.
How often should I check my plan?
Once a year is plenty. Put what you have now under “Already invested,” the years left and the same goal, and the calculator gives you the new amount. Checking every week mostly shows you noise.
How do I do this in Excel or Google Sheets?
For deposits at the end of each month, =PMT((1+7%)^(1/12)-1, 360, 10000, -2427262) gives the default answer, $2,010. The last number is the goal in future dollars. “Show the math” writes the formula with your numbers.
Can I invest every week or every two weeks?
Yes. Pick it under “How often you invest.” Every two weeks gives you 26 deposits a year, two more than twice a month. With the default goal, that’s $926.50 every two weeks or $462.95 a week, against $2,010 a month.
How much do I need to retire?
Pick “An income a month” as the goal. With the 4% rule, $4,000 a month takes $1,200,000. The 4% rule is a rule of thumb from studies of past US markets over 30-year retirements. To test whether a nest egg lasts, use the retirement calculator.
Does it work in other currencies?
Yes. Pick yours at the top. The math is the same, but the S&P 500 history and the inflation figures are from the US.