ATMResearch
Join Overfit - free
Overfit cover card on a flat dark gradient. Kicker 'DCA vs lump sum study', headline 'Lump sum beat 12-month DCA in 76.9% of decades.' with 76.9% in orange, subhead '273 S&P 500 start dates, 1993 to 2016, next-open fills.', corner badge 'SPY · 1993-2026'.
  1. Overfit/
  2. Research/
  3. Dollar Cost Averaging vs Lump Sum vs a 200-Day Moving Average: 273 S&P 500 Start Dates

August 17, 2025

Dollar Cost Averaging vs Lump Sum vs a 200-Day Moving Average: 273 S&P 500 Start Dates

Share

7 min read

Written by Ali Casey, founder of StatOasis and AlgoChef, creator of the Algo Trading Masterclass (ATM), with over 10 years of experience building systematic trading tools - building algorithmic strategies, testing ideas with data, and teaching traders how to build structured, portfolio-based trading workflows.

Published August 17, 2025 · Updated October 28, 2026 · Method

← Back to Research
Table of contents▾
  • TL;DR: the answer box
  • How I tested lump sum, DCA and the 200-day switch
  • Is it better to invest a lump sum or dollar cost average?
  • When does dollar cost averaging beat lump sum?
  • Does dollar cost averaging reduce risk?
  • Does a 200-day moving average make DCA safer?
  • Does the 200-day switch beat buy and hold?
  • How did the switch do in 2008 and March 2020?
  • Is the switch's smaller drawdown just luck?
  • What about markets that never came back, like the Nikkei?
  • The honest limits
  • What this means for you
  • Reference tables
  • Methodology
  • FAQs

The short version

I put $120,000 into the S&P 500 on 273 monthly start dates, three ways: all at once, spread monthly, and with a 200-day moving average switch. Lump sum ended richer than 12-month dollar cost averaging in 76.9% of 10-year windows. Spreading it over 12 months barely changed the worst fall. The switch cut the median fall from 47.5% to 20.0% and never ended a decade below the money put in. Plain lump sum still ended richer in 81.0% of windows.

TL;DR: the answer box

  • Lump sum usually wins. $120,000 invested on day one beat the same money spread over 12 months in 76.9% of 273 rolling 10-year windows, by a median 5.8%. Against a 120-month plan it won 90.5% of the time.
  • 12-month DCA barely changes the decade's worst fall. It was more than 1 point shallower than lump sum's in only 8.8% of windows. Median worst fall: 47.5% for both.
  • A 200-day switch halves the fall and costs money. Median worst fall 20.0%, and no window ended below $120,000. Plain lump sum still ended with more in 81.0% of windows.
  • Full history, 1993 to 2026: lump sum grew 10.88% a year with a 55.2% worst fall. The switch grew 8.40% a year with a 26.8% worst fall.
  • The smaller fall beat random timing. None of 100 random-timing runs with the same time in the market fell as little as the switch.

How I tested lump sum, DCA and the 200-day switch

You have $120,000. Do you put it all into the S&P 500 today, feed it in month by month, or add a rule that steps aside when the market falls? Most people only compare the first two. The third is the one almost nobody tests.

Three plain definitions first.

  • Lump sum: all the money goes in on day one.
  • Dollar cost averaging (DCA): the same amount goes in every month, whatever the price. I tested 12, 36 and 120 months.
  • The 200-day switch: the 200-day moving average is the average closing price of the last 200 trading days. If SPY closes above it, you hold SPY. If it closes below, you hold cash.
DCA is really a choice about how long part of your money waits in cash.

If your money arrives with each paycheck, monthly investing is simply how you invest. If you already hold the lump, DCA means keeping part of it in cash for a while. That is the decision this study tests.

Eight rules, one pot of money. The four plain plans above, and the same four with the 200-day switch on top. With the switch, a monthly payment that arrives while SPY is below its average waits in cash.

The windows. Every month from December 1993 to August 2016 is a start date: 273 in all. Each one is judged 10 years later. The windows overlap, so they are not 273 separate tries. They cover about three separate decades.

