Skip to main content

Dollar-Cost Averaging Calculator

Enter how much you invest, how often, and for how long. See what your shares are worth, what each one cost you on average, and how that compares with investing the same total on day one.

Your buying plan

Results update as you type. Use one currency for every amount.

Changes the symbol only. Nothing is converted.

USD

Savings you invest today with your first purchase. Use 0 for none.

USD

The same amount every time, without commas.

The first purchase happens today.

years

Whole years from 1 to 50.

USD

Price of one share or fund unit.

Price assumptions

Your own scenario, not a forecast. Try more than one.

%

The overall trend. Use a negative number, such as -5, for a falling price.

Price path

Optional: fee per purchase
USD

Taken from each purchase before buying shares. Use 0 for none.

Your projection

Showing the example values. Replace them with your own.

Value after 10 years of buying

$81,632.15

From $60,000.00 put in over 120 purchases. Investing the same $60,000.00 at the start would end $25,818.72 ahead.

Buying on a schedule compared with investing the same total at the start
After 10 yearsOn a scheduleAll at the start
Shares owned455.8296600
Average cost per share$131.63$100.00
Value$81,632.15$107,450.86
Total gain or loss+36.05%+79.08%
Return per year+6%+6%

Both paths earned about 6% a year. The gap in value comes from how long the money was invested, not from better or worse prices.

Value and share price over time

Tap a name under the chart to hide or show that line. The blue share price line uses the right-hand scale. Exact yearly figures are in the table below.

Average of your purchase prices$135.39
Your average cost per share$131.63
Lowest and highest purchase price$100.00 – $178.22
Share price at the end$179.08
Gain or loss on money put in$21,632.15
See year-by-year growth

Each row is at the end of the year, after that year’s 12 purchases.

Year-by-year projection of buying on a schedule
YearPut in so farSharesAverage costShare priceValue
1$6,000.0058.427$102.69$106.00$6,193.26
2$12,000.00113.5469$105.68$112.36$12,758.12
3$18,000.00165.5467$108.73$119.10$19,716.88
4$24,000.00214.6031$111.83$126.25$27,093.15
5$30,000.00260.8828$114.99$133.82$34,912.01
6$36,000.00304.5429$118.21$141.85$43,199.99
7$42,000.00345.7316$121.48$150.36$51,985.25
8$48,000.00384.5889$124.81$159.38$61,297.63
9$54,000.00421.2468$128.19$168.95$71,168.76
10$60,000.00455.8296$131.63$179.08$81,632.15

This projection follows the price path you choose. Real prices are uneven and can fall for years. It is not investment advice.

500 a month, or 60,000 on day one?

Put 500 into the same stock every month for ten years and you will have invested 60,000. Dollar-cost averaging is often sold as the smarter way to do it, because a fixed amount buys more shares when prices dip. That part is true. Whether it beats investing everything at once depends on what the price does while you are still buying.

If the price climbs steadily, the money you invest later buys at higher prices, and a lump sum on day one ends far ahead. If the price falls or swings while you buy, averaging can win. This calculator shows both paths side by side under the price path you choose. It cannot tell you which path the market will take. To project dividends that buy more shares, use the Dividend Reinvestment Calculator.

How to use the calculator

Step 1

Describe your buying plan

Pick your Currency. If you have savings to invest today, enter them as the Starting amount; otherwise leave it at 0. Enter the Amount per purchase, choose How often you buy and set the Years of buying. Then enter the Share price today, which sets how many shares each purchase buys. If your broker charges per purchase, open Optional: fee per purchase.

Step 2

Choose a price path

Yearly price change sets the overall trend. Steady trend moves the price smoothly. Ups and downs adds a wave of a Swing size you choose that repeats every cycle, so you can see averaging at work. Type 25 for ±25%, not 0.25.

Step 3

Compare the two paths

Results update as you type. The large figure is your value at the end. The table and chart set it against investing the same total at the start, and Return per year shows which path made your money work harder. The details below show your average cost next to the average price you paid.

Worked example: 500 a month into a rising stock

