acalculator

What is my stock average price?

Enter the shares and the price of each purchase to find your average price per share.

Your numbers

Your purchases
Each row is one purchase: shares in the first column, price per share in the second.
Average price per share
$53.33

Buying 150 shares for $8,000.00 in total is an average of $53.33 per share.

Total shares
150
Total cost
$8,000.00
Purchases
2

Average price per share: $53.33. Buying 150 shares for $8,000.00 in total is an average of $53.33 per share.

The results are estimates for information only. They are not financial, tax, or legal advice. Check the numbers with your lender or a qualified professional before you decide. Terms of use

How to calculate

Computes the weighted average price per share, the total shares, and the total cost of several purchases of the same stock.

Example with the default inputs (Your purchases [100, 50; 50, 60]): Buying 150 shares for $8,000.00 in total is an average of $53.33 per share.

Method: Average price = Σ(shares × price) ÷ Σ shares.

  • Each row is one purchase: shares in the first column, price per share in the second.
  • Fees and commissions are not included unless you add them to the price.
  • Sales are not counted; enter only purchases.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. Your purchases 100, 50; 50, 60 gives Average price per share $53.33, Total shares 150, Total cost $8,000.00.Source: Internal Revenue Service, Publication 550, Investment Income and Expenses: basis of stock bought at different times and the average basis method. https://www.irs.gov/publications/p550
  2. Your purchases 50, 12.5; 25, 15; 100, 9.8 gives Average price per share $11.31, Total shares 175, Total cost $1,980.00.Source: Internal Revenue Service, Publication 550, Investment Income and Expenses: basis of stock bought at different times and the average basis method. https://www.irs.gov/publications/p550
  3. Your purchases 10, 0; 10, 50 gives Average price per share $25.00, Total cost $500.00.Source: Internal Revenue Service, Publication 550, Investment Income and Expenses: basis of stock bought at different times and the average basis method. https://www.irs.gov/publications/p550
  4. Your purchases 0.5, 30,000; 0.25, 40,000 gives Average price per share $33,333.33, Total shares 0.75.Source: Internal Revenue Service, Publication 550, Investment Income and Expenses: basis of stock bought at different times and the average basis method. https://www.irs.gov/publications/p550

How the average price is worked out

For purchases 1 to n, with s shares at price p in each:

  • Total cost = s₁ × p₁ + s₂ × p₂ + … + sₙ × pₙ
  • Total shares = s₁ + s₂ + … + sₙ
  • Average price per share = total cost ÷ total shares

This is the weighted average of the prices, with each price weighted by its number of shares.

Enter one row per purchase: the number of shares in the first column and the price per share in the second. Add a row for each purchase, up to 20.

Assumptions

  • Only purchases count. Sales and dividends are left out.
  • Fees and commissions are left out unless you add them to the price.
  • Shares and prices cannot be negative. With 0 shares in total, there is no average.

Worked examples by hand

100 shares at $50 and 50 shares at $60. Total cost = 5,000 + 3,000 = $8,000. Total shares = 150. Average = 8,000 ÷ 150 = $53.33.

50 at $12.50, 25 at $15, and 100 at $9.80. Total cost = 625 + 375 + 980 = $1,980. Total shares = 175. Average = 1,980 ÷ 175 = $11.31.

10 free shares and 10 at $50. Total cost = 0 + 500 = $500 for 20 shares, so the average is $25.

0.5 shares at $30,000 and 0.25 at $40,000. Total cost = 15,000 + 10,000 = $25,000 for 0.75 shares: $33,333.33 per share.

Other questions people ask

What is a stock average calculator?

A stock average calculator helps you determine the average price per share when you've made multiple purchases of the same stock at different prices. This is useful for understanding your overall investment position and calculating your cost basis.

How is the average price calculated?

The average price is calculated by dividing the total amount invested by the total number of shares purchased. Formula: Average Price = Total Investment ÷ Total Units.

Why is knowing my average price important?

Knowing your average price helps you understand your break-even point, evaluate your investment performance, and make informed decisions about buying more shares or selling existing positions.

What is a share average calculator and how does it work?

A share average calculator (also known as a stock average calculator) is a tool that calculates the weighted average price of shares when you've bought the same stock multiple times at different prices. It helps investors track their cost basis and understand their overall investment position across multiple purchases.

How do I calculate the average price of my stock shares?

To calculate the average price of your stock shares, multiply each purchase by its price, add all the totals together, then divide by the total number of shares. For example: (100 shares × $50) + (50 shares × $60) = $8,000 total ÷ 150 shares = $53.33 average price per share.

What is the difference between stock average and share average?

Stock average and share average refer to the same concept - the weighted average price of shares you've purchased. Both terms describe calculating your cost basis when you've bought the same stock multiple times at different prices. The calculator works for any stock or investment where you need to track multiple purchases.

Can I add more than 20 purchases?

The calculator supports up to 20 separate purchases. If you need to track more purchases, you can combine purchases at the same price into one, or use a spreadsheet for more detailed tracking.

What if I have zero shares or zero price?

A purchase with zero shares adds nothing. A purchase at a price of zero (for example free shares) adds shares but no cost, so it lowers the average. If the total number of shares is zero, there is no average price, and the calculator asks for at least one purchase.

How does dollar cost averaging relate to share average calculation?

Dollar cost averaging is an investment strategy where you invest a fixed amount regularly, regardless of share price. The share average calculator helps you track the results of this strategy by showing your average price per share across all purchases. This helps you understand whether your dollar cost averaging strategy is working effectively.

Why should I use a share average calculator for my investments?

Using a share average calculator helps you make informed investment decisions by showing your true cost basis. It's essential for tax purposes, understanding your break-even point, evaluating investment performance, and deciding when to buy more shares or sell existing positions. It's particularly useful for long-term investors who make multiple purchases of the same stock.