Five-year, $30,000 plans by start year: dollar-cost averaging vs lump sum ($ thousands)
Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-07-16, from Does Dollar-Cost Averaging Work?.
| start_year | lumpsum_final | dca_final |
|---|---|---|
| 2016 | 54.6 | 42.2 |
| 2017 | 60 | 45.5 |
| 2018 | 45.5 | 37 |
| 2019 | 55 | 38.1 |
| 2020 | 55.7 | 44.3 |
| 2021 | 55.3 | 43.6 |
- Rows × columns
- 6 × 3
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
start_year |
text | 6 distinct values (2016, 2017, 2018…) | |
lumpsum_final |
number | 45.5 to 60 | |
dca_final |
number | 37 to 45.5 |
Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.
the exact SQL behind every number
WITH
monthly AS (
SELECT toStartOfMonth(dt) AS mo, argMin(c, dt) AS px
FROM (
SELECT toDate(toTimeZone(window_start, 'America/New_York')) AS dt,
argMax(toFloat64(close), window_start) AS c
FROM global_markets.delayed_stocks_minute_aggs
WHERE ticker = 'SPY'
AND window_start >= '2016-01-01 00:00:00' AND window_start < '2026-07-01 00:00:00'
AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
+ toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959
GROUP BY dt
)
GROUP BY mo
),
w AS (
SELECT mo, px,
sum(500.0 / px) OVER (ORDER BY mo ROWS BETWEEN CURRENT ROW AND 59 FOLLOWING) AS dca_shares,
count() OVER (ORDER BY mo ROWS BETWEEN CURRENT ROW AND 59 FOLLOWING) AS n_ahead,
leadInFrame(px, 59) OVER (ORDER BY mo ROWS BETWEEN CURRENT ROW AND 59 FOLLOWING) AS end_px
FROM monthly
)
SELECT toString(toYear(mo)) AS start_year,
round(30000.0 / px * end_px / 1000, 1) AS lumpsum_final,
round(dca_shares * end_px / 1000, 1) AS dca_final
FROM w
WHERE toMonth(mo) = 1 AND n_ahead = 60 AND toYear(mo) BETWEEN 2016 AND 2021
ORDER BY start_year
Run your own version of this
The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.
More from this analysisDoes Dollar-Cost Averaging Work?
Same $500-a-month plan vs a lump sum across five stocks, 2016 to 2026 ($ thousands)
ranking 5×3
→
$500 a month into SPY vs one lump sum, 2016 to 2026 (portfolio value, $ thousands)
series 126×4
→
$10,000 in the S&P 500 tracker: price only vs dividends reinvested, year-end 2006 to July 2026
ranking 20×4
→
S&P 500 tracker by calendar year: price return vs the points added by reinvested dividends
ranking 20×3
→
Splits of 4-for-1 or larger since 2020, well-known names
ranking 17×4
→
Time value left in deep in-the-money SPY calls, against the dividend at stake
ranking 16×4
→
See all 2,170 queries →