CalcKit CalcKit
My Calculators
Sign in Sign up

Stock Average Calculator

Your position
New purchase
Result
To reach a target average, type it as the new average price.

The average price of a stock you bought more than once is everything you paid for it, divided by the number of shares you hold. It is the price at which the whole position breaks even, and the figure a broker shows as your average cost.

Average price = Total cost / Total shares

Enter the shares you own and their average price, then a new purchase. This stock average calculator shows the new average price, the total shares and cost, and how far the stock has to rise for you to break even. It also works backward: type the average you are aiming for, and it finds how many shares to buy. It works the same for ETFs, funds and crypto, in any currency.

How to calculate a stock's average price

Each purchase counts by its number of shares, so add up what every purchase cost and divide by all the shares:

Average = (S1 * P1 + S2 * P2) / (S1 + S2)

Here S1 is the number of shares you own and P1 their average price, S2 is the number of shares you buy and P2 the price you buy them at.

Example: averaging down

You own 100 shares bought at an average of $50. The stock has fallen to $30, and you buy 50 more.

  1. What the shares you own cost: 100 shares at $50.

    100 × 50 = $5,000

  2. What the new purchase costs: 50 shares at $30.

    50 × 30 = $1,500

  3. Total cost: both together, for 100 + 50 = 150 shares.

    5,000 + 1,500 = $6,500

  4. New average price: the total cost divided by the total shares.

    6,500 / 150 = $43.33

The average falls from $50 to $43.33. With the stock at $30, it had to rise 66.67% to get back to $50. Now it has to rise 44.44% to reach $43.33, which the calculator shows as the gain to break even.

How many shares to reach a target average

Fill in your position and the purchase price, then type the average you want as the new average price. The calculator works out the shares to buy and what they cost:

S2 = S1 * (P1 - Target) / (Target - P2)

With 100 shares at $50 and the stock at $30, a target of $40 takes 100 more shares, or $3,000:

100 × (50 - 40) / (40 - 30) = 100

The closer the target is to the purchase price, the more it takes: an average of $35 needs 300 shares, or $9,000.

The target has to lie between the purchase price and your current average. No purchase at $30 can bring an average of $50 below $30, so for such a target the fields stay empty.

If the answer has a fraction and your broker sells whole shares only, round it up and type that number as the shares to buy, to see the average you will really get.

Other ways to fill it in

  • An amount instead of shares: type the amount to invest and the purchase price. In the example, $1,000 at $30 buys 33.3333 shares, and the average becomes $45.
  • A target and a number of shares: leave the purchase price empty, and the calculator shows the price those shares would have to be bought at.
  • A target and an amount: leave the price and the shares empty to get both.

A value typed over a result becomes an input, and the calculator works one of the other fields out again.

More than two purchases

Work through them two at a time: calculate the first two, then enter the result (the total shares and the new average price) as your position and add the next purchase. The order makes no difference.

For 10 shares at $20, 20 at $26 and 30 at $18:

  1. The first two purchases: 10 shares at $20 and 20 at $26 make 30 shares.

    (10 × 20 + 20 × 26) / 30 = $24

  2. The third purchase: 30 shares at $24 and 30 at $18 make 60 shares.

    (30 × 24 + 30 × 18) / 60 = $21

Averaging down, averaging up and dollar-cost averaging

  • Averaging down is buying more of a stock below your average price. The average falls, and so does the price at which you break even, but more of your money is now in a stock that has been falling.
  • Averaging up is buying more above your average price, so the average rises. With 100 shares at $30 and 50 more bought at $45, it becomes $35, and the gain to break even shows as -22.22%: the stock can fall that far before the position is at a loss.
  • Dollar-cost averaging is investing the same amount at regular intervals, whatever the price. A fixed amount buys more shares when the price is low, so the average price ends up below the plain average of the prices paid. $300 at $30, then at $25, then at $20 buys 10, 12 and 15 shares: 37 shares for $900, an average of $24.32, while the three prices average $25.

Frequently asked questions

Is the average price the same as my cost basis?

For the position as a whole, yes: the average price times the number of shares is what the position cost you. Brokers call it the average cost or the average price, and in France it is the PRU (prix de revient unitaire).

US taxes work differently. A sale of individual stocks is reported lot by lot, first in, first out unless you choose the lots, and the average cost method is for mutual fund shares and some dividend reinvestment plans (IRS Publication 550). So read the average as your break-even price, not as the basis of a particular sale.

Should I include commissions and fees?

To see your true break-even, yes. Type the number of shares and, as the amount to invest, what the purchase cost with its fee, and leave the purchase price empty. For 100 shares at $30 with a $5 commission, an amount of $3,005 gives a price of $30.05 a share.

Is averaging down a good idea?

It lowers your break-even price, which helps only if the stock recovers. If it keeps falling, you lose on more shares than before. The calculator shows what a purchase does to your average. Whether the company deserves more of your money is a separate question, and nothing here is investment advice.