Skip to content
StatesideCalc

Dollar-Cost Averaging Calculator

See exactly how dollar-cost averaging lowers your average cost per share compared to the market's simple average price, using your own investment amount and timeline.

By StatesideCalc EditorialLast verified July 29, 2026
$
$
$

The mechanic behind “buy more when it’s cheap, less when it’s expensive”

Dollar-cost averaging means investing a fixed dollar amount on a regular schedule, regardless of price — and the mathematical consequence of that fixed dollar amount is automatic: when the price is low, the identical dollar amount buys more shares; when the price is high, it buys fewer. This calculator demonstrates that mechanic directly with your own numbers, showing exactly how your average cost per share compares to the market’s simple average price over the same period.

Why average cost per share and average price are different numbers

This distinction confuses people the first time they see it, and it is worth being precise about. A simple average of prices treats every period identically, regardless of how much was actually invested at each price. A share-weighted average cost, by contrast, is total dollars invested divided by total shares accumulated — which naturally weights toward the periods where more shares were purchased per dollar, meaning the lower-priced periods.

Whenever the price genuinely fluctuates rather than moving in one steady direction, this weighting effect pulls your average cost per share below the simple average price — a real, mechanical result of the fixed-dollar purchase schedule, not a trick or an approximation.

The historical evidence actually favors investing sooner, not spreading out

This is the part that surprises people who assume dollar-cost averaging is simply the safer, smarter approach: extensive historical analysis generally shows that investing a lump sum immediately has outperformed spreading it out via dollar-cost averaging more often than not, over most historical periods studied. The reason is straightforward — markets have historically risen more often than they have fallen over most measured periods, so money invested sooner spends more time exposed to that generally upward drift.

This does not mean dollar-cost averaging is a mistake. It means its real value is not a higher expected return — it is something else entirely.

The genuine value of dollar-cost averaging is behavioral, not mathematical

Where DCA earns its keep is in reducing a specific, painful risk: investing a large sum of money right before a significant decline, and the very real psychological difficulty of watching that entire sum drop in value all at once. Spreading the investment across several months converts one large, high-stakes timing decision into several smaller ones, which meaningfully reduces the regret and anxiety many investors feel — and that reduced anxiety translates into a real, practical benefit: investors who stick with their plan rather than panicking and pulling out during a decline tend to do better than those who abandon a sound strategy under stress.

In other words, DCA is often the right choice not because it produces a higher expected return, but because it is easier to actually follow through with, and a strategy you can stick to consistently beats a theoretically optimal one you abandon at the worst possible moment.

When dollar-cost averaging genuinely wins on the numbers

There is one clear condition under which DCA mathematically outperforms a lump sum: when the price actually declines during the averaging period. In that specific scenario, later purchases buy progressively more shares at progressively lower prices, and the resulting average cost per share ends up below where a lump-sum investor would have bought in at the start.

This calculator lets you model that scenario directly by setting an ending price below the starting price, which shows the mechanical advantage DCA provides in a genuinely declining market — the tradeoff, of course, is that nobody knows in advance which scenario a specific future period will turn out to resemble.

Applying this to a recurring investment plan

Most people already dollar-cost average without necessarily calling it that — a regular payroll contribution to a 401(k) or an automatic monthly transfer into a brokerage account both follow the identical fixed-schedule, fixed-amount pattern this calculator models, whether or not the investor consciously thinks of it in those terms.

The lump sum versus DCA calculator runs the direct comparison for someone deciding how to deploy a specific windfall — an inheritance, a bonus, proceeds from a sale — where the choice between investing immediately and spreading it out is an active decision rather than the default behavior of a recurring paycheck contribution. And the compound interest calculator is useful for projecting how a regular contribution schedule like this one grows over a much longer horizon than a single averaging period.

How this is calculated

Each period: shares bought = fixed investment ÷ that period's share price Average cost per share = total invested ÷ total shares accumulated This is a share-weighted average, which differs from a simple average of the period's prices

Frequently asked questions

Why is my average cost per share usually lower than the average share price?
Because a fixed dollar investment automatically buys more shares when the price is low and fewer shares when the price is high, which weights your average cost toward the periods when you got more shares per dollar — a simple average of prices treats every period equally regardless of how many shares each price actually bought.
Is dollar-cost averaging better than investing a lump sum all at once?
Historically, a lump sum invested immediately has outperformed dollar-cost averaging on average, simply because markets rise more often than they fall over most periods, so money invested sooner has more time working in the market. DCA's real value is behavioral — it reduces the risk of investing a large sum right before a decline and provides psychological comfort — rather than a mathematical edge.
Does dollar-cost averaging reduce risk or just spread it out?
It spreads out timing risk (the risk of investing everything right before a downturn) but does not reduce market risk overall, since you end up with the same market exposure once the DCA period ends. It converts one large timing decision into many smaller ones, which many investors find easier to stick with even if it does not improve expected returns.
When does dollar-cost averaging actually outperform a lump sum?
DCA outperforms specifically when the price declines during the averaging period, since the fixed dollar investment buys progressively cheaper shares as the price falls — this calculator lets you model exactly that scenario by setting an ending price below the starting price, which shows DCA's advantage directly.

Sources