The market. SPY, daily bars from 1993-01-29 to 2026-08-20 (8,447 bars), with dividends reinvested. The average is drawn on the price without dividends, the line your chart shows.

The fills: Execution rule v2. Every decision is made at a close and filled at the next open. Costs on every fill: $0.005 commission plus $0.01 slippage per share per side. Cash earns 0%, which is a little unfair to DCA and the switch, since both hold cash.

Two measures matter most. Ending wealth is what you have after 10 years, counting any money still waiting in cash. Worst fall (drawdown) is the biggest drop from a high point, waiting cash included.

Is it better to invest a lump sum or dollar cost average?

Lump sum. Usually, and not by a little.

In 76.9% of the 273 start dates, investing on day one beat a 12-month plan.

The median gap was 5.8%. In dollars, the median lump sum ended at $269,872. The median 12-month plan ended at $256,038.

Spread it out longer and the gap grows. Lump sum beat a 36-month plan in 76.2% of windows, by a median 16.6%. It beat a 120-month plan in 90.5%, by 51.7%.

Against every one of the seven rivals, lump sum ended richer in most decades.

Vanguard's 2023 paper Cost averaging: Invest now or temporarily hold your cash? found lump sum ahead about two thirds of the time. On SPY from 1993, with costs and next-open fills, I measured 76.9% against a 12-month plan. Same direction, a bit bigger margin, on one market.

When does dollar cost averaging beat lump sum?

Mostly when the plan started in a bear-market year.

12-month DCA ended ahead in 63 of 273 start months. Of those, 45 started in 2000 to 2002 or 2007 to 2009, the years of the two big bear markets. The other 18 were spread across the rest.

Most of DCA's 63 wins started in 2000 to 2002 or 2007 to 2009, the two bear-market spells.

That makes sense. When prices fall right after you start, money that is still waiting buys cheaper. DCA's best start was June 2008: $399,826 against $287,394 for lump sum, 39.1% more. Its worst was March 2009, the bottom: $422,905 against $572,713, 26.2% less.

The heatmap below shows every start year at once. Each cell is the average value after 10 years for starts in that year.

Lump sum had the best average in 17 of 24 start years. The switch plan won the 1999 to 2001 starts.

Lump sum led in 17 of 24 start years. 12-month DCA led in 3, lump sum with the switch in 1, and 12-month DCA with the switch in 3.

Look at 1999. A lump sum started that year averaged $100,406 after 10 years, less than the money put in. The 12-month plan with the switch averaged $150,407. Now look at 2009. Lump sum averaged $455,750. The same switch plan averaged $245,473.

I entered the markets in 1998, close to the dot-com peak. So this one is personal. $120,000 put in at the top in March 2000 was worth $114,105 ten years later. A 12-month plan did no better: $110,573. Lump sum with the switch ended at $176,785.

Does dollar cost averaging reduce risk?

For a 12-month plan, barely. In these 10-year SPY windows, 12-month DCA had almost the same worst fall as lump sum. Once the money is all in, you hold the same index through the same crash.

The 12-month plan's worst fall was more than 1 point shallower than lump sum's in only 8.8% of windows. The median difference was 0.01 points. In these decades, the big falls came after the first 12 months, when the DCA investor was already fully in.

Plain DCA cut the losing decades a little. The switch cut them to zero.

Lump sum ended a decade below its $120,000 in 24 of 273 windows. The 12-month plan did so in 22. That is almost no difference.

The 120-month plan looks safer, with a median worst fall of 27.6%. But that is because about half its money sits in cash on average. It is not timing anything. You pay for that cushion: a median $204,102 after 10 years, against $269,872 for lump sum.

So for the 12-month plan, the skeptics are right. It did not protect you from a large fall. It delayed full investment by 12 months, and the big falls in these decades came after those 12 months were over.

Does a 200-day moving average make DCA safer?

Yes on the fall. No on the money.

Every plan ended with less money with the switch, and every plan fell about half as far.

