How to use it 01 Paste one price per period, comma-separated — 20 monthly closes is plenty to see the mechanics. 02 Set the contribution per period and the frequency (daily, weekly, monthly, quarterly or annual). 03 Read the two final values and the advantage line: positive means this path favoured DCA, negative means the lump sum won. 04 Compare the average cost with the arithmetic mean price beneath it, and the two IRRs.
Worked readouts The demo series is 20 monthly prices from 100 to 135 with a dip to 76, and the contribution is 1,000 a month:
Readout
DCA
Lump sum
Invested
20,000
20,000
Final value
27,440 (37.20%)
27,000 (35.00%)
Average cost / units
98.397 / 203.259
100 / 200
Annual IRR
46.03% (3.206%/month)
20.87%
DCA finishes +440 ahead, and its average cost of 98.397 sits below the arithmetic mean price of 101.05 — not a coincidence, but the harmonic mean at work.
Why average cost is the harmonic mean Each contribution buys 1000 / price units, so total units are 1000 × Σ(1/p) and average cost is 20,000 / units = 20 / Σ(1/p) — exactly the harmonic mean of the 20 prices, which is always less than or equal to the arithmetic mean, with equality only when every price is identical. That is why "buying the dips" lowers average cost mechanically. The IRR figure is a different animal: the engine lays the contributions out as negative cash flows and the final value as the last inflow, then solves for the per-period rate and compounds it, (1 + r)^12 − 1 for monthly data. Because DCA holds less capital for less time, its money-weighted IRR is usually higher than the lump-sum IRR on the same path — here 46.03% against 20.87% — even though the lump sum can still end with more money.
Limits and honest assumptions
A backtest, not a forecast. The result is a property of the price path you paste; change the last price and the advantage line flips sign.
Gross arithmetic. Commissions, spreads, taxes and dividends are excluded, and the lump-sum leg assumes the whole principal exists at period 1.
One asset. The series is a single price; there is no allocation, no rebalancing and no risk-adjusted comparison. What it does not do. It does not decide whether DCA is right for you, fetch prices, or model dividend reinvestment; use Efficient Frontier for weights and Rebalancing for drift. This page provides general information and scenario estimates based only on the inputs you provide. It is not investment, tax, legal, or other professional advice and does not recommend any rate, product, or institution.
"DCA wins" is a statement about one path On the demo path DCA ends 440 ahead, but a path that only rises makes the lump sum win every time, and a path that only falls makes DCA lose less rather than gain. The comparison is also asymmetric: DCA's advantage comes from investing later, so it is really a statement about the price path's shape, not a free lunch. Read the average cost against the arithmetic mean first — if they are equal, the path was flat and timing did nothing — then check how much of the IRR gap comes from money being exposed for shorter periods.
Where it is used Matching a salary rhythm A monthly saver wants to know what a fixed 1,000 has historically bought through a volatile stretch. Paste the closes, read the units and average cost, and compare with having invested the same 20,000 at the start.
Framing a windfall decision The lump-sum column answers "what if I invested everything on day one?" — the fair baseline for judging whether spreading the same capital over 20 months actually improved the outcome.
Privacy The price series, contribution and results are processed in your browser; nothing is uploaded or stored.
References
Wikipedia, Dollar cost averaging , en.wikipedia.org (访问日期:2026-10-07)— definition, rationale and evidence.
Wikipedia, Harmonic mean , en.wikipedia.org (访问日期:2026-10-07)— why equal amounts give a harmonic average price.
Wikipedia, Internal rate of return , en.wikipedia.org (访问日期:2026-10-07)— money-weighted return from a cash-flow series.
OpenStax, Principles of Finance , openstax.org (访问日期:2026-10-07)— saving and investing decisions over time.
Calculators in this hub
Hand-picked tools, one click away. The mini versions compute live and carry your values into the full calculator.
Sources & review
Reviewed by CalcX Editorial Team
Updated 2026-10-07