Stock Average Calculator

Calculate your average cost per share (cost basis) when purchasing stocks at different prices. Enter multiple transactions to find your weighted average price and track unrealized gains or losses.

Stock Purchases
Break Even
Average Cost Per Share
$96.00
Total Shares 100
Total Investment $9,600.00
Current Value $9,500.00
Unrealized Gain/Loss -$100.00
Return % -1.04%
Your average cost of $96.00 is above the current price of $95.00, resulting in an unrealized loss.
# Shares Price Subtotal % of Portfolio
Total 100 $96.00 $9,600.00 100%
Purchase Distribution
Price vs Average Cost Comparison

What is Average Stock Price?

The average stock price, also known as cost basis or average cost per share, is the weighted average price you paid for all shares of a particular stock. This is a crucial metric for investors who purchase shares at different prices over time.

Unlike a simple average, the stock average calculator uses a weighted average that accounts for the number of shares purchased at each price point. This gives you an accurate representation of your true cost per share.

Why Weighted Average?
A simple average would treat all purchase prices equally, regardless of how many shares were bought. A weighted average properly accounts for the fact that buying 100 shares at $50 has more impact on your average than buying 10 shares at $100.

Why is Cost Basis Important?

Knowing your cost basis is essential for several reasons:

How to Calculate Average Stock Price

The formula for calculating the average stock price is straightforward:

Average Stock Price Formula:

Average Price = Total Cost / Total Shares

Where:
Total Cost = Sum of (Price × Shares) for each purchase
Total Shares = Sum of all shares purchased

Example Calculation

Let's calculate the average price for three purchases:

  1. Total Cost: $5,000 + $2,400 + $2,400 = $9,800
  2. Total Shares: 50 + 30 + 20 = 100 shares
  3. Average Price: $9,800 / 100 = $98.00 per share

Dollar Cost Averaging Strategy

Dollar Cost Averaging (DCA) is an investment strategy where you invest a fixed amount of money at regular intervals, regardless of the stock price. This approach naturally results in buying more shares when prices are low and fewer shares when prices are high.

Benefits of Dollar Cost Averaging

DCA Example

Investing $500 monthly for 4 months:

MonthPriceShares BoughtInvestment
January$5010$500
February$4012.5$500
March$4511.11$500
April$559.09$500
TotalAvg: $46.8642.7 shares$2,000

Simple average of prices: $47.50. But your actual average cost is $46.86 because you bought more shares when the price was lower.

How to Reduce Your Cost Basis

There are several strategies to reduce your average cost per share:

1. Buy the Dip

When stock prices drop significantly, buying additional shares can lower your overall average cost. This is sometimes called "averaging down."

2. Dividend Reinvestment

Reinvesting dividends to purchase additional shares at various price points over time can gradually lower your cost basis.

3. Regular Contributions

Making regular contributions through dollar cost averaging ensures you buy at various price levels, potentially lowering your average cost during market dips.

Caution: Averaging down on a declining stock can be risky if the company has fundamental problems. Only average down on stocks you have conviction in for the long term.

Tax Implications

Your cost basis directly affects your capital gains tax liability:

Cost Basis Methods

The IRS allows different methods for calculating cost basis:

Frequently Asked Questions

Why is calculating average stock price important?

Knowing your average stock price helps you understand your true investment cost, calculate profits or losses, and make informed decisions about buying, holding, or selling. It's also essential for accurate tax reporting.

Should I average down on a losing stock?

Averaging down can be a valid strategy if you believe in the company's long-term prospects and the price drop is due to temporary factors. However, if the company has fundamental problems, averaging down could lead to larger losses. Always reassess your investment thesis before adding to a losing position.

How does stock average differ from simple average?

A simple average treats all prices equally, while a stock average (weighted average) accounts for the number of shares purchased at each price. The weighted average gives a more accurate picture of your true cost per share.

What happens to my average if the stock splits?

In a stock split, your total shares increase but your cost basis remains the same. This means your average cost per share decreases proportionally. For example, in a 2-for-1 split, your average cost per share is halved.

Can dividends affect my cost basis?

Qualified dividends themselves don't change your cost basis. However, if you reinvest dividends to purchase additional shares, those new shares are added to your position with their own cost basis, which affects your overall average.