Dollar-Cost Averaging Calculator — DCA Returns

Simulate dollar-cost averaging vs. lump-sum investing over any period. Compare average cost per share, total invested, portfolio value, and risk-adjusted returns across market scenarios.

Price Scenario

What Is the Dollar-Cost Averaging Calculator — DCA Returns?

Dollar-cost averaging (DCA) is an investment strategy where you invest a fixed dollar amount at regular intervals, regardless of market conditions. This calculator simulates four distinct market scenarios — stable, rising, falling, and volatile — and compares DCA outcomes with a lump-sum investment of the same total capital. The volatile scenario uses a realistic sine-wave price path that reveals the mathematical edge DCA has over lump-sum investing in sideways, choppy markets.

  • Four price scenarios — Stable (flat price), Rising (steady growth), Falling (steady decline), and Volatile (sine-wave oscillation with a slight upward drift).
  • Month-by-month detail — every period shows the price, shares bought, cumulative shares, and portfolio value as a scrollable table.
  • DCA vs. Lump Sum — the same total capital deployed at once vs. spread over time, with clear winner identification for each scenario.
  • Weighted average cost — actual DCA cost per share computed as the harmonic mean, not the arithmetic mean of prices paid.
  • CAGR — annualised return for both DCA and lump sum to normalise comparisons across different investment periods.

Formula

Shares Purchased Each Period

shares_t = investment / price_t

Dollar-Cost Average (Weighted Average Cost)

DCA = Total Invested / Total Shares

= Σ(investment) / Σ(investment / price_t)

Portfolio Value

Value = total_shares × final_price

CAGR

CAGR = (final_value / total_invested)^(12/months) − 1

Why DCA Average Cost is Always ≤ Simple Average Price

Mathematically, the harmonic mean (DCA cost) is always ≤ the arithmetic mean (simple average price). This is the core DCA advantage in volatile markets: buying more shares when prices are low and fewer when prices are high means your average cost is inherently lower than the average price.

How to Use

  1. 1
    Set monthly investment: The fixed dollar amount you invest each month. Common amounts: $100, $500, $1,000.
  2. 2
    Set investment period: How many months to simulate (1–120). Longer periods show the full power of compounding and averaging.
  3. 3
    Enter starting price: The price per share at the start of the investment period.
  4. 4
    Choose a price scenario: Stable keeps price flat. Rising grows ~1%/month. Falling drops ~1%/month. Volatile uses a sine wave with upward drift — the most realistic scenario for most assets.
  5. 5
    Click Calculate: Results show total invested, average cost per share, final portfolio value, total return %, and CAGR.
  6. 6
    Compare with lump sum: The comparison panel shows what would have happened if you invested all the money on day one at the starting price.
  7. 7
    Scroll the table: The month-by-month table shows exactly when DCA outperforms lump sum and why.

Example Calculation

$500/month for 12 months, volatile market starting at $50/share

Total invested = $500 × 12 = $6,000

Volatile prices (sine wave): $50, $45, $42, $47, $53, $58, $55, $48, $44, $49, $54, $57

Shares bought each month: 10.0, 11.1, 11.9, 10.6, 9.4, 8.6, 9.1, 10.4, 11.4, 10.2, 9.3, 8.8

Total shares accumulated: 120.8 shares

DCA average cost: $6,000 / 120.8 = $49.67/share

Lump sum: $6,000 / $50 = 120 shares

Final price: $57

DCA value: 120.8 × $57 = $6,886 (+14.8%)

Lump sum: 120.0 × $57 = $6,840 (+14.0%)

DCA edge in volatile markets

DCA accumulated 0.8 more shares than the lump sum investor by buying more at the dips ($42–$45) and fewer at the peaks ($57–$58). The average cost of $49.67 vs. the lump sum cost of $50 translates to a slightly higher final value. The advantage is amplified in more volatile markets with larger price swings.

Understanding Dollar-Cost Averaging — DCA Returns

Financial Disclaimer

This calculator is for educational and planning purposes only. It does not constitute financial advice. Consult a qualified financial advisor before making investment or retirement decisions. Tax rules and contribution limits change annually; verify current limits at irs.gov.

When DCA Wins vs. Lump Sum

The academic literature is clear on one point: in a market that consistently trends upward, lump-sum investing outperforms DCA about two-thirds of the time — simply because more capital is invested sooner and benefits from more growth. However, DCA wins in three real-world situations:

  • Volatile, sideways markets — buying more shares at dips and fewer at peaks lowers your average cost below the arithmetic mean of prices.
  • You do not have a lump sum — most investors save from regular income. For them, DCA is not a choice; it is the only viable path.
  • Risk reduction — DCA eliminates the risk of investing everything at a market peak. For risk-averse investors, the reduced anxiety and reduced regret risk is a genuine benefit.

The Harmonic Mean Advantage

The mathematics behind DCA's averaging effect is the harmonic mean. When you invest a fixed dollar amount, the average cost per share equals the total dollars divided by total shares — which is the harmonic mean of the prices paid. The harmonic mean is always less than or equal to the arithmetic mean. This means your DCA average cost is always at most equal to — and in volatile markets, substantially below — the simple average of prices during your investment period.

DCA in Practice — Index Funds and 401(k)s

The most common implementation of DCA is a regular 401(k) contribution that automatically buys index fund shares each pay period. This is textbook DCA — fixed dollar amount, regular intervals, regardless of market conditions. The investor does not need to time the market, monitor volatility, or make active decisions. The discipline is built into the payroll system.

Frequently Asked Questions

Does dollar-cost averaging always outperform lump-sum investing?

  • Rising market: lump sum wins ~67% of the time (Vanguard 2012 research)
  • Volatile/sideways market: DCA typically wins — harmonic mean effect
  • Falling market: DCA wins by accumulating more shares at lower prices
  • Main DCA benefit: eliminates timing risk and the behavioral trap of waiting for "the perfect moment"

What is the difference between DCA average cost and the average price?

Example: investing $100 at $10 and $100 at $20:

  • Arithmetic mean price: ($10 + $20) / 2 = $15
  • DCA average cost: $200 / (10 + 5) = $200 / 15 = $13.33
  • You bought more shares when the price was low ($10), which pulls your average cost below $15
  • This effect grows with price volatility

How do I calculate CAGR from DCA returns?

CAGR = (Final Value / Total Invested)^(12/months) − 1

  • Normalises returns across different investment periods for comparison
  • Note: because capital is invested gradually, CAGR slightly overstates annualised return vs. IRR
  • IRR (internal rate of return) is the theoretically correct metric for staggered cash flows
  • For quick comparison between scenarios, CAGR is sufficient

What is the volatile price scenario in this calculator?

  • Sine wave oscillations simulate market ups and downs
  • Small upward drift models the long-run equity premium
  • DCA buys more shares during the troughs and fewer during the peaks
  • This scenario most clearly illustrates the harmonic mean advantage of DCA

Should I use DCA for crypto investments?

  • High volatility amplifies the DCA harmonic mean advantage
  • Reduces the risk of buying an entire position at a cyclical peak
  • Does not protect against sustained bear markets or asset becoming worthless
  • Popular approach: weekly DCA into BTC or ETH via exchange auto-invest features

What investment period makes sense for DCA simulation?

  • 12 months: useful for annual comparison and volatile market illustration
  • 24–36 months: shows intermediate-term effects clearly
  • 60–120 months: longer-horizon DCA, closer to real portfolio timelines
  • For retirement planning horizons (20–40yr), use the Investment Calculator

Related Calculators