S&P 500 Investment Calculator: Backtest & Compound Growth

Reviewed by Gianni Van SchoorData through September 2026

Project your investment growth over a fixed period using compound returns and recurring contributions.
Calculator inputs
$
Choose a period between 1 and 100 years
%
$
The amount your recurring contribution increases each year, as a fixed amount or a percentage.
$
Flat fee per contribution, deducted from each contribution.
$
Total Expense Ratio (TER): the annual fund or ETF fee, charged as a percentage of your portfolio.
%

Investment growth over time

Total value: $154,886.21 (Years: 30). Starting amount: $10,000. Total contributions: $36,000. Investment growth: $108,886.21.
Loading chart...

Final portfolio value: $154,886.21

Results summary

30 Years investing

Final portfolio value$154,886.21
Starting amount
$10,000
Total contributions
$36,000
Total growth
$108,886.21

Yearly investment breakdown

Yearly investment breakdown
YearContributionsGrowthBalance
1$11,200$632.65$11,832.65
2$1,200$742.61$13,775.26
3$1,200$859.17$15,834.43
4$1,200$982.72$18,017.15
5$1,200$1,113.68$20,330.83
6$1,200$1,252.51$22,783.34
7$1,200$1,399.65$25,382.99
8$1,200$1,555.63$28,138.62
9$1,200$1,720.97$31,059.59
10$1,200$1,896.23$34,155.82
11$1,200$2,082$37,437.82
12$1,200$2,278.93$40,916.75
13$1,200$2,487.65$44,604.40
14$1,200$2,708.92$48,513.32
15$1,200$2,943.45$52,656.77
16$1,200$3,192.06$57,048.83
17$1,200$3,455.58$61,704.41
18$1,200$3,734.92$66,639.33
19$1,200$4,031.01$71,870.34
20$1,200$4,344.88$77,415.22
21$1,200$4,677.56$83,292.78
22$1,200$5,030.22$89,523
23$1,200$5,404.04$96,127.04
24$1,200$5,800.27$103,127.31
25$1,200$6,220.29$110,547.60
26$1,200$6,665.51$118,413.11
27$1,200$7,137.44$126,750.55
28$1,200$7,637.69$135,588.24
29$1,200$8,167.95$144,956.19
30$1,200$8,730.02$154,886.21

About this investment calculator

This investment calculator combines three tools on one page: Classic mode projects compound growth over a fixed number of years, Goal mode estimates how many years you need to reach a target amount, and an S&P 500 calculator replays your plan on real monthly index data since 1988, with or without reinvested dividends. You enter a starting amount, a recurring contribution with its frequency and an expected annual return; in S&P 500 mode the index history takes the place of that return. Every mode shows a growth chart, a yearly table and a summary that separate your own deposits from investment growth. Transaction costs and a fund's TER are optional, so you can see how much fees take off the long-term result.

Calculator modes and use cases

  • Classic — Estimate portfolio growth over a fixed number of years based on your return assumption, contribution schedule, and fees.
  • Goal — Estimate how many years it may take to reach a target amount and test how changes in contributions or return assumptions move the timeline.
  • S&P 500 backtest — Apply historical S&P 500 returns, with dividends reinvested by default, to your plan to see how it would have behaved across past market cycles, then use your assumed return after the last data month.

How the calculations work

The calculator turns the annual return into an effective monthly rate (7% a year becomes 0.565% a month) and compounds the balance every month. Every contribution frequency is converted to an equal monthly amount, so $1,200 a year and $100 a month give the same result; the frequency only sets how often a transaction cost is charged. The TER lowers the return every month. Goal mode runs the Classic projection year by year until the balance reaches your target, for at most 100 years. S&P 500 mode replaces the return with the monthly change of the index, starting from the December close before your first year, and switches to your assumed return after the last data month.

Practical guidance for planning

How to interpret the results

The growth chart splits your total value into three areas: starting amount, contributions and investment growth. In early years most of the value comes from your deposits; over time the growth area widens and can dominate the chart: this is compounding in action.

The yearly table breaks each year into contributions, growth and ending balance, and adds a TER column as soon as you enter a TER. In Goal mode the summary shows how many years you need to reach your target, or the value after 100 years if the target stays out of reach.

Choosing the right mode for your question

  • Classic compares fixed-period scenarios, such as saving for a down payment in 10 years or building a retirement portfolio over 30 years.
  • Goal works backwards from a target: enter the amount and the calculator estimates how many years it takes, up to a maximum of 100 years.
  • S&P 500 replaces your return assumption with historical index data (dividends reinvested by default) and falls back on your own assumption once the data runs out.

Contributions and increases

Choose daily, weekly, biweekly, semimonthly, monthly, quarterly or annual contributions; the calculator spreads each one evenly over the months, so only the yearly total counts for growth. The annual increase option raises your deposits each year by a fixed amount or a percentage, for example to follow a rising salary.

A transaction cost is charged for every contribution, so the frequency matters: monthly deposits mean 300 deductions over 25 years, weekly deposits 1,300.

Why fees change long term results

Transaction costs reduce each contribution before it is invested, while the TER lowers the return every month. With $10,000 plus $250 a month at 7% for 30 years, a 0.5% TER lowers the final value from about $368,500 to $330,700, a loss of about $37,800 (10.2%), because the smaller balance also compounds less.

How the S&P 500 backtest works

The backtest applies the real monthly history of the S&P 500 since 1988 to your starting amount and contribution plan for the year range you choose: by default the Total Return index (^SP500TR) with dividends reinvested, or the price index (^GSPC) when you set Reinvest dividends to No. Selecting a range such as 1990 to 2020 captures the dot-com crash, the 2008 financial crisis and the 2020 recovery, showing how the same plan would have behaved through real volatility.

After the last available data month the calculator switches to your assumed return, so you can extend the projection beyond history.

Choosing realistic assumptions

  • Over the 30 years to the end of 2025 the S&P 500 returned 10.35% a year with dividends reinvested (8.36% on price alone), but one index over one period can flatter the outlook: many planners use 6 to 7 percent as a conservative long-term assumption.
  • To estimate real purchasing power, subtract expected inflation (typically 2 to 3 percent) from your return assumption before entering it.
  • Set contributions you can keep up with your actual monthly budget; a deposit plan you cannot sustain produces a result you will not reach.

Worked example

Start with $10,000, invest $250 a month at a 7% annual return with a 0.2% TER, and run 25 years in Classic mode. The result is about $241,300: $85,000 of your own money ($10,000 plus $75,000 in contributions) and about $156,300 of growth, after about $4,800 in TER fees. Switch to Goal mode with the same inputs and a $300,000 target: the calculator needs 28 years, or 23 years if you raise the contribution to $400 a month.

Notes and limits

  • This calculator is for education and planning only and does not provide financial advice.
  • Taxes, bid-ask spreads, currency effects, and account-specific rules are not modeled.
  • Results are estimates; real markets can differ significantly from any assumed return.
  • The S&P 500 backtest follows the index itself: a real fund also deducts its TER (enter it under More options) and, depending on where it is domiciled, withholding tax on dividends.

Supporting calculators

  • Portfolio allocation: use the Portfolio Rebalancing Calculator to compare your current mix with target weights, apply a drift threshold, and see exact buy/sell actions including how much new cash can rebalance without selling.
  • Income planning: use the Investment Income Calculator in two directions: estimate yearly/monthly income from an invested amount and yield, or calculate how much capital you need to reach a target income.
  • Savings scenarios: use the Savings Calculator to compare what a regular bank savings account could yield from your deposits and interest assumptions, so you can see if a savings-only approach is enough for your goal.

Learn more

  • Investing foundations: visit the Investment Guide for detailed explanations, worked examples, and guidance on choosing a realistic return assumption for your situation.
  • Data sources: for full details on where our S&P 500 data comes from and how it is applied in the backtest, see the Data Guide.
  • Backtesting methodology: read the Backtesting Guide for how monthly backtesting works across every calculator on this site, dollar cost averaging versus lump sum, and common pitfalls like survivorship bias.

Glossary and common investment questions