Dollar-Cost Averaging (DCA): What It Is and How to Simulate
TL;DR
- Dollar-cost averaging (DCA) means investing a fixed dollar amount at regular intervals regardless of price — you buy more shares when prices are low and fewer when prices are high, mathematically lowering your average cost per share to the harmonic mean of purchase prices.
- Lump-sum investing beats DCA ~68 % of the time (Vanguard 2023) because markets trend up; the opportunity cost of holding cash grows with equity allocation and time — Vanguard recommends keeping any systematic implementation under 12 months.
- Transaction costs create an optimal DCA frequency: with a $20 commission and $500 per period at a 6 % expected return, the breakeven interval is ~10 weeks; more frequent trades lose more to fees than they gain from earlier market exposure.
What Is Dollar-Cost Averaging?
Dollar-cost averaging means investing your money in equal portions, at regular intervals, regardless of the ups and downs in the market.1 The term was coined by Benjamin Graham in The Intelligent Investor (1949), who described it as investing "the same number of dollars each month or each quarter… one buys more shares when the market is low than when it is high."2 The strategy is also called pound-cost averaging (UK), unit cost averaging, incremental trading, or the cost average effect.3 It differs from the constant dollar plan, a rebalancing strategy with the same name.
Two parameters define a DCA plan:
| Parameter | Description |
|---|---|
| Fixed amount | Dollars invested each period (e.g., $500 per paycheck) |
| Frequency | How often you invest (weekly, biweekly, monthly, quarterly) |
Key distinction: Vanguard draws a sharp line between DCA from income (paycheck contributions — money wasn't investable earlier, so no opportunity cost) and cost averaging a windfall (delaying investment of cash already on hand — has opportunity cost).4 Most criticism of "DCA" targets the windfall scenario, not paycheck investing. For a practical paycheck DCA strategy with Brazilian dividend stocks, see building a dividend portfolio step by step.
Why DCA Lowers Your Average Cost: The Harmonic-Mean Effect
When you invest a fixed dollar amount, the number of shares you buy each period is amount / price. Your total shares after n periods is:
Your average cost per share = total invested / total shares = the harmonic mean of the purchase prices. Because the harmonic mean is always ≤ the arithmetic mean, DCA mathematically guarantees a lower (or equal) average cost than buying a fixed number of shares each period.5
"Given that the harmonic mean is lower than the arithmetic mean, dollar cost averaging will, on average, result in a lower per share price than the alternate strategy of purchasing a fixed number of shares each time." — Wikipedia5
DCA Return Formula
If p_F is the final price and p̃_P is the harmonic mean of purchase prices, your total return is:
This formula shows why the harmonic mean compresses your cost basis: when prices swing, the harmonic mean falls more than the arithmetic mean, systematically lowering the average price you pay. The effect depends only on the variance of prices, not on whether the market is rising, falling, or flat.
DCA vs. Lump Sum: What the Data Says
Vanguard's Core Finding (2016 & 2023)
| Metric | Vanguard 2016 | Vanguard 2023 |
|---|---|---|
| Lump-sum (LS) outperforms cost averaging (CA) | ~2/3 of periods | 68 % of periods |
| LS average outperformance (US, 60/40) | 2.39 pp | 1.8 % ($109,360 vs $107,453 on $100k) |
| CA outperforms cash | — | 69 % of periods |
| CA outperforms LS in worst decile (US) | 8.3 % avg | — |
| LS advantage grows with equity weight | — | 100 % equity: 2.2 %; 40/60: 1.2 % |
| LS advantage grows with CA horizon | 6 mo: 64 %; 36 mo: 92 % | 3-mo CA: $504 less; 6-mo CA: $1,491 less |
Why Lump Sum Wins on Average
Markets have historically trended upward (equity risk premium > bond risk premium > cash return). Every month your windfall sits in cash, you forgo that premium. The opportunity cost scales with:
- Equity allocation — more equity = larger foregone risk premium
- Implementation horizon — longer delay = more cumulative cash drag
Vanguard 2016 illustrates the allocation drift: a 60/40 target portfolio invested over 12 months temporarily becomes 30/20/50 (stocks/bonds/cash) — half the portfolio in cash, well below the intended risk level.6
When CA Can Be Rational
Vanguard 2023 found that loss-averse investors may prefer CA despite lower expected returns. For a "very conservative" investor with loss aversion, the certainty equivalent of CA (0.9869) exceeded LS (0.9836).7
How Often Should You Invest? The Transaction-Cost Trade-Off
Each trade costs a commission (or spread). Invest too frequently and fees eat your returns; invest too rarely and you leave cash idle. The optimal interval balances:
- Fee drag = commission / amount per trade
- Expected return over the interval = (annual return) × (interval in years)
Wikipedia's worked example:8
| Fee per trade | Amount per period | Annual return | Optimal interval |
|---|---|---|---|
| $20 | $500 / fortnight | 6 % | ~10 weeks |
At 10 weeks: fee = 0.8 % of trade, expected return over interval = 1.15 %. Investing every fortnight would cost 4 % in fees vs. 0.23 % expected return — a losing trade.
Rule of thumb: Keep fee drag below the expected return over the interval. With zero-commission brokers, the constraint disappears and you can invest every paycheck. For retirement accounts, front-loading 401(k) contributions achieves a similar time-in-market advantage to lump-sum investing.
How to Simulate a DCA Plan
A DCA simulation needs these inputs:
| Input | Typical Range | Notes |
|---|---|---|
| Initial capital (windfall) | $0 – $1M+ | Illustrative; depends on your situation |
| Periodic contribution | $50 – $10k+ | Paycheck / budget |
| Frequency | Weekly, biweekly, monthly, quarterly | Payroll / preference |
| Expected return (annual) | 4 % – 10 % (equity) | Historical / capital market assumptions |
| Volatility (annual σ) | 15 % – 20 % (equity) | Historical |
| Transaction cost per trade | $0 – $20+ | Broker schedule |
| Investment horizon | 1 – 40 years | Goal timeline |
| Rebalancing rule | None, calendar, threshold | Policy choice |
Monte Carlo DCA Simulation (Python)
import numpy as np
def dca_simulator(principal, periodic, periods, annual_return, annual_vol, fee=0):
"""
Monte Carlo DCA simulation.
Returns: array of terminal portfolio values.
"""
n_sims = 10_000
dt = 1 / 12 # monthly steps
mu = annual_return - 0.5 * annual_vol**2
sigma = annual_vol * np.sqrt(dt)
results = []
for _ in range(n_sims):
cash = principal
shares = 0.0
for _ in range(periods):
# invest available cash (windfall) or periodic contribution
invest = min(cash, periodic) if principal > 0 else periodic
if invest > 0:
price = 100 * np.exp(np.random.normal(mu, sigma)) # GBM price
shares += (invest - fee) / price
cash -= invest
# price evolves
final_price = 100 * np.exp(np.random.normal(mu, sigma))
results.append(shares * final_price + cash)
return np.array(results)
vals = dca_simulator(100_000, 100_000/12, 12, 0.07, 0.16, 0)
print(f"Median: ${np.median(vals):,.0f}, 5th pct: ${np.percentile(vals,5):,.0f}")
Key Simulation Parameters from Vanguard Studies
| Study | Asset Classes | Return Model | Scenarios |
|---|---|---|---|
| Vanguard 2016 | MSCI World + Bloomberg Agg | Historical bootstrap (1926–2015) | 10,000 |
| Vanguard 2023 | 100 % equity, 60/40, 40/60 | Bootstrapped monthly returns | 10,000 |
Gap: No public source documents a standard parameter set for DCA Monte Carlo (return distribution, fat-tail assumptions, regime-switching, Brazilian market parameters). Use the Vanguard studies as a benchmark for US/global portfolios.
Common errors and fixes
| Symptom | Cause | Fix | Source |
|---|---|---|---|
| Stopping 401(k)/IRA contributions during a market drop | Confusing windfall-CA criticism with paycheck DCA | Continue automatic contributions; income DCA has no opportunity cost | Wikipedia9 |
| Spreading a windfall over 24+ months | Belief that longer averaging = more safety | Limit systematic implementation to ≤12 months (Vanguard) or 6–12 months (study) | Vanguard 201610 |
| Investing $50 weekly with a $10 commission | Ignoring fee drag | Consolidate to monthly or quarterly; fee% < expected return over interval | Wikipedia8 |
| Holding windfall in cash indefinitely (paralysis) | Regret aversion > expected return logic | Automate a fixed schedule (e.g., 6 monthly tranches); remove discretion | Vanguard 201611 |
| Applying windfall study results to paycheck investing | Conflating two distinct scenarios | Identify which scenario applies; only windfall CA has opportunity cost | Vanguard 20164 |
FAQ
What is dollar-cost averaging?
Investing a fixed dollar amount at regular intervals regardless of price. You buy more shares when prices are low and fewer when prices are high, lowering your average cost to the harmonic mean of purchase prices.
Does dollar-cost averaging actually work?
Yes, it mathematically lowers your average cost per share versus fixed-share investing. For windfall investing, however, lump-sum investing has historically produced higher terminal wealth ~68 % of the time because markets trend up.
Dollar-cost averaging vs lump sum: which is better?
For a windfall you can invest today: lump sum wins on expected returns. For ongoing income (paycheck): DCA is your only option — the money wasn't available earlier. If loss aversion would cause you to abandon the plan after a crash, a short CA period (≤12 months) can be rational.
How often should I invest with dollar-cost averaging?
As frequently as your cash flow allows provided transaction costs stay below the expected return over the interval. With zero-commission brokers, every paycheck is fine. With a $20 fee and $500 per period at 6 % return, ~10 weeks is optimal. For portfolio construction, see how to choose ETFs.
What are the disadvantages of dollar-cost averaging?
- Lower expected returns vs. lump sum (cash drag).
- Transaction costs can erode gains if intervals are too short.
- Temporary asset-allocation drift (cash overweight).
- Only compresses cost basis — does not guarantee positive terminal value in a prolonged decline.
How do I calculate my average cost with DCA?
Average cost = Total dollars invested ÷ Total shares acquired. This equals the harmonic mean of your purchase prices. Most brokers display this automatically in the "cost basis" section.
Is DCA better for ETFs or individual stocks?
DCA works with any asset. For individual stocks, the harmonic-mean benefit still applies, but company-specific risk means a declining price could signal fundamental deterioration — DCA won't fix a bad business. Broad-market ETFs diversify that risk away. For real estate exposure, REITs vs stocks is a common DCA target.
Sources
| Source | What it contributed |
|---|---|
| SEC Investor.gov | Official DCA definition; "equal portions at regular intervals" |
| Wikipedia | Graham origin (1949); harmonic mean math; fee/frequency example; windfall horizon 6–12 mo; DCA vs fixed-share proof; terminology distinctions |
| Vanguard 2016 | LS outperforms ~2/3; magnitude by country; allocation drift (60/40 → 30/20/50); horizon effect (36 mo → 92 % LS win); ≤12 mo recommendation; paycheck vs windfall distinction; paralysis risk |
| Vanguard 2023 | 68 % LS win rate; CA beats cash 69 %; median wealth $107,453 vs $109,360; equity-weight scaling; loss-aversion preference for CA; front-loading thought experiment; cash suboptimal long-term |
Footnotes
-
U.S. SEC Investor.gov, "Dollar-Cost Averaging," https://www.investor.gov/introduction-investing/investing-basics/glossary/dollar-cost-averaging ↩
-
Wikipedia, "Dollar-cost averaging," https://en.wikipedia.org/wiki/Dollar_cost_averaging ↩
-
Wikipedia, "Dollar-cost averaging," https://en.wikipedia.org/wiki/Dollar_cost_averaging ↩
-
Vanguard, "Invest Now or Temporarily Hold Your Cash?" (2016), https://www.optimizedportfolio.com/wp-content/uploads/2021/03/vanguard-invest-now-or-temporarily-hold-your-cash.pdf ↩ ↩2
-
Wikipedia, "Dollar-cost averaging," https://en.wikipedia.org/wiki/Dollar_cost_averaging ↩ ↩2
-
Vanguard (2016), p. 4, https://www.optimizedportfolio.com/wp-content/uploads/2021/03/vanguard-invest-now-or-temporarily-hold-your-cash.pdf ↩
-
Vanguard (2023), Figure 5, https://corporate.vanguard.com/content/dam/corp/research/pdf/cost_averaging_invest_now_or_temporarily_hold_your_cash.pdf ↩
-
Wikipedia, "Dollar-cost averaging," https://en.wikipedia.org/wiki/Dollar_cost_averaging ↩ ↩2
-
Wikipedia, "Dollar-cost averaging," https://en.wikipedia.org/wiki/Dollar_cost_averaging ↩
-
Vanguard (2016), p. 6, https://www.optimizedportfolio.com/wp-content/uploads/2021/03/vanguard-invest-now-or-temporarily-hold-your-cash.pdf ↩
-
Vanguard (2016), p. 7, https://www.optimizedportfolio.com/wp-content/uploads/2021/03/vanguard-invest-now-or-temporarily-hold-your-cash.pdf ↩