Stock Average Calculator

Free stock average calculator that supports unlimited purchase entries. Calculate your average cost per share, cost basis, break-even price, and unrealized gain or loss. Works for stocks, ETFs, crypto, and any asset.

Stock Average Calculator

Enter each purchase to calculate your average cost per share, total investment, and break-even price.

Purchase 1
Purchase 2

Frequently Asked Questions

What is average cost basis?

Average cost basis is the weighted average price you paid per share across all your purchases of a particular stock. It is calculated by dividing your total investment amount by the total number of shares owned. For example, if you bought 50 shares at $100 and 50 shares at $120, your average cost basis is ($5,000 + $6,000) / 100 = $110 per share. This figure is essential for calculating capital gains or losses when you sell.

How do you calculate average stock price?

Average stock price is calculated using the weighted average formula: Total Amount Invested / Total Shares Purchased. Each purchase is weighted by the number of shares bought at that price. For example, buying 200 shares at $50 and 100 shares at $80 gives an average of ($10,000 + $8,000) / 300 = $60 per share. A simple arithmetic average of $50 and $80 would give $65, which would be incorrect because it ignores the different quantities purchased.

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 the stock price. When prices are low, you buy more shares; when prices are high, you buy fewer shares. Over time, this strategy can result in a lower average cost per share compared to making a single lump-sum purchase. DCA reduces the risk of investing a large amount at a market peak and removes emotional decision-making from the process.

Does selling affect average cost?

Selling shares does not change your average cost per share for the remaining shares under the average cost method. If your average cost is $50 per share and you sell some shares, the remaining shares still have a $50 average cost basis. However, the IRS allows different cost basis methods including FIFO (first in, first out), LIFO (last in, first out), and specific identification, which can result in different tax outcomes when you sell.

How does average cost impact taxes?

Your average cost basis directly determines your capital gain or loss when you sell shares. Capital gain = Sale Price - Average Cost Basis. A higher average cost means lower taxable gains. For example, selling shares at $150 with a $110 average cost results in a $40 per share gain, while a $130 average cost would yield only a $20 gain. Choosing the right cost basis method (average cost, FIFO, or specific identification) can significantly affect your tax bill.

Is dollar cost averaging better than lump sum?

Studies show that lump sum investing outperforms dollar cost averaging about two-thirds of the time because markets tend to rise over time. However, DCA provides psychological benefits by reducing the risk of investing everything at a market peak. DCA is particularly useful when you receive income regularly and invest it as it comes in. The best approach depends on your risk tolerance, time horizon, and whether you have a large sum available to invest immediately.

How do I track cost basis for multiple purchases?

To track cost basis across multiple purchases, record the date, number of shares, price per share, and any commissions for each transaction. Your brokerage typically tracks this automatically and reports it on Form 1099-B. For the average cost method, sum all purchase amounts and divide by total shares. For FIFO or specific identification, you need to track each lot individually. Using a stock average cost calculator simplifies this process significantly.

What is the formula for averaging down?

The averaging down formula is: New Average Price = Total Amount Invested ÷ Total Shares Owned. For example, if you buy 100 shares at $50 ($5,000) and then 100 more at $40 ($4,000), your new average is $9,000 ÷ 200 = $45.00 per share, down from $50.

Can I use this calculator for crypto and ETFs?

Yes! This stock average calculator works for any asset with a price per unit — stocks, ETFs, mutual funds, cryptocurrency, and even commodities. Simply enter your purchase price and quantity for each buy, and the calculator will compute your average cost basis.

How do commissions affect my average price?

Commissions and fees increase your true cost basis. If you buy 100 shares at $50 with a $10 commission, your actual cost per share is $50.10 ($5,010 ÷ 100). Our calculator includes an optional fee field to account for this, giving you a more accurate average cost.

How to Calculate Average Stock Price

