Dollar-Cost Averaging Calculator

See how investing a fixed amount on a regular schedule, regardless of price, affects your average cost per share.

Last updated: October 7, 2026. The explanation and worked example were checked against this calculator's code on that date. Prices in the table are whatever you enter and do not come from the market.

-Total shares bought
-Your average cost per share
-Simple average price
-Value at the last price

This is an illustration for education, not investment advice. It does not predict future prices or returns, and past patterns do not repeat. Nothing you type is sent anywhere.

How this is calculated

Investing the same dollar amount every period buys more shares when the price is low and fewer shares when the price is high. That mechanically pulls your average cost per share below the simple average of the prices, whenever the price moves up and down. This calculator divides your fixed amount by each period's price to get shares bought, adds them up, and compares your true average cost per share (total invested divided by total shares) with the plain average of the prices you entered.

Frequently asked questions

Does dollar-cost averaging beat investing a lump sum?

Not necessarily. If prices trend upward the whole time, investing a lump sum immediately usually does better, since more money is invested earlier. DCA mainly reduces the risk and regret of investing a lump sum right before a drop.

Does the average cost effect always help?

It helps most when prices swing up and down. If the price only ever rises or only ever falls, DCA has little to no advantage over the simple average.

Worked example

You invest $100 in each of five periods, and the price is 10, 8, 5, 8 and 10.

The gap exists because the $100 bought 20 shares at the low price of $5 and only 10 at $10. Your average cost works out to the harmonic mean of the prices, which is always at or below the ordinary average.

Using the calculator

Methodology and sources

Shares bought in each period = amount / price. Total shares is the sum, and total invested = amount x number of periods. Average cost per share = total invested / total shares. The simple average price is the plain mean of the prices. Final value = total shares x last price.

Sources

Assumptions and limitations

Not financial advice. This page is general education from an independent website. It is not personal financial, tax, legal or insurance advice, and it is not a recommendation to buy, sell or take out any product. Results are estimates built on the assumptions above; your situation will differ. Consider speaking with a qualified professional before making decisions.

Related: the savings calculator, the FIRE calculator and the retirement tools (401k and IRA contributions are a form of DCA).