1. Home
  2. Investments
  3. Dollar-Cost Averaging Calculator
Investments

Dollar-Cost Averaging Calculator

Calculate average purchase cost from actual investment amounts and execution prices.

Your numbers

Results update as you type. Nothing you enter is sent anywhere.

Result

$13.33

Invested $200.00 · shares purchased 15.

Formula used

Average cost = total invested ÷ sum(amount ÷ purchase price)

This calculator finds your true average cost per share from a series of purchases, using the amount you invested each time and the price you paid. It shows why investing a fixed amount on a schedule buys more shares when prices are low.

How to use the Dollar-Cost Averaging calculator

  1. Enter the Invested amounts, comma separated, one per purchase, for example 500,500,500,500.
  2. Enter the Execution prices, comma separated, in the same order, so each price matches its amount.
  3. Read the average cost per share; the detail line shows the total invested and the number of shares bought.

How the dollar-cost averaging calculation works

FormulaAverage cost = total invested ÷ sum(amount ÷ purchase price)

Why the average cost is below the average price

Average cost = total invested ÷ total shares, where shares for each purchase = amount ÷ price. When you invest a fixed amount, a low price buys more shares and a high price buys fewer. The cheap purchases therefore carry more weight, and your average cost ends up below the simple average of the prices.

This is a mathematical property of fixed-amount buying, not a promise of profit. If the price keeps falling, you still own shares worth less than you paid.

Dollar-cost averaging versus a lump sum

FINRA describes dollar-cost averaging as investing equal amounts at regular intervals regardless of market conditions. It notes that the approach often produces lower returns than investing a lump sum, especially over longer periods, because uninvested cash may miss market gains. The appeal is reducing the risk of investing everything just before a drop. Per-trade fees can also erode returns, and this calculator does not include them.

Worked example

Four 500 purchases at 25, 20, 22.50 and 28

Invested amounts, comma separated: 500,500,500,500 · Execution prices, comma separated: 25,20,22.5,28

  1. Shares: 500 ÷ 25 = 20; 500 ÷ 20 = 25; 500 ÷ 22.5 ≈ 22.2222; 500 ÷ 28 ≈ 17.8571.
  2. Total shares ≈ 85.079365; total invested = 2,000.
  3. Average cost = 2,000 ÷ 85.079365 ≈ 23.51.
  4. The simple average of the four prices is 23.875, so fixed-amount buying lowered the cost by about 0.37 per share.

Result: $23.51

Assumptions and limits

Fractional shares permitted; prices and amounts in matching currency. No fees, dividends or market-price fetching.

Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.

Frequently asked questions

How do I calculate my average cost per share?

Divide the total amount invested by the total number of shares bought. For purchases of different sizes, calculate the shares in each purchase as amount ÷ price first. Four 500 purchases at 25, 20, 22.50 and 28 give an average cost of 23.51.

Does dollar-cost averaging beat lump-sum investing?

Not usually in rising markets. FINRA notes it often produces lower returns than investing a lump sum, especially over longer periods. It can reduce the regret of investing everything right before a decline.

Can I use this for purchases of different amounts?

Yes. Enter each actual amount and its price in matching order, for example 300,750,500 with 41,38.5,44. The calculator weights each purchase by the shares it bought. Both lists must have the same number of entries.

Should I include fees in the invested amount?

If you want the cost basis including commissions, add each purchase's fee to its amount. The calculator itself does not deduct fees, so entering amounts net of fees gives the price-only average instead.

Sources