Essa Shakeel Finance 100 #33 · Investing View source on GitHub

Lump Sum vs DCA Simulator

Invest it all now or drip it in? Thousands of simulated markets give the odds.

Your numbers

Results

Lump sum minus DCA, across simulated markets

How it works

Each simulated market draws a random monthly return for the invested money. The monthly gross factor is exp(mu + sigma x Z), where Z is a standard normal draw and sigma = volatility / sqrt(12). The mean is set so the expected annual return matches your input, using mu = ln(1 + r) / 12 - sigma^2 / 2.

Lump sum puts the whole amount in on day one. DCA puts in an equal part at the start of each month for the drip-in period, while the rest waits in cash earning the cash yield. Both strategies face the same market path in each run, so the comparison is fair.

The result is the share of runs where lump sum ends with more money, plus the median ending value for each strategy. The histogram shows how far apart the two ended in every run.

Limits: returns are random draws from one assumed model, not a forecast. Fees, taxes, currency and dividend income are ignored. Lump sum tends to win when markets rise, since the money is invested for longer. DCA can win after an early fall, when its later purchases buy at lower prices.