Dollar-Cost Averaging Calculator

Dollar-Cost Averaging Calculator

Growing AI Skill PRO

Enter Calculation

e.g. 10, 12.5, 8, 11 — leave the count matching the periods above

Results

Average Cost Per Share
10.1033
your dollar-cost-averaged price
Total invested 400
Total shares bought 39.5909
Average market price (simple mean) 10.375
Periods counted 4

Formula

Average Cost=Total InvestedTotal Shares=Amount×N∑i=1NAmountPi\text{Average Cost} = \frac{\text{Total Invested}}{\text{Total Shares}} = \frac{\text{Amount} \times N}{\displaystyle\sum_{i=1}^{N} \frac{\text{Amount}}{{P_i}}}
Usage stats

Advertisement

Report an error on this page

What is Dollar-Cost Averaging?

Dollar-cost averaging (DCA) is an investing strategy where you invest a fixed amount of money at regular intervals — for example, $100 every month — regardless of the asset's price. When the price is low your fixed dollars buy more shares, and when the price is high they buy fewer. Over time this smooths out volatility and produces an average cost per share that is typically lower than the simple average of the prices you paid.

Price line with equally spaced purchase points over time
Dollar-cost averaging spreads equal investments across regular intervals regardless of price.

How to use this calculator

Enter the fixed amount you invest each period, the number of periods, and the share price for each period as a comma-separated list. The calculator buys shares at each price, sums the total shares and total dollars invested, and divides to find your true average cost per share. It also shows the simple mean of the prices so you can see the DCA advantage.

The formula explained

The average cost per share is total invested divided by total shares bought:

$$\text{Average Cost} = \frac{\text{Total Invested}}{\text{Total Shares}} = \frac{\text{Amount} \times N}{\displaystyle\sum_{i=1}^{N} \frac{\text{Amount}}{P_i}}$$

Because shares bought in a period equal that period's investment divided by its price, periods with cheaper prices contribute more shares — pulling your average cost below the arithmetic mean of prices. This is the harmonic-mean effect that makes DCA attractive.

Advertisement
Equal dollar amounts buying different numbers of shares averaging to one cost
Equal dollar amounts buy more shares when prices are low and fewer when high, lowering average cost.

Worked example

Invest $100 over 4 periods at prices $10, $12.50, $8, and $11. Shares bought: \(10 + 8 + 12.5 + 9.0909 = 39.5909\). Total invested = $400. Average cost =

$$\frac{400}{39.5909} = \$10.10$$

lower than the simple mean of $10.375.

Advertisement

DCA vs. Lump Sum: Scenario Comparison

The table below invests the same $100 in each of 5 periods under four price paths. Shares bought each period are \(100 \div P_i\), and the DCA average cost is total invested divided by total shares. Prices are in dollars per share, and figures are rounded to the stated precision. Fees and taxes are ignored.

Scenario Prices (periods 1–5) Total invested Total shares DCA average cost Simple mean of prices Mean minus DCA average
Steadily rising 10, 12, 14, 16, 20 $500 36.7262 $13.61 $14.40 $0.79
Steadily falling 20, 16, 12, 10, 8 $500 42.0833 $11.88 $13.20 $1.32
V-shaped (volatile) 10, 8, 5, 8, 10 $500 65.0000 $7.69 $8.20 $0.51
Flat 10, 10, 10, 10, 10 $500 50.0000 $10.00 $10.00 $0.00

Worked check (V-shaped case)

Shares: \(\frac{100}{10} + \frac{100}{8} + \frac{100}{5} + \frac{100}{8} + \frac{100}{10} = 10 + 12.5 + 20 + 12.5 + 10 = 65\).

Average cost: \(\frac{500}{65} \approx 7.6923\). Simple mean: \(\frac{10+8+5+8+10}{5} = 8.20\).

What the table shows

  • In the flat case every period buys shares at the same price, so the DCA average cost equals the simple mean.
  • In every other case the DCA average cost is lower than the simple mean. A fixed dollar amount buys more shares when the price is low and fewer when it is high.
  • The DCA average cost is never above the arithmetic mean of the prices. The two are equal only when all prices are identical.
  • The rising and falling paths use different prices, so their averages differ. The order of prices does not change the DCA average cost for the same set of prices. Only the set of prices and the fixed amount matter.
  • This table compares average cost only. It does not say whether DCA or a lump sum ends up worth more. That depends on the future price path, which is unknown in advance.

FAQ

Why is my average cost lower than the average price? Because fixed dollars buy more shares when prices are low, weighting your average toward cheaper purchases.

Does this account for fees or dividends? No — it models clean periodic purchases. Add fees to your per-period amount if you want to include them.

What if the number of prices differs from the periods? The calculator counts every valid price you enter, so make sure your list matches your intended periods.

Last updated:

Most popular in Financial

View all Financial calculators