KitBench

Stock Average Calculator

Calculate weighted average share price, total shares, and total invested capital across multiple stock purchases.

Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.

Interactive Browser Workspace

Loading the interactive Stock Average Calculator workspace. Enable JavaScript in your browser to run calculations and conversions locally.

How to Use Stock Average Calculator

  1. Enter share quantity, purchase price, and optional commission fee for each buy lot.
  2. Add or remove purchase rows as needed to match your trade history.
  3. Optionally enter a current share price to preview unrealized profit or loss.

Methodology & Accuracy

Total Investment = Sum(Shares_i * Price_i + Fee_i). Average Price = Total Investment / Total Shares.

Examples

  • Buying 100 shares at $40 and 100 shares at $30 gives 200 total shares, $7,000 invested, and an average cost basis of $35.00 per share.

Scope & Limitations

  • Calculates weighted average cost basis for long buy positions; it does not track wash-sale tax rules, stock splits, or partial FIFO/LIFO sales.

Frequently Asked Questions

Can I include brokerage fees in the average price?

Yes. Enter any commission per trade in the Fee field and it is added into total cost basis and average price.

How is the weighted average share price calculated across multiple buys?

The calculator sums the total cost of every purchase lot (shares multiplied by purchase price, plus any fees) and divides by the combined total number of shares.

Can I model how many shares I need to reach a target average price?

Yes. Adding a hypothetical new buy lot at the current market price immediately shows your revised average cost basis and break-even level.

Related Tools

  • Dividend Calculator - Calculate gross and optional after-tax dividend income per payout, monthly average, annual total, and yield.
  • Investment Return Calculator - Project investment growth from an initial lump sum, monthly or annual contributions, and estimated return assumptions.
  • Currency Profit Calculator - Calculate net profit or loss from buying and selling foreign currency with manual exchange rates and conversion fees.