Think of the switch as an umbrella. It keeps you dry in the storm. You also carry it on a lot of sunny days, and on some of them it blows inside out.

The storm part is real. No plan with the switch ended a decade below the $120,000 put in. The median longest stretch below an old high fell from 57.2 months to 28.6.

The sunny-day part is real too. Plain lump sum ended with more money than lump sum with the switch in 81.0% of windows, by a median 14.7%. With the switch, the 12-month plan beat its plain version in only 21.6% of windows.

Here is how the switch treats each month's payment. If SPY closes above its average on the day the money arrives, the money buys at the next open. If SPY closes below, the money waits.

Same plan, two months. Above the line the money goes in. Below it, the money waits.

Per point of drawdown, the switch scored higher in 80.6% of windows. Its median yearly return divided by its worst fall was 0.345, against 0.174 for lump sum. So the switch ended with less money in 81.0% of windows, but it earned more return for each point of pain in 80.6%.

Does the 200-day switch beat buy and hold?

Not on return. On drawdown, by a wide margin.

Here every rule runs as one account over the full history, December 1993 to August 2026.

Holding through grew faster. The switch fell about half as far.

Holding through grew 10.88% a year and turned $120,000 into $3,521,236. The switch grew 8.40% a year and ended at $1,678,079. What the switch bought was a worst fall of 26.8% instead of 55.2%. In dollars, the biggest drop was $521,879 for lump sum and $265,090 with the switch.

The switch made 112 trips into the market and stayed 55 trading days on average. It paid $11,517 in costs, against $69 for holding.

So a simple moving average did not match buy and hold on return in this test. It bought a smaller fall instead.

The paycheck investor sees the same trade. Put $1,000 in on the first trading day of every month since December 1993, and you paid in $393,000.

The plain monthly plan ended far richer. The switch plan never fell more than 26.8%.

The plain plan ended at $3,282,327. With the switch, $1,878,814. Same trade as the lump sum: more money plain, half the fall with the switch.

How did the switch do in 2008 and March 2020?

It lost less in every crisis I measured. It made money in none of them.

In 2008 the switch lost 0.35%. Holding through lost 36.80%.

With next-open fills and cash at 0%, the switch ended 2008 at -0.35% and March 2020 at -4.95%. Far better than holding through. Still a loss.

2022 is where it helped least: -16.54% against -18.18%. The market kept crossing the average, and every cross costs a little.

Here is what that crossing looks like.

Each white arrow sells at the next open. Each green arrow buys back.

The first exit filled on 28 February 2020. From 19 February to 23 March the switch fell 18.90% against 33.72% for holding through. Then SPY sat on its average, and the switch filled 10 times by 30 June. That back and forth, buying just above the line and selling just below it, is called whipsaw. It is the price of the umbrella.

Is the switch's smaller drawdown just luck?

Not against this test. Here is the obvious objection. Maybe any rule that sits in cash this often would fall this little. Then the switch is just less invested, not smart.

The switch held SPY 74.9% of the time.

So I tested it directly. I took the switch's own in-market and out-of-market stretches and shuffled them into random order, 100 times. Same time in the market, 74.9%. Same number of trips, same costs and fills. Only the timing is random.

The real switch fell 26.8%. Not one of the 100 random runs fell that little.

The typical random run fell 52.4%. The shallowest fell 33.7%. None of the 100 fell as little as the switch's 26.8%. On return divided by worst fall, 1 of 100 matched it.

On return alone, 33 of 100 random runs matched or beat the switch's 8.40%. So its return was ordinary for its time in the market. Its drawdown was not.

What about markets that never came back, like the Nikkei?

The Nikkei 225 closed at a record 38,915.87 on 29 December 1989. It first closed above that on 22 February 2024, at 39,098.68. That took 34 years and 2 months, per Nippon.com. So it did come back, very slowly.

I could not test DCA or the switch on the Nikkei here. The engine has no Nikkei price data. For the S&P 500's own long slumps, see S&P 500 drawdowns since 1870.

