Stock Average Calculator

Average cost basis calculator

Purchase 1
Purchase 2
Purchase 3
Average Results
Average Cost Per Share
$0.00
Weighted average price
Total Shares: 0
Total Investment: $0.00
Highest Price Paid: $0.00
Lowest Price Paid: $0.00

What is a Stock Average Calculator?

A Stock Average Calculator computes the weighted average cost per share when you've made multiple purchases of the same stock at different prices. This average cost basis is crucial for tax reporting, portfolio tracking, and evaluating your position's performance.

When you buy shares at various prices over time (dollar-cost averaging), you need to know your blended average to calculate gains/losses accurately and make informed decisions about adding to or reducing your position.

How to Use This Calculator

Step 1: Enter shares and price for your first purchase.
Step 2: Input details for second purchase (if applicable).
Step 3: Add third purchase details (if applicable).
Step 4: Click "Calculate Average" to see weighted average cost.
Step 5: Review total shares and total investment amount.
Step 6: Use average cost to evaluate gains/losses vs. current price.

Stock Average Examples

Example 1 - Dollar-Cost Averaging: Purchase 1: 50 shares at $100 = $5,000. Purchase 2: 50 shares at $80 = $4,000. Purchase 3: 50 shares at $60 = $3,000. Total: 150 shares, $12,000 invested. Average cost: $80/share. Even though you bought at $100, $80, and $60, your average is exactly in the middle because equal shares at each price.

Example 2 - Weighted Average: Purchase 1: 100 shares at $50 = $5,000. Purchase 2: 25 shares at $40 = $1,000. Total: 125 shares, $6,000 invested. Average cost: $48/share. The average is closer to $50 because you bought more shares at that price. Understanding this helps see how position size affects your cost basis.

Example 3 - Adding to Winner: Initial: 20 shares at $200 = $4,000. Addition: 30 shares at $250 = $7,500. Total: 50 shares, $11,500 invested. Average cost: $230/share. Even though current price is $250, your average is $230, giving you a built-in profit cushion while maintaining exposure to continued growth.

Who Should Use This Calculator?

Investors using dollar-cost averaging need this calculator to track their blended cost basis across multiple purchases over time. This is essential for tax reporting and performance evaluation.

Active traders adding to positions at different prices use this tool to quickly calculate their break-even point and average cost for position management decisions.

Tax planners need accurate cost basis calculations for Schedule D reporting. The average cost method is commonly used for mutual funds and can be elected for stocks.

Stock Average Strategies & Pro Tips

  • Dollar-Cost Averaging: Regular fixed-dollar purchases naturally buy more shares when price is low, lowering average cost
  • Averaging Down: Buying more as price falls reduces average cost but increases total risk exposure
  • Averaging Up: Adding to winners at higher prices shows conviction but raises average cost
  • Tax Lots: Consider using specific lot identification for tax-loss harvesting instead of average cost
  • Record Keeping: Track every purchase date, shares, and price for accurate cost basis
  • Brokerage Tracking: Most brokers track average cost automatically, but verify accuracy
  • Wash Sales: Buying within 30 days of selling at loss affects cost basis calculations
  • Corporate Actions: Splits, mergers, and spin-offs adjust historical cost basis

Frequently Asked Questions

