Stock Average Calculator

Bought the same stock at several prices? Enter each lot and this tool blends them into a single weighted-average cost per share, with a chart of how your cost basis shifts after every purchase.

Written by TopicDrill Editorial Team·Updated June 2026

Share this calculator

Your buy lots

Enter each purchase, then press Calculate.

$
$
$

Average cost per share

$37.78

Total shares450
Total invested$17,000
Average cost / share$37.78

Running average after each lot

Avg cost
$0$14$29$43$57Lot 1Lot 2Lot 3

Advertisement

How the stock average calculator works

The tool tracks two running totals as it reads your lots: the number of shares you own and the total dollars you have spent. Your average cost per share is simply the total dollars divided by the total shares, so a large lot bought cheaply moves the blended price far more than a small lot bought expensively.

The bar chart shows the running average after each purchase. Watching that line drift down as you add cheaper lots is exactly what averaging down looks like, while adding lots above your current cost pushes it back up.

A quick example

Say you buy 100 shares at $50, then 150 at $40, then 200 at $30. You have spent $5,000 plus $6,000 plus $6,000, which is $17,000 for 450 shares. Dividing gives an average cost of about $37.78 per share, well below your first purchase price even though you never sold a thing.

Things to keep in mind

A lower average cost feels good, but it does not change the quality of the company you own. Decide whether you would buy the stock fresh at today's price before adding to a losing position. For the official view on cost basis and how it affects taxes, see the IRS guide to capital gains and losses. Once you know your average, estimate your gain with our stock profit calculator.

Frequently asked questions

How is the average stock price calculated?

It is a weighted average, not a simple average of the prices. Add up the money spent on every lot, which is shares times price for each buy, then divide that total cost by the total number of shares. Lots with more shares pull the average toward their price.

What does averaging down mean?

Averaging down is buying more of a stock after the price has fallen so your blended cost per share drops. It lowers the price the stock needs to reach for you to break even, but it also puts more money into a position that has been losing value, so it raises your risk if the decline continues.

Should I include trading fees in my average cost?

If you want your true break-even price, yes. This tool averages the share prices you enter, so to fold in commissions you can spread each fee across the shares in that lot and add it to the price before entering it. With most brokers now charging zero commission on stocks, the difference is often negligible.

Does the average change when I sell some shares?

Under the average-cost method your per-share cost basis stays the same when you sell part of a position. Selling reduces the number of shares you hold but does not change what each remaining share originally cost you on average. Some tax methods such as specific-lot identification work differently.

Related guides

View all →

Advertisement