Compound Growth

Dollar-Cost Averaging Calculator: DCA vs. Lump Sum

Dollar-cost averaging invests a fixed amount on a schedule regardless of price, buying more units when prices dip. At $500 monthly for 24 months and an assumed 8% average return, it grows to $12,960 — $1,089 less than investing the same $12,000 as a lump sum on day one.

Currency changes the displayed symbol only — figures are not converted by an exchange rate.

DCA Ending Value$12,960
Lump-Sum Ending Value$14,049
Total Invested$12,000
DCA vs. Lump Sum-$1,089
Avg. cost / share
$108.40
Simple avg. price
$108.63

Dollar-cost averagingLump sum

MonthDollar-Cost AveragingLump Sum
1$509.58$12,230.00
2$1,003.69$12,158.66
3$1,532.51$12,391.70
4$2,020.66$12,319.41
5$2,568.97$12,555.54
6$3,051.07$12,482.30
7$3,619.13$12,721.54
8$4,095.10$12,647.33
9$4,683.18$12,889.74
10$5,152.94$12,814.55
11$5,761.29$13,060.16
12$6,224.76$12,983.98
13$6,853.66$13,232.84
14$7,310.76$13,155.64
15$7,960.47$13,407.79
16$8,411.11$13,329.58
17$9,081.91$13,585.07
18$9,526.01$13,505.82
19$10,218.18$13,764.68
20$10,655.66$13,684.39
21$11,369.47$13,946.67
22$11,800.24$13,865.32
23$12,535.99$14,131.07
24$12,959.95$14,048.64

Investing $500 at the start of every month for 24 months ($12,000 total) grows to $12,960 under dollar-cost averaging, versus $14,049 for the same money invested as a lump sum on day one. The lump sum comes out $1,089 ahead here, because it captured the full run of this assumed growth from day one instead of phasing in gradually — the more common outcome when the underlying trend is rising. Dollar-cost averaging still lowered the average cost per unit to $108.40, below the $108.63 simple average price across the same periods — buying more units in the low-price periods pulls the average down every time, whichever strategy ends up ahead.

Disclaimer: This calculator is provided for educational and estimation purposes only and does not constitute formal financial advice.

What this calculator is actually testing

“Dollar-cost averaging always wins” is repeated often enough that it is worth testing directly rather than taking on faith. Dollar-cost averaging (DCA) means committing a fixed dollar amount on a set schedule — monthly, in this calculator — no matter what the price is doing that period. A lump sum means investing the entire pool of money on day one and then leaving it alone. Both strategies end up owning the same asset over the same horizon; the only difference is the timing of when each dollar goes to work.

That timing difference is not cosmetic. A dollar invested in month one is exposed to every period’s return between month one and the end of the plan. A dollar invested in the final month is exposed to exactly one period’s return. Averaging a fixed contribution across many periods necessarily gives most of the money less time in the market than a lump sum gets, which is precisely why the two strategies produce different ending balances even when both are investing in the identical asset.

How this calculator builds the price path

There is no live market feed behind a static page, so this tool does not try to fetch or predict a real price history. It builds a deterministic, documented price path from two numbers you set: an assumed average annual return and a swing around that average. The swing alternates up in odd periods and down in even periods, which is what lets a fixed contribution buy more units in the low-price periods and fewer in the high-price ones — the mechanic dollar-cost averaging is actually built to exploit. Converting both to a monthly figure:

rm=r12,sm=s12r_m = \frac{r}{12}, \qquad s_m = \frac{s}{12}

where r is the average annual return and s is the annualized swing, both as decimals. Each period’s return alternates around that monthly baseline:

rt=rm+(1)t+1smr_t = r_m + (-1)^{t+1} s_m

so odd periods (1, 3, 5, …) get the baseline plus the swing and even periods get the baseline minus the swing. An internal index price starts at 100 — never shown, and never relevant on its own — and evolves period by period:

Pt=Pt1(1+rt)P_t = P_{t-1}(1 + r_t)

Every contribution buys units at the price prevailing the instant it lands, before that period’s return is applied — the same instant a lump sum would already be fully invested at, which is what makes the two strategies directly comparable rather than one getting a head start the other did not.

The two ending values, and the average cost per unit

With a fixed contribution C paid every period for N periods, DCA’s ending value is the units bought each period, revalued at the final price P_N:

