Stock Average Calculator: Average Cost per Share and Averaging Down

Add each purchase to get your average cost per share, and work out how many shares at today's price would move that average to a target

List each purchase — the number of shares, the price and any commission — and the calculator adds them up to your total shares, total cost and average cost per share. Then enter a current price and a target average to see how many more shares would get you there and what they would cost. The math works the same for averaging down (buying below your average) and averaging up.

How average cost per share is calculated

Average cost = total spent (shares × price + fees, for every purchase) ÷ total shares. IRS Publication 550 (2025) uses this example: 160 shares at $25, 240 shares at $20 and a $300 dividend reinvested at $30 (10 shares). That is 410 shares costing $9,100, an average of $22.20 a share.

How many shares to average down

Shares needed = current shares × (current average − target) ÷ (target − buy price). With 410 shares averaging $22.20, buying at $18 brings the average to $21 after about 164 shares ($2,952). The target has to sit between the buy price and your current average; the closer it is to the buy price, the more shares it takes. A lower average doesn't change what the shares are worth today — it only moves the price at which the whole position breaks even.

Shares to buy to lower an average of $22.20 on 410 shares
Buy priceTarget averageShares to buyCost
$16$21.5052$832
$16$2199$1,584
$18$21.5082$1,476
$18$21164$2,952
$20$21.50191$3,820
$20$21491$9,820

Average cost and your tax basis

For tax, the IRS doesn't use one average for every holding. IRS Publication 550 (2025) allows the average basis method for mutual fund shares and for shares acquired after 2011 through a dividend reinvestment plan held with a custodian; otherwise you identify the specific shares sold or use first-in, first-out (FIFO). Your broker reports basis on Form 1099-B. The average here is a tracking number for your break-even, not a substitute for the broker's basis records.

Before averaging down

Averaging down adds money to a position that has fallen; whether that makes sense depends on why it fell and how much of your savings is in one holding. Stocks aren't FDIC insured and can keep falling. The stock profit calculator shows the gain or loss at any sale price.

Frequently asked questions

How do I calculate my average stock price?

Add up what you paid for every purchase (shares × price, plus fees) and divide by the total number of shares. 160 shares at $25, 240 at $20 and 10 at $30 cost $9,100 for 410 shares: $22.20 each.

How many shares do I need to buy to average down?

Shares = current shares × (current average − target average) ÷ (target average − new price). For 410 shares at $22.20, buying at $18 to reach a $21 average takes about 164 shares.

Does averaging down lower my loss?

It lowers the break-even price for the whole position, but the loss on the shares you already own is the same. Adding shares also adds money that can fall further.

Do fees change the average cost?

Yes. Commissions are part of what you paid, so they are added to the cost before dividing by the number of shares.

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

Not always. IRS Publication 550 allows average basis for mutual fund shares and certain DRIP shares; for other stocks your basis follows the specific shares sold or FIFO. Your broker's Form 1099-B shows the reported basis.

Official sources

Tax rules, limits and pay data change. Check the current figures with the primary source before acting on them.

On this topic

Related guides

Related tools and guides