Stock Average Calculator: Average Cost, Break-Even and Average-Down Planner

Enter each purchase to get your average cost per share, total position and profit or loss, then plan how many shares you would need to buy to reach a target average.

Education only, not financial advice. This calculator gives estimates from the numbers you enter. It is not a recommendation to buy, sell or hold anything. Check important decisions with a qualified professional. Everything runs in your browser; nothing you type is sent or stored.

Your purchases

SharesPrice per share ($)Cost
Average cost per share—
Total shares—
Total cost—including commissions
Profit / loss now—

Average-down (or up) planner

How average cost is calculated

Your average cost per share is the total you paid, including commissions, divided by the total number of shares you own. It is also your break-even price: above it the position shows a profit, below it a loss.

Average cost = (shares₁ × price₁ + shares₂ × price₂ + … + fees) ÷ (shares₁ + shares₂ + …)
Shares to buy at price P to reach target average T = S × (A − T) ÷ (T − P), where S = shares owned and A = current average

Example: 100 shares at $50, 50 at $42 and 80 at $35 cost $9,900 for 230 shares, an average of $43.04. To bring the average down to $40 by buying at $32 you would need about 88 more shares.

Average cost vs your tax cost basis

The average shown here is what most brokerage apps display. For taxes on stocks, your broker usually tracks each purchase lot separately and sells them first-in, first-out unless you choose specific lots; the average-cost method is mainly used for mutual fund shares. That choice changes your taxable gain when you sell part of a position. See our guide to cost basis methods: FIFO, specific identification and average basis.

A word on averaging down

Buying more of a falling stock lowers your average cost, but it does not change the stock’s prospects; it only increases your exposure. Many investors set a maximum position size before adding; our position size calculator helps with that, and the drawdown recovery calculator shows the gain needed to get back to even.

Frequently asked questions

How do I calculate my average stock price?

Add up what you paid for every purchase (shares × price, plus commissions) and divide by the total number of shares. 100 shares at $50 plus 100 at $40 is $9,000 ÷ 200 = $45 a share.

How many shares do I need to buy to average down?

Use shares = S × (A − T) ÷ (T − P), where S is the shares you own, A your current average, T the target average and P the price you will buy at. The planner above does this for you.

Does selling shares change my average cost?

Under the average-cost view used by most apps, selling does not change the average of the shares you keep. For taxes, the gain depends on which lots are treated as sold (FIFO, specific lots or average cost for mutual funds).

Should commissions be included?

Yes. Commissions and fees paid to buy shares are part of your cost basis, so they raise your average cost and lower your taxable gain.

Is averaging down a good strategy?

It can lower your break-even price, but it also concentrates more money in a stock that is falling. It makes sense only if your original reason for owning it still holds and the position stays within your risk limits.

Related tools and guides

Updated Nov 22, 2026. Built by the ECMSource team. Spot an error? Tell us.

Disclaimer: ECMSource tools are for general education. Results are hypothetical, assume constant rates, and ignore taxes, fees and other costs unless stated. Past returns do not predict future returns. See our full disclaimer and editorial policy.