Growth & planning

See where steady investing can lead.

Side by sideCash interest

Lump Sum vs. Dollar-Cost Averaging Calculator

Compare investing a sum all at once with spreading it out on a schedule, on the prices you choose. Type prices, paste a price history from your broker, or use an illustration, and see the average cost, the ending value and what the money waiting to be invested earned. Then test a reserve for big drops, what stopping costs and every possible start date. Free, no account.

Your plan

More settings+

What you buy, and the prices

Each holding is a price list: type the prices, paste a history you downloaded from your broker or a chart site, or use an illustration. This page never supplies prices, and nothing you paste leaves your browser.

Falls about 35%, then ends 25% above the start. An illustration, not a real price or a forecast.

You put in$24,00048 purchases
Worth at the end$34,913
Gain or loss+$10,913.32+45.5%
Yearly return+19.8%money-weighted
Shares you own279.3066
Average cost per share$85.93also your break-even price
Price at the end$125.00above your average cost

You put in $24,000 over 48 purchases. At the end it was worth $34,913, a gain of $10,913 (+45.5%). Your average cost was $85.93 a share and the last price was $125.00.

Spread out, or all at once?

The same $24,000 two ways: invested on schedule, or all on the first date. While the money waits under the schedule it earns 4% a year (change this under More settings).

Dollar-cost averaging against a lump sum
WaySharesAverage costWorth at the endGain or loss
Spread out on schedule279.3066$85.93$36,956+$12,955.93
All on the first date240$100.00$30,000+$6,000.00

With these prices, spreading it out ended $6,956 ahead. When prices fall or dip first, buying later at lower prices helps. The waiting money earned $2,043 in interest, which is counted for the spread-out plan.

This compares two ways of investing a sum you already have. If you earn the money a little at a time, spreading it out is simply how it gets invested as it arrives, and there is nothing to compare. Either way, which one wins depends on prices nobody can know in advance.

What it was worth, and what you put in

When the worth line is under the other, the account was worth less than you had put in at that date.

  • Worth
  • Put in
$34,913$17,707$500#1#25#48

The price, and your average cost

Your average cost moves less than the price, because every purchase is only a small part of what you own. Above it, you are ahead on what you hold.

  • Price
  • Your average cost
$125.00$95.23$65.45#1#25#48

How rough was the ride?

The ending number hides the road. These show the worst the plan looked while you were in it, which is what tests whether you would have kept going.

Lowest point-18.0%against what you had put in, on #16
Longest time below23 monthsin a row, worth less than put in
Dates below23 / 4848%
Biggest price fall-35%from a high to a later low

At one point the account was worth 18% less than the money you had put in, and it stayed below what you had put in for 23 months straight. Plans like this only work for people who keep going through stretches like that.

What if you stop?

The same prices three ways: you keep going, you pause for a while around the lowest prices, or you stop when the price has fallen a set percent from its high and only restart once it is back at that high.

Keeping going against pausing or stopping
What you doPut inSkipped moneyWorth at the endWorth + skipped cashAgainst keep going
Keep going$24,000–$34,913$34,913–
Pause for 6 purchases around the low$21,000$3,000$29,351$32,351-$2,562.07
Stop after a 20% fall, restart at the old high$10,000$14,000$12,413$26,413-$8,500.07

Skipped money is counted as cash earning nothing. The last column compares the worth at the end plus that cash. If the skipped money was needed, or earned interest elsewhere, the picture changes. It is not a reason to keep investing money you cannot afford to leave invested.

A reserve for big drops

Your regular plan keeps going. On top of it, a cash reserve makes an extra purchase whenever the price is a set percent below its high (one extra purchase per date) until the reserve is used up. This is a rule to test, not a recommendation.

Extra purchases6first on #10
Reserve used$3,000
Reserve left$0used up
Against leaving it in cash+$1,780.93
The reserve rule against leaving the reserve in cash
WayPut inWorth at the endPlus reserve in cashTotal
Regular plan, reserve kept in cash$24,000$34,913$3,498$38,412
Regular plan + reserve rule$27,000$40,064$129$40,193
The reserve ran out. If prices had kept falling after the last extra purchase, there would have been nothing left to buy with.

Working back from a goal