The honest limits

  • One market (SPY), one average (200 days), one 10-year horizon, plus one full-history run. Nothing was tuned. Other settings could give other numbers.
  • The 273 windows overlap. They are about three separate decades, not 273 separate tries.
  • Cash earns 0%. Interest on cash would help DCA and the switch.
  • Taxes are not counted. The switch made 112 trips into the market, and every trip out is a sale.
  • Costs per share are charged on dividend-adjusted prices, which slightly overstates them in the early years.
  • ES futures are not tested: a monthly payment cannot buy whole contracts.

What this means for you

  1. Know the base rate before you wait. In these 273 SPY windows, investing at once beat a 12-month plan 76.9% of the time.
  2. If you invest monthly because the money comes with your paycheck, keep going. That is not a timing choice. It is how money arrives.
  3. Do not count on a 12-month plan as crash protection. The median decade's worst fall was 47.5% for 12-month DCA and lump sum alike.
  4. If a 50% fall would make you sell, weigh the switch. It cut the median worst fall to 20.0%. It also ended with less money than plain lump sum in 81.0% of windows, and it whipsawed through 2022. If you build your own version, test whether its record survives reshuffling before you trust it. That is the job AlgoChef does.
  5. Decide which number you care about before the crash, not during it. The 2014 Turtle Traders lesson that rebuilt my own trading was the same one: simple rules, and risk management you will actually follow.

The same idea across several asset classes, not just the S&P 500, is in the tactical asset allocation study.

Reference tables

Table 1. All eight rules, 273 rolling 10-year windows

RuleMedian ending wealthMedian worst fallWorst fall, any windowWindows ending below $120,000
Lump sum$269,87247.5%55.2%8.8%
DCA 12 months$256,03847.5%55.2%8.1%
DCA 36 months$242,95947.2%55.2%4.4%
DCA 120 months$204,10227.6%53.6%4.8%
Lump sum + switch$242,14820.0%26.8%0.0%
DCA 12 months + switch$232,58920.0%26.8%0.0%
DCA 36 months + switch$218,67219.5%26.8%0.0%
DCA 120 months + switch$172,86614.9%21.1%0.0%

Worst fall counts money still waiting in cash. Start dates December 1993 to August 2016, each judged 10 years later. Execution rule v2.

Table 2. Full history, one account each, 1993-12-01 to 2026-08-20

RulePaid inEnding valueGrowth a yearWorst fallGrowth / worst fallTime in market
Lump sum$120,000$3,521,23610.88%55.2%0.197100.0%
Lump sum + switch$120,000$1,678,0798.40%26.8%0.31374.9%
$1,000 a month$393,000$3,282,32710.87%55.2%0.197100.0%
$1,000 a month + switch$393,000$1,878,8148.39%26.8%0.31374.9%

SPY with dividends, 32.72 years, next-open fills, costs included, cash at 0%.

Lump sum usually ended with more. The switch's median fall was less than half of lump sum's. Pick the one you can hold through the next crash.

Everything here is research, not investment advice. It is a backtest on historical data with the assumptions stated above. It is not a recommendation to buy or sell anything, and past results do not predict future ones.

I test one strategy everyone repeats, properly, and leave the parts that failed in. StatOasis.com/Overfit

Methodology

