Boneyard Tools

Stock Average Calculator

Bought the same stock at different prices? Add each buy below to find your weighted average cost per share, total shares, and total invested. Enter a current price to see your profit or loss.

How to calculate your stock average

  1. Add a row for each buy with the number of shares and the price you paid.
  2. Optionally enter the current share price to value the position.
  3. Read off your average cost, total shares, total cost, and unrealized gain or loss.

Examples

Two buys at different prices

Buy 1: 10 shares at $100. Buy 2: 20 shares at $50.
Total 30 shares, $2,000 invested, average cost $66.67 per share.

Valuing the position

Same 30 shares at an average of $66.67, current price $80.
Market value $2,400, unrealized gain $400 (+20%).

Frequently asked questions

How is the average stock price calculated?

It is a weighted average: total money spent divided by total shares bought. Bigger buys move the average more than smaller ones, so it is not a simple average of the prices.

What is cost basis?

Cost basis is what you paid in total for your shares, including the average price per share. It is the figure you compare against the current price to measure gain or loss, and the number used for capital gains tax.

What is dollar cost averaging?

Dollar cost averaging means investing a fixed amount at regular intervals regardless of price. You buy more shares when the price is low and fewer when it is high, which can smooth your average cost over time. This tool shows the average that results from any set of buys.

What does averaging down mean?

Averaging down is buying more shares after the price falls to lower your average cost. Add the new lower-priced buy as another row and the average updates so you can see the new break-even price.

Is my data private?

Yes. Every calculation runs in your browser. Your share counts and prices are never sent to a server or stored.

Does it include brokerage fees or taxes?

Not automatically. To fold in commissions, add them to a buy's price. The unrealized gain shown is before fees and taxes.

Related tools