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.
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.
| Start (fictional) | Start price | Lump sum after 36 mo | DCA after 36 mo | LS − DCA | Higher |
|---|---|---|---|---|---|
| Month 1 | 100.00 | $103,476 | $110,074 | −$6,598 | DCA |
| Month 2 | 96.88 | $113,937 | $117,526 | −$3,589 | DCA |
| Month 3 | 95.93 | $114,640 | $116,580 | −$1,940 | DCA |
| Month 4 | 97.37 | $112,076 | $115,105 | −$3,030 | DCA |
| Month 5 | 95.83 | $102,751 | $103,262 | −$512 | DCA |
| Month 6 | 94.11 | $91,374 | $89,304 | $2,070 | Lump sum |
| … 198 more start months in the file | |||||
Lump sum ended higherDCA ended higher
What's inside the spreadsheet
| Tab | What you type | What it calculates |
|---|---|---|
| Start here | Nothing | Steps, the method in plain words, colour key, limits, sources, disclaimer |
| Calculator | Amount; 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 view | An 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 |
| Example | Already filled with 240 fictional monthly prices (change any yellow cell) | The same calculator, so you can see full results before entering your own data |
| Dashboard | Nothing | Your results next to the example, a bar chart, and Vanguard's published figures for context (clearly separated from your numbers) |
How to use it
- 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.
- On Calculator, paste the prices into column I from row 6 down, with no gaps. Dates in column H are optional.
- 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).
- 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.
- 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.
| Field | Formula |
|---|---|
| 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)
- Lump sum: $60,000 buys at 100.00. After 36 months the price is 172.46, so the lump sum is worth $103,476.
- DCA: $5,000 a month for 12 months. The waiting cash earns 4% a year, $1,104.17 in total, which goes into the last purchase. The average price paid is 95.74. After 36 months DCA is worth $110,074.
- Difference: lump sum minus DCA = −$6,598 (-11.0% of the amount). DCA ended higher here because prices fell soon after the start. The lowest month-end value along the way was $55,716 for the lump sum and $59,665 for DCA.
| Purchase | Months after start | Amount invested | Cash left |
|---|---|---|---|
| 1 | 0 | $5,000.00 | $55,000.00 |
| 2 | 1 | $5,000.00 | $50,180.06 |
| 3 | 2 | $5,000.00 | $45,344.33 |
| 11 | 10 | $5,000.00 | $6,084.26 |
| 12 | 11 | $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 period | LS higher, cash 0% | Avg LS − DCA, cash 0% | LS higher, cash 4% | Avg LS − DCA, cash 4% |
|---|---|---|---|---|
| 3 months | 55.9% | $314 | 51.0% | $85 |
| 6 months | 57.8% | $818 | 52.9% | $250 |
| 12 months | 63.2% | $1,863 | 52.5% | $635 |
| 24 months | 62.3% | $3,818 | 52.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 time | MSCI 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
- Comparing on different dates. Measure both on the same date, after DCA is fully invested. Comparing the lump sum after 12 months with DCA "after its last purchase" mixes up time in the market.
- Leaving out the cash yield. Money waiting to be invested can earn interest. Leaving it at 0% understates DCA; an unrealistically high rate overstates it.
- Testing one start date only. A single start date can go either way. Use the rolling test to see the spread of outcomes.
- Price-only data for a dividend payer. Price-only series ignore dividends. Use adjusted or total-return prices if dividends matter.
- Ignoring per-trade costs. FINRA warns: "If you pay commissions or other fees for each transaction, dollar-cost averaging might result in higher fees than lump sum investing due to the greater number of transactions you’ll have, which could erode your returns." The sheet does not deduct fees.
- Reading past results as a forecast. How often the lump sum won in your data is a description of that period, not a prediction.
Limits
- Monthly steps and one price per month; purchases happen at those prices.
- Not modelled: taxes, commissions and fees, bid-ask spreads, inflation, a cash yield that changes over time, and whole-share limits (fractional units are assumed).
- Rolling windows overlap, so the "% of start months" is not a count of independent outcomes.
- DCA up to 24 monthly purchases; comparison horizon up to 120 months; up to 600 monthly prices.
- Recalculation was tested in LibreOffice. The file uses only functions that exist in Excel 2016+ and Google Sheets.
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
- DCA calculatorQuick dollar-cost averaging numbers in the browser
- DCA trackerLog your actual recurring buys
- CAGR calculatorAnnual growth rate between two values
- XIRR spreadsheetReturn on money added over time
- ROI calculatorReturn on an investment
- All templatesFree spreadsheets
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.