The Stock Average Calculator is an essential tool for investors who need to compute their average cost per share after making multiple purchases at different prices. Whether you are dollar cost averaging into an index fund or averaging down on a single stock, this calculator shows your weighted average cost basis, break-even price, and unrealized gain or loss in real time.

Stock Average Formula

The weighted average cost per share is calculated using these formulas:

Total Shares:
Total Shares = Shares from Purchase 1 + Shares from Purchase 2 + ... + Shares from Purchase N

Total Investment:
Total Investment = (Price₁ × Shares₁ + Fee₁) + (Price₂ × Shares₂ + Fee₂) + ... + (Priceₙ × Sharesₙ + Feeₙ)

Average Cost Per Share:
Average Cost = Total Investment ÷ Total Shares

Break-Even Price:
Break-Even Price = Average Cost Per Share (the price the stock must reach for you to have zero profit/loss)

Step-by-Step Calculation Example

Initial Purchase:

  • 100 shares at $50.00 per share
  • Investment: 100 × $50 = $5,000

Second Purchase:

  • 50 shares at $45.00 per share
  • Investment: 50 × $45 = $2,250

Result:

  • Total Shares: 100 + 50 = 150
  • Total Investment: $5,000 + $2,250 = $7,250
  • Average Cost: $7,250 ÷ 150 = $48.33 per share
  • Break-Even Price: $48.33

Average Down Calculator Example

You bought 200 shares of XYZ at $75 ($15,000). The stock drops to $50, and you buy 100 more shares ($5,000).

  • Total Investment: $15,000 + $5,000 = $20,000
  • Total Shares: 200 + 100 = 300
  • New Average Cost: $20,000 ÷ 300 = $66.67 per share
  • Cost Reduction: ($75 − $66.67) ÷ $75 = 11.1%
  • Break-Even Price: $66.67 (need 33.3% recovery from $50 vs 50% without averaging down)

By averaging down, you reduced the recovery needed from a 50% gain back to $75 to just a 33.3% gain to $66.67.

What Is Averaging Down in Stocks?

Averaging down is an investment strategy where you purchase additional shares of a stock after its price has fallen, thereby lowering your overall average cost per share. The goal is to reduce your break-even price so that you need a smaller price recovery to return to profitability. For example, if you originally bought shares at $100 and the price drops to $60, buying more at $60 pulls your average cost below $100 — meaning you no longer need the stock to fully recover to $100 to break even.

Averaging down is one of the most debated strategies in investing. When used correctly on fundamentally sound companies experiencing temporary setbacks, it can significantly improve long-term returns. However, when used on companies with deteriorating business fundamentals, it can compound losses. The key distinction is whether the price drop is a temporary dislocation or a reflection of genuine business decline.

When to Average Down

  • Strong fundamentals remain intact: earnings, revenue growth, and balance sheet are healthy despite the price decline
  • Temporary market downturn: broad market selloff or sector rotation rather than company-specific bad news
  • Your original investment thesis is unchanged: the reasons you bought the stock still hold true
  • Position sizing allows it: adding shares will not make the position an outsized portion of your portfolio
  • Long time horizon: you can afford to wait for the recovery without needing the capital

Risks of Averaging Down

  • Catching a falling knife: the stock may continue to decline, amplifying your losses
  • Overconcentration: repeatedly buying the same stock can leave your portfolio dangerously undiversified
  • Confirmation bias: you may convince yourself the stock is undervalued simply because you already own it
  • Opportunity cost: capital tied up in a losing position could be invested in better-performing assets
  • Emotional decision-making: the desire to “get back to even” can override objective analysis

Averaging Down vs Dollar Cost Averaging

