Stock Average Calculator
Find your true average cost per share across multiple stock purchases. Enter the shares and price of each buy, optionally add commissions and the current market price, and see your average, total cost, break-even point and unrealized gain or loss, with every step of the math shown.
Formulas verified against standard references. Calculator logic tested with verified worked examples. Published: November 4, 2026 | Last updated: November 4, 2026. Fact-checked: November 4, 2026. Our methodology
What Is a Stock Average Calculator?
When you buy the same stock more than once at different prices, a stock average calculator tells you what you actually paid per share on average. It multiplies the shares in each purchase by the price you paid, adds those totals together, and divides by the total number of shares. That weighted result is your true average cost per share, the number that sets your break-even point.
This is not a profit tool. It never asks for a sell price and it cannot tell you what you made. It answers the earlier question of what your shares cost you across all your purchases, before you sell anything. Every calculation runs in your browser, and nothing you type is sent or saved anywhere.

How to Use the Stock Average Calculator
- Enter the number of shares and the price per share for your first purchase. Add a commission in the optional field if your broker charged one.
- Press "Add purchase" for each additional buy, up to 10 lots. Leave a row blank if you do not need it. Blank rows are ignored.
- Optionally type the current market price per share to see your unrealized gain or loss against your average.
- Press Calculate. The average cost per share appears first and large, then the total shares, total cost, break-even price and the step-by-step math.
- Press Reset to clear the form and start over.
The Stock Average Formula
Average cost per share = Total cost ÷ Total shares. Total cost is the sum of (shares × price per share + commission) across every purchase. Total shares is the sum of the shares in every purchase.
P is the price per share in one purchase, Q is the number of shares in that purchase, and each purchase counts separately. A commission is added to the cost of the purchase that paid it, so the average reflects the money you truly spent.
Why It Must Be a Weighted Average
A simple average treats each purchase as equal, but your money is not spread equally. If you buy 100 shares at $50 and 200 shares at $40, two-thirds of your money went in at the lower price. The weighted average gives each purchase influence in proportion to its size, which is why the answer is $43.33 instead of the $45 midpoint. A calculator that averaged only the prices would mislead you whenever the lots are uneven.

Worked Example: The $45 Mistake
You buy 100 shares at $50, then later buy 200 shares at $40. Here is the full math.
| Purchase | Shares | Price per share | Cost |
|---|---|---|---|
| First buy | 100 | $50.00 | $5,000.00 |
| Second buy | 200 | $40.00 | $8,000.00 |
| Total | 300 | $13,000.00 |
Cost of the first buy: 100 × $50.00 = $5,000.00. Cost of the second buy: 200 × $40.00 = $8,000.00. Total cost: $5,000.00 + $8,000.00 = $13,000.00. Total shares: 100 + 200 = 300. Average cost per share: $13,000.00 ÷ 300 = $43.33.
The simple average of the two prices is ($50 + $40) ÷ 2 = $45, and that is wrong. It ignores the fact that twice as many shares were bought at $40. Try it above with 100 shares at 50 and 200 shares at 40 to see the same result with every step shown.
Averaging Down vs Averaging Up
Averaging down means buying more shares below your current average, which pulls the average down. Averaging up means buying more shares above your current average, which pushes it up. Both change the average and the break-even price, and both change how much money you have at risk.
Averaging Down
You hold 100 shares bought at $180, an $18,000 position. The price falls to $162 and you buy 50 more shares for $8,100. Your new total is $26,100 across 150 shares, so the average drops to $174.00. You now break even $6 lower, but you have $8,100 more exposed to a stock that is falling.
Averaging Up
You hold 200 shares bought at $45, a $9,000 position. The price rises to $52.50 and you add 100 shares for $5,250. Your new total is $14,250 across 300 shares, so the average rises to $47.50. You break even higher, but every extra dollar is riding a stock that is already rising.
Buying on a fixed schedule, for example every month, uses the same weighted-average math. Each purchase is one more lot in the formula, and the average blends them all by size. To project how regular contributions might grow over time with compounding, try the investment calculator.
The Risk of Averaging Down
Averaging down feels good because the average falls, but the average is not the whole story. Every new purchase adds money to a losing position, so the total amount at risk grows with each buy. The example above raised the exposure from $18,000 to $26,100 for a $6 improvement in the average.
The classic danger is throwing good money after bad. If the stock keeps falling because the business itself is weakening, each new purchase lowers the average a little while the position loses a lot. Averaging down into a broken company can turn a small loss into a large one.
Set the rules before you buy more. Decide the maximum share of your portfolio that one stock may take, decide how many times you are willing to add, and only average down while the reason you bought the stock still holds. Position sizing is the guardrail that keeps a cheaper average from becoming a bigger loss.

