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?
How do stock splits affect my average cost?
Should I include commissions in my cost basis?
What happens to my cost basis if I receive a stock dividend?
Related Calculators
Stock Profit Calculator
Calculate your profit or loss from buying and selling stocks, including commissions and annualized return.
Use calculator →Dollar Cost Averaging Calculator
Project the growth of regular monthly investments using dollar cost averaging over time.
Use calculator →CAGR Calculator
Calculate the Compound Annual Growth Rate of an investment to measure performance over time.
Use calculator →