These are the calculator’s example values, and they are illustrative only. You buy 500 of a stock every month for 10 years. It starts at 100 a share and rises a steady 6% a year. There are no fees.

Purchases = 12 a year × 10 years = 120

Money put in = 120 × 500 = 60,000

First purchase = 500 ÷ 100 = 5 shares

Shares after 120 purchases = 455.8296

Price after 10 years = 100 × 1.06¹⁰ ≈ 179.08

Value = 455.8296 shares × the unrounded end price = 81,632.15, a 36.05% gain

Your average cost is 60,000 ÷ 455.8296 = 131.63 a share. That is below 135.39, the simple average of the 120 prices you paid, even though the price only ever went up. Each 500 bought slightly more of the cheaper early shares.

Now invest the whole 60,000 on day one instead. It buys 600 shares at 100, worth 107,450.86 after 10 years, a 79.08% gain. That is 25,818.72 more than buying monthly, because every peso or dollar was invested for the full ten years. The catch is that you needed the 60,000 up front. If that money arrives from your pay each month, the lump sum was never an option, and the gap is the price of waiting rather than a mistake.

Same 6% a year, very different endings

In the worked example the lump sum ends 25,818.72 ahead. Yet the table shows a Return per year of +6% for both paths. Every share bought on either path rose 6% a year for as long as it was held. The lump sum is bigger only because all 60,000 was invested for the full ten years, while the last monthly 500 was invested for one month.

Return per year for the scheduled path is a money-weighted return. It is the one yearly rate that, applied to each purchase from the day you made it, grows them all to your ending value. That makes it a fair comparison with the lump sum, whose return is simply (ending value ÷ amount put in)1 ÷ years − 1.

The same idea explains a falling market. Buy 50 a week for 5 years while a 20 stock falls 10% a year, and your 13,000 ends at 10,095.32. The same 13,000 invested on day one ends at 7,676.37. Both paths returned −10% a year. Buying on a schedule lost less only because less of your money was exposed, for less time.

A Starting amount works the same way. Add 5,000 to the worked example, invested with the first purchase, and you put in 65,000. Bought on a schedule it ends at 90,586.38, and invested at the start it ends at 116,405.10. Both still return 6% a year.

Why your average cost beats the average price

Spend 100 every quarter for a year while the price moves 100, 150, 100, then 50. You buy 1, 0.6667, 1 and 2 shares, so 4.6667 in total for 400.

Average of the four prices = (100 + 150 + 100 + 50) ÷ 4 = 100

Your average cost = 400 ÷ 4.6667 ≈ 85.71

The 50 purchase bought twice as many shares as the 100 ones, so it counts for more in your average. A fixed amount always leans your cost toward the cheaper purchases. That is the real benefit of dollar-cost averaging. It does not guarantee a profit, but it stops you buying most of your shares at the top.

When buying on a schedule comes out ahead

Take a stock that goes nowhere over 8 years but swings ±25% around 100 every 4 years. Set Yearly price change to 0, choose Ups and downs, and buy 500 a month. You put in 48,000. Bought on a schedule, it is worth 49,574.19, because your average cost is 96.82. The same 48,000 invested on day one is still worth 48,000. Averaging comes out 1,574.19 ahead, a return of 0.8% a year against 0%, because it bought heavily while the price was between 75 and 100.

Stretch the same pattern to 10 years and the result flips. The extra two years are a rising half-cycle, so your final purchases buy expensive shares, and the value ends at 59,976.82 on 60,000 put in. Where the swing sits when you stop buying matters as much as the swing itself.

How the projection is calculated

The first purchase happens today at the share price you enter. Later purchases follow the frequency you choose, and every purchase buys a fraction of a share. The value is measured one period after the last purchase, at the end of the final year.

Price at time t = starting price × (1 + yearly change)t × (1 + swing × sin(2π × t ÷ cycle))

Shares bought each time = (amount − fee) ÷ price at that purchase

Average cost = total put in, including fees ÷ shares owned

All at the start = (total put in − one fee) ÷ starting price, valued at the end price

Return per year on a schedule = the rate r where Σ purchase × (1 + r)years left = ending value