What This Calculator Does Not Include
The basic result covers share prices and the commissions you enter. It does not include taxes, which depend on your country and how long you held the shares. It does not subtract dividends you received, so your true return is slightly better than the break-even suggests. Track dividend income separately with a dividend calculator to see the full picture.
To fold a brokerage fee into your cost basis, add it to the commission field of the purchase that paid it. A $10 fee on the $5,000 first buy makes that lot $5,010, and with a $10 fee on each of the two example lots the average moves from $43.33 to $43.40.
Stock splits also change the per-share number without changing your money. After a 2-for-1 split, the 300-share example becomes 600 shares and the average halves from $43.33 to about $21.67. The total cost is still $13,000, just spread over twice as many shares.
Stock Average vs Stock Profit: Which Do You Need?
The stock average calculator answers what you paid. It takes your purchases and returns your average cost per share, with no sell price involved. Use it while you still hold the stock, when you want your break-even point or a clean cost basis for your records.
The Stock Profit Calculator answers what you made. It takes a buy price and a sell price and turns them into a dollar gain or loss. Once you know your average cost and eventually sell, the Stock Profit Calculator turns your buy and sell prices into an exact gain or loss.
In short, average first and profit later. One tool prices the position, the other scores the trade.
Disclaimer
This calculator gives an estimate for planning and is for informational purposes only, not investment advice. Actual results depend on your broker, fees and taxes. See our disclaimer.
Frequently asked questions
How do you calculate the average price of stocks bought at different prices?
Multiply the shares in each purchase by its price, add those costs together, then divide by the total number of shares. For example, 100 shares at $50 plus 200 shares at $40 costs $13,000 for 300 shares, which is $43.33 per share. This is called a weighted average because each purchase counts in proportion to its size.
What is the difference between a simple average and a weighted average share price?
A simple average adds the prices and divides by the number of purchases, so ($50 + $40) ÷ 2 = $45. A weighted average accounts for how many shares you bought at each price, giving $43.33 for the same two buys. Use the weighted average, because the simple average overstates your cost whenever you bought more shares at the lower price.
What does averaging down mean in stock investing?
Averaging down means buying more shares of a stock you own after its price has fallen below your current average cost. The new, cheaper shares pull your average cost per share down and lower your break-even price. It also raises the total money you have exposed to that stock.
Is averaging down a good strategy?
It can be, but it is risky. Averaging down lowers your break-even price, which helps if the stock recovers, yet it increases your exposure to a stock that is falling. It works best when the original reason for buying still holds and the drop looks temporary, and it works worst when the business itself is deteriorating. This page is educational and is not investment advice.
What is my break-even price after averaging down?
Your break-even price is your total cost divided by your total shares, which is the same number as your average cost per share before taxes and fees. In the example of 100 shares at $180 plus 50 more at $162, the total cost is $26,100 for 150 shares, so you break even at $174.00 per share.
Do brokerage fees change my average cost per share?
Yes, if you count them. Each fee you pay is part of your true cost, so add it to the purchase that paid it. A $10 commission on a $5,000 buy raises that lot to $5,010, and in the two-purchase example the average moves from $43.33 to $43.40 with a $10 fee on each lot.
What happens to my average share price after a stock split?
A split multiplies your share count and divides your per-share price by the same factor, leaving the total value unchanged. In a 2-for-1 split, 300 shares at a $43.33 average become 600 shares at about $21.67, with the same $13,000 total cost.
Related calculators
Stock Profit Calculator
Gain or loss from a buy and sell price.
Use calculatorInvestment Calculator
Project growth of regular investments.
Use calculatorDividend Calculator
Income from dividend-paying stocks.
Use calculatorROI Calculator
Return on any investment in percent.
Use calculatorBreak-Even Calculator
Sales needed to cover your costs.
Use calculatorCompound Interest Calculator
Growth of savings with compounding interest.
Use calculatorSavings Calculator
How savings add up over time.
Use calculatorFuture Value Calculator
What money today is worth later.
Use calculatorAverage Calculator
Mean of any list of numbers.
Use calculator