VDCA=PNt=1NCPt1V_{DCA} = P_N \sum_{t=1}^{N} \frac{C}{P_{t-1}}

The lump sum invests the same total capital, C · N, at the starting price P_0 and rides the entire path to P_N:

VLump=CNPNP0V_{Lump} = C \cdot N \cdot \frac{P_N}{P_0}

Average cost per unit is total dollars spent divided by total units bought — a harmonic average, since it is weighted by equal dollar amounts rather than equal unit counts:

cˉ=CNt=1NC/Pt1\bar{c} = \frac{C \cdot N}{\sum_{t=1}^{N} C / P_{t-1}}

That harmonic average is never larger than the plain arithmetic average of the same prices, Pˉ=1NPt1\bar{P} = \frac{1}{N}\sum P_{t-1} — buying more units when the price is down pulls the weighted average down every time. This is the one part of dollar-cost averaging that is unconditionally true regardless of market direction; whether it translates into a higher ending balance than a lump sum depends entirely on which way the asset actually moved.

Same swing, different trend: when DCA wins

Holding the swing at 15% and the horizon at 24 months, moving only the assumed average annual return shows exactly where the crossover sits. Every row here — including the 0% one — still carries that same 15% swing, so the 0% row is not a flat, no-movement path; a genuinely flat path is covered separately below.

Avg. annual returnDCA ending valueLump-sum ending valueDifferenceWinner
10%$13,239$14,618−$1,379Lump sum
6%$12,688$13,501−$813Lump sum
2%$12,165$12,466−$301Lump sum
0%$11,914$11,978−$64Lump sum
−2%$11,669$11,507+$161DCA
−6%$11,197$10,620+$577DCA

The pattern is exactly what “more time in the market” would predict: every assumed uptrend favors the lump sum, and only once the assumed trend turns meaningfully negative does phasing the money in gradually start to help. The crossover in this model sits between 0% and roughly −1% — a market that is flat to mildly declining is close to indifferent between the two strategies, and the swing itself (buying more on dips) is what keeps DCA from losing by even more than the pure time-in-market gap would otherwise produce.

The gap compounds with the horizon

Holding the return at 8% and the swing at 15%, only stretching the number of months shows how much the stakes of this choice scale with time:

MonthsTotal investedDCA ending valueLump-sum ending valueDifference
12$6,000$6,225$6,492−$267
24$12,000$12,960$14,049−$1,089
60$30,000$36,664$44,489−$7,825
120$60,000$91,036$131,952−$40,916

Doubling the horizon from 60 to 120 months more than quintuples the gap, not merely doubles it — the lump sum’s extra time-in-market advantage compounds on itself the same way regular compound interest does. This is the practical argument for lump-sum investing whenever the full amount is genuinely available: the longer the horizon, the more expensive it becomes to phase money in instead of putting it to work immediately.

The cost-basis benefit survives even when DCA loses

The gap above measures who ends up with more money. It says nothing about whether dollar-cost averaging still did its one guaranteed job: lowering the average price paid per unit. Using the same return scenarios as the first table, average cost per unit versus the simple average price:

Avg. annual returnAvg. cost per unitSimple average priceDCA still wins the ending-value race?
10%$110.42$110.78No
6%$106.40$106.53No
2%$102.47$102.49No
−2%$98.62$98.64Yes
−6%$94.85$94.97Yes

The average-cost column sits below the simple-average column in every single row, whether or not dollar-cost averaging won the larger battle over ending value. That consistency is the mathematical guarantee: a fixed dollar amount buying a varying number of units always produces a harmonic average at or below the arithmetic one. It just is not, by itself, a guarantee of beating a lump sum — those are two different claims that get conflated constantly in casual investing advice.

Volatility drag: why a flat average can still lose ground

Set the average annual return to 0% and the swing to anything above zero and both strategies still end up slightly behind where they started — $11,914 for DCA and $11,978 for the lump sum on $12,000 invested, at the calculator’s defaults with the return zeroed out. That is not a bug; it is volatility drag (sometimes called variance drain), and it is worth understanding on its own because it shows up in real markets too, not just this model.