While both strategies involve making multiple purchases, they differ in approach and intent:

  • Dollar Cost Averaging (DCA) is a systematic strategy where you invest a fixed dollar amount on a regular schedule — weekly, biweekly, or monthly — regardless of whether the price is up or down. The goal is to remove emotion and timing from the equation. DCA reduces the risk of investing a large sum at a market peak and works well for broad market index funds.
  • Averaging Down is a deliberate, discretionary decision to buy more of a specific stock at a lower price. It is conviction-driven: you believe the current price undervalues the company and you actively choose to increase your position. Unlike DCA, it concentrates your investment in a single stock rather than spreading it over time.
  • Can they be combined? Yes. Many investors use DCA as their default strategy for index fund contributions while selectively averaging down on individual stock positions they have high conviction in.

Understanding Cost Basis

Your cost basis is the total amount you paid for an investment, including the purchase price plus any commissions or fees. The IRS uses your cost basis to calculate capital gains or losses when you sell: Capital Gain = Sale Price − Cost Basis. A higher cost basis means lower taxable gains, while a lower cost basis means higher taxable gains. Accurately tracking your cost basis is essential for tax reporting and investment performance measurement.

Cost Basis Methods: FIFO, LIFO, and Average Cost

  • FIFO (First In, First Out): The oldest shares you purchased are considered sold first. If your earliest purchases were at the lowest prices, FIFO will result in the highest capital gains (and the highest tax bill). FIFO is the default method used by most brokerages.
  • LIFO (Last In, First Out): The most recently purchased shares are sold first. If your most recent purchases were at higher prices, LIFO can minimize short-term capital gains and reduce your immediate tax burden.
  • Average Cost: Your total investment is divided by the total number of shares to produce a single average cost per share. This is the simplest method and is required for mutual fund investors. Many brokers use this as the default for convenience.

How Cost Basis Affects Your Taxes

Choosing the right cost basis method can significantly affect your tax bill. Consider this scenario: you made three purchases of the same stock at $40, $50, and $60 per share, and you now want to sell one lot at $55.

  • FIFO: sells the $40 shares first → $15/share gain (taxable)
  • LIFO: sells the $60 shares first → $5/share loss (tax deduction)
  • Average Cost: average is $50 → $5/share gain (taxable, but smaller than FIFO)

Consult a tax professional to determine which method is most advantageous for your situation. Your broker reports your chosen method on Form 1099-B.

Stock Average Cost Examples

Example 1: Averaging Down a Tech Stock

Initial Position:

  • 100 shares at $150.00 per share
  • Investment: $15,000

Price drops — you buy more:

  • 50 shares at $120.00 per share ($6,000)
  • 50 shares at $100.00 per share ($5,000)

Result:

  • Total Shares: 200
  • Total Investment: $26,000
  • Average Cost: $26,000 ÷ 200 = $130.00 per share
  • You reduced your break-even from $150 to $130 — a 13.3% reduction

Example 2: Dollar Cost Averaging Over 6 Months

Monthly investment of $500 in ABC stock:

MonthPriceSharesCost
Month 1$50.0010.00$500
Month 2$45.0011.11$500
Month 3$40.0012.50$500
Month 4$42.0011.90$500
Month 5$48.0010.42$500
Month 6$52.009.62$500
  • Total Invested: $3,000
  • Total Shares: 65.55
  • Average Cost: $3,000 ÷ 65.55 = $45.77 per share

The simple average of the six prices is $46.17, but DCA gave you a lower average of $45.77 because you bought more shares when prices were low.

Example 3: Impact of Fees on Average Price

Without fees:

  • 100 shares at $50 = $5,000 total
  • Average cost: $50.00 per share

With $9.99 fee per trade:

  • 100 shares at $50 + $9.99 fee = $5,009.99 total
  • Average cost: $5,009.99 ÷ 100 = $50.10 per share

Over 10 separate trades:

  • 1,000 shares at $50 (100 per trade) + 10 × $9.99 = $50,099.90 total
  • Average cost: $50,099.90 ÷ 1,000 = $50.10 per share
  • Fees alone added $99.90 to your total investment

While modern brokerages have largely eliminated commissions, fees can still apply to OTC stocks, options, and cryptocurrency exchanges. Always factor them into your cost basis calculation.