Skip to content
Budget Folders

Dollar cost averaging calculator

Buy $500 at prices of $100.00, $80.00, $62.50, $80.00, $100.00 and your average cost is $81.97 a share, below the $84.50 average price. Whether that beats investing all at once depends on the price path. This tool lets you test both.

Edited by AnilReviewed How we calculateEditorial policy

Your numbers
Start from an example
Your money
The price path you want to test
More options (2)
Stays in your browser
Dollar-Cost Averaging Calculator
Spreading finishes ahead on this path by
$5,182
After 24 months, spreading over 12 buys. Not a forecast.
Lump sum final value
$66,000
Spreading final value
$71,182
Lump sum cost per share
$100.00
Spreading cost per share
$92.72
Lump sum lowest value
$51,000
Lowest point along the way
Spreading lowest value
$55,004
Lowest point along the way

What this means

  • Spreading finishes $5,182 ahead on this path. This one line of prices decides that, and you chose it. Change the path and the winner can change, as the table of paths shows.
  • Lump sum paid $100.00 a share and spreading paid $92.72. Spreading got more shares, and that is what sets the winner when waiting cash earns nothing. The final price only changes the size of the gap.
  • The worst point along the way was $51,000 for lump sum and $55,004 for spreading. That smaller paper loss is the real thing spreading buys, and it's worth something if a drop would make you sell.
  • Waiting cash earns nothing here. Set a savings rate under advanced options, since it can narrow or flip a close result.

What moves this number

Change in spreading finishes ahead on this path by. Select one to try it.

Value along your price path
Spreading includes cash not yet invested
  • Lump sum
  • Spreading
$0$20K$40K$60K$80K03691215182124
View as table
MonthLump sumSpreading
0$60,000$60,000
1$59,193$59,933
2$58,397$59,799
3$57,611$59,600
4$56,836$59,336
5$56,072$59,009
6$55,317$58,619
7$54,573$58,167
8$53,839$57,653
9$53,115$57,079
10$52,400$56,446
11$51,695$55,754
12$51,000$55,004
13$52,108$56,199
14$53,239$57,419
15$54,396$58,666
16$55,577$59,940
17$56,784$61,242
18$58,017$62,572
19$59,277$63,931
20$60,565$65,320
21$61,880$66,738
22$63,224$68,188
23$64,597$69,669
24$66,000$71,182
The price path you chose
$0$50$100$15003691215182124
View as table
MonthShare price
0$100.00
1$98.65
2$97.33
3$96.02
4$94.73
5$93.45
6$92.20
7$90.96
8$89.73
9$88.52
10$87.33
11$86.16
12$85.00
13$86.85
14$88.73
15$90.66
16$92.63
17$94.64
18$96.70
19$98.80
20$100.94
21$103.13
22$105.37
23$107.66
24$110.00

Keep going with these numbers

The same money on different paths

Each path starts at $100.00 and uses your amount, buys, and months. These paths are illustrations. No path here is a prediction.

Price pathLump sumSpreadingAheadBy
Your path$66,000$71,182Spreading$5,182
Rises 20%$72,000$69,077Lump sum$2,923
Falls 20%$48,000$50,544Spreading$2,544
Dips 20%, then recovers$60,000$66,598Spreading$6,598
Jumps 20%, then fades$60,000$55,266Lump sum$4,734

Month by month

MonthPriceLump sumSpreading
0$100.00$60,000.00$60,000.00
1$98.65$59,192.88$59,932.74
2$97.33$58,396.62$59,799.13
3$96.02$57,611.08$59,600.05
4$94.73$56,836.09$59,336.39
5$93.45$56,071.54$59,009.02
6$92.20$55,317.27$58,618.79
7$90.96$54,573.14$58,166.55
8$89.73$53,839.03$57,653.14
9$88.52$53,114.79$57,079.37
10$87.33$52,400.29$56,446.06
11$86.16$51,695.40$55,754.01
12$85.00$51,000.00$55,004.01

How do you calculate your dollar cost average?

Add up the dollars you spent, then divide by the shares you got. It isn't the average of the prices. Your $2,500 in the example buys 30.5 shares, so the average cost is $81.97.

Average cost per share = total dollars spent ÷ total shares bought
Equal $500 buys. Example prices, calculated by this site.
BuyPriceShares boughtTotal sharesAverage cost so far
1$100.005.005.00$100.00
2$80.006.2511.25$88.89
3$62.508.0019.25$77.92
4$80.006.2525.50$78.43
5$100.005.0030.50$81.97

The math is the same for a stock, a fund, or crypto, so any of those fit in the list above. In Excel, divide the sum of your dollars by the sum of dollars ÷ price for each row. With equal buys, the average cost always falls below the plain average price if prices changed, because the same dollars buy more shares at lower prices. That gap comes from arithmetic. It says nothing about whether you timed anything well.