Alternating a fixed percentage up and then down does not return a price to where it started, because a percentage loss needs a larger percentage gain to offset it than the size of the loss itself. Swinging 15% up and then 15% down across two periods multiplies the price by 1.15×0.85=0.97751.15 \times 0.85 = 0.9775 — a net loss of 2.25% — even though the simple average of +15% and −15% is exactly 0%. The wider the swing around a flat trend, the larger this drag. It is a real feature of compounding returns, and it is one reason a volatile asset with a 0% average annual return can still lose money over time even before fees or taxes enter the picture.

What this model deliberately does not do

This calculator is a teaching tool for the mechanics of dollar-cost averaging, not a market simulator or a forecasting tool, and the simplifications are worth stating plainly. The alternating up-then-down pattern is an artificial device chosen to make the “buy more on dips” mechanic visible and auditable — real prices do not move in a fixed two-period cycle, and no real asset’s future returns are known in advance the way this model’s inputs are. The model also ignores dividends, capital-gains and income taxes, brokerage fees, bid-ask spreads, and any behavioral factor — such as an investor stopping contributions during a real downturn, which is the single most common way dollar-cost averaging fails in practice, and something a static formula cannot capture. Use this tool to understand why the two strategies produce different numbers, then apply that understanding with real, asset-specific return assumptions — or, more honestly, with the acknowledgment that nobody knows the sequence of returns in advance, which is the actual reason DCA appeals to many investors regardless of what the expected-value math says.

Frequently asked questions

What is dollar-cost averaging?

Dollar-cost averaging (DCA) is investing a fixed dollar amount on a regular schedule — monthly, say — regardless of whether the price that period is high or low. The fixed dollar amount mechanically buys more units when the price is down and fewer when it is up, which lowers your average cost per unit below the simple average of the prices you bought at. It is a discipline for removing timing decisions from investing, not a technique for beating the market.

Does dollar-cost averaging actually beat a lump sum?

Usually not, if the asset trends upward, because a lump sum is fully invested from day one and captures the whole run of gains, while DCA phases in gradually and only partially benefits. In this calculator, holding the swing at 15% and moving only the average annual return, the lump sum wins at every return from 8% down to about 0%, and dollar-cost averaging only pulls ahead once the assumed trend turns decisively negative. Historically, since broad equity markets rise more years than they fall, lump-sum investing wins in expectation — DCA is better understood as a risk-reduction tool than a return-boosting one.

Is this calculator predicting what the market will actually do?

No. There is no live price feed behind it. It builds a deterministic, illustrative price path from two assumptions you set — an average annual return and a swing — applied as a mechanical up-then-down alternation each period. Real markets do not move in a fixed two-month cycle; this pattern exists purely to demonstrate the mechanic of buying more units when the price dips, not to forecast any real security. Treat every output as a worked example of the arithmetic, not a projection of actual future returns.

Why does the average cost per share differ from the simple average price?

Because dollar-cost averaging buys a different number of units every period — more when the price is low, fewer when it is high — so the average cost is a units-weighted (harmonic) average, not a plain average of the prices. A harmonic average of a set of unequal numbers is always less than or equal to their arithmetic average, so your average cost per share can never exceed the simple average price across the same periods. That gap is the one part of this calculator that holds regardless of which strategy ends up ahead on total dollars.

Why does a 0% average return still show a small loss with a nonzero swing?

This is volatility drag (also called variance drain): alternating a fixed percentage up and then down does not return to the starting price, because a loss requires a larger percentage gain to offset it than the percentage it took away. Swinging 15% up then 15% down two periods in a row multiplies the price by 1.15 x 0.85 = 0.9775, a net loss of 2.25%, even though the simple average of +15% and -15% is exactly 0%. The wider the swing around a flat average, the larger this drag, independent of which direction the asset ultimately trends.

Related calculators

  • Compound Interest

    Project monthly deposits over decades, with the formula and a year-by-year chart.

    Compound Growth

  • Rule Of 72 Calculator

    Compare the 72/rate shortcut to the exact doubling-time formula.

    Compound Growth

  • Inflation-Adjusted Goal

    What today's goal actually costs in future dollars, and the deposit that really gets you there.

    Savings

  • Dividend Reinvestment (DRIP)

    Reinvesting dividends vs. taking them as cash: the compounding edge, in dollars.

    Compound Growth

  • FIRE Calculator

    Your FI number from the 4% rule, plus the savings rate and years to financial independence.

    Retirement

From the blog