Stock Average Calculator - Average Share Price Calculator
Calculate the weighted average purchase price, total share quantity, and total investment cost across multiple stock buy transactions.
AI Quick Summary
Definition & Purpose:
This calculator computes the weighted average purchase price per share across multiple buy transactions executed at different prices, along with the total share quantity and total capital invested.
When to Use:
Use this calculator to find your true break-even cost per share after buying the same stock across multiple transactions at different prices, including after averaging down.
Key Takeaway Insights:
- A simple average of purchase prices is mathematically wrong once transaction sizes differ — it treats a 10-share purchase and a 1,000-share purchase as equally important, when the weighted average correctly gives more influence to the larger purchase.
- Buying additional shares at a lower price than your existing average — averaging down — pulls the overall average cost per share down, which lowers the price the stock needs to reach for the position to break even, though it also increases total capital at risk.
- The same weighted-average math applies to any asset accumulated across multiple purchases at different prices, not just stocks — cryptocurrency, mutual fund units, and commodities all work identically.
Purchase History
Weighted Average Cost
Introduction
Stock Average Calculator – Weighted Average Share Cost Guide
When shares of a stock are bought across multiple transactions at different prices, the true break-even cost isn't a simple average of those prices — it's a weighted average based on how many shares were bought at each price. This calculator computes your total share quantity, total investment cost, and weighted average price per share across any number of purchases.
The Weighted Average Formula
Average Price = fracsum_k=1^m (Quantity_k × Price_k)sum_k=1^m Quantity_k
Where m is the number of buy transactions entered, Quantity_k is the number of shares bought in transaction k, and Price_k is the price paid per share in that transaction.
Why a Simple Average Is Wrong
Buying 100 shares at 50 and 50 shares at40 does not average to 45 (the simple midpoint of50 and 40) — because twice as many shares were bought at50 as at $40, that price should count for more in the average:
- Total quantity: 100 + 50 = 150 shares
- Cost of transaction 1: 100 ×50 = \5,000
- Cost of transaction 2: 50 ×40 = \2,000
- Total cost: 5{,}000 + \2,000 =7{,}000$
- Weighted average price: 7{,}000 \div 150 \approx \46.67 per share
The correct weighted average (46.67) sits closer to50 than to $40, precisely because more shares were bought at the higher price.
How Averaging Down Changes the Cost Basis
Adding a third, larger purchase at a lower price pulls the weighted average down more than a simple average would suggest — the extra 200 shares at $30 have more influence than the earlier, smaller transactions:
| Transactions | Total Shares | Total Cost | Weighted Average |
|---|---|---|---|
| 100 @ 50, 50 @40 | 150 | $7,000.00 | $46.67 |
| + 200 @ $30 (averaging down) | 350 | $13,000.00 | $37.14 |
What This Calculator Does Not Include
For the strategy of investing a fixed amount at regular intervals regardless of price, see the SIP Calculator.
Formula & Variables Explained
This tool utilizes standard equations formulated under standard rules.
Variables:
- Input parameter: Values supplied to resolve the output formula.
How to Calculate (Step-by-Step)
- Input the required parameters into the form.
- Click the calculate or auto-compute option.
- The outputs will refresh instantly with step-by-step variables.
Worked Examples Calculation
1Two Transactions: 100 Shares @ 50, 50 Shares @40
Transaction 1 = 100 shares at 50.00, Transaction 2 = 50 shares at40.00
Total Quantity = 100 + 50 = 150 shares. Cost 1 = 100 50 = 5,000.00. Cost 2 = 50 40 =2,000.00. Total Cost = 5,000.00 +2,000.00 = 7,000.00. Average Price = 7,000.00 / 150 =46.67 per share.
Total Shares = 150 | Total Investment Cost = 7,000.00 | Average Price per Share =46.67
2Averaging Down: Adding a Third, Lower-Priced Purchase
Transaction 1 = 100 shares at 50.00, Transaction 2 = 50 shares at40.00, Transaction 3 = 200 shares at $30.00
Total Quantity = 100 + 50 + 200 = 350 shares. Total Cost = 5,000.00 +2,000.00 + 6,000.00 =13,000.00. Average Price = 13,000.00 / 350 = $37.14 per share — noticeably lower than the two-transaction average, since the larger, cheaper third purchase pulls the weighted average down.
Total Shares = 350 | Total Investment Cost = 13,000.00 | Average Price per Share =37.14
Real-World Applications
Widely used in student curriculum, professional projections, and quick estimations.
Limitations & Common Mistakes
- Entering incompatible unit formats (e.g. Mixing Metric and Imperial).
- Typographical mistakes in numeric entry fields.
Calculates a pure weighted average of entered quantities and prices. Doesn't include brokerage commissions or fees unless the user manually adds them into each transaction's price.
Frequently Asked Questions (FAQ)
Q:What is the formula for calculating average stock price?
The weighted average price is the total money spent across all purchases divided by the total number of shares bought: Average Price = Σ(Quantity × Price) ÷ Σ(Quantity), summed across every transaction entered.
Q:Why is stock average calculated as a weighted average instead of a simple average?
A simple average of the per-share prices treats every transaction as equally important regardless of size, which is inaccurate once purchase sizes differ. A weighted average scales each price by how many shares were bought at it, so a larger purchase correctly has more influence on the overall average cost than a smaller one.
Q:What does 'averaging down' mean in stock trading?
Averaging down means buying more shares of a stock after its price has fallen, which lowers your overall weighted average cost per share. This reduces how much the stock needs to recover for the position to break even, but it also increases total capital committed to a stock that has been declining, which adds risk if the decline continues.
Q:Does this calculator include brokerage fees or commissions?
No — it computes the weighted average based only on the quantities and prices entered. To account for brokerage commissions, add the per-share fee directly into the price entered for each transaction before calculating.
References & Citations
CalculationDesk Editorial Team
Content & Calculation Editors
The CalculationDesk Editorial Team consists of math educators, technical writers, and product specialists dedicated to ensuring accuracy and clarity for everyday calculations.
CalculationDesk Review Team
Quality Assurance & Formula Verifiers
Our internal Review Team ensures that every calculator logic corresponds precisely to established academic standards and industry specifications.
Was this calculator helpful?
Embed this Calculator
You are welcome to embed this tool on your own blog or website. Simply copy the code snippet below and paste it into your HTML code.