Skip to main content
Questions for Technical Minds

Is there a mathematical proof for dollar-cost averaging

Last updated: 2026-11-10Author: WealthSyntax Editorial Team
#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.

Educational content only, not financial advice. Examples use constant, hypothetical returns.
Mathematical Foundation

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
Symbol Legend:
I:Fixed dollar amount deployed at each scheduled investment interval
p_i:Share price of the asset at interval i
s_i:Number of shares acquired at interval i: s_i = I / p_i
H:Harmonic mean purchase price, which equals your average cost per share
A:Arithmetic mean of the market prices over the same observation window
n:Total number of periodic investment intervals

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).

Verified Worked Example

Harmonic Mean vs Arithmetic Mean Proof on a Volatile Price Cycle

Type: am-hm-proof-walkthrough

We simulate an investor deploying $1,000 per period across 5 periods through a volatile price cycle: $100 -> $50 -> $25 -> $50 -> $100.

DCA Share Accumulation Schedule Across a 5-Period Volatility Cycle
PeriodShare PriceDollars InvestedShares BoughtCumulative InvestedCumulative SharesAvg Cost / Share
Period 1$100.00$1,00010.00$1,00010.00$100.00
Period 2$50.00$1,00020.00$2,00030.00$66.67
Period 3$25.00$1,00040.00$3,00070.00$42.86
Period 4$50.00$1,00020.00$4,00090.00$44.44
Period 5$100.00$1,00010.00$5,000100.00$50.00

Numbered Step-by-Step Procedure:

1Step 1: Compute Arithmetic Mean Price

Average market price: ($100 + $50 + $25 + $50 + $100) / 5 = $350 / 5 = $65.00.

$65.00
2Step 2: Compute Harmonic Mean Share Cost

Total capital $5,000 divided by 100 accumulated shares = $50.00 average cost per share.

$50.00
3Step 3: Evaluate AM-HM Spread

Because prices fluctuated, harmonic mean ($50.00) is strictly below arithmetic mean ($65.00), a 23.08% discount.

-23.08% discount
Observation: By investing equal dollars rather than buying equal share counts, the investor accumulated 40 shares at the $25 bottom and only 10 shares at the $100 peak, driving average cost down to $50.00.
Analytical Pitfalls

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.
Try it interactively

Dollar-Cost Averaging Calculator

Simulate lump-sum vs DCA strategies across customizable market regimes and volatility profiles.

Launch DCA Calculator
Further Reading

WealthSyntax provides educational systems analysis and financial mechanics for analytical minds.

Educational content only, not financial advice. Examples use constant, hypothetical returns.