Skip to main content
ToolsHub

Stock Average Calculator

Add each buy with its price and share count to get your weighted average cost per share, total shares held and total amount invested — all in your browser.

Updated

Files never leave your browser
Buy priceShares

Average cost / share

$88.00

Total shares

25

Total invested

$2,200.00

The average cost (or cost basis) is total money invested divided by total shares — useful when averaging down or dollar-cost averaging.

How to use Stock Average Calculator

A stock average calculator works out your weighted average price per share — your cost basis — across several purchases of the same stock. Each time you buy at a different price, your blended cost changes, and tracking it by hand is error-prone. Enter each purchase with its price and number of shares, and the tool returns your total shares held, the total amount invested, and the average cost per share. This is essential for knowing your break-even price, deciding whether to average down, and reporting cost basis when you eventually sell.

  1. Enter the price and share count for your first purchase.
  2. Add a row for each additional purchase.
  3. Use the add button to include as many buys as needed.
  4. Read the average cost per share and total invested.
  5. Adjust any purchase to see how the average changes.

Your data never leaves your device — 100% private processing.

How the average price is calculated

The average is weighted by the number of shares in each purchase, not a simple average of the prices. To find it, the calculator multiplies each buy price by its share count to get the money spent on that lot, sums those amounts to get the total invested, and divides by the total number of shares. A large purchase therefore pulls the average toward its price more strongly than a small one. This weighting is what makes cost basis meaningful: if you bought 10 shares at 100 and 90 shares at 50, your average is far closer to 50 than to 75, because most of your shares were bought cheaply. The result is your break-even price — the level at which selling everything would return exactly what you paid, before fees and taxes.

Example: averaging down
PurchaseCostRunning average
10 @ 1001,000100.00
15 @ 801,20088.00
Total: 25 shares2,20088.00

Averaging down: a tool, not a strategy

Averaging down means buying more shares after the price falls, which lowers your average cost and your break-even price. It can be powerful: a smaller recovery in the share price is then enough to return to profit. But a lower average is only worthwhile if your reason for owning the stock still holds — adding to a position simply because it dropped can concentrate risk in a falling asset. The calculator deliberately stays neutral on that decision; it shows you precisely what your new average and total exposure would be so you can judge whether the extra investment is justified. It also excludes brokerage commissions and taxes, which slightly raise your real cost basis, so add those in when precision matters for tax reporting.

Worked examples

Two buys

Inputs: 10 @ 100 · 15 @ 80

Result: Average 88.00 · 25 shares · 2,200 invested

Averaging down

Inputs: 10 @ 100 · 40 @ 50

Result: Average 60.00 · 50 shares

Glossary

Cost basis
The total amount invested in a position, used to work out gains when you sell.
Weighted average
An average where each value counts in proportion to its share quantity.
Averaging down
Buying more shares at a lower price to reduce the average cost.
Break-even price
The price at which selling returns exactly what you paid, before fees.
Lot
A single purchase of shares at one price.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Finance

Explore all Finance.