Data source
SPY (SPDR S&P 500 ETF) daily bars from TradingView, 1993-01-29 to 2026-08-20 (8,447 bars), held on a total-return basis (dividends reinvested). The 200-day average is drawn on the same bars without the dividend adjustment.
Date range
273 monthly start dates, December 1993 to August 2016, each judged 10 years later; plus one full-history run per rule from 1993-12-01 to 2026-08-20 (32.72 years). The 273 windows overlap and cover about three separate decades.
Entry / exit rules
Lump sum: all $120,000 buys SPY at the first open after the start. DCA: $120,000 split into equal monthly amounts over 12, 36 or 120 months, each bought at the open after the first trading day of its month. 200-day switch: hold 100% SPY while SPY closes above its 200-day simple moving average, otherwise 100% cash; every change is decided at the close and filled at the next open. With the switch, a contribution that arrives while SPY is below the average waits in cash.
Sizing
$120,000 per window (full history: $120,000 lump sum, or $1,000 a month, $393,000 in all). All available cash goes in at the fill open, fractional shares. Costs on every fill: $0.005 commission plus $0.01 slippage per share per side. Cash, whether waiting to be invested or parked by the switch, earns 0%.
Overlap mode
One portfolio per rule per window, with nothing overlapping inside a single window's run. The 273 windows themselves overlap. Run by the engine's portfolio calculator (engine/portfolio.py, engine 1.21.0).
Look-ahead
Execution rule v2. Every decision, including the moving-average switch, is made on a bar's close from data up to that close and filled at the next bar's open. No number uses information that was unavailable at the moment of the decision.
Minimum sample
273 monthly start dates per rule. They overlap, so they are not 273 independent samples; the article says so wherever a share is quoted.
Buy-and-hold benchmark
Lump sum is buy and hold, run through the same calculator. tools/controls_report.py on $35,000 in whole shares of the same total-return SPY bars from 1993-12-01: 10.87% CAGR, worst fall 55.19% (2009-03-09), CAGR over worst fall 0.197.
Random control
The switch's own in and out stretches shuffled into random order, 100 seeds from base seed 20261007, through the same portfolio calculator, costs and fills: same time in the market and the same number of trips. Median CAGR 7.74%, median max drawdown 52.4%; 0 of 100 seeds as shallow as the switch. The standard controls_report.py random-entry control (10 seeds, base seed 20260803, v2 exits) is in the facts sheet.
Parameter scopeConfiguration held fixed

One configuration was held still on purpose, so the condition under test is the only thing that varies.

One moving average (200 days), one market (SPY), one 10-year horizon, three DCA spans (12, 36, 120 months). Nothing was optimised.

Why it was held fixed
The question is whether the textbook 200-day rule changes the lump sum against DCA decision, so the rule is held at the length readers already use rather than tuned to this history.
What this does not claim
The findings are conditional on a 200-day average, a 10-year horizon and cash at 0%. Other lengths, horizons or a T-bill yield on cash would give different numbers.

Run to v1.1 of the StatOasis research standard - the rules every study here has to meet before it is published. The version is the study's own: a standard that gained a rule later never reaches back and claims this one met it.

Historical backtest results are not a guarantee of future returns. This content is for educational purposes only and is not investment advice. Hypothetical performance disclosure (CFTC Rule 4.41).

Frequently asked questions

Is it better to invest a lump sum or dollar cost average?⌄

On the S&P 500, lump sum usually ended richer. Across 273 monthly start dates from 1993 to 2016, $120,000 invested on day one beat the same money spread over 12 months in 76.9% of 10-year windows. The median lead was 5.8%. Vanguard's own research found about two thirds.

Does dollar cost averaging reduce risk?⌄

Barely, for a 12-month plan on SPY. Over these 273 decades, a 12-month plan made the worst fall more than 1 point shallower than lump sum's in only 8.8% of windows. The median worst fall was 47.5% for both.

Does a 200-day moving average make DCA safer?⌄

Yes on the fall, no on the money. With the switch, the median worst fall of a 12-month plan dropped from 47.5% to 20.0%, and no switch plan ended a decade below the $120,000 put in. But the switch plan beat the plain 12-month plan on money in only 21.6% of windows.

Does a 200-day moving average beat buy and hold?⌄

Not on return. From December 1993 to August 2026, $120,000 held in SPY with dividends grew 10.88% a year with a worst fall of 55.2%. The 200-day switch grew 8.40% a year with a worst fall of 26.8%. Growth per point of worst fall was 0.313 for the switch against 0.197.

Is the moving average's smaller drawdown just luck?⌄

Not in this test. I shuffled the switch's own in and out stretches into random order 100 times, with the same time in the market. The typical random run fell 52.4%, and none of the 100 fell as little as the switch's 26.8%.

