πŸ“Š StockCalc

Stock Average Cost Calculator

Calculate your average cost per share across multiple purchases. Perfect for DCA and averaging down strategies.

#
Shares
Price per Share ($)
Total
1
β€”
2
β€”
3
β€”

What This Calculator Does

The Stock Average Cost Calculator computes the average price per share across multiple stock purchases. Add each purchase (number of shares and price per share) to see the total shares owned, total amount invested, and average cost per share. This is useful for investors who make multiple purchases over time.

Formula

Average Cost = Total Amount Invested ÷ Total Shares

Where:

  • Total Amount Invested = Sum of (Shares × Price) for every purchase
  • Total Shares = Sum of all shares purchased across all transactions

This is a weighted average where each purchase price is weighted by the number of shares bought at that price. Purchases with more shares have a greater influence on the average cost.

Input Fields Explained

Shares

The number of shares purchased in each transaction. Enter the exact number for each purchase. The calculator totals all shares across all rows.

Price per Share ($)

The price paid per share in each transaction. Different purchases may have different prices depending on when they were made. Add additional rows for each separate purchase.

Example Calculation

Three purchases of a stock:

Purchase 1: 10 shares at $50 = $500

Purchase 2: 20 shares at $40 = $800

Purchase 3: 15 shares at $45 = $675

Total invested = $500 + $800 + $675 = $1,975

Total shares = 10 + 20 + 15 = 45

Average cost = $1,975 ÷ 45 = $43.89

The average cost is $43.89 per share. The stock needs to be above this price for the position to be profitable (before accounting for transaction costs and taxes).

How to Read the Result

Average Cost

The price per share you effectively paid across all purchases. This is your break-even point — selling above this price results in a gain; below it, a loss (before fees and taxes).

Total Invested

The total amount of money invested across all purchases. This is the total capital at risk in this position.

Total Shares

The total number of shares owned across all purchases.

Common Mistakes

  • Averaging down without reassessing. Buying more shares at a lower price reduces your average cost but increases your total exposure. Before adding to a losing position, reassess whether the original investment thesis still holds.
  • Ignoring transaction costs. Brokerage fees, commissions, and bid-ask spreads increase your effective cost basis. The calculator does not account for these costs, so your actual break-even price is higher than shown.
  • Confusing average cost with market value. Your average cost is what you paid. The current market value is what the shares are worth now. These are different numbers, and the difference represents your unrealized gain or loss.
  • Not considering tax implications. Different cost basis accounting methods (FIFO, specific identification) can produce different tax outcomes when you sell. This calculator uses simple average cost, which may or may not match your tax reporting method.
  • Over-concentrating in one stock. Repeatedly averaging down into a single stock can lead to an over-concentrated portfolio. Consider the impact on your overall portfolio diversification before adding to any single position.

When This Calculator Is Useful

  • Calculating your break-even price across multiple purchases
  • Understanding your cost basis for DCA (dollar-cost averaging) strategies
  • Seeing how averaging down changes your break-even point
  • Tracking total capital invested in a stock position
  • Planning exit prices based on your average cost

Limitations

  • Only handles purchases — does not account for partial sales
  • Does not include transaction costs, commissions, or bid-ask spreads
  • Does not handle different tax lot accounting methods
  • Does not account for stock splits or dividends
  • Uses simple average cost, which may differ from your tax reporting method
  • This calculator is for educational purposes only and does not constitute investment or tax advice

Frequently Asked Questions

What is average cost basis?

Average cost basis is the total amount invested across all purchases divided by the total number of shares owned. It represents your break-even price — the price at which you would neither gain nor lose money if you sold all shares. It is calculated as: Average Cost = Total Amount Invested / Total Shares Owned.

How do I calculate average stock price?

Add up the total cost of all purchases and divide by the total number of shares. For example: buy 10 shares at $50 ($500) + 20 shares at $40 ($800) = $1,300 total invested for 30 shares. Average cost = $1,300 / 30 = $43.33 per share.

Is averaging down a good strategy?

There is no universally correct answer. Averaging down reduces your cost basis when you buy additional shares at a lower price, but it also increases your total exposure to that position. Whether it is appropriate depends on the reason for the price decline, the fundamentals of the company, your risk tolerance, and your overall portfolio allocation. It increases both potential gains and potential losses.

How does averaging down affect my break-even price?

When you buy additional shares at a price below your current average cost, the new average cost moves lower, closer to the current price. This means the stock needs to recover less to reach your break-even point. However, your total capital at risk increases because you have invested more money into the position.

Should I average down on a losing stock?

Whether to average down depends on your analysis of why the stock declined. If the decline is due to temporary market conditions and the fundamentals remain strong, averaging down may make sense. If the decline reflects deteriorating business conditions, adding more capital increases your exposure to a potentially declining asset. Each situation requires independent analysis — there is no one-size-fits-all answer.

Does this calculator account for selling shares?

This calculator is designed for computing average cost across multiple purchases. It does not handle partial sales, which may affect cost basis differently depending on the accounting method used (FIFO, LIFO, specific identification, or average cost). Consult a tax professional for guidance on cost basis reporting after selling shares.

Educational Disclaimer

This calculator is for educational and informational purposes only. It does not provide investment, financial, tax, or legal advice. The results are based on the inputs and assumptions you provide and may not reflect real market conditions, fees, taxes, or risks. Always do your own research or consult a qualified professional before making financial decisions.