Your average cost is also your break-even price before tax and fees. At $81.97, the price has to get back above that level for the whole position to show a gain, even though your first buy was at $100.00. Enter a current price above to see where you stand.

Is it better to invest all at once or dollar cost average?

Neither wins every time. If you have $60,000 to invest, the winner depends on where prices go next, which nobody knows in advance. Here are $60,000 and four price paths, each spread over 12 monthly buys and compared after 24 months. Lump sum wins 2 of these four, but the four are illustrations we picked, not a measure of how often either wins.

$60,000, price starts at $100.00, 12 monthly buys, 24 months, waiting cash earns nothing. Illustrations only.
Price pathLump sumSpreadingAheadBy
Rises 20%$72,000$69,077Lump sum$2,923
Falls 20%$48,000$50,544Spreading$2,544
Dips 20%, then recovers$60,000$66,598Spreading$6,598
Jumps 20%, then fades$60,000$55,266Lump sum$4,734

FINRA, the brokerage industry regulator, describes the tradeoff this way: spreading out has lower risk but often produces lower returns than lump sum investing, especially over longer periods, because part of your money stays in cash. It can also limit your losses in a sharp decline, since the money you haven't invested yet isn't affected by the drop.

This tool also shows the low point along the way. In the falling example, lump sum bottoms at $48,000 and spreading at $50,544. If a smaller paper loss would keep you from selling in a panic, that has real value, even when spreading ends behind on a rising path.

What decides whether dollar cost averaging wins?

When waiting cash earns nothing, the winner is whichever approach bought more shares. That comes from one comparison: your first price against the average cost of your later buys. The final price only scales the gap. On a path rising from $100.00 to $120.00, spreading pays $104.43 a share and lump sum $100.00, so lump sum finishes $3,052 ahead. Crash the final month to $70.00 and both lose, but lump sum still finishes $1,780 ahead, since it still holds more shares.

Bigger swings make the gap larger. These paths fall partway and then return to where they began, so a lump sum simply ends flat.

$60,000 over 12 buys. The price falls by the amount shown at month 12, then recovers to $100.00 by month 24.
Size of dipLump sumSpreadingSpreading cost per share
10%$60,000$62,997$95.24
30%$60,000$71,028$84.47
50%$60,000$84,086$71.36

This is why a backtest of one index or one coin can't settle the question. It tells you about one path. Your own path hasn't happened yet.

What about interest on the cash, and trading fees?

Money waiting to be invested can earn interest. On a path rising from $100.00 to $110.00, spreading $60,000 over 12 months earns $1,174 at an example 4% rate. That moves spreading's final value from $64,547 to $65,721, against $66,000 for a lump sum. Interest is taxable, which this tool doesn't count. Keep waiting cash somewhere you can reach it, and the savings calculator can size what it earns.

Fees work the other way. Each buy pays any commission. With $1,200 split over 12 buys and a $5 fee, spreading loses $60 to fees against $5 for one buy. If your broker charges no commission, leave this at zero.

When dollar cost averaging is not really a choice

If you invest a set amount from each paycheck, as in a 401(k), you are dollar cost averaging already, and you aren't holding back a lump sum. You're investing money as you earn it, so the comparison above doesn't apply. The case against waiting only applies when you have the cash today.

To see how regular buying can grow over decades, use the investment calculator. For income from a holding that reinvests along the way, try the dividend calculator.

One trap at tax time: your average cost here is useful for tracking, but your cost basis may be tracked lot by lot. IRS Publication 550 explains the average basis method for fund shares and how to choose it. When you sell, your gain depends on the basis method used, so check with your broker or a tax professional before a large sale. The capital gains tax calculator estimates the tax.

Common questions

What does dollar cost averaging mean?

It means investing a set amount at regular intervals, whatever the price is. You buy more shares when prices are low and fewer when they are high.

Does dollar cost averaging prevent losses?

No. If prices fall and stay down, spreading out still loses money, as the falling path in the table shows. It lowers how much of your money is exposed early on, nothing more.

How long should I spread out a lump sum?

No period is right for everyone. A longer spread leaves more money out of the market for longer, which can feel safer and can cost more if prices rise. Try different numbers of buys above, on a rising and a falling path, and see which regret you could live with.

Does this work for bitcoin and other crypto?

The arithmetic works for anything with a price. Enter your buys and prices in the average cost mode. Fees matter more when they are charged on each small purchase, so include them. Crypto prices can drop sharply, and this tool makes no prediction about them.

Should I count reinvested dividends as purchases?

Yes, if you are tracking cost. Each reinvested dividend is a purchase at that day's price, so add it as a row. Dividends are generally still taxable when reinvested, under IRS rules.

Sources

  1. The Benefits and Limitations of Dollar-Cost Averaging · FINRA
  2. Publication 550: Investment Income and Expenses · Internal Revenue Service

More in Savings & Investing