CalcPad

Stock Average Calculator

Calculate your average cost per share when buying a stock at different prices over multiple purchases.

$

Price per share for your first purchase.

$

Price per share for your second purchase.

$

Price per share for your third purchase (optional).

$

Price per share for your fourth purchase (optional).

What Is Average Cost Per Share?

Average cost per share (also called cost basis) is the weighted average price you paid for all shares of a particular stock. When you buy shares at different prices over time, your average cost determines your actual profit or loss when you sell.

The formula is straightforward: Average Cost = Total Amount Invested / Total Shares Owned

For example, if you bought 50 shares at $100 and then 75 shares at $80, your total investment is $11,000 for 125 shares, giving you an average cost of $88 per share.

Why Average Cost Matters

Your average cost determines your taxable gain or loss when you sell. The IRS requires investors to track their cost basis accurately. Most brokers track this automatically, but it is important to understand the math, especially if you transfer shares between accounts.

Average cost also helps you make informed decisions about adding to existing positions. If a stock you own at $100 drops to $80, buying more shares lowers your average cost, meaning the stock needs to recover less for you to break even. This strategy is called "averaging down."

However, averaging down is not always wise. If the stock is falling due to deteriorating fundamentals rather than temporary market sentiment, adding more shares increases your exposure to a declining asset.

Cost Basis Methods

The IRS allows several methods for calculating cost basis when selling partial positions:

  • Average cost: Uses the average price of all shares. Most common for mutual funds and what this calculator computes.
  • FIFO (First In, First Out): Assumes you sell the oldest shares first. This is the default for individual stocks.
  • Specific identification: You choose exactly which shares to sell, potentially minimizing taxes by selling higher-cost shares first.

For tax-loss harvesting, specific identification is most flexible. Consult a tax professional for your specific situation.

Frequently Asked Questions

Does averaging down always lower my break-even price?
Yes, buying additional shares at a lower price always reduces your average cost per share. However, it also increases your total exposure to that stock. If the stock continues to fall, your total losses increase even though your break-even price is lower. Only average down on stocks you have high conviction in.
How do stock splits affect my average cost?
After a stock split, your average cost per share adjusts proportionally. In a 2-for-1 split, your share count doubles and your average cost per share halves. Your total cost basis remains the same. For example, 100 shares at $200 average becomes 200 shares at $100 average.
Should I include commissions in my cost basis?
Yes. The IRS allows you to add brokerage commissions and fees to your cost basis, which reduces your taxable gain when you sell. With most major brokers now offering commission-free trading, this is less relevant than it used to be, but any fees you do pay should be included.
What happens to my cost basis if I receive a stock dividend?
Stock dividends (receiving additional shares instead of cash) reduce your average cost per share because you now have more shares for the same total investment. Cash dividends do not affect your cost basis. Reinvested dividends (DRIP) add new shares at their purchase price, which gets factored into your weighted average.

Related Calculators