Interactive Investing Instrument

Stock Average Calculator

Calculate your weighted average stock price across multiple purchases, including trading fees, to find your real break-even price.

Your average stock price — also called the stock average price — is the quantity-weighted cost of one share across all your purchases: total cash spent (including fees) divided by total shares owned.

USD ($) Reset
Purchase Lots Ledger Demos: DCA · Dip Buy · Growth
1
Execution Price$100.00
Number of Shares10 sh
Fee (Optional)$0.00
2
Execution Price$120.00
Number of Shares15 sh
Fee (Optional)$0.00
+ Add Purchase Lot ☑ Include broker fees in cost basis
Next Purchase Simulation + Test Target Buy
Position Basis Telemetry Copy
Weighted Average Cost / Share
$112.00
25 Total Shares • 2 Lots
Lot Weight Distribution 100% Accounted
Lot 1 (40%) Lot 2 (60%)
Total Capital Expended $2,800.00
Broker Fees Paid $0.00
Total Shares Count 25
Pure Share Cost $2,800.00

Why Simple Price Averaging Fails for Stock Purchases

When buying shares of a stock or ETF across multiple transactions, investors pay different market prices. Many investors mistakenly take a simple arithmetic average of their execution prices. However, simple averaging completely ignores the number of shares bought in each trade.

Consider this example: You buy 10 shares of a company at $50, and later purchase 90 shares of the same company at $100.

• Simple Average: ($50 + $100) ÷ 2 = $75.00

• Actual Weighted Average: [(10 × $50) + (90 × $100)] ÷ 100 shares = ($500 + $9,000) ÷ 100 = $95.00

Because 90% of your shares (90 of 100) were bought at $100 — that is $9,000 of your $9,500 total capital, or 94.7% — your real break-even cost is $95.00, not $75.00. Using a simple average would lead you to believe you are in profit when you may still be at a net loss.

Weighted Average Cost Methodology

The weighted average cost calculation aggregates the total dollars spent across every purchase lot (including any trading commissions or regulatory fees) and divides that total capital by the aggregate number of shares currently held:

Weighted Average Cost = (∑ (Purchase Price × Shares) + Total Fees) ÷ Total Shares

Each lot's share quantity serves as its statistical weight. The more shares you purchase at a specific price, the more heavily that price influences your overall portfolio cost basis. The result is your average stock price — the single per-share cost that represents everything you paid.

Accounting for Brokerage Fees & Commissions

While many retail brokerages offer commission-free trading on standard US equities, options traders, international investors, OTC equity traders, and users paying wire or currency fees still face transaction expenses.

When you enable the "Include broker fees in cost basis" option, each lot's fees are added to the numerator of the formula. This raises your calculated average cost per share, showing you the exact gross selling price required to achieve a true net break-even after recouping all trading costs.

Dollar-Cost Averaging (DCA) vs. "Averaging Down"

Dollar-Cost Averaging (DCA): A systematic investment strategy where you invest a fixed dollar amount at regular intervals (e.g., $500 every month), regardless of market fluctuations. Over time, you automatically purchase more shares when prices are low and fewer shares when prices are high, smoothing out volatility.

Averaging Down: Buying more shares specifically because a stock has fallen in price. While averaging down reduces your average cost per share, it also increases your concentration risk in a deteriorating security. Ensure the underlying business fundamentals remain strong before committing additional capital.

Average Cost vs. Official IRS Tax Cost Basis

It is critical to distinguish an internal portfolio weighted average price from statutory tax cost basis rules when you liquidate shares. Under US federal tax law, the IRS default is First-In, First-Out (FIFO) unless you identify specific lots; average cost is permitted for mutual funds and dividend reinvestment plans. Read our in-depth Average Stock Cost Educational Guide to explore IRS lot rules and numerical examples.

Assumptions & Limitations

  • Uses the quantity-weighted arithmetic mean, weighting each purchase by the volume of shares acquired.
  • Optional broker commissions and transaction fees are amortized into the net cost basis when the toggle is enabled.
  • Does not replace official IRS tax-lot identification methods (FIFO, LIFO, or Specific Share ID) required for capital gains reporting on Form 1099-B.
  • Calculations run locally in your browser without transmitting entered stock tickers, share quantities, or purchase prices to our servers.

Frequently Asked Questions About Stock Averaging

How do I calculate my average stock price across multiple buys?

Multiply the share quantity of each purchase lot by its execution price to find the dollar cost of that lot. Add all lot costs together, add any brokerage fees or commissions, and divide the total cash spent by the total number of shares owned.

Why does simple price averaging fail for stock purchases?

A simple average only adds the price tags and divides by the number of transactions, ignoring volume. If you buy 10 shares at $50 and 90 shares at $100, a simple average says $75, but your actual weighted cost is $95 because 90% of your shares (90 of 100) were bought at $100 — that is $9,000 of your $9,500 total capital, or 94.7%.

What happens when I buy more shares at a lower price (averaging down)?

Buying additional shares at a market price below your existing average lowers your overall weighted cost basis. While this lowers the price needed to break even, it also increases your total capital exposure to that asset.

How do broker fees affect my stock average cost?

Broker commissions, exchange fees, and regulatory levies increase the total cash you invested. Including them in your cost basis gives you your true net break-even price per share upon selling.

Is average cost the same as IRS tax cost basis for stock sales?

Not necessarily. For US individual stocks, the IRS default accounting method is First-In, First-Out (FIFO) or Specific Identification unless you elect an alternative recognized method. Average cost is standard for mutual funds, but stock sales generally require lot tracking.

Is the stock average price the same as my cost basis?

No — they measure different things. The stock average price is the quantity-weighted price you paid per share across all your purchases. Your tax cost basis follows lot rules instead: for US stocks the IRS default is FIFO (or specific identification), and wash sales or corporate actions can change it. Use the average price to judge your break-even; rely on your broker’s tax lots for reporting.

Can I calculate the average price for fractional shares or cryptocurrency?

Yes. The weighted average cost formula applies universally to any asset accumulated in lots, including fractional shares of stock, index ETFs, and cryptocurrencies.

Comprehensive Guide

How to Calculate Average Stock Cost

Understand quantity-weighted averaging, broker commission adjustments, and why tax cost basis can diverge under IRS rules.

Read Educational Guide→
Measure Net Gains

Return on Investment (ROI)

Once you know your average share cost, calculate your total percentage profit or loss upon exit using our interactive ROI calculator.

Open ROI Calculator→

Related Financial Calculators

More tools that work with the numbers on this page.

ROI Calculator

Measure the return on an investment or project.

Compound Interest Calculator

See how compound growth builds wealth over time.

Helpful Educational Guides

Understand the formulas, methodology, and financial context behind these calculations.

How to Calculate Average Stock Cost

Learn how to calculate your quantity-weighted average share price across multiple purchases, factor in broker fees, and understand tax cost basis differences.

How to Calculate Return on Investment (ROI)

Learn how to calculate Return on Investment (ROI), interpret positive and negative returns, and compute annualized ROI.