Fintech News

How to Calculate Your Average Share Price When Investing Monthly

Written by
Read time
5 min
Published
Filed under
Add to Preferred Sources
A dollar-cost averaging calculator keeps track automatically, and the arithmetic below shows why the two figures differ.

Your average share price is the total amount you have invested divided by the total number of shares you own. If you invest $500 a month for six months and end up with 64.88 shares, your average cost is $3,000 ÷ 64.88 = $46.24 per share.

The trap is averaging the prices themselves. If those six purchases were made at prices averaging $47, it is tempting to call $47 your cost, but that is wrong whenever you invest a fixed dollar amount each month, because you bought more shares at the low prices and fewer at the high ones. A dollar-cost averaging calculator keeps track automatically, and the arithmetic below shows why the two figures differ.

Average cost per share versus average price paid

There are two “averages” in play, and only one of them describes your position.

  • Average market price: add up the prices on each purchase date and divide by the number of purchases. This describes the market, not you.
  • Average cost per share: total dollars invested ÷ total shares bought. This is your break-even price and, for tax purposes, the basis of your average cost.

When you buy a fixed number of shares each month, the two are identical. When you invest a fixed dollar amount, which is how most 401(k) contributions and automatic brokerage investments work, your average cost is mathematically always equal to or lower than the average market price. In technical terms it is the harmonic mean of the prices rather than the arithmetic mean.

Worked example: $500 a month for six months

Suppose you invest $500 on the same day each month into a fund whose price moves as shown. Your broker supports fractional shares, so every dollar is invested. Prices are illustrative.

Month Amount invested Share price Shares bought ($500 ÷ price)
1 $500 $50.00 10.0000
2 $500 $42.00 11.9048
3 $500 $38.00 13.1579
4 $500 $45.00 11.1111
5 $500 $55.00 9.0909
6 $500 $52.00 9.6154
Total $3,000 Average price $47.00 64.8801

Average cost per share = $3,000 ÷ 64.8801 = $46.24.

The month-three dip to $38 bought 13.16 shares, while the month-five peak at $55 bought only 9.09. That tilt towards cheaper purchases is why your cost sits 76 cents below the $47 average price. At the month-six price of $52, the position is worth about $3,373.76, a gain of $373.76 or 12.5 per cent, even though the price is only 4 per cent above where you started.

Try it with your own numbers: enter your monthly amount and the price on each purchase date in the free average share price calculator to see your total shares, average cost and current gain or loss.

If you bought whole shares only

Some accounts cannot buy fractions. Investing $500 a month and carrying leftover cash forward to the next purchase, you would have bought 64 whole shares for $2,952, with $48 still uninvested. Your average cost would be $2,952 ÷ 64 = $46.13. Use only the money actually spent on shares in the calculation; idle cash is not part of your cost basis.

Including fees in your average cost

Any commission or transaction fee forms part of your cost. The cleanest way to handle it is to divide the total cash you put in, fees included, by the shares you received. If each $500 purchase carried a $1 fee deducted from the amount invested, you would hold 64.7503 shares for the same $3,000, giving an average cost of $46.33. A dollar a month looks trivial, but it is 0.2 per cent of every contribution, a meaningful drag over decades. Most major US brokers now charge no commission on stock and ETF purchases, though some mutual funds and smaller platforms still do.

When dollar-cost averaging helps and when it does not

Lower average cost in a choppy market is a genuine benefit, but dollar-cost averaging is not a way to beat the market in every situation. In a steadily rising market it does worse than investing everything at the start.

Consider $3,000 invested over six months as prices climb steadily from $40 to $60. Monthly buying accumulates about 61.16 shares at an average cost of $49.05, worth about $3,669 at the end. Investing the full $3,000 at $40 in month one would have bought 75 shares worth $4,500. Because markets have historically risen more often than they have fallen, investing a lump sum immediately has tended to come out ahead more often than not.

Its real strengths are behavioural and practical. Most people invest monthly because that is when they get paid, not by choice, and spreading a windfall over several months can reduce the regret of investing just before a fall. To see how regular contributions build over longer periods, try the investment growth calculator, and use the stock return calculator once you are ready to measure performance including dividends.

Average cost and US taxes

When you sell, the IRS requires you to report a cost basis. For shares of mutual funds and certain dividend reinvestment plans, US rules allow the average cost method, which uses exactly the figure calculated above. For individual stocks and most ETFs, brokers typically default to first in, first out (FIFO), meaning the oldest shares are treated as sold first, unless you choose specific lot identification.

The method you choose can change the gain you report in a given year, even though your overall average cost is the same. Check your broker’s default and set your preference before selling. Reinvested dividends count as new purchases and belong in the calculation too: add the dividend amount to your total invested and the shares it bought to your total shares.

Frequently asked questions

How do I calculate my average cost per share after buying more?

Add the cost of the new purchase (including fees) to your previous total invested, and add the new shares to your previous total shares. Divide the new total cost by the new total shares. For example, 64.88 shares costing $3,000 plus 10 shares bought for $400 gives $3,400 ÷ 74.88, or about $45.41 per share.

Does selling shares change my average cost?

Under the average cost method, selling reduces your share count and your total cost proportionally, so the average per share stays the same. Under FIFO or specific identification, the shares sold carry their own purchase prices, so the average cost of the shares you have left can rise or fall.

Is dollar-cost averaging better than lump-sum investing?

Historically, investing a lump sum straight away has more often produced a higher ending value, because markets have tended to rise over time. Dollar-cost averaging reduces the risk of investing everything just before a decline and suits people investing from each paycheck. For regular contributions from income, it is simply how investing happens.

Should I include dividends that were reinvested?

Yes. Each reinvested dividend is a purchase. Add its dollar amount to total invested and its shares to total shares. Leaving them out understates your cost basis, which can lead to over-reporting gains and paying tax twice on the same income.

Knowing your true average cost tells you your real break-even point and gives you the figure you need at tax time. This article is general information, not financial advice. To work out your own position across every monthly purchase, enter your contributions and prices into the TechBullion dollar-cost averaging calculator.

Previously in Fintech News: How Much Interest Can You Save by Making Extra Debt Payments?

Never miss a storyThe TechBullion Weekly newsletter and your preferred channels.Subscribe
Share this
Comment

More executive interviews

Founders, CEOs and technology leaders talk about what they build, how they fund it, and where AI, finance and data are taking their industries next.

All interviews