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.
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.
- Shares bought: 10, 12.5, 20, 12.5 and 10, for 65 shares in total.
- Total invested: $500, so your average cost is $500 / 65, about $7.69 a share.
- The simple average of the five prices is $8.20, so you paid less than that.
- At the last price of $10, the 65 shares are worth $650.
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
- Enter the amount you invest each period and a list of prices for those periods. Try a steadily rising list, a steadily falling one, and a zigzag to see when averaging matters.
- With a flat price, the average cost equals the price and there is no difference.
- The final value uses the last price in your list. It is not a forecast.
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
- No outside data source is used. The formula is standard arithmetic implemented in this page's own code, and every number comes from what you type in.
Assumptions and limitations
- The prices are examples you enter. This is an illustration, not a prediction or a back-test of any real investment.
- Fees, commissions, dividends, taxes and fractional-share rules are ignored.
- A lump sum invested at the start can do better or worse than regular investing depending on how prices move.
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).