Home › Templates › Lump sum vs DCA spreadsheet

Lump Sum vs Dollar Cost Averaging Spreadsheet

A free lump sum vs DCA calculator for Excel and Google Sheets. Paste your own monthly prices (or pick a constant return), enter the amount, the number of monthly purchases and the interest your waiting cash earns. It shows what each approach is worth on the same date, and how often the lump sum ended higher across every start month in your data.

Download Excel template (.xlsx) 215 KB · no macros · Excel 2016+ and Google Sheets · v1.0, 7 Nov 2026

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up and no add-in: every formula is in the free file.

Preview: the Example tab Fictional prices $60,000 invested at once vs 12 equal monthly purchases with the waiting cash earning 4% a year, both measured 36 months after the start. The 240 monthly prices are made up; they are not any real index, fund or coin.
204start months tested (36-month windows)
107 (52.5%)lump sum ended higher, on these made-up prices
$635average lump sum minus DCA
−$10,433 to $18,300worst and best case for the lump sum
Start (fictional)Start priceLump sum after 36 moDCA after 36 moLS − DCAHigher
Month 1100.00$103,476$110,074−$6,598DCA
Month 296.88$113,937$117,526−$3,589DCA
Month 395.93$114,640$116,580−$1,940DCA
Month 497.37$112,076$115,105−$3,030DCA
Month 595.83$102,751$103,262−$512DCA
Month 694.11$91,374$89,304$2,070Lump sum
… 198 more start months in the file
−$15k−$10k−$5k$0k$5k$10k$15k$20k150100150204Start month (row) in the fictional series

Lump sum ended higherDCA ended higher

What's inside the spreadsheet

TabWhat you typeWhat it calculates
Start hereNothingSteps, the method in plain words, colour key, limits, sources, disclaimer
CalculatorAmount; number of monthly DCA purchases (1–24); cash yield on waiting money; months to compare (up to 120); return source (your price series or a constant return); up to 600 monthly prices with optional dates; a start row for the detailed viewAn input check; the DCA purchase schedule with cash interest; for one start date: price paid, DCA average price, both values after H months, the difference in $ and %, cash interest earned, lowest value along the way; a rolling test over every start month: count and % of start months where the lump sum ended higher, average, median, worst and best difference, how often each ended below the amount invested; two charts
ExampleAlready filled with 240 fictional monthly prices (change any yellow cell)The same calculator, so you can see full results before entering your own data
DashboardNothingYour results next to the example, a bar chart, and Vanguard's published figures for context (clearly separated from your numbers)

How to use it

  1. Get monthly prices for what you plan to buy: one price per month, oldest first. Most brokers and data sites let you download month-end closing prices. If you want dividends counted, use an adjusted close or a total-return index level.
  2. On Calculator, paste the prices into column I from row 6 down, with no gaps. Dates in column H are optional.
  3. Enter the amount (B5), how many equal monthly purchases DCA uses (B6), the yearly interest the waiting cash earns (B7, e.g. a savings or money market rate) and how many months after the start to compare both (B8, at least the DCA months).
  4. No price data? Set B9 to Constant return and type an assumed yearly return in B10. With one smooth return the answer is a single path, so the rolling test shows 1.
  5. Check that Status (B12) says OK. Read the result for one start date (rows 20–30) and the rolling test (rows 33–41). Change B11 to look at a different start month in detail.

The formulas, explained

Lump sum

Value after H months = amount × price at month H ÷ price at the start. All the money is in the market from day one.

Dollar-cost averaging with cash interest

Investor.gov defines it this way: "Dollar-cost averaging means investing your money in equal portions, at regular intervals, regardless of the ups and downs in the market." The sheet invests amount ÷ N at the start and then once a month. The money still waiting earns the monthly cash rate (1 + yearly yield)1/12 − 1. The last purchase invests all the cash that is left, including the interest, so after N − 1 months DCA is fully invested.

DCA value after H months = price at month H × Σ (purchase ÷ price on that purchase date). In the file that sum is one SUMPRODUCT of the purchase schedule and a "units per $1" column (1 ÷ price), so the same formula works for every start month.

