Account

What new tool do you want?

Investing & Retirement

Stock Average Cost Calculator

Find your average cost per share after buying a stock, ETF or coin at different prices — and the price you need to break even.

For information and education only — not financial advice. Results are estimates based on the numbers you enter; check important decisions with a qualified professional.

How to use

  1. 1Enter each purchase as 'shares price' on its own line.
  2. 2Add the current price to see your gain or loss.

How it's calculated

Average cost = total spent ÷ total shares = Σ(shares × price) ÷ Σ shares.

Frequently asked questions

What is averaging down?

Buying more shares after the price falls, which lowers your average cost. It only helps if the price recovers.

Should I include fees?

Yes, for your tax cost basis. Add each purchase's commission to its total, or enter a slightly higher price.

Does this work for crypto?

Yes — fractional quantities work the same way.

Why averaging down only helps if the price actually recovers

Buying more shares after a price drop lowers your average cost per share, which lowers the price needed to break even — but it does nothing to change whether the stock actually recovers, and someone who keeps averaging down on a stock in genuine, lasting decline is simply putting more capital at risk in a position that keeps losing, not fixing the original problem.

Worked example: Stock Average Cost Calculator

Three purchases — 10 shares at $150, 5 shares at $120, and 20 shares at $100 — total 35 shares for $4,100, giving an average cost of $117.14 per share. At a current price of $130, that position is worth $4,550, for a $450 gain — notice the average cost of $117.14 sits well below the simple average of the three purchase prices ($123.33), since the largest purchase (20 shares) happened at the lowest price, pulling the cost-weighted average down.

Why this same math works identically for fractional crypto holdings

The average-cost formula — total spent divided by total units — doesn't care whether those units are whole shares or fractional cryptocurrency amounts, which is why this calculator handles both the same way. Anyone tracking a cost basis across multiple crypto purchases at different prices can use the identical approach used for stocks, entering fractional quantities exactly as they appear on an exchange statement.

Why this single blended average isn't always what your broker reports for taxes

This calculator produces one blended average cost across all purchases, which is useful for judging overall performance — but US tax rules let you choose which specific shares (or 'lots') you're selling when you only sell part of a position, using methods like FIFO (first bought, first sold) or specific-lot identification, each of which can produce a different taxable gain or loss than simply using this blended average. For a full position sale, the distinction doesn't matter; for a partial sale, checking which lot-accounting method your broker is actually using is worth doing before relying on this average for tax purposes. Brokers generally default to FIFO unless you actively elect a different method before the trade settles, so it's worth checking account settings ahead of time rather than after a sale has already posted — switching methods retroactively, after a sale has already been reported, generally isn't an option.

Current value stays hidden until you type a price

Leave the current-price box empty and you only see average cost, total shares, and total invested. Type a price and current value and gain or loss appear, with the percent change beside the gain, to two decimals. The page opens on 10 at 150, 5 at 120, and 20 at 100, with no current price, so the gain line is absent until you add one. Total shares show up to six decimal places, which is what makes a fractional holding readable. A line that is not a share count followed by a price is rejected, and the message names the line. If the shares add up to zero, you are told the total must be above zero.

Related tools

More: Investing & Retirement