All guides
Trading CalculatorsNovember 9, 2026· 5 min read

How to Calculate Stock Average Price (Average Buy Price Guide)

If you bought the same stock at different prices, your real cost is the weighted average of all your lots — not the price of your last buy. Here is the formula and the fastest way to work it out.

Flat illustration of a stock price chart with an average line and stacked coins

What stock average price actually means

Your stock average price is what one share of a stock has actually cost you, once every purchase is counted. If you bought the same stock three times at three different prices, no single buy tells the story — the average of all of them does.

It is a weighted average, which means bigger lots count more than smaller ones. Buying 100 shares at one price and 10 at another pulls the average far closer to the 100-share price, because that is where most of your money went.

This number matters because it is your break-even line. Until the market price rises above your average price, the position as a whole is still at a loss — even if your most recent buy is already showing a gain.

The average price formula (with a worked example)

The formula is simple: total amount invested divided by total shares owned. Add up the cost of every lot, add up the shares in every lot, and divide the first number by the second.

Take a concrete example. You buy 10 shares at 100, then 10 more shares at 120. You spent 1,000 on the first lot and 1,200 on the second, so 2,200 in total for 20 shares. Divide 2,200 by 20 and your average price is 110.

Notice that 110 is exactly halfway between 100 and 120 here, because the two lots are the same size. If the lots were different sizes the average would lean toward the bigger lot — which is why a plain average of the two prices gives the wrong answer whenever lot sizes differ.

  • Total cost = (shares in lot 1 × price of lot 1) + (shares in lot 2 × price of lot 2) + ...
  • Total shares = shares in lot 1 + shares in lot 2 + ...
  • Average price = total cost ÷ total shares

Why investors average down — and when it backfires

Averaging down means buying more of a stock after its price has fallen, which pulls your average price down with it. The appeal is obvious: the stock does not have to recover all the way to your first buy price for you to break even.

The risk is just as real. Every new lot adds money to a position that is already losing, so if the stock keeps falling, the loss grows faster than it would have if you had stopped. Averaging down turns a small losing position into a large one.

The honest test is whether you would buy the stock fresh today at the current price, on its own merits. If the answer is yes — the business is sound and the fall looks like market noise — averaging down is a reasonable plan. If the answer is no, you are not investing, you are hoping.

How to use the Stock Average Calculator

Doing this by hand gets tedious once you have more than two or three lots, which is exactly what the calculator is for. You enter each purchase once and it does the weighted math for you.

Start by entering your first lot: how many shares you bought and the price per share. Add a second lot the same way, and keep adding until every purchase is in.

The calculator then shows your average price per share, your total shares and your total amount invested. If you are planning another buy, add it as a lot first and see where the average would land before you commit the money.

  • Enter each lot's shares and price per share — one row per purchase.
  • Add as many lots as you have; the calculator weights them automatically.
  • Read your average price, total shares and total invested in one place.

Mistakes to avoid when averaging

The most common mistake is taking a simple average of the buy prices and ignoring lot sizes. That only works when every lot has the same number of shares, which is rarely the case in real portfolios.

The second mistake is leaving a lot out. A small early purchase at a very different price still moves the average, so include every lot of the stock — including ones bought long ago that you have forgotten about.

The third is treating the average price as a target. It is a fact about your past purchases, not a prediction. The stock does not know your average price and has no obligation to return to it.

  • Never average the prices alone — weight them by shares.
  • Include every lot, even old or small ones.
  • Remember the average excludes fees; add those separately for your true cost.
Free tool

Calculate Your Stock Average Price Free

Enter each lot's shares and price and get your average buy price in seconds. Free, no signup, right in your browser.

Try Stock Average Calculator — it's free

Frequently asked questions

Your stock average price is the weighted average cost of one share across every lot you bought. It is your true cost per share, and it is the price the stock must cross before you are in profit on the position as a whole.

Add up everything you spent on all lots, then divide by the total number of shares. For example, 10 shares at 100 plus 10 shares at 120 costs 2,200 in total for 20 shares, so the average price is 110.

Averaging down lowers the price at which you break even, which is why investors do it. But it also increases your exposure to a falling stock, so it only makes sense if you still believe in the company. Averaging down into a stock whose business is deteriorating just makes the loss bigger.

No. The calculator averages share prices only. Brokerage fees, taxes and other charges sit on top of the share price, so your true cost per share is slightly higher than the average the calculator shows. Add your total fees to the total cost if you want the fully loaded figure.

Yes. Average price only cares about the lots of the same stock, not where or when you bought them. Combine every lot — different dates, different brokers — and the weighted average still comes out right.

Keep reading