DCA Simulator
Most DCA calculators assume a fixed return. This one uses real historical price data from the Federal Reserve. Pick from indices, crypto, or commodities, set your investment amount and date range, and see what dollar-cost averaging actually returned versus putting everything in on day one. Free, no account needed.
Pick an asset, set your investment amount and frequency, and the simulator runs every purchase against actual Federal Reserve price data. See your real historical return, how your DCA strategy compares to investing everything on day one, and what you would have built over any date range going back decades. No account needed, no assumed annual returns.
What is dollar-cost averaging?
Dollar-cost averaging (DCA) is a strategy where you invest a fixed dollar amount on a regular schedule, regardless of price. $100 every Monday. $500 every month. Same amount, same day, no matter what the market is doing.
When prices drop, your fixed amount buys more units. When prices are high, it buys fewer. Over time, this smooths out your average cost per unit and removes the pressure of timing the market correctly.
The math is simple: you are not trying to buy at the low. You are trying to buy consistently, which is actually achievable.
How to use this simulator
- Select an asset from the dropdown. Choose from indices (S&P 500, NASDAQ Composite, Dow Jones, Nikkei 225), crypto (Bitcoin, Ethereum), or commodities (WTI Crude Oil, Brent Crude, Natural Gas).
- Enter your investment amount per period, in dollars (minimum $1).
- Choose your frequency: weekly, bi-weekly, or monthly.
- Set a start date and end date. Any range of at least one month works.
- Click Calculate Returns. The simulator fetches real price data and runs every purchase against it.
- Your stat cards, portfolio growth chart, and DCA vs. lump sum comparison appear instantly.
Change only the amount or frequency and the cached price data is reused automatically. No extra API calls.
How the calculation works
Each purchase is matched to the closest available market data within three days of your chosen investment date. If you invest every Monday and the market was closed on a holiday, the simulator finds the nearest trading day.
Here is a real example. $100 per week into the S&P 500 from January 2015 through January 2024 (nine years of weekly purchases).
- Total invested: $46,800 (468 weeks at $100 each)
- S&P 500 moved from approximately 2,020 to 4,770 over that period
- Portfolio value at end: roughly $79,000
- Total return: about 69%
The same $46,800 invested as a lump sum on day one in January 2015 would have grown to approximately $110,000, because the full amount was compounding from the start. That difference is exactly what the DCA vs. lump sum section shows you.
DCA vs. lump sum: the honest comparison
Lump sum investing beats DCA in markets that trend upward, and it usually does. Research from Vanguard (2012) found lump sum investing outperforms DCA about two-thirds of the time when comparing the same 12-month deployment window. The reason: markets go up more often than they go down, so being fully invested earlier compounds more value.
DCA wins in two real scenarios. First, volatile markets where a lump sum might go in right before a significant correction. Second, the practical reality that most people do not have a lump sum. They invest from a paycheck.
If you contribute from your income on a regular schedule, you are already dollar-cost averaging by default. The comparison only matters if you receive a windfall and need to decide whether to invest it immediately or spread it out.
Why real data beats assumed returns
Most DCA calculators ask you to assume a 7% or 10% annual return. That is the long-run historical average for the S&P 500, but the path to that average matters enormously.
Someone who invested $500 per month starting in January 2000 watched the market fall roughly 50% over the next two years. Someone who started in March 2009 saw their early purchases nearly triple within a decade. Same strategy, very different early results.
This simulator uses actual price history from the Federal Reserve Economic Data (FRED) API, maintained by the St. Louis Federal Reserve Bank. You choose the date range and see what actually happened, including the 2001 dot-com crash, the 2008 financial crisis, and the 2020 COVID selloff.
What each asset represents
S&P 500 tracks the 500 largest US companies by market capitalization. It is the standard benchmark for US equity investing. FRED data goes back to 1957, covering more than a dozen full market cycles.
NASDAQ Composite includes all companies listed on the NASDAQ exchange, with a heavy weighting toward technology. It has higher volatility than the S&P 500, with bigger gains in bull markets and deeper drops in corrections. Data is available from 1971.
Dow Jones Industrial Average covers 30 large US companies and is the oldest major US index, with data going back to 1896. It is less representative of the broad market than the S&P 500 but useful for very long historical comparisons.
Nikkei 225 tracks the 225 largest companies on the Tokyo Stock Exchange, weighted by share price. It is Japan’s primary equity benchmark. Prices are quoted in Japanese yen (JPY), so the Best Buy and Worst Buy figures shown are yen values, not dollars. Your total invested, portfolio value, and gain or loss are still calculated in dollars based on your input amount. FRED data starts in 1949, giving you more than 70 years of Japanese market history.
Bitcoin (USD) uses Coinbase daily closing prices sourced directly from FRED. Coverage starts December 2014, capturing the 2017 bubble, the 2018 crash, the 2020 to 2021 run-up, and the 2022 bear market. Bitcoin is far more volatile than any equity index. The same DCA strategy produces very different outcomes depending entirely on when you started.
Ethereum (USD) uses Coinbase daily closing prices from FRED. Coverage begins May 2016. Like Bitcoin, Ethereum has gone through multiple cycles of extreme gains and sharp drawdowns. It has a shorter history than the equity indices, so limit comparisons to the available date range.
Crude Oil (WTI) is West Texas Intermediate, the US oil benchmark, quoted in US dollars per barrel. More volatile than equities, driven by supply decisions, geopolitical events, and demand cycles. Not a typical DCA target, but useful for understanding commodity price behavior. Data from 1986.
Crude Oil (Brent) is the European and global oil benchmark, also quoted in US dollars per barrel. Brent and WTI tend to move together but can diverge during periods of regional supply disruption. FRED data starts in 1987.
Natural Gas uses the Henry Hub spot price in US dollars per million British thermal units (MMBtu). Natural gas is one of the most volatile commodity markets, with large seasonal swings and sharp price spikes during cold snaps or supply shortfalls. Data goes back to 1997.
What this simulator does not cover
FRED tracks index price levels, not total return. For the S&P 500, total return including reinvested dividends historically runs about 1.5 to 2 percentage points higher per year than price return alone. A $100/week S&P 500 DCA from 2015 to 2024 would have produced a somewhat higher result in a real brokerage account than what this simulator shows.
This calculator does not account for taxes on gains or dividends, brokerage fees, or the difference in returns between taxable and tax-advantaged accounts like a 401k or Roth IRA. Use it to understand the shape of your returns, not as a precise forecast.
For cryptocurrency, FRED uses Coinbase closing prices. Prices vary across exchanges, and the data does not reflect trading fees, withdrawal costs, or custody risk.
FAQ
What is dollar-cost averaging?
Dollar-cost averaging is a strategy where you invest a fixed amount of money at regular intervals, regardless of what the asset’s price is doing. Instead of trying to time the market, you buy on a set schedule. When prices fall, your fixed amount buys more shares. When prices rise, it buys fewer. Over time, your average cost per share ends up lower than if you had bought only at high prices, which tends to reduce the impact of short-term volatility on long-term returns.
Does dollar-cost averaging actually work?
Yes, in the sense that it removes the decision-making risk of market timing and makes investing automatic. Whether it produces better returns than a lump sum depends on timing. Vanguard’s 2012 analysis found lump sum investing outperforms DCA in about two-thirds of historical 12-month windows because markets generally trend upward. For investors contributing from a regular paycheck, though, DCA is simply what investing looks like in practice. The data on long-term DCA returns is generally positive over periods of five years or more.
What data does this DCA simulator use?
Price data comes from the Federal Reserve Economic Data (FRED) API, maintained by the Federal Reserve Bank of St. Louis. FRED is the same data source used by academic researchers, economists, and institutional analysts. It provides reliable, government-maintained historical price series for major indices and commodities, updated regularly. Cryptocurrency prices (Bitcoin and Ethereum) use Coinbase daily data published through FRED.
How far back does the historical data go?
The Dow Jones Industrial Average has data from 1896. The S&P 500 goes back to 1957 and NASDAQ to 1971. The Nikkei 225 data begins in 1949. WTI Crude Oil starts in 1986, Brent Crude in 1987, and Natural Gas in 1997. Bitcoin data is available from December 2014 and Ethereum from May 2016.
Is DCA better than lump sum investing?
It depends on your situation. In markets that rise steadily, lump sum outperforms DCA because the full amount compounds from day one. In volatile or declining markets, DCA wins because you avoid putting everything in at a peak. For investors who receive income periodically rather than as a windfall, DCA is effectively the only practical option. This simulator lets you compare both strategies side by side for any asset and date range so you can see which one would have won in any specific historical period.
How often should I invest when dollar-cost averaging?
Weekly, bi-weekly, and monthly are all reasonable. The research shows diminishing returns from increasing frequency beyond monthly. A 2020 study in the Journal of Financial Planning found that monthly DCA and weekly DCA produce nearly identical long-run results. More practically: invest at the frequency that matches your income schedule. If you are paid bi-weekly, set up a bi-weekly automatic transfer. Consistency matters more than frequency.
What is the S&P 500 and why do most people DCA into it?
The S&P 500 is a market-cap-weighted index of 500 large US companies. It is widely used as a proxy for the US stock market as a whole. Over long periods, it has returned roughly 7% per year after inflation (total return including dividends). Low-cost S&P 500 index funds from providers like Vanguard, Fidelity, and Schwab typically charge 0.03% to 0.05% in annual fees, making it one of the cheapest and most efficient ways to invest in equities. Most long-term DCA strategies center on the S&P 500 for these reasons.
Does DCA protect you from market crashes?
It reduces the damage from putting a large sum in right before a crash, but it does not eliminate losses. If you are investing $100 per week and the market drops 40%, your portfolio drops 40% too on whatever you have accumulated. The advantage is that subsequent purchases at lower prices bring your average cost down, so recovery requires less of a rebound than if you had invested everything at the peak. DCA is not a hedge. It is a risk-smoothing approach that works best over long time horizons.
Can I backtest Bitcoin or Ethereum with this simulator?
Yes. Select Bitcoin (USD) or Ethereum (USD) from the asset dropdown. Both use Coinbase daily price data sourced from FRED. Bitcoin data goes back to December 2014 and Ethereum to May 2016. Keep in mind that cryptocurrency has experienced much larger price swings than equity indices. A 5-year DCA into Bitcoin that started in 2017 looks very different from one that started in 2019, so the start date matters more here than it does with the S&P 500.
What does “Nikkei 225 (JPY)” mean for my results?
The Nikkei 225 is Japan’s main stock index and its prices are quoted in Japanese yen. The Best Buy and Worst Buy prices shown will be yen values, which typically range from 15,000 to 45,000 in recent decades. Your total invested, portfolio value, and percentage gain are still calculated in US dollars based on how much you chose to invest per period. The (JPY) label is just a reminder that the per-unit price is in yen, not dollars.
Does this calculator include dividends?
No. FRED price data tracks index price levels, not total return. For the S&P 500, dividends have historically contributed about 1.5 to 2 percentage points of annual return on top of price appreciation. A real brokerage account investing in an S&P 500 index fund and reinvesting dividends would show meaningfully higher results than this simulator over periods of 10 years or more. Treat the numbers here as conservative estimates of price return, not total return.
Why does Natural Gas look so volatile?
Because it is. The Henry Hub spot price regularly swings 30% to 50% within a single year, driven by seasonal heating demand, supply constraints, and weather events. Natural gas is not a typical individual investor DCA target. The simulator includes it because the volatility is instructive: it shows exactly how much your average cost per unit gets smoothed by spreading purchases over time, even in a chaotic market.
About this simulator
Most DCA calculators plug in a static 7% or 10% annual return and extrapolate. This one pulls real price history from the Federal Reserve’s database, so you see how DCA actually performed across real market cycles, not how a model says it should have gone.
The calculation logic is straightforward and transparent: each periodic investment buys fractional units at the closest available price, accumulates shares over time, and values the portfolio at the last price in the range. The DCA vs. lump sum comparison uses the same total invested amount to give a fair apples-to-apples result.
Free to use, no account required, no signup, no paywall. This is not financial advice.