The rolling test

The sheet repeats the comparison for every start row that has H more months of prices after it. With N prices and an H-month window that is N − H start months. "Lump sum ended higher" counts windows where the lump sum is ahead by at least 1 cent. The windows overlap (start month 1 and start month 2 share most of their prices), so treat the percentage as a description of your data, not as independent trials.

Exact formulas from the Example tab. In the file most sit inside IF($B$12="OK", …, "") (and the table rows also check that the row has a full window), so cells stay blank until the inputs are valid.

FieldFormula
Monthly cash rate (B13)=(1+N($B$7))^(1/12)-1
Cash before purchase 2 (C46)=IF(1<$B$6,E45*(1+$B$13),0)
Amount invested, purchase 2 (D46)=IF(1<$B$6-1,$B$5/$B$6,IF(1=$B$6-1,C46,0))
Cash left after purchase 2 (E46)=C46-D46
Units per $1 at a price (K6)=IF(ISNUMBER(J6),IF(J6>0,1/J6,0),0)
Rolling: lump sum value after H months (O6)=$B$5*INDEX($J$6:$J$605,G6+$B$8)/J6
Rolling: DCA value after H months (P6)=INDEX($J$6:$J$605,G6+$B$8)*SUMPRODUCT($D$45:$D$68,K6:K29)
Rolling: lump sum higher? (R6)=IF(O6-P6>0.005,1,0)
Detailed view: DCA units held, month 1 (W7)=W6+IF(T7<24,INDEX($D$45:$D$68,T7+1),0)/U7
Detailed view: DCA total incl. cash (Z7)=X7+Y7
DCA average price paid (B22)=SUM($D$45:$D$68)/INDEX($W$6:$W$126,$B$8+1)
Lump sum ended higher, % of start months (B35)=B34/B33
Average of lump sum minus DCA (B36)=AVERAGE($Q$6:$Q$605)

Worked example from the sample data

The Example tab uses a made-up series of 240 monthly prices that starts at 100.00 and includes two slumps, so both outcomes appear. Nothing here describes a real market.

One start date (row 1)

PurchaseMonths after startAmount investedCash left
10$5,000.00$55,000.00
21$5,000.00$50,180.06
32$5,000.00$45,344.33
1110$5,000.00$6,084.26
1211$6,104.17$0.00

All 204 start months

Across every start month in the fictional series, the lump sum ended higher in 107 of 204 (52.5%). The average difference was $635 and the median $360, but the range was wide: from −$10,433 (DCA far ahead) to $18,300 (lump sum far ahead). The lump sum ended below the $60,000 invested in 70 start months; DCA in 69. These numbers come only from made-up prices and say nothing about any real investment.

What moves the answer

The same fictional prices and 36-month windows, changing only the DCA period and the cash yield (computed with the Python model that check.py matches against the spreadsheet cell by cell):

DCA periodLS higher, cash 0%Avg LS − DCA, cash 0%LS higher, cash 4%Avg LS − DCA, cash 4%
3 months55.9%$31451.0%$85
6 months57.8%$81852.9%$250
12 months63.2%$1,86352.5%$635
24 months62.3%$3,81852.9%$1,320

On these made-up prices, a higher cash yield and a shorter DCA period both shrink the average gap. Run the same test on your own data.

What the research says

Vanguard's paper Cost averaging: Invest now or temporarily hold your cash? (Megan Finlay and Josef Zorn, February 2023) compares the two across markets, periods and simulated returns. Its figures, quoted from the PDF:

