What This Calculator Does
You want to invest $500 per month in an index fund. Some months the market is up, some months it is down. Does timing matter? Dollar cost averaging says no. By investing the same amount at regular intervals, you buy more shares when prices are low and fewer when prices are high. This calculator shows how that strategy plays out over time.
The Dollar Cost Averaging (DCA) Calculator projects the growth of a regular investment plan. Enter your monthly contribution, expected return, and volatility, and the calculator simulates how your portfolio grows month by month. It shows total invested, portfolio value, shares accumulated, average cost per share, and total return.
According to a Vanguard research study on dollar cost averaging, DCA reduces the impact of short-term market volatility on your portfolio. While lump sum investing outperforms DCA approximately 68% of the time in rising markets (because money is invested sooner), DCA provides psychological benefits and reduces regret risk for investors worried about investing at the wrong time.
Inputs Required
- Monthly Investment: The fixed amount you invest each month
- Starting Price per Share: The initial price of the investment
- Expected Annual Return: The average annual return you expect (S&P 500 historical average is about 10%)
- Volatility: How much the price fluctuates (S&P 500 is about 15%, individual stocks 25% to 40%)
- Investment Period: Number of years to project
Outputs Provided
- Portfolio Value: Total value of your investment after the selected period
- Total Invested: Sum of all your monthly contributions
- Total Return: Dollar and percentage gain or loss
- Shares Accumulated: Total shares purchased across all periods
- Average Cost per Share: Your blended cost basis
- Growth Chart: Visual comparison of invested capital vs. portfolio value
How the Calculation Works
The calculator simulates a price path for the investment using a simplified random walk model. Each month, the price changes based on the expected return (trend) and volatility (random fluctuations).
Monthly Price Change = Trend + Random Shock
Shares Bought = Monthly Investment / Current Price
Average Cost = Total Invested / Total Shares
When prices are low, your fixed monthly investment buys more shares. When prices are high, it buys fewer. Over time, this naturally reduces your average cost per share compared to investing everything at the average price. The simulation uses a random component, so results will vary slightly each time the inputs change, modeling the unpredictable nature of markets.
How to Use the Calculator
- Enter how much you plan to invest each month
- Set the starting share price. For an index fund, use the current NAV. For a stock, use the current price.
- Set the expected annual return. For the S&P 500, 8% to 10% is a reasonable long-term assumption. For bonds, use 4% to 5%.
- Set volatility. Use 15% for broad index funds, 25% for sector funds, and 30% to 40% for individual stocks.
- Choose your investment period. Try 10, 20, and 30 years to see how compounding accelerates over longer horizons.
For a lump sum investment calculator, use our Investment Calculator. For compound interest on savings, try our Compound Interest Calculator.
Example Calculations
Example 1: The Index Fund Investor
An investor contributes $500 per month to an S&P 500 index fund starting at $400 per share. Expected return is 9% annually with 15% volatility over 25 years.
- Total invested: $150,000 ($500 x 300 months)
- Portfolio value: approximately $425,000 to $475,000 (varies with random simulation)
- Total return: approximately $275,000 to $325,000
- Return percentage: approximately 180% to 215%
The investor put in $150,000 over 25 years and ended up with nearly triple that amount. The key is consistency: investing $500 every month regardless of market conditions. The DCA approach means they bought more shares during market dips and fewer during peaks, naturally smoothing their cost basis.
Example 2: The Aggressive Saver
An investor contributes $2,000 per month to a diversified portfolio at $150 per share. Expected return is 8% with 18% volatility over 15 years.
- Total invested: $360,000 ($2,000 x 180 months)
- Portfolio value: approximately $620,000 to $700,000
- Total return: approximately $260,000 to $340,000
- Return percentage: approximately 72% to 94%
Higher monthly contributions accelerate wealth building. The investor accumulated over $600,000 in 15 years with a disciplined $2,000 monthly commitment. The shorter time horizon means less compounding compared to a 25-year plan, but the larger contributions compensate.
Real World Scenarios
The 401(k) Contributor
A 35-year-old contributes $800 per month (including employer match) to a target-date fund in their 401(k). The fund has an expected return of 7.5% with 14% volatility. Over 30 years (to age 65), they invest $288,000 total. The calculator projects a portfolio value of approximately $900,000 to $1,000,000. The employer match of $200 per month contributes $72,000 of the total invested but generates a disproportionate share of the final value because it is invested from the start.
The Market Timer vs. The DCA Investor
Two investors each have $60,000 to invest over 5 years. Investor A tries to time the market, investing lump sums when they think the market is low. Investor B uses DCA, investing $1,000 per month regardless of market conditions. Over 5 years, Investor A misses some good months and catches some bad ones, ending with approximately $72,000. Investor B, who never tried to time anything, ends with approximately $75,000. The Vanguard study confirms this: DCA beats market timing for most investors because consistently being in the market matters more than timing entries.
The Volatility Test
An investor compares two funds. Fund A has an 8% return with 12% volatility. Fund B has an 8% return with 25% volatility. Over 20 years with $500 monthly contributions, Fund A projects to approximately $275,000 while Fund B projects to approximately $260,000. Same expected return, but the higher volatility of Fund B drags down the DCA return because of "volatility drag" on the compounded returns. The calculator lets you adjust volatility to see this effect.
Common Mistakes to Avoid
- Stopping during downturns: The biggest DCA mistake is pausing contributions when the market drops. Downturns are when DCA buys the most shares at the lowest prices. Stopping defeats the entire purpose of the strategy. If anything, consider increasing contributions during downturns.
- Using unrealistic return assumptions: The S&P 500 has averaged about 10% annually over the long run, but future returns may be lower. Using 15% or 20% expected returns will produce misleadingly optimistic projections. Stick to 7% to 10% for diversified equity portfolios.
- Ignoring fees: Expense ratios eat into returns. A 0.03% index fund fee is negligible, but a 1.5% actively managed fund fee can reduce a 20-year portfolio by 20% or more. Always use net-of-fees return assumptions.
- Confusing DCA with lump sum investing: If you already have a large sum to invest, DCA may not be optimal. Vanguard research shows lump sum investing beats DCA about 68% of the time in rising markets. DCA is best for investing from ongoing income, not for deploying a windfall.
Limitations of This Calculator
This tool uses a simplified random walk model for price simulation. Real markets have fat tails, autocorrelation, and regime changes that this model does not capture. The simulation uses random numbers, so results vary each time the component re-renders. The calculator does not account for dividends, fees, taxes, or inflation. It assumes a constant monthly investment amount, which may not reflect reality (raises, job changes, market panics). For investment planning, use this as an educational tool to understand DCA dynamics, not as a precise forecast. Past performance does not guarantee future results.
Authoritative Research and Resources
- Vanguard: Cost Averaging Investing Study - Vanguard's research comparing dollar cost averaging to lump sum investing, finding lump sum outperforms about 68% of the time but DCA reduces regret risk and improves discipline.
- Fidelity: Dollar Cost Averaging Guide - Fidelity's educational resource explaining how DCA works, when to use it, and how it reduces the impact of market volatility on long-term portfolios.
For related investment tools, try our Investment Calculator for lump sum projections, our Compound Interest Calculator for savings growth, or our Dividend Calculator for dividend income projections.