Equity investing

Stock Average Calculator

Enter the total amount you invested and the number of shares you hold to find your average cost per share.

  • Free
  • No sign-up
  • Updated for 2026

Investment & shares

$

Enter the amount invested and number of shares to see your average price.

Worked example

With these example inputs:

  • Total amount invested$5,000
  • Total shares200

Average price per share: $25

  • Total amount invested$5,000
  • Total shares200
  • If the first figure were 10% higher$28

Add this calculator to your site

Free to embed. Copy the snippet below, it drops the live calculator straight into any page.

Your real cost per share after several buys

Buy the same stock three times at three prices and your break-even is none of them. It is the total spent divided by the total shares held, and that single figure decides whether the position is up or down.

The formula

average cost = total invested / total shares

Worked example: $5,000 across 200 shares

Whatever the individual purchases were, the average cost is $25.00 a share. That is the price the stock must exceed before the position shows a profit.

BuySharesPriceCost
150$40$2,000
250$30$1,500
3100$15$1,500
Total200$25.00 avg$5,000

The naive average of $40, $30 and $15 is $28.33. The true figure is $25.00, because the cheapest purchase bought twice as many shares. Averaging prices instead of weighting by shares is the standard error here.

Averaging down, honestly

Buying more as a price falls lowers the average and the break-even. It also increases the amount at risk in a position that is, so far, losing money.

In the table above, the third purchase cut the average from $35 to $25 — but it also raised total exposure from $3,500 to $5,000. If the stock keeps falling, the loss is now on a larger base. The strategy pays only when the fall was mispricing rather than deterioration, and that judgment has nothing to do with the arithmetic.

What price is needed to break even

Average costCurrent priceRise needed
$25.00$20.0025%
$25.00$15.0067%
$25.00$12.50100%

Losses and the gains that undo them are asymmetric. A 50% fall needs a 100% rise, which is why avoiding large drawdowns matters more than capturing large gains.

What this calculator leaves out

Commissions, which belong in the total invested, and dividends received, which reduce your effective cost. Stock splits change the share count and therefore the average, so recalculate after one.

Tax lots are a separate matter: for capital gains purposes many jurisdictions track each purchase individually rather than using this average.

Averaging up is the other half

Adding to a winner raises the average cost and reduces the percentage gain on the position, which feels like a loss and is not one. Buying 100 more shares at $40 takes the average from $25 to $30 and the position from 200 to 300 shares.

The gain per share falls; the total gain rises with every further increase in price, because there are more shares to gain on. Judging the decision by what it does to the average cost is looking at the wrong number.

The figure your broker shows may differ

Brokers often display an adjusted cost basis rather than a simple average: reinvested dividends are added, return-of-capital distributions subtracted, and wash-sale adjustments applied where they occurred.

For deciding whether to hold or sell, the simple average above is the number you want. For a tax return, use the broker's basis, because that is the figure the tax authority receives.

Related calculators

Frequently asked questions

How is the average share price calculated?

Divide the total amount invested by the number of shares you own. Investing $5,000 for 200 shares gives an average cost of $25 per share.

Why does the average cost matter?

Your average cost is the break-even price for the position and the basis for measuring gains. Buying more shares as the price falls lowers it, a practice known as averaging down.