Enter a target amount and a number of years. The table shows what it takes under three steady yearly returns, and what your current plan would reach. These are scenarios, not predictions: real returns are not steady, and nobody knows the next return.

What reaches the goal at three steady returns
Yearly returnYour plan reachesAgainst the goalYou would need to invest (a month)
4%$73,588$26,412 short$679.46
7%$86,009$13,991 short$581.34
10%$100,729$729 over$496.39

“You would need to invest” keeps your starting amount and yearly raise, and takes the contribution at the start of each period. It is the same amount every period (before the yearly raise).

Every possible start dateRun the same plan from every month a pasted history allows, and see the best, the typical and the worst result. It shows how much the start date matters.+
This view needs a pasted price history for every holding (choose “Paste history” above) covering more years than the length you pick below. Typed prices and illustrations have no real dates to start from.

Every purchase and its cost

Each row is one purchase: the price paid, the shares it bought and what they are worth at the end. Cost includes fees. “Held” uses the rule of thumb that shares held more than a year are treated differently for US taxes. This is a record for your own planning, not tax advice: ask a tax professional how your sales would be taxed.

Purchases, cost and worth at the end
DateTypePriceSharesCostWorth nowGain or lossHeld
#1Buy$100.005$500.00$625.00+$125.00Over a year
#2Buy$97.295.1393$500.00$642.41+$142.41Over a year
#3Buy$94.655.2826$500.00$660.33+$160.33Over a year
#4Buy$92.085.4301$500.00$678.76+$178.76Over a year
#5Buy$89.585.5816$500.00$697.70+$197.70Over a year
#6Buy$87.155.7372$500.00$717.15+$217.15Over a year
#7Buy$84.795.8969$500.00$737.12+$237.12Over a year
#8Buy$82.496.0613$500.00$757.67+$257.67Over a year
#9Buy$80.256.2305$500.00$778.82+$278.82Over a year
#10Buy$78.086.4037$500.00$800.46+$300.46Over a year
#11Buy$75.966.5824$500.00$822.80+$322.80Over a year
#12Buy$73.906.7659$500.00$845.74+$345.74Over a year
#13Buy$71.906.9541$500.00$869.26+$369.26Over a year
#14Buy$69.957.148$500.00$893.50+$393.50Over a year
#15Buy$68.057.3475$500.00$918.44+$418.44Over a year
#16Buy$66.207.5529$500.00$944.11+$444.11Over a year
#17Buy$65.457.6394$500.00$954.93+$454.93Over a year
#18Buy$66.837.4817$500.00$935.21+$435.21Over a year
#19Buy$68.247.3271$500.00$915.89+$415.89Over a year
#20Buy$69.687.1757$500.00$896.96+$396.96Over a year
#21Buy$71.157.0274$500.00$878.43+$378.43Over a year
#22Buy$72.656.8823$500.00$860.29+$360.29Over a year
#23Buy$74.196.7395$500.00$842.43+$342.43Over a year
#24Buy$75.756.6007$500.00$825.08+$325.08Over a year

How the calculator works

Dollar-cost averaging means investing the same amount at regular intervals, whatever the price is. The SEC describes it as investing your money in equal portions, at regular intervals, regardless of the ups and downs in the market. Each purchase buys the amount ÷ the price in shares, so you get more shares when the price is low and fewer when it is high. Your average cost is everything you paid, fees included, divided by the shares you own, and it is also your break-even price.

The calculator does that arithmetic for every purchase on the prices you give it, then shows what the plan was worth at the end, the yearly return, and how the ride felt: the lowest point against what you had put in and how long the account stayed below it. Around that it adds views for the questions long-term investors ask: spread out or all at once, what stopping costs, a reserve for big drops, what a goal takes, and how much the start date matters.

The prices are yours: type them, use a made-up illustration, or paste a history from your broker or a chart site. Illustrations are invented paths for learning, not real prices or forecasts. Nothing you paste leaves your browser. With several holdings, each gets a share of every purchase, and the calculator can keep the mix with each purchase or rebalance once a year, which the SEC explains as bringing a portfolio back to its original asset allocation mix.

Worked example (made-up prices)

You invest $600 four times, when the price is $60, $40, $50 and $75. The purchases buy 10, 15, 12 and 8 shares: 45 shares for $2,400. Your average cost is $2,400 ÷ 45 = $53.33 a share. The average of the four prices is $56.25, but you paid less per share because the $600 bought more shares when the price was low. At $75 the 45 shares are worth $3,375, a gain of $975.