Finding (Vanguard, Feb 2023)Setup stated in the paper
Lump sum outperformed cost averaging 68% of the time; cost averaging outperformed cash 69% of the time; lump sum outperformed cash 70% of the timeMSCI World Index, 1976–2022; 100% equity; three-month split; wealth compared after one year; "no interest earned on any uninvested portion"
"LS outperforms the 3-month CA strategy 65% of the time for an all-equity portfolio"Cash earning the 3-month U.S. Treasury bill rate
60/40 portfolio: average ending value $107,453 with cost averaging vs $109,360 with lump sum, "or 1.8% more"$100,000, one-year rolling periods, MSCI World and Bloomberg U.S. Aggregate Bond Index, 1976–2022
U.S. hit ratio for lump sum beating cost averaging: 66.4% (3-month split) and 73.7% (6-month split)Russell 3000 Index, 1979–2022, one-year periods
In the simulations, "the three-month CA strategy yields $504 less than the LS strategy, and the six-month CA strategy yields $1,491 less"10,000 simulated return paths, $100,000, one year

The paper also shows the other side. At the 5th percentile (the worst outcomes) cost averaging ended with more money: $85,906 vs $82,947 for a 100% equity portfolio. Vanguard concludes that cost averaging "might be considered for investors with very high aversion to both risk and losses who might be tempted to hold a lump sum entirely in cash."

FINRA's The Benefits and Limitations of Dollar-Cost Averaging (May 19, 2026) puts the trade-off simply: "Holding onto your money as cash longer and spreading out your investments gradually has lower risk but often produces lower returns than lump sum investing, especially over longer periods of time." The spreadsheet lets you see both sides in your own data: the difference in end value, and the lowest value along the way.

Common mistakes

Limits

FAQ

Is lump sum investing better than dollar-cost averaging?

Usually, on past data, but not always. Vanguard's February 2023 study found that historically lump sum outperformed cost averaging "roughly two-thirds of the time"; for the MSCI World Index from 1976 to 2022, lump sum beat a three-month split 68% of the time after one year. FINRA notes that DCA "has lower risk but often produces lower returns than lump sum investing". The spreadsheet counts how often each one ended higher on the prices you give it.

How do you compare lump sum vs dollar-cost averaging in Excel?

Lump sum value = amount × end price ÷ start price. DCA value = end price × the sum of each purchase ÷ the price on that purchase date, plus any cash not yet invested. In this file the DCA part is one SUMPRODUCT of the purchase amounts and a units-per-dollar column (1 ÷ price). Repeat it for every start month to see how often each wins.

Does interest on the waiting cash change the result?

It narrows the gap but did not reverse it in Vanguard's study: with cash earning the 3-month U.S. Treasury bill rate, "LS outperforms the 3-month CA strategy 65% of the time for an all-equity portfolio", and "as cash interest increases, LS’s advantage diminishes". Enter your own savings or money market rate in B7 to see the effect on your data.

How long should a dollar-cost averaging period be?

There is no single answer, but a longer period keeps more money in cash for longer. Vanguard found that "the longer the CA horizon—the time it takes to fully invest cash—the greater the opportunity cost incurred" and, for investors who still prefer cost averaging, suggests "keeping a relatively short CA period, such as three months". Try 3, 6, 12 and 24 months in B6.

Is investing from each paycheck in a 401(k) dollar-cost averaging?

FINRA says yes: 401(k) contributions from each paycheck are "an example of dollar-cost averaging". But the lump-sum question does not arise there, because the money is invested as it is earned. FINRA: "This opportunity cost argument against dollar-cost averaging doesn’t apply when your funds are coming from a defined contribution plan".

Does this lump sum vs DCA spreadsheet work in Google Sheets?

Yes. In Google Sheets choose File → Import → Upload and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. It uses only IF, AND, OR, NOT, N, INT, ISNUMBER, COUNT, COUNTIF, SUM, SUMPRODUCT, AVERAGE, MEDIAN, MIN, MAX, INDEX, which exist in Excel 2016 and later, Google Sheets and LibreOffice. There are no macros.

Related tools and templates

Educational template only, not investment advice or a recommendation to invest in any way. Example data is fictional: the prices, amount, cash yield and results on the Example tab are made up to show the formulas and do not describe any real market. Research figures are quoted from Vanguard's February 2023 paper; definitions are from the SEC's Investor.gov and FINRA, all retrieved on 7 November 2026. Past performance does not predict future results.