FinanceFreeHistorical data

Stock Backtest · DCA Simulator

Set a monthly investment amount and period, then compare historical returns for up to 5 tickers. Supports leveraged ETFs, big tech, and dividend ETFs.

$
Dividend Reinvestment
ON: Adj. Close (dividends reinvested, total return) / OFF: dividends held as cash
Select tickers3/5 · Up to 5

Leveraged ETF · NASDAQ

Leveraged ETF · S&P 500

US Big Tech

Dividend ETF

Others

Leveraged ETFs carry volatility decay risk

How the stock backtest works

This tool reconstructs 'how much you'd have today if you had contributed a fixed amount every month in the past (DCA)' using actual historical prices. Compare up to 5 tickers at once, and use the dividend-reinvestment (DRIP) toggle to factor in dividends. Below we walk through the calculation steps, a worked example of why the CAGR on screen looks lower than the fund's own growth rate, the US taxes and costs the model leaves out, and the common mistakes when reading backtests.

How it works — monthly buys and dividend reinvestment

The backtest simulates buying your contribution amount at each month's price across the selected period (accumulating fractional shares). The key is the dividend-reinvestment toggle. With DRIP ON, it buys at the adjusted close (which already reflects dividends and splits) to follow the 'total return' directly; with DRIP OFF, it buys at the unadjusted close and instead stacks each dividend as cash. So the OFF final value is 'holdings value + accumulated cash dividends', and the total dividends received are shown separately. For the same ticker and period, the amount by which ON exceeds OFF is precisely the dividend-reinvestment effect.

A worked example — $500/month for 10 years, and why the CAGR looks low

Contributing $500 a month for 10 years puts in $500 × 120 months = $60,000 of principal. If the fund had compounded at a steady 10% a year over that span, the position would finish near $102,400 — yet the CAGR the tool reports is (final ÷ invested)^(1/10) − 1 = 5.5%, barely half the fund's 10%. That is not an error. Because this is a contribution plan, every dollar has a different holding period: the $500 from month one compounded for ten full years, while month 120's $500 was invested for a single month, so the average dollar sat in the market only about five years. A $60,000 lump sum would have needed just 5.6 years at 10% to reach the same $102,400. Read the CAGR here as an annualized figure for the whole contribution stream, never as a stand-in for a fund's published return. The max drawdown (MDD) beside it is the deepest fall from a prior peak during the run — the honest answer to 'could you have stomached this?'

What the backtest leaves out — US taxes, fees, and spreads

Every result here is pre-tax and pre-cost. In a taxable brokerage account, selling shares held more than a year triggers long-term capital gains tax of 0%, 15%, or 20% — for 2026 the 0% band runs to $49,450 of taxable income single and $98,900 married filing jointly, with 15% applying up to $545,500 and $613,700 — while anything sold within a year is ordinary income at 10%–37%. High earners add the 3.8% net investment income tax above $200,000 of MAGI single or $250,000 jointly. The DRIP ON line assumes each dividend is reinvested in full, but in a taxable account that dividend is taxed the year it lands, so the amount actually put back to work is smaller. One cost is already inside the data: an ETF's expense ratio is netted out of the fund's own price, so adjusted-close figures carry it — what is missing is your commissions, the bid-ask spread, and taxes. Inside a 401(k), traditional IRA, or Roth IRA there is no annual drag at all, which makes the on-screen number closest to reality there. State income tax is not modeled, and this is information only, not tax advice.

Common mistakes and tips

The most common mistake is extrapolating past returns into the future. A ticker that returned 20% annually over the past decade has no guarantee of repeating it, and cherry-picking only a short boom inflates the result (survivorship bias). The second is getting carried away backtesting leveraged ETFs long-term — a daily 3x ETF like TQQQ suffers 'volatility decay' in choppy markets and does not become a simple 3x. The third is ignoring MDD: if you only look at the final return and can't withstand a -50% stretch, the strategy breaks in practice. As a tip, compare several tickers over the same period side by side and toggle DRIP on and off to directly see how much dividend reinvestment contributes to long-term performance.

Who is this useful for?

Leverage comparison

Compare QQQ (1×), QLD (2×), and TQQQ (3×) under identical conditions to see leverage gains vs. drawdown risk intuitively.

Stock vs index

Compare Tesla or NVIDIA against QQQ or SPY with the same investment amount to see concentrated vs. diversified investment performance.

Validate your DCA strategy

Verify how long-term DCA investing has actually performed using historical data and stress-test your own investment approach.

FAQ

What exactly is a backtest?

A backtest uses real historical price data to check 'what would have happened if I'd used this strategy back then.' This tool computes the past return, max drawdown, and CAGR of investing a fixed monthly amount (DCA) into a given ticker. It lets you validate a strategy after the fact without real trades — useful for stress-testing investing ideas — but always keep in mind that past performance does not guarantee the future.

What's the data source and how accurate is it?

It uses Yahoo Finance adjusted close prices, cached every 24 hours. Adjusted prices reflect both dividend reinvestment and stock splits, giving the most accurate picture of long-term performance. However, Yahoo data is unofficial and may have gaps or errors for some tickers/periods, and delisted or merged tickers won't load. For precise analysis, cross-check with broker or official data.

How do DRIP ON/OFF change the result?

ON computes with 'adjusted prices' (dividends and splits included), showing total return with dividends auto-reinvested. OFF values positions at plain 'close' prices and accumulates received dividends separately as cash. High-yield tickers like SCHD or O show a large gap between the two; near-zero-dividend tickers like QQQ show little. To see realistic long-term performance, reinvest ON is usually closer to reality.

What is max drawdown (MDD) and why does it matter?

MDD (Maximum Drawdown) is the largest drop from a prior peak during the period. For example, if value rises to $100,000 then falls to $60,000, the MDD is −40%. Even with identical CAGR, a strategy with a large MDD is psychologically hard to hold through a downturn, raising the risk of capitulating mid-way. Leveraged ETFs (e.g., TQQQ) can exceed −80% MDD, so it's a risk metric you must check alongside return.

Why do leveraged ETFs lag their multiple over the long run?

Leveraged ETFs like TQQQ and QLD track 2–3× the 'daily' return. The higher the volatility, the more volatility decay accumulates, so long-term performance can fall below 'index return × multiple.' Conversely, in a strong, steady uptrend they can far exceed the nominal multiple. In short, they favor trending markets and hurt in choppy or crashing ones — understand they're short-term trading instruments.

If past returns were good, will the future be good too?

No. The biggest pitfall of backtesting is 'overfitting to the past.' A ticker or strategy that performed best in a given window has no guarantee of repeating, and high past returns often came with proportionally large volatility and risk. Results also shift dramatically with small changes to the start/end dates (timing bias). A backtest is a tool to understand a strategy's character (volatility, drawdown, compounding), not to predict future returns.

Why does the start date change results so much?

Even with DCA, the start and end dates strongly drive results. Starting just before the 2000 dot-com bubble or the 2008 crisis would have left the same ticker underwater for a while. This is 'timing bias,' and you shouldn't generalize from one window. Comparing several start years, or using a long contribution period (10+ years), reduces it. Use this tool to vary the period and check how sensitive the results are.

Can I compare Bitcoin or individual stocks?

Yes. Select BTC-USD for Bitcoin, or enter tickers like Tesla, Nvidia, or Apple to compare individual stocks against ETFs under the same conditions (up to 5 tickers). Note Bitcoin is extremely volatile and individual stocks carry higher concentration risk than indexes. Tickers with a short listing history have limited comparable data, so align the start date for a fair comparison.

Are taxes and trading costs reflected?

No. The backtest is a pre-tax, pre-cost result — it excludes capital gains tax, dividend tax, commissions, and the bid-ask spread. In a taxable account, shares held longer than a year are taxed at the long-term capital gains rates of 0%, 15%, or 20% (for 2026 the 0% band ends at $49,450 of taxable income single, $98,900 married filing jointly), shares sold within a year are taxed at ordinary rates of 10%–37%, and high earners add the 3.8% net investment income tax above $200,000 or $250,000 of MAGI. Dividends are taxable in the year received even when the DRIP toggle reinvests them. One cost is already reflected: an ETF's expense ratio comes out of the fund's own price, so adjusted-close prices include it. Held inside a 401(k), traditional IRA, or Roth IRA, none of the annual tax drag applies and the on-screen figure is closest to what you would actually have kept. Use these results to rank strategies against each other, then subtract your own taxes and costs to estimate real take-home. Information only, not tax advice.

Are you recommending high-risk products like TQQQ?

No. This tool is an informational simulation and does not recommend any specific security. Leveraged ETFs are generally considered unsuitable for long-term accumulation due to volatility decay and drawdowns approaching −80%. Even if a backtest shows high past returns, you must view the underlying max drawdown and volatility alongside them and judge for yourself whether they fit your own risk tolerance.

Related tools

This backtest is for informational purposes based on historical data. Past performance does not guarantee future returns. All investment decisions are your own responsibility — consult a professional before major decisions. Data source: Yahoo Finance Adjusted Close.