Now the same plan with prices of $60, $50, $40 and $30. You buy 10, 12, 15 and 20 shares: 57 shares for $2,400, an average cost of $42.11. At $30 they are worth $1,710, a loss of $690. The lower average cost softens the fall but does not prevent it, which is why spreading purchases out is not the same as being protected.

Frequently asked questions

What is dollar-cost averaging?

It means investing the same amount of money at regular intervals, whatever the price is. The SEC describes it as investing your money in equal portions, at regular intervals, regardless of the ups and downs in the market. Because the amount is fixed, a purchase buys more shares when the price is low and fewer when it is high. It does not promise a profit and does not protect you from a loss.

How do I calculate my average cost per share?

Add up everything you paid, fees included, and divide by the number of shares you own. If you invest $600 each time at prices of $60, $40, $50 and $75, you buy 10, 15, 12 and 8 shares, 45 in all, for $2,400. $2,400 ÷ 45 = $53.33 a share. That is your average cost and your break-even price: above it you are ahead on what you hold, below it you are behind.

Is dollar-cost averaging better than investing a lump sum?

It depends on the prices, which nobody knows in advance. When prices rise through the period, a lump sum tends to end ahead, because more money is invested for longer. When prices fall or dip first, spreading the purchases out tends to lose less or end ahead, because later purchases are made at lower prices. The “Spread out, or all at once?” section compares both ways on your own prices, and lets money that is waiting earn interest. If you earn the money a little at a time, there is nothing to compare: spreading it out is simply how it gets invested as it arrives.

Where do the prices come from?

From you. This calculator never supplies prices. You can type them, use a made-up illustration, or paste a price history you downloaded from your broker or a chart site (a CSV with a date and a price on each line; with a header row it uses “Adj Close” when there is one, otherwise “Close”). Pasted prices stay in your browser and are not saved or sent anywhere. Pasting a history is also how you test a real stock or fund.

Can I use more than one stock or fund?

Yes, up to five. Give each one a share of every purchase, such as 60% and 40%. You can split each purchase by those shares, put each purchase into whatever has fallen behind its target, or split and rebalance once a year. The SEC explains rebalancing as bringing a portfolio back to its original asset allocation mix. Rebalancing by selling can create taxes, which this page does not count. A table shows how far each holding drifted from its target.

What does the yearly return mean?

It is a money-weighted return: the single yearly rate that, applied to each deposit from the day it was made, grows to the ending value. It is the fair way to measure a plan where money goes in at different times, because the first deposit works for years and the last for days. It is only shown for plans of a year or more, because a rate over a few months can look huge or terrible and means little.

Does it include dividends, fees and inflation?

Yes, if you ask for them under More settings: a dividend yield (or the dividend column of a pasted history) that is reinvested or kept as cash, a fee per purchase, a yearly fund fee, and inflation to show results in starting-day dollars. It does not include taxes. If you paste a fund’s own price history, leave the yearly fund fee at 0, because the fund’s price already reflects it.

What is the reserve for big drops?

It tests a rule: keep a cash reserve, and make an extra purchase whenever the price is a set percent below its high, until the reserve is used up. The calculator compares it with simply leaving the reserve in cash. It shows that the rule can help when prices recover and can lose when they keep falling, and that the reserve can run out. It is a way to test an idea on your own prices, not a recommendation to use it.

Is this financial advice?

No. It is an education tool that does arithmetic on the prices you give it. It does not know what prices will do, it does not say what to buy or when, and a result from past or made-up prices says nothing certain about the future.

Learn the idea behind it

Want to research a stock or practice with simulated money? Signal Desk has stock research, option chains (about 15 minutes delayed) and a paper-trading account with simulated money. To keep a record of what you decide and why, use the free trading journal template.

Important notice

This calculator is for education. It does arithmetic on the prices you type, paste or choose, which are not real prices unless you paste them yourself, and it cannot know what prices will do. Results from past or made-up prices say nothing certain about the future. It leaves out taxes and anything not listed in its settings. Investing involves risk, including the loss of the money you invest. It is not financial advice, and it does not tell you what to buy, when to buy or how much.