InvestingGuide

Dollar-Cost Averaging Explained With a Worked Example

Learn how dollar-cost averaging works, see a worked example of average cost per share, and weigh its trade-offs against investing a lump sum at once.

Key takeaways

  • Dollar-cost averaging means investing a fixed dollar amount at regular intervals regardless of the price.
  • Because a fixed amount buys more shares when prices are low, the average cost per share ends up below the simple average price whenever prices fluctuate.
  • Investing a lump sum right away has historically come out ahead more often because markets have risen more often than they have fallen, but it carries more short-term timing risk.
  • Dollar-cost averaging does not guarantee a profit or protect against losses in a declining market.

Dollar-cost averaging is the practice of investing a fixed dollar amount on a regular schedule, such as $300 every month, no matter what the market is doing. It replaces the question of when to invest with a routine. The approach has real mathematical and behavioral effects, but it also has limits that are easy to overlook.

How Dollar-Cost Averaging Works

With dollar-cost averaging, the amount invested stays the same while the number of shares purchased changes with the price. When prices fall, each fixed contribution buys more shares. When prices rise, it buys fewer.

Many people already do this without calling it by name. Contributions to a workplace retirement plan such as a 401(k), deducted from each paycheck, are invested at regular intervals at whatever the price is that day. Automatic investment plans offered by many fund companies and brokerage firms work the same way.

The term is also used in a narrower sense: taking a large sum that is already available, such as an inheritance or a bonus, and deliberately spreading its investment over several months instead of investing it all at once. That version involves a genuine choice, covered below.

A Worked Example

Imagine a hypothetical investor who puts $300 into a fund on the same day each month for six months. The share prices are invented for illustration and do not represent any real investment.

MonthAmount InvestedShare PriceShares Purchased
1$300$3010
2$300$2512
3$300$2015
4$300$1520
5$300$2015
6$300$2512
Total$1,800Varied84

The investor spent $1,800 and acquired 84 shares. The average cost per share is $1,800 divided by 84, or about $21.43.

Compare that with the simple average price over the same six months. Adding the six prices ($30, $25, $20, $15, $20 and $25) gives $135, and dividing by six gives $22.50. The average cost is lower than the average price because the fixed $300 bought 20 shares at the $15 low but only 10 shares at the $30 high.

This is a mathematical property of investing equal dollar amounts. Whenever prices vary, the average cost per share will come out below the simple average of the purchase prices. If the price never changed, the two would be identical.

At the end of month six, with the price at $25, the 84 shares would be worth $2,100. That is a $300 gain on paper, even though the price never climbed back to its starting level of $30.

What the Example Does Not Show

One tidy example can be misleading. The price path above dips and then recovers, which is the scenario where dollar-cost averaging looks best. Two other paths tell a different story:

  • If prices had risen steadily, each later purchase would have bought fewer shares at higher prices. An investor who put the full $1,800 in at $30 in month one would have owned 60 shares, more than the gradual buyer could have accumulated at those rising prices.
  • If prices had kept falling, the investor would have bought more shares at each step but would still be holding a loss. Dollar-cost averaging does not guarantee a profit or protect against losses in a declining market.

A lower average cost compared with the average price also does not mean a better return than some alternative. It simply describes how the purchases were spread out.

Dollar-Cost Averaging vs. Lump-Sum Investing

For someone who already has a lump sum, the main trade-off is between expected return and the risk of poor timing.

Over long periods, U.S. stock markets have risen more often than they have fallen. Because of that tendency, investing a lump sum immediately has historically produced higher ending values more often than spreading the same money out. Cash waiting to be invested generally earns a lower expected return than stocks, so each month spent waiting has a cost when markets rise.

Dollar-cost averaging offers something different: a hedge against investing everything just before a sharp decline. If the market drops soon after a lump-sum investment, the entire amount takes the hit. Spreading purchases out limits that exposure, at the cost of a lower expected return on average.

ConsiderationLump SumDollar-Cost Averaging
Time the money is investedMaximum, from day oneLess, since cash is invested gradually
Tends to come out ahead whenPrices rise after investingPrices fall during the buying period
Exposure to a poorly timed entryHigherLower
Emotional difficultyCan be harder to commitOften easier to begin

Practical details matter as well. Some accounts charge a fee for each transaction, which can make frequent small purchases more expensive. Each purchase also creates a separate tax lot with its own cost basis, which becomes relevant when shares in a taxable account are eventually sold.

The Behavioral Case for a Schedule

The strongest argument for dollar-cost averaging is often psychological rather than mathematical. Timing the market well requires being right repeatedly, and fear and excitement can push investors to buy after prices have already risen and sell after they have fallen.

A fixed schedule helps in several ways:

  1. It removes timing decisions. Purchases happen on a set date, so there is no daily debate about whether now is the right moment.
  2. It reframes declines. Falling prices mean each contribution buys more shares, which can make downturns easier to sit through.
  3. It builds a habit. Automatic contributions make investing routine and tie it to income as it arrives.
  4. It limits regret. Because purchases are spread out, no single bad entry point defines the outcome.

These benefits depend on sticking with the schedule through downturns. Pausing contributions when prices fall, which is exactly when a fixed amount buys the most shares, undoes much of the approach.

The Bottom Line

Dollar-cost averaging means investing a fixed amount at regular intervals, which automatically buys more shares when prices are low and fewer when they are high. It does not guarantee gains, and when a lump sum is already in hand, investing it immediately has historically come out ahead more often. Its main value is discipline: a simple, repeatable process that keeps emotion out of timing decisions.

Sources

  1. U.S. SEC Investor.gov
  2. FINRA Investor Education

Topics: dollar-cost averaginginvesting basicslump suminvestor behavior

Market Ledger Editorial Team Staff

Articles credited to the editorial team are researched, written and edited collaboratively by our staff under the standards described in our Editorial Policy. Each piece is reviewed by an editor before publication.