How do I calculate average cost per share?
Formula: Average Cost = Total Amount Invested / Total Shares Owned. Calculation Steps: 1) Multiply shares × price for each purchase. 2) Sum all purchase amounts. 3) Sum all shares purchased. 4) Divide total amount by total shares. Example: Buy 100 shares at $50 = $5,000. Buy 50 shares at $60 = $3,000. Total invested: $8,000. Total shares: 150. Average cost: $8,000 / 150 = $53.33 per share.
What is dollar-cost averaging?
Dollar-cost averaging (DCA) is an investment strategy where you invest a fixed dollar amount at regular intervals regardless of price. Benefits: Reduces timing risk—no need to predict market bottoms. Automatically buys more shares when prices are low. Smooths out volatility over time. Removes emotion from investing. Disciplined approach builds wealth consistently. Example: Invest $500 monthly in a $50 stock. Month 1: $50 price → 10 shares. Month 2: $40 price → 12.5 shares. Month 3: $60 price → 8.33 shares. You bought more shares when price was low, lowering average cost. Studies show DCA often outperforms lump-sum investing in volatile markets.
Should I average down on a losing stock?
Averaging down reduces your cost basis but increases total investment and risk. Consider: Company Fundamentals: Is the decline temporary or permanent? Position Size: Will averaging down create an oversized position? Opportunity Cost: Could money be better deployed elsewhere? Risk Tolerance: Can you afford to lose more if stock keeps falling? Emotional Factor: Are you averaging down rationally or refusing to accept a loss? Best Practice: Average down only if you would buy the stock fresh at current prices. Don't throw good money after bad just to lower average cost. Set a maximum position size and stop adding once reached.
What is the difference between FIFO and average cost?
FIFO (First In, First Out): Assumes you sell oldest shares first. Often results in higher taxable gains if prices rise over time. Required method for stocks unless you specify otherwise. Average Cost: Blends all purchases together into single average price. Simplifies calculations. Required for mutual funds. Can be elected for stocks by informing broker. Example: Buy 100 shares at $40, then 100 at $60. Average cost: $50. Sell 100 shares at $70. FIFO: $70 - $40 = $30 gain per share. Average Cost: $70 - $50 = $20 gain per share. Method affects taxes—consult tax advisor for optimal approach.
How do stock splits affect average cost?
Stock splits proportionally adjust your shares and average cost but don't change total value. Example: You own 100 shares at average cost $50 ($5,000 total). 2-for-1 split: Now own 200 shares at $25 average cost ($5,000 total). Calculation: New share count = Old count × split ratio. New average cost = Old average cost / split ratio. Total investment value unchanged. Your cost basis per share decreases, but you have proportionally more shares. Tax reporting: Adjust historical purchase records to reflect split ratios. Brokers typically handle this automatically.
What is a wash sale and how does it affect cost basis?
Wash Sale Rule: If you sell a stock at a loss and buy the same or "substantially identical" security within 30 days before or after the sale, the loss is disallowed for tax purposes. Effect on Cost Basis: Disallowed loss is added to the cost basis of the new shares. Holding period of sold shares tacks onto new shares. Example: Buy 100 shares at $50 ($5,000). Sell at $40 ($1,000 loss). Buy 100 shares at $38 within 30 days. Wash sale triggered. New cost basis: $38 purchase price + $1,000 disallowed loss = $48/share. Purpose: Prevents tax-loss harvesting without genuine economic disposition.
How do I track cost basis for tax reporting?
Record Keeping Requirements: Date of each purchase. Number of shares bought. Price per share. Commission/fees paid. Corporate actions affecting basis (splits, mergers). Tracking Methods: Brokerage Statements: Most brokers track cost basis and provide Form 1099-B. Spreadsheet: Manual tracking with formulas for average cost. Software: Quicken, Personal Capital, or specialized investment software. Tax Forms: Form 8949: Report sales with cost basis. Schedule D: Summarize capital gains/losses. Broker Reporting: Brokers must report cost basis for stocks bought after 2011. Earlier purchases may require your records.
What happens to cost basis in a merger?
Mergers and acquisitions affect cost basis depending on deal structure: Stock-for-Stock: Original cost basis carries over to new shares received. Cash Deal: Cost basis determines capital gain/loss on full cashout. Mixed: Allocate basis between cash received and stock received proportionally. Spin-offs: Original cost basis allocated between parent and spun-off company based on relative fair market values. Example: Own $10,000 basis in Company A. Merged into Company B in stock deal. New basis in Company B shares: $10,000 (regardless of current value). Tax reporting: Use Form 8949 with code explaining corporate action. Brokers typically provide guidance on basis allocation.
Can I change my cost basis method?
Changing Cost Basis Methods: Mutual Funds: Can elect average cost, FIFO, or specific lot identification. Change requires informing broker in writing. Stocks: Default is FIFO. Can elect specific lot identification at time of sale. Some brokers offer average cost election. Cryptocurrency: IRS allows FIFO, specific lot, or average cost methods. Consistency required unless change approved. Once Method Chosen: Generally must stick with it for that security. Changing may require IRS approval. Retroactive changes usually not permitted. Best Practice: Choose method before selling and consult tax advisor for optimal strategy based on your situation.
How do I calculate gains/losses using average cost?
Using Average Cost for Gains/Losses: Determine Average Cost: Total invested / Total shares. Calculate Gain/Loss per Share: Sale price - Average cost. Total Gain/Loss: (Sale price - Average cost) × Shares sold. Example: Total invested: $15,000 in 300 shares. Average cost: $50/share. Sell 100 shares at $70. Gain per share: $70 - $50 = $20. Total gain: $20 × 100 = $2,000. Remaining position: 200 shares with $50 average cost. Reporting: Report on Form 8949 with average cost basis. Note that you can't use specific lot identification once average cost method is elected for a security.