Worked example: three buys, one average, one hard truth

Emma buys shares of the same company three times over a year, then the price falls. She paid $18 in total commissions across the three trades. Here is what her position actually looks like.

  1. First buy. Fifteen shares at $120 each is $1,800.
  2. Second buy. Twenty-five shares at $96 each is $2,400.
  3. Third buy. Forty shares at $72 each is $2,880.
  4. Total invested. $1,800 plus $2,400 plus $2,880 is $7,080, plus $18 of fees, which is $7,098 for 80 shares.
  5. Average cost. $7,098 divided by 80 shares is $88.73 a share. Without the fees it would be $88.50, so the commissions add 23 cents a share.
  6. Where she stands. At a current price of $80, her 80 shares are worth $6,400, which is a loss of $698, or 9.83 percent.
  7. Break-even. The price must rise from $80 to $88.73, which is ($88.73 minus $80) divided by $80, or 10.91 percent, before she breaks even.
  8. Can she average down to $85? Buying more at $80 pulls the average toward $80. Solving ($7,098 plus $80 times n) divided by (80 plus n) equals $85 gives n equal to 59.6, so about 60 more shares at $80 would bring her average to $85.00.

The uncomfortable part is the last step. Averaging down only works if the price cooperates and the company is still worth owning. Sixty more shares at $80 is another $4,800 into a stock that has already fallen from $120, and if it falls again, the loss grows with the position. The maths tells you what is possible; it cannot tell you whether the company deserves more of your money.

How the average moved after each buy

The table tracks Emma’s average cost after each purchase, with and without fees, and the break-even rise needed at each stage if the price had been $80 throughout.

After this buy Shares owned Total invested Average cost (no fees) Average cost (with fees) Rise needed to break even from $80
15 shares at $120 15 $1,800 $120.00 $120.40 50.50 percent
25 shares at $96 40 $4,200 $105.00 $105.30 31.63 percent
40 shares at $72 80 $7,080 $88.50 $88.73 10.91 percent

Average cost per share after each buy (with fees) After buy 1: $120.40 After buy 2: $105.30 After buy 3: $88.73 Dashed line: current price $80.00, still below the average. Each cheaper buy pulled the average down, but the third buy did the most work because it was the largest: 40 shares against 15 and 25 before it.

The chart shows why lot size matters as much as price. The second buy cut the average by about $15, but the third buy cut it by nearly $17 even though the price gap was smaller, because 40 shares outweigh 25. A small top-up at a bargain price barely moves the average; a large one does, which is exactly why averaging down is so tempting and so dangerous.

Limitations

This calculator does pure arithmetic on your purchase history. It is not investment advice and it cannot tell you whether to buy, hold, or sell. It ignores taxes, including capital gains tax and wash-sale rules, and it ignores dividends, stock splits, and spin-offs, all of which change your real cost basis. It treats every share as identical, which is fine for ordinary shares but not for employee stock options or restricted stock units. Most importantly, a lower average cost is not the same as a better investment: averaging down increases your exposure to a falling stock, and a stock can keep falling long after the average looks attractive. Only add to a position when the investment case still holds, not because the maths makes the average look nicer.

Sources

  • U.S. Securities and Exchange Commission, Office of Investor Education and Advocacy, guidance on cost basis and averaging (investor.gov, accessed November 2026).
  • Internal Revenue Service, Publication 550, Investment Income and Expenses, on cost basis and sales of stock (irs.gov, accessed November 2026).
  • Financial Industry Regulatory Authority (FINRA), investor education on dollar-cost averaging and risk (finra.org, accessed November 2026).