Sub topic 12
Lump sum or dollar-cost averaging
This chapter assumes you know what an index fund is and how percentage returns compound. It also assumes you can read a short Python script. It covers one narrow question: when you have money to invest, should you invest it all now or in steps?
The two approaches
A lump sum means investing the whole amount on day one. Dollar-cost averaging (DCA) means splitting the amount into equal parts and investing one part at each interval, such as monthly for a year. The uninvested portion waits in cash.
Two situations are easy to confuse:
- Investing from income. You get paid monthly and invest each paycheck. This is DCA by necessity. You have no lump sum, so there is nothing to compare.
- Investing a windfall. You have an inheritance, a bonus, or the proceeds of a sale. Here you can choose between the two approaches.
This chapter is about the second case.
Why DCA is market timing in disguise
DCA looks like a way to avoid timing the market. It still makes a timing bet, though a mild one: that prices may be lower in the coming months than today. The earlier chapters on forecasting and the two-decision problem apply here too.
Waiting has a cost because stock markets rise more often than they fall. A dollar held in cash for six months misses the average return of that period. This is called cash drag. Over a 12-month DCA schedule, the average dollar sits in cash for about half a year.
A worked example
Suppose you have 3,000 to invest and a three-month schedule. You can buy at the start of each month.
| Scenario | Prices at the start of months 1, 2, 3, then the end | Lump sum: 30 shares | DCA: 1,000 per month |
|---|---|---|---|
| Rising | 100, 105, 110, then 115 | 30.00 shares, worth 3,450 | 28.61 shares, worth 3,291 |
| Falling | 100, 95, 90, then 85 | 30.00 shares, worth 2,550 | 31.64 shares, worth 2,689 |
In the rising market, lump sum wins by about 159. In the falling market, DCA wins by about 139. Neither approach is always better. The question is which scenario is more likely and how much each outcome matters to you.
What the evidence says
Studies that compare lump sum with 12-month DCA over long histories tend to find that lump sum comes out ahead in roughly two-thirds of rolling periods. Vanguard has published such work for the US, UK and Australian markets. The exact share depends on the market, the period and the assumed return on cash. The result is not a law. It follows from the fact that stocks have a positive expected return, so more time invested earns more on average.
The average hides the shape of the outcomes. When DCA wins, it usually wins because the market fell soon after you would have invested. When lump sum wins, it wins because the market rose while the DCA money waited.
Simulating the comparison
The script below uses synthetic monthly returns, not real history. Each trial invests 12,000, either all at once or as 1,000 at the start of each of 12 months. Cash earns nothing, which slightly favors lump sum. The drift and volatility are assumptions you can change.
import random
def compare(mu=0.007, sigma=0.04, months=12, trials=20000, seed=1):
rng = random.Random(seed)
total = 1000.0 * months
lump_ends, dca_ends = [], []
lump_wins = 0
for _ in range(trials):
returns = [rng.gauss(mu, sigma) for _ in range(months)]
lump = total
for r in returns:
lump *= 1 + r
dca = 0.0
for r in returns:
dca += 1000.0 # contribute at the start of the month
dca *= 1 + r # then the month's return applies
lump_ends.append(lump)
dca_ends.append(dca)
if lump > dca:
lump_wins += 1
def pct(values, q):
ordered = sorted(values)
return ordered[int(q * (len(ordered) - 1))]
print("lump sum wins:", round(lump_wins / trials, 3))
print("mean lump / dca:", round(sum(lump_ends) / trials), round(sum(dca_ends) / trials))
print("5th pct lump / dca:", round(pct(lump_ends, 0.05)), round(pct(dca_ends, 0.05)))
print("95th pct lump / dca:", round(pct(lump_ends, 0.95)), round(pct(dca_ends, 0.95)))
compare()Read the output in three parts:
- The win rate should be well above 50% for lump sum, because the assumed drift is positive.
- The mean ending value should be higher for lump sum, by roughly the return earned on the extra cash time.
- The 5th and 95th percentiles for DCA should sit closer to the starting amount. DCA narrows the range of outcomes and gives up some expected return to do so.
Try mu=0.0 and mu=-0.005. With no drift, the win rate falls toward 50%. With a negative drift, DCA wins more often. This shows that DCA works only if you expect the market to fall, which is a forecast.
Where DCA is a reasonable choice
DCA is a risk-management and behavior tool. It makes sense in these situations:
- Regret risk. If you invest everything and the market drops 20% next month, you may sell in panic. A schedule that spreads the entry can make that outcome easier to bear. A plan you follow beats a better plan you abandon.
- Very high valuations or a large sum relative to your net worth. If the amount is large enough that a quick loss would hurt your life plans, entering gradually reduces the chance of a bad first year.
- Uncertain risk tolerance. If you have never lived through a large drawdown, a gradual entry lets you find out how you react with only part of the money exposed.
Keep the schedule short. A common choice is 3 to 12 months. A 36-month schedule leaves much of the money idle for years, and the cash drag grows with it.
Common errors
- Treating DCA as a way to beat the market. It does not raise expected return. It trades some expected return for lower variance.
- Pausing the schedule when prices fall. This turns a rule into a timing decision. Set the dates and amounts in advance and do not change them.
- Mixing up the two cases. Regular contributions from salary are not a choice between methods. Do not hold a paycheck in cash to "DCA" it later.
- Ignoring where the cash waits. If the uninvested portion earns interest in a savings account or money market fund, the cost of waiting is smaller than the simulation shows.
- Ignoring costs. Per-trade fees and taxable events can make many small purchases more expensive. With commission-free index funds this matters less, but check it.
A decision flow
Putting it together
The evidence favors a lump sum on average, because time invested earns the market's positive expected return. DCA costs some of that return and in exchange reduces the spread of outcomes and the chance of an early, painful loss. If you would otherwise freeze and invest nothing, or sell at the first drop, DCA is better than your alternative. If you can hold through a bad first year, the lump sum is the better default.
Either way, the decision should be made once, written down, and then carried out.
Exercise
You receive 24,000 and choose a 6-month DCA schedule of 4,000 at the start of each month. The market rises steadily for those six months. Which approach would have finished higher, and why? Then name one reason you might still have chosen DCA.
Show answer
The lump sum would have finished higher. In a rising market, every dollar held in cash misses gains, and under DCA the later contributions buy at higher prices with less time to grow. You might still choose DCA to lower the regret risk and the chance of an early drop leading you to sell, since the schedule exposes only part of the money at first. The cost is lower expected return, which you accept in return for a plan you are more likely to follow.