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
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.
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.
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
| Result | What it means |
|---|---|
| Value after buying | Shares owned × the share price at the end, with nothing sold. |
| Average cost per share | Everything 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 prices | The plain average of the prices on each purchase day. Your average cost sits below it unless fees push it up. |
| All at the start | What the same total would be worth if you had invested it on day one. |
| Total gain or loss | The change in value compared with the money put in, over the whole period. It is not a yearly rate. |
| Return per year | How 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?
Why do both paths show the same return per year?
How is the starting amount handled?
Why is my average cost lower than the average price I paid?
What does the lump-sum comparison assume?
Is the ups-and-downs pattern a forecast?
Are dividends included?
How do I enter a broker fee charged as a percentage?
Does changing the currency convert my amounts?
Does the calculator assume fractional shares?
Related stock calculators
Keep planning with the tools that answer the next question.
- Stock Average Down CalculatorFind your new average cost, or how many shares it takes to reach a target average. Open calculator
- Dividend Reinvestment CalculatorProject shares, value and income when every dividend buys more shares. Open calculator
- CAGR CalculatorTurn a start and end value into a yearly growth rate, or project one forward. Open calculator
- Stock Dividend CalculatorFind one year’s dividend income and yield from your shares. Open calculator
- Stock Profit CalculatorSee your gain or loss at today’s price. Open calculator