Is there a mathematical proof for dollar-cost averaging
Short answer
There is a proof that dollar-cost averaging reduces average cost per share below the average market price, but no proof that it beats lump-sum investing. By the AM-HM inequality, investing equal dollar amounts buys more shares at lower prices, yielding a harmonic mean share cost less than or equal to the arithmetic average.
Formula and recurrence relations
Shares Purchased at Period i: s_i = I / p_i Total Shares: S = I · ∑ (1 / p_i) Average Cost per Share (Harmonic Mean): H = n / ∑ (1 / p_i) AM-HM Inequality: H <= A = (1 / n) · ∑ p_i
What Is Mathematically Provable: The AM-HM Inequality
When an investor deploys a fixed dollar amount I across n periods at market prices p_1, p_2, ..., p_n, the number of shares bought in each period is s_i = I / p_i. At lower prices, more shares are bought; at higher prices, fewer shares are bought.
The total number of shares accumulated is S = sum(I / p_i) = I * sum(1 / p_i). The total capital invested is T = n * I. Therefore, the average dollar cost per accumulated share is:
Average Cost = T / S = (n * I) / [I * sum(1 / p_i)] = n / sum(1 / p_i)
This expression is the classical Harmonic Mean (H) of the share prices. By the fundamental Arithmetic Mean - Harmonic Mean (AM-HM) inequality, the harmonic mean of positive real numbers is always less than or equal to their arithmetic mean: H <= A, with equality holding if and only if all prices p_1 = p_2 = ... = p_n are identical.
This proves mathematically that dollar-cost averaging guarantees your average cost per share will be lower than the simple average of market prices whenever prices fluctuate.
What Is NOT Proven: Average Cost vs Total Returns
A lower average cost per share is an accounting property of the harmonic mean, not a theorem of superior investment returns. It does not prove that DCA beats investing a lump sum.
To illustrate: if a stock starts at $10 and trends steadily upward to $50 over five periods, a DCA investor achieves a harmonic mean cost of ~$18.70, which is below the average market price of $30. However, a lump-sum investor who deployed all capital on day one bought everything at $10.00, earning vastly higher total returns.
The harmonic mean property only guarantees that DCA improves upon buying equal share counts (fixed share purchasing), not that it outperforms deploying capital early.
Lump Sum vs DCA: Expected Return Trade-Offs
If an asset class has a positive expected return (E[r] > 0), capital deployed earlier has more elapsed time to compound. Consequently, lump-sum investing has a higher expected monetary value than dollar-cost averaging.
Historical market analyses generally observe that lump-sum deployment outperforms dollar-cost averaging in approximately two-thirds of historical rolling periods in broad equity markets.
Dollar-cost averaging is not an alpha-generation engine; it is a risk-mitigation framework. It reduces timing risk (the regret of investing right before a severe crash) and aligns with human cash flow constraints (investing salary savings as they arrive).
Harmonic Mean vs Arithmetic Mean Proof on a Volatile Price Cycle
We simulate an investor deploying $1,000 per period across 5 periods through a volatile price cycle: $100 -> $50 -> $25 -> $50 -> $100.
| Period | Share Price | Dollars Invested | Shares Bought | Cumulative Invested | Cumulative Shares | Avg Cost / Share |
|---|---|---|---|---|---|---|
| Period 1 | $100.00 | $1,000 | 10.00 | $1,000 | 10.00 | $100.00 |
| Period 2 | $50.00 | $1,000 | 20.00 | $2,000 | 30.00 | $66.67 |
| Period 3 | $25.00 | $1,000 | 40.00 | $3,000 | 70.00 | $42.86 |
| Period 4 | $50.00 | $1,000 | 20.00 | $4,000 | 90.00 | $44.44 |
| Period 5 | $100.00 | $1,000 | 10.00 | $5,000 | 100.00 | $50.00 |
Numbered Step-by-Step Procedure:
Average market price: ($100 + $50 + $25 + $50 + $100) / 5 = $350 / 5 = $65.00.
Total capital $5,000 divided by 100 accumulated shares = $50.00 average cost per share.
Because prices fluctuated, harmonic mean ($50.00) is strictly below arithmetic mean ($65.00), a 23.08% discount.
Common mistakes
- ✕Believing a lower average cost per share implies outperformance over lump-sum investing in upward-trending markets.
- ✕Assuming DCA eliminates market risk: once all capital is deployed, the portfolio bears 100% of subsequent market drawdowns.
- ✕Delaying lump-sum investments indefinitely out of fear, generating cash drag that often exceeds drawdown avoidance benefits.
Dollar-Cost Averaging Calculator
Simulate lump-sum vs DCA strategies across customizable market regimes and volatility profiles.
Related resources
Dollar-Cost Averaging Guide
First-principles systems guide deconstructing cash flow timing, risk spreading, and volatility.
Dollar-Cost Averaging in the Systems Glossary
Formal definition, mathematical properties, and behavioral implications of periodic investing.
Book 02: Buy the Average
Our short book on why systematic indexing and periodic contributions simplify portfolio mechanics.
Volatility Drag: Geometric vs Arithmetic Returns
Why variance reduces multi-period geometric returns and how periodic return swings compound.
Portfolio Rebalancing: Calendar vs Threshold Bands
Controlling portfolio weight drift systematically alongside ongoing contributions.