# Dollar-Cost Averaging Calculator

Investing $500.00 at each of 12 prices (from $100.00 down to $78.00 and back up to $115.00) gives Average cost $95.5438 per share vs average price $96.8333. $6,000.00 invested over 12 periods buys 62.7984 shares, worth $7,221.82 at the last price (+$1,221.82, +20.36%). The same $6,000.00 invested at the first price ends at $6,900.00 (+15.00%). Spreading a fixed amount over time always buys at an average cost no higher than the average price, because the same dollars buy more shares when the price is low. Whether that beats a lump sum depends on what prices do next. This is an estimate from the prices you enter, not investment advice.

Canonical page: https://ponderloop.com/tools/dollar-cost-averaging-calculator/
Updated: 2026-11-14

## How to use

How to use the Dollar-Cost Averaging Calculator

1. **Enter the price for each period**: Type or paste one price per period, one per line (for example the month-end price of a fund). The example has 12 prices. Spaces, semicolons and commas also separate prices; to use a thousands comma, add a $ sign or a decimal point (for example $1,250 or 1,250.50).
2. **Enter the amount you invest each period**: Type the fixed amount, for example $500.00. Each period buys that amount divided by that period’s price in shares.
3. **Compare the average cost with the average price and the lump sum**: Read the headline (Average cost $95.5438 per share vs average price $96.8333), the value at the last price and the lump-sum comparison, then check the period-by-period table.
4. **Try the projection**: For a what-if, enter a monthly contribution, a number of years and an assumed constant annual return. The example gives future value $156,278.00 after 20 years. It is an illustration, not a forecast.

## Reference tables and worked examples

### Dollar-cost averaging vs a lump sum on different price paths

The same $500.00 each period. Average cost is always at or below the average price; the lump sum depends only on the first and last price: it finishes ahead when the last price ends well above the first. Every figure is this calculator’s own result.

| Price path | Average cost | Average price | DCA gain or loss | Lump-sum gain or loss | DCA minus lump sum |
| --- | --- | --- | --- | --- | --- |
| Falls, then recovers (the example) | $95.5438 | $96.8333 | +$1,221.82 (+20.36%) | +$900.00 (+15.00%) | +$321.82 |
| Rises steadily | $107.2554 | $107.5000 | +$216.62 (+7.22%) | +$450.00 (+15.00%) | −$233.38 |
| Falls steadily | $86.6608 | $87.5000 | −$403.67 (−13.46%) | −$750.00 (−25.00%) | +$346.33 |
| Zigzags and ends where it began | $97.2973 | $100.0000 | +$83.33 (+2.78%) | $0.00 (0.00%) | +$83.33 |
| Flat | $100.0000 | $100.0000 | $0.00 (0.00%) | $0.00 (0.00%) | $0.00 |

### Projection: what the assumed return does

$300.00 a month for 20 years at a constant return, compounded monthly. A hypothetical illustration, not a forecast.

| Assumed annual return | Total contributed | Growth | Future value | Same total as a lump sum on day one |
| --- | --- | --- | --- | --- |
| 0% | $72,000.00 | $0.00 | $72,000.00 | $72,000.00 |
| 4% | $72,000.00 | +$38,032.39 | $110,032.39 | $160,025.91 |
| 7% | $72,000.00 | +$84,278.00 | $156,278.00 | $290,789.20 |
| 10% | $72,000.00 | +$155,810.65 | $227,810.65 | $527,621.30 |

## How it works

Actual prices: each period buys amount ÷ price shares. Total shares are the sum over all periods, the average cost per share is total invested ÷ total shares (the harmonic mean of the prices), and the value is total shares times the last price. The lump sum invests the same total at the first price and is valued at the last price. In the example, 12 periods at $500.00 buy 62.7984 shares at an average cost of $95.5438. Projection: a constant annual return compounded monthly with a contribution at the end of each month (the future value of an ordinary annuity). Money is kept in whole cents and every sum is exact; results are rounded half up once, for display.

## FAQ

### What is dollar-cost averaging?

Dollar-cost averaging means investing the same amount at regular intervals, whatever the price. A fixed amount buys more shares when the price is low and fewer when it is high. In the example, $500.00 a period over 12 periods buys 62.7984 shares.

### Why is my average cost lower than the average price?

Your average cost is total invested divided by total shares, which works out to the harmonic mean of the prices. The harmonic mean is never above the ordinary (arithmetic) average, and they are equal only when every price is the same. With two prices, $50 and $100, and $500 each time you buy 10 shares and 5 shares: $1,000.00 buys 15 shares, an average cost of $66.6667, while the average of the two prices is $75.0000.

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

It depends on the prices that follow, which nobody knows in advance. If prices dip first and then recover, as in the example, averaging in finished +$321.82 against the lump sum. If prices rise steadily, the lump sum is ahead (averaging in finished −$233.38 in the steady-rise table row). On a zigzag that ends where it began, the difference is +$83.33. When prices tend to rise over time, money invested sooner has longer to grow, which favours a lump sum on average; but that is a tendency, not a guarantee. Spreading the money out lowers the chance of putting everything in just before a fall, at the price of often being invested for less time. That is a trade-off between expected growth and regret, not a rule.

### Does the calculator compare against a lump sum fairly?

It puts the same total ($6,000.00 in the example) into the investment at the first price you entered and values it at the last price. That assumes the lump sum is available on day one, which is the case for money you already hold. If you only earn the money over time, there is no lump sum to compare against, and regular investing is simply how you invest.

### How is the projection calculated?

It assumes a constant annual return, compounded monthly, with each contribution made at the end of its month. The future value is the contribution times ((1 + i)^n − 1) ÷ i, where i is the annual return divided by 12 and n is the number of months. For $300.00 a month for 20 years at 7% that is $156,278.00, of which $72,000.00 is your own money and $84,278.00 is growth.

### Is the projection a forecast of what I will earn?

No. It holds the return constant to show how contributions, time and compounding add up. Real investments rise and fall, can lose money, and the order of good and bad years changes the outcome. At 0% the same contributions end at $72,000.00; at 10% they end at $227,810.65. Use it to compare plans, not to predict a result. Fees, taxes and inflation are not included.

### What prices can I enter?

Up to 240 prices (20 years of monthly prices), each above zero with at most four decimal places and no more than $1,000,000. Fractional shares are assumed. If your broker only sells whole shares, the leftover cash is not counted here, so the real average cost will differ slightly. The page shows the first 24 periods and a totals row; the CSV download has every period.

### Does it include fees, taxes or dividends?

No. Prices are treated as the price you pay, with no trading fees, bid-ask spread, taxes, or dividends. Fees and taxes lower real results, and reinvested dividends raise them.

### Is anything I type sent to a server?

No. Your monthly amount, number of years and assumed return are worked through in your browser to get the future value, and none of it is uploaded or stored.

## Sources

- Hardy, Littlewood and Pólya, Inequalities, Cambridge University Press: the theory of means (the harmonic mean never exceeds the arithmetic mean)
- Kellison, The Theory of Interest, McGraw-Hill: annuities-certain (future value of an ordinary annuity)

---

Cite as: Dollar-Cost Averaging Calculator, ponderloop, https://ponderloop.com/tools/dollar-cost-averaging-calculator/, updated 2026-11-14