With Steady trend the swing term is 1, so the price follows the yearly change alone. A Starting amount is bought in the same trade as the first purchase, so it pays no extra fee. The calculator keeps full precision and rounds only for display: money to two decimals, shares to four and returns to two.

Small regular buys and fees

Buying on a schedule means paying a fee every time. Add a 5 fee to each purchase in the worked example and you pay 600 over 120 purchases. Your value falls to 80,815.82, which is 816.32 lower. The lump sum pays one 5 fee. On a 500 purchase, 5 is 1%. On a 50 purchase it would be 10%, which takes years of growth to win back.

If your broker charges a percentage, convert it to an amount per purchase. Check for a minimum fee too, since that is what small purchases usually pay.

What each result tells you

Meaning of each dollar-cost averaging result
ResultWhat it means
Value after buyingShares owned × the share price at the end, with nothing sold.
Average cost per shareEverything you put in, fees included, divided by your shares. Compare it with the end price to see your profit per share.
Average of your purchase pricesThe plain average of the prices on each purchase day. Your average cost sits below it unless fees push it up.
All at the startWhat the same total would be worth if you had invested it on day one.
Total gain or lossThe change in value compared with the money put in, over the whole period. It is not a yearly rate.
Return per yearHow hard your money worked each year, allowing for when each amount went in. Use it to compare the two paths fairly.

Before relying on the projection

  • A percentage typed as a decimal. Type 6 for 6%. Entering 0.06 models a 0.06% change.
  • One optimistic trend. Run a flat or falling case too, and see how the comparison changes.
  • Reading the lump sum as a choice you can make. It only applies if you already have the full amount.
  • Fees left at 0. Enter your broker’s real fee per purchase, especially for small amounts.

Before you act on the numbers:

  • Pick an amount you can keep buying through a falling market, since those purchases do the averaging.
  • Check your broker’s fee, minimum fee and whether it sells fractional shares.
  • Compare a hopeful price path with a cautious one.
  • Remember that averaging lowers your cost but cannot stop a stock from losing value.

Frequently asked questions

Is dollar-cost averaging better than investing a lump sum?
Not when prices rise steadily. Money invested at the start has longer to grow, so a lump sum usually ends ahead in a rising market. Buying on a schedule comes out ahead when prices fall or swing down while you are still buying, and it is how most people invest money they earn over time.
Why do both paths show the same return per year?
On a steady trend, every share earns the same yearly rate no matter when you bought it. The lump sum ends with more money only because all of it was invested for the whole period. Return per year allows for when each amount went in, so it shows how hard the money worked rather than how long it was invested.
How is the starting amount handled?
It is invested on day one in the same trade as your first regular purchase, at the starting price and without an extra fee. It is included in the total put in for both paths.
Why is my average cost lower than the average price I paid?
A fixed amount buys more shares when the price is low and fewer when it is high. So more of your shares come from the cheaper purchases, which pulls your average cost per share below the simple average of the purchase prices. Fees push your average cost back up.
What does the lump-sum comparison assume?
It assumes you already had the full amount you will put in over the whole period and invested it on the first day at the starting price, paying one fee. If you do not have that money up front, the comparison shows the cost of waiting, not a choice you can make.
Is the ups-and-downs pattern a forecast?
No. It is a smooth wave around your yearly price change so you can see how averaging behaves when prices swing. Real prices move unevenly. Where the wave sits when you stop buying changes the result, so try a few cycle lengths.
Are dividends included?
No. This calculator tracks the shares your contributions buy and the share price. Use the Dividend Reinvestment Calculator to project dividends that buy more shares.
How do I enter a broker fee charged as a percentage?
Convert it to an amount per purchase. A 0.25% commission on a 500 purchase is 1.25, so enter 1.25. If your broker charges a minimum fee, enter whichever is higher: the minimum or the percentage amount.
Does changing the currency convert my amounts?
No. The currency only changes the symbol shown on amounts. Enter every amount in the currency you choose.
Does the calculator assume fractional shares?
Yes. Each purchase buys an exact fraction of a share. If your broker sells whole shares only, the leftover cash from each purchase waits, so your share count will be a little lower.

Keep planning with the tools that answer the next question.