When does dollar cost averaging beat lump sum?⌄

Mostly when the plan started in a bear-market year. A 12-month plan ended ahead in 63 of 273 start months, and 45 of those started in 2000 to 2002 or 2007 to 2009, the years of the two big bear markets.

Is DCA good for beginners?⌄

If the money arrives with each paycheck, investing it monthly is simply investing it as it arrives, and this study has no quarrel with that. If you already hold a lump sum, spreading it out mostly means holding cash longer. Spreading $120,000 over 120 months left a median $204,102 after 10 years, against $269,872 for investing it at once.

Did the Nikkei ever recover from its 1989 peak?⌄

Yes. The Nikkei 225 closed at a record 38,915.87 on 29 December 1989 and first closed above it on 22 February 2024, 34 years and 2 months later, according to Nippon.com. This study does not test the Nikkei, because the engine has no Nikkei price data.

Read the Portfolio & Risk hub
← Back to Research

Table of contents

  • TL;DR: the answer box
  • How I tested lump sum, DCA and the 200-day switch
  • Is it better to invest a lump sum or dollar cost average?
  • When does dollar cost averaging beat lump sum?
  • Does dollar cost averaging reduce risk?
  • Does a 200-day moving average make DCA safer?
  • Does the 200-day switch beat buy and hold?
  • How did the switch do in 2008 and March 2020?
  • Is the switch's smaller drawdown just luck?
  • What about markets that never came back, like the Nikkei?
  • The honest limits
  • What this means for you
  • Reference tables
  • Methodology
  • FAQs

Overfit - the newsletter

Skip the hype. Trust the data.One practical takeaway per issue.

Running a quick security check before this can be sent.

Delivered +2 times a month - when the work is ready, not on a calendar.I'll never sell your address.Unsubscribe in one click, any time.

Related Articles

Back to all research
#119

Tactical vs Strategic Asset Allocation: 18 Years of Backtests, After Trading Costs

Mar 9, 2025 · 8 min read

I tested two well-known tactical rules against the same five ETFs held at fixed weights, 2008 to 2026, with trading costs. A trend filter cut the worst drop from 23.28% to 8.19% and earned 1.81 points less a year. A momentum rotation earned 0.89 points more, fell at least as far, and landed inside the range of random picks.

Read more→
#109

Ray Dalio's Holy Grail of Investing, Tested: Four Asset Classes Beat Nine Funds

Dec 27, 2024 · 11 min read

Ray Dalio says fifteen uncorrelated return streams cut your risk by 80% without cutting your return. The formula is exact and it reproduces. What fails is the shopping list — nine asset-class funds buy 3.37 independent bets, while four genuinely different asset classes buy 3.72.

Read more→

Overfit - the newsletter

Skip the hype. Trust the data.

One practical, evidence-driven takeaway per issue - strategy testing, portfolio construction, market structure, trading psychology, tactical asset allocation.

Running a quick security check before this can be sent.

Delivered +2 times a month - when the work is ready, not on a calendar.I'll never sell your address.Unsubscribe in one click, any time.

StatOasis is calm, evidence-based algorithmic-trading education, founded by Ali Casey. Ali builds systematic trading strategies and teaches the workflow behind them: research, build, test, combine, deploy. He writes the Overfit newsletter, published since 2024, and runs the Algo Trading Masterclass.

Socials

  • X ↗
  • YouTube ↗
  • Instagram ↗
  • LinkedIn ↗
  • GitHub ↗
  • Muck Rack ↗
  • LinkedIn SO ↗
  • GitHub SO ↗

Products

  • Overfit - the newsletter
  • Algo Trading Masterclass
  • StatOasis Community
  • 36 Ways to Buy the Dip
  • AlgoChef ↗

Reading & tools

  • Research
  • Methodology
  • Survive the Decade
  • Wall of Love

StatOasis

  • About Ali Casey
  • Contact
© 2026 StatOasis. Calm, evidence-based.
PrivacyTermsHypothetical resultsCalifornia