Stock Average Calculator

Find the true average cost of your shares when you have bought the same stock at different prices. Enter each purchase, including your current holding and any new buys, and the calculator returns your weighted average price per share with and without fees.

Enter your numbers

Results update as you type. Example values are pre-filled so you can see how it works.

Your purchases

Current holding

Purchase 2

Your result

Your result will appear here.

Educational estimate only. Not financial, tax or investment advice.

How to use the stock average calculator

  1. Enter your current holding in the first row: the number of shares you own and the average price you paid.
  2. Add each new purchase as a separate row with its share quantity and price. Use Add purchase for more rows.
  3. Optionally include the brokerage fees for each purchase to see a fee-inclusive cost per share.
  4. Read your average cost per share, total shares and total amount invested in the results panel.

The formula

The average price of a stock position is a weighted average: each purchase counts in proportion to the number of shares bought.

Average cost per share = (Σ shares × price + total fees) ÷ Σ shares

A simple average of the prices would be wrong whenever the purchases are different sizes, because a large purchase at one price should influence your cost basis more than a small purchase at another.

Worked example

Suppose you own 100 shares bought at $50 and you buy 50 more at $40:

  • Cost of the holding: 100 × $50 = $5,000
  • Cost of the new purchase: 50 × $40 = $2,000
  • Total shares: 150, total cost: $7,000
  • Average price: $7,000 ÷ 150 = $46.67 per share

If each purchase also cost $5 in commission, the total cost becomes $7,010 and the fee-inclusive average is $7,010 ÷ 150 = $46.73. Notice that the simple average of $50 and $40 would be $45, which understates your real cost.

Why your average price matters

Your average cost is the starting point for most other decisions about a holding. It tells you the price at which you would roughly break even, it is used to work out your gain or loss when you sell, and in many countries it forms part of your tax cost basis. Once you know it, the Stock Profit Calculator shows what a sale at a given price would earn, and the Break Even Price Calculator adds selling fees to find the exact price you need.

Common mistakes

  • Averaging prices instead of costs. Always weight by quantity, as the calculator does.
  • Forgetting fees. Commissions raise your true cost per share. Include them if you pay them.
  • Ignoring sales. If you sold part of the position, the remaining shares usually keep the same average cost under the average-cost method. Enter only the shares you still hold and what they cost.
  • Treating averaging down as a strategy on its own. Buying more at a lower price reduces your average, but it also increases your exposure to a share that has fallen. The maths does not tell you whether the business is sound.

Frequently asked questions

Does buying more shares at a lower price reduce my average cost?

Yes. Any purchase below your current average lowers the average, and any purchase above it raises the average. How much it moves depends on the size of the new purchase relative to your existing holding.

Should I include dividends that were reinvested?

Yes. Reinvested dividends buy additional shares at the price on the reinvestment date, so add each reinvestment as a purchase row. To estimate future dividend income, use the Dividend Calculator.

Is the average cost the same as my tax cost basis?

Often, but not always. Tax rules differ by country and some allow or require other methods such as first-in, first-out. Check the rules that apply to you; this calculator does not give tax advice.

Can I use this for ETFs and mutual fund units?

Yes. The calculation is the same for any asset bought in units at different prices. For cryptocurrency there is a dedicated Crypto Average Price Calculator.

To see how your position has grown over several years, try the CAGR Calculator. You can find every stock tool in the stock calculators category, and more investing guides and calculators at stocks betterthisworld.