Free tool · No sign-up

    DCA Backtest Calculator

    See what a dollar-cost averaging plan would have been worth using historical prices. Choose a stock, ETF or cryptocurrency, your contribution amount, purchase frequency and start and end dates. Compare total invested, ending value and returns with a lump sum—free, without signing up.

    The lump sum assumes all contributions were available at the first purchase. Stocks and ETFs can also be compared with SPY and use dividend-adjusted prices where available. Fees, taxes and currency conversion are excluded; historical results are not forecasts.

    Plan

    On: buys use dividend-adjusted prices, so distributions compound like they would in a real account. Off: share price only.

    Total invested
    $7400
    37 contributions
    DCA portfolio value
    $11079
    49.7% · $3679
    Lump-sum value
    $14760
    99.5% · $7360
    SPY (S&P 500), same plan
    $9274
    25.3% · $1874
    DCA money-weighted IRR
    28.3%
    Lump CAGR 25.7% · 3.0y

    DCA vs lump sum vs the S&P 500

    • Cumulative invested
    • DCA value
    • Lump-sum value
    • SPY, same plan
    2023-11-202024-02-272024-06-032024-09-092024-12-122025-03-242025-06-302025-10-032026-01-092026-04-172026-07-242026-11-06$0$4000$8000$12000$16000

    Plan summary

    Asset
    AAPL
    Cadence
    Monthly · $200
    Range
    2023-11-01 → 2026-11-09
    Contributions
    37
    Shares accumulated
    32.36
    Avg cost basis
    $228.68
    First buy price
    $171.65
    Latest price
    $342.37
    Dividends contributed
    +$72

    How this DCA backtest works

    Dollar-cost averaging means investing a fixed amount at regular intervals. This backtest asks what that plan would have produced over a past period; it does not forecast the next one. Choose a stock, ETF or cryptocurrency, a contribution amount, a date range and a monthly, weekly or every-two-weeks schedule.

    Purchase dates and fractional units

    The schedule starts on your selected start date. Weekly purchases advance by seven calendar days and every-two-weeks purchases by fourteen; monthly purchases advance by a calendar month, so month-end dates can shift. Each purchase uses the first available daily closing price on or after its scheduled date, within the end date. A weekend or missing price can therefore move the purchase to a later date.

    Units bought equal the contribution divided by that date’s price. Fractional shares or coins are allowed with no rounding to whole units. For example, a $200 contribution at a $100 price buys two units; at $80 it buys 2.5. These are illustrative numbers, not historical results. The final value is accumulated units multiplied by the last available price on or before the end date.

    Reading the return figures

    • Total invested: contribution amount multiplied by the number of completed purchases, not an estimate based on years.
    • Gain or loss: final value minus total invested. The percentage divides that difference by total invested; it is not an annual return.
    • Average cost basis: total invested divided by accumulated units, rather than the simple average of purchase prices.
    • DCA money-weighted IRR: an annualized estimate using each purchase date as a cash outflow and the ending value as a cash inflow. It reflects when money entered the plan.
    • Lump-sum CAGR: the annualized growth rate of investing the full contribution total at the first purchase price. Its funding assumption differs from DCA, so it is not a like-for-like return metric.

    The IRR is a numerical estimate, with a search range of −99% to +500% per year. Extreme results can reach those bounds, and short periods can produce misleading annualized percentages. Read the ending value, contribution total and dates alongside it.

    Dividend and comparison assumptions

    With reinvestment on, stocks and ETFs use dividend-adjusted history where available. Adjusted prices represent a reinvestment model, not actual broker execution prices. Shares accumulated and cost basis in that mode are model units, not a reconstruction of your account’s share ledger.

    “Dividends contributed” is the difference between the final adjusted-series result and the price-only result for the same plan. It includes the modeled compounding effect; it is not a cash-dividend total or a payment-by-payment tax record. Without adjusted history, the asset uses price-only data.

    The lump-sum comparison invests the DCA plan’s full contribution total on its first purchase date. No interest is credited to cash awaiting future DCA purchases. The SPY comparison uses the same plan settings and dividend toggle, but each asset uses its own available prices. If their histories cover different dates, actual purchases and invested totals can differ: check coverage before declaring a winner.

    What this backtest does not include

    • Trading costs and taxes. Commissions, spreads, slippage, dividend withholding and capital-gains taxes are not deducted. Daily closing prices are not guaranteed execution prices.
    • Currency conversion and inflation. Contributions and results are displayed in dollars; the calculator does not convert a euro budget or calculate FX gains. Confirm the chosen listing’s quote currency. Values are nominal, not inflation-adjusted.
    • Every asset or every date. Historical data comes from FMP and can be incomplete or unavailable, especially before a listing began. Requests are capped at 3,660 days (about ten years); a longer range moves the data start forward automatically. Missing dates use the next available price for purchases; an early end to coverage leaves the ending value based on an older price. Check the actual first buy date and contribution count against your requested range.
    • Broker restrictions. The model assumes fractional purchases without minimum order sizes or reinvestment delays. Your broker’s rules may produce different results.
    • A complete investment-risk assessment. A profitable backtest does not measure every drawdown, concentration risk or chance of permanent loss. Selecting today’s surviving assets and a favorable date range can overstate how easy past investing was.

    Test more than one start date, including difficult market periods, and compare equal funding and data coverage. For a broader view of diversification and downside scenarios, use the Portfolio Risk Analyzer. Historical results are not a recommendation or a guarantee of future returns.

    DCA questions

    What is dollar-cost averaging (DCA)?

    Investing a fixed amount on a fixed schedule — for example $200 every month — regardless of the price. You buy more units when prices are low and fewer when they are high. It spreads purchase timing, but does not prevent losses or make a risky asset safe.

    Is DCA better than investing a lump sum?

    Neither wins in every period. The comparison here assumes the entire contribution total was available on the first purchase date for the lump sum. If you invest from each paycheck, that is a hypothetical alternative, not necessarily a plan you could have funded.

    How are dividends handled?

    For stocks and ETFs, reinvestment is enabled by default when dividend-adjusted history is available. This models reinvestment through an adjusted price series rather than individual dividend payments. Turning it off uses price-only history; dividends held as cash are not added to that result.

    Why compare with the S&P 500?

    SPY is an ETF tracking the S&P 500, used here as a broad US-equity reference rather than the index itself. It runs with the same requested dates, contribution amount, cadence and dividend setting. It is omitted for crypto, when SPY is selected, or when benchmark data is unavailable.

    Where does the data come from?

    Historical prices come from FMP. Results do not include fees or taxes and past performance does not guarantee future returns.

    Do I need an account?

    No. The backtest is free and works without signing up. You can share any plan with a link.

    Want the full research workspace?

    Fundamentals, projections, portfolio tracking and alerts for stocks, crypto and tokenized assets.

    Foremetrics provides data, tools and analysis for informational and educational purposes only. It is not financial, investment or tax advice, and nothing on this site is a recommendation to buy or sell any security. Investing involves risk, including the loss of capital. © 2026 Foremetrics. .