Compare four equal-cash purchases with one upfront purchase using an entered price sequence and the same starting cash budget.
The interactive form requires JavaScript. The worked example, formulas and source links below remain available.
Read the dollar-cost averaging calculator result
This calculator compares four equal cash allocations with one purchase made at the first price. Both alternatives have the entire four-purchase budget available at the beginning. The repeated-purchase strategy keeps unused money in cash earning zero, then buys at four entered monthly prices. Both holdings are valued at one later ending price.
The dollar-cost averaging calculator result shows how a particular price sequence and fee structure affect shares acquired and ending wealth. It doesn’t forecast future prices, select an investment, or establish which strategy will perform better in an unknown market. A gradual strategy can finish ahead or behind, and both alternatives can lose money.
Investor.gov describes dollar-cost averaging as investing equal amounts at regular intervals. Equal-dollar purchases acquire more shares at lower prices and fewer at higher prices. This tool makes that arithmetic visible in a bounded comparison with cash available upfront; it doesn’t assume that future paychecks are already available to invest.
Dollar-cost averaging: use equal total budgets and compatible prices
Enter the cash allocated to each of four purchases. The total budget is four times that amount. Enter the share prices at months zero, one, two, and three, followed by the ending valuation price at month four. Prices must be positive. Fractional shares are permitted, so an allocation can be fully invested after its fee rather than leaving residual dollars because of whole-share rounding.
The repeated strategy pays the entered fee on each purchase. The upfront strategy pays its separate one-time fee. Fees come out of the common cash budget. A $1,000 allocation with a $5 purchase fee buys $995 of shares. The fee isn’t added outside the budget, because doing that would give the strategy more starting resources than its comparison.
Use prices for the same investment and on a consistent basis. This simple model doesn’t process dividends, splits, taxes, or distributions. If a price history contains a split, unadjusted prices can create a false gain or loss. A total-return comparison with distributions requires a model that explicitly includes those cash flows rather than assuming price changes tell the entire story.
How the dollar-cost averaging calculator works
For each repeated purchase, shares equal cash per purchase minus the purchase fee, divided by that date’s price. Add the four share quantities. The average acquisition price excluding fees equals dollars actually invested in shares divided by total shares. The all-in cost per share instead divides the entire four-purchase budget, including fees, by total shares.
Repeated ending value = total repeated-purchase shares × ending price. Upfront ending value = [(total cash budget − one-time fee) ÷ first price] × ending price.
Each strategy’s gain or loss equals its ending value minus the original common cash budget. The repeated-strategy advantage is its ending value minus the upfront ending value. This difference doesn’t depend on calling one path safer or better; it follows from the shares bought at the entered prices after fees.
Average acquisition price isn’t the simple average of the four share prices. Equal dollars buy unequal share quantities. The weighting therefore depends on how many shares each allocation purchases. If fees are zero, average acquisition price and all-in cost per share coincide. With fees, the latter is higher because it includes dollars that never purchased shares.
Dollar-cost averaging calculator example: $1,000 at each of four prices
Use a $1,000 allocation for each purchase, prices of $100, $80, $120, and $90, a $95 ending price, and no fees. Both strategies start with $4,000. The upfront strategy buys 40 shares at $100. The repeated strategy acquires a different number each month.
| Purchase date | Price | Cash invested | Shares acquired |
|---|---|---|---|
| Month zero | $100.00 | $1,000.00 | 10.000000 |
| Month one | $80.00 | $1,000.00 | 12.500000 |
| Month two | $120.00 | $1,000.00 | 8.333333 |
| Month three | $90.00 | $1,000.00 | 11.111111 |
Total repeated-purchase shares are approximately 41.944444. The average acquisition price is $95.364238, below the $97.50 simple average of the four prices. At the $95 ending price, the repeated strategy is worth $3,984.72 and has lost $15.28. The upfront holding is worth $3,800 and has lost $200.
The repeated strategy finishes $184.72 ahead, but it still loses money. Buying more shares at lower intermediate prices doesn’t guarantee that the final price exceeds the resulting cost per share. Keep the absolute gain or loss beside the comparative advantage so a smaller loss isn’t mistaken for a positive investment return.
Test a lower second price and a steadily rising path
Change only the second purchase price from $80 to $70. The repeated strategy buys more shares at that date and finishes with approximately 43.730159 shares. Its average acquisition price falls to $91.470054. At the same $95 ending price, its value is $4,154.37, a $154.37 gain and a $354.37 advantage over the unchanged upfront strategy.
Now try a different illustrative path: purchase prices of $100, $110, $120, and $130, followed by an ending price of $140. With no fees, the repeated strategy acquires approximately 35.116550 shares and ends at $4,916.32. The upfront strategy still buys 40 shares and ends at $5,600. Gradual purchases finish $683.68 behind because later allocations buy fewer shares at higher prices.
Neither scenario predicts the next four months. Together they show why the sequence matters when money is deliberately held back from the first purchase. If your cash instead becomes available only from future earnings, investing all $4,000 immediately may not be a feasible alternative. Don’t treat a comparison built on upfront cash availability as advice to borrow against future income.
Include the cost of making several transactions
Restore the original $100, $80, $120, and $90 prices and $95 ending value. Enter a $5 fee for every repeated purchase and a $5 fee for the single upfront purchase. The repeated strategy pays $20 in total fees and invests $3,980, acquiring approximately 41.734722 shares. Its ending value becomes $3,964.80.
The upfront strategy invests $3,995, buys 39.95 shares, and ends at $3,795.25. The repeated strategy remains ahead by $169.55, but its advantage has narrowed. Its acquisition price excluding fees is still $95.364238 because each equal allocation was reduced proportionally; its all-in cost per share rises to approximately $95.843456.
This comparison isolates fixed transaction charges. It doesn’t include bid-ask spreads, percentage commissions, ongoing fund expenses, taxes, or cash interest. If those costs differ between approaches, the ending-value comparison needs corresponding adjustments. A zero fee input means this scenario assumes no charge; it doesn’t claim that trading is universally free.
Follow invested shares and waiting cash together
The original chart includes the value of shares plus the unused cash budget for the repeated strategy. Omitting waiting cash would make the gradual path appear artificially poor before all purchases occur. At each entered purchase price, existing shares are marked to that price, the next allocation is invested, and the remaining cash stays uninvested.
In the no-fee example, after the second purchase at month one the repeated strategy holds $1,800 of shares and $2,000 of waiting cash, for a $3,800 portfolio value. The upfront path is then worth $3,200. At month two, the repeated portfolio is worth $4,700 including $1,000 of cash, while the upfront portfolio is worth $4,800. The lead changes as the price path changes.
A before-trade and after-trade point at month zero makes any initial fee visible as a real value reduction. The final month-four comparison contains no waiting cash because all four allocations have been used. The matching table shows share counts, cash, and portfolio values rather than implying that only the invested portion represents household wealth.
Use the comparison to clarify a funding plan
Keep transaction records if you later replace hypothetical prices with actual purchases. The average acquisition price here’s an economic summary across four trades; it isn’t a tax-lot election or a realized capital-gain calculation. Selling only some shares, receiving distributions, or applying a particular basis method requires information beyond the aggregate share total and ending price shown here.
First establish whether the cash is already available or arrives over time. Then define the investment, dates, allocation size, and transaction costs. Test more than one price path, including a sustained rise, a decline, and a decline followed by recovery. Keep the ending date the same for both strategies and avoid choosing only a path that favors the approach you already prefer.
The investment return calculator measures observed values with its own specified contribution dates. The investment fee calculator examines recurring annual charges. For a planned stream of monthly savings at a constant assumed return, use the compound interest calculator instead of inventing four share prices.
Dollar-cost averaging calculator questions
Does dollar-cost averaging always lower my purchase cost?
No. It changes how purchases are spread across the entered prices. A rising sequence can make the average acquisition price higher than the initial price. Fees can also increase all-in cost. The dollar-cost averaging calculator displays the result of the chosen sequence without promising a favorable future average.
Can unused cash earn interest?
Not in this model. Waiting cash earns zero until invested. Interest on that cash would improve the gradual strategy relative to the displayed result, but the amount would depend on the actual rate and timing. It should be modeled explicitly rather than silently assumed.
Are fractional shares always available?
The calculation permits them to keep the budget fully allocated after fees. Actual trading availability and execution rules depend on the investment and provider. Whole-share restrictions can leave cash unspent and change both share counts and the ending comparison.
Questions or corrections?
Send a question or report an issue with a published page.