DCA Calculator: S&P 500 Backtest Since 1871

This free DCA calculator shows what would have happened if you had invested in the S&P 500 every month, from any month since January 1871 until today. It uses real market history, not an assumed return, so you see the crashes, the long flat stretches and the recoveries exactly as an investor lived them.

Switch to Lump sum vs DCA to answer the other classic question: if you have a sum of money today, is it better to invest it all at once or spread it over several months? The calculator compares both for your dates and then checks every other start date in 155 years of data.



How to use the DCA calculator

  • Invest every month: the amount you would have put into an S&P 500 index fund each month.
  • Start and end: any month from January 1871 to the latest month in the data. Try the start of a famous crash, like September 1929, October 2007 or January 2000.
  • More options: turn dividend reinvestment off to see the price alone, or raise your monthly amount with inflation so every deposit keeps the same buying power.
  • Lump sum vs DCA: enter the amount you have and how many months you would spread it over. The money not yet invested waits in cash earning nothing.

What is dollar-cost averaging?

Dollar-cost averaging (DCA) means investing the same amount at regular intervals, no matter what the market is doing. When prices are high your money buys fewer shares; when prices fall it buys more. Most people do it without thinking about it, through every paycheck that goes into a 401(k). We explain the strategy step by step in What Is Dollar-Cost Averaging?

With the default example, $500 a month from January 2000 to October 2026 adds up to $161,000 of deposits. With dividends reinvested it grows to about $995,000, a return of about 11.7% a year on each dollar from the day it went in, or 8.8% a year after inflation. The path was not smooth: in March 2009 the portfolio was worth about $39,000 for $55,500 put in, 29% under water, and it spent 52 of those 322 months below the money invested.

Lump sum vs dollar-cost averaging: which wins?

If you already have the money, history favors investing it all at once. Across every start month since 1871, investing a lump sum beat spreading it evenly over 12 months about 71% of the time, by a median of about 4.5% after 10 years. The reason is simple: the market went up in more months than it went down, so money that waited in cash usually missed gains. Vanguard reached the same conclusion in its 2012 study of the U.S., U.K. and Australian markets, where a lump sum came out ahead about two-thirds of the time.

Spread the money overLump sum won (10-year results)Median edge of lump sum
6 months67%2.1%
12 months71%4.5%
24 months75%9.0%
S&P 500 with dividends reinvested, every start month from January 1871. Cash waiting to be invested earns 0%. Source: our calculation with Robert Shiller’s data.

That does not make DCA a mistake. In the worst start dates, investing everything at once ended more than 40% behind spreading it out over a year, because a crash came right after. If a big drop just after investing would make you sell, or keep you from investing at all, spreading the money out is a reasonable price to pay for sleeping well.



Investing through the worst crash: 1929

Monthly investing shines when the market crashes soon after you start. Someone who invested $100 a month from September 1929, the month of the peak before the Great Depression, put in $24,000 over 20 years and ended with about $56,700, close to 8% a year with dividends reinvested. A single $10,000 invested in September 1929 was worth only about $14,700 twenty years later, under 2% a year. Try it: set the start to September 1929 and the end to August 1949.

Why dividends matter so much

The S&P 500 price you see in the news leaves out dividends. In the default example, the same $500 a month grows to about $731,000 with price alone and to about $995,000 with dividends reinvested. Over long periods, dividends have been a large part of the stock market’s total return. Learn more about the index itself in What Is the S&P 500?

Where the data comes from

The calculator uses the monthly stock market data published by Yale economist Robert J. Shiller (shillerdata.com), the same series behind his book Irrational Exuberance and the CAPE ratio. For each month it has the S&P Composite price (the average of the month’s daily closes), the dividends paid over the year and the U.S. consumer price index. Before 1957 the index is a reconstruction of the market from earlier stock indexes.

With dividends reinvested, each month the index grows by (price + dividend ÷ 12) ÷ last month’s price, the same method Shiller uses for his total return series. Our numbers match his to within 0.001% over the full 155 years.

Frequently asked questions

Could I really have invested in the S&P 500 in 1871?

No. The first index fund for individual investors launched in 1976. The early years show what the broad U.S. stock market did, which is useful to understand risk, but no one could buy it in one fund back then.

Does the DCA calculator include fees and taxes?

No. Low-cost S&P 500 index funds charge a small yearly fee, often under 0.1%, and dividends and gains may be taxed outside a retirement account. Real results would be a little lower.

What does “return a year” mean for monthly investing?

Each deposit was invested for a different length of time, so the calculator uses an internal rate of return: the single yearly rate that turns every deposit, from its own month, into the final value. It is the right way to compare monthly investing with a lump sum.

Is past performance a guide to the future?

No. History shows the range of what has happened, including long periods with little or no gain. It cannot tell you what the next 10 or 20 years will bring.


More tools

This calculator is for education only and is not financial advice. It shows past results of a market index, not of any fund you can buy, and past performance does not predict future results.