Stock Average Price Calculator

Average share price (cost basis)$46.67
Total shares150
Total invested$7,000.00
Gain / loss at current price$200.00 (2.86%)
How this was calculated
  1. Purchase 1: 100 shares x $50.00 = $5,000.00.
  2. Purchase 2: 50 shares x $40.00 = $2,000.00.
  3. Total invested = $7,000.00 for 150 shares in total.
  4. Average price = $7,000.00 / 150 = $46.67 per share — every share is treated as costing this blended price.
  5. At the current price of $48.00, the position is worth $7,200.00: a gain of $200.00 (2.86%) against the average cost.

A stock average price calculator tells you the true per-share cost of a position built through multiple purchases. The answer it gives is the average share price, or cost basis: the total amount invested divided by the total shares bought, with each purchase weighted by its size. For example, if you buy 100 shares at $50.00 and 50 shares at $40.00, you have invested $7,000.00 across 150 shares, giving an average of $46.67. At a current price of $48.00, the position is up $200.00, or 2.86%. The same logic applies to single buys—50 shares at $120.00 average to exactly $120.00, and at $150.00 the gain is $1,500.00 (25.00%)—and to larger blends, like 200 at $25.00, 200 at $20.00, and 100 at $30.00, which average $24.00 across 500 shares.

This weighting method is the accepted standard because averaging is weighted by shares, not a simple mean of prices. The $50.00 and $40.00 buys average to $46.67, not $45.00, because the dearer buy was twice as large. Brokers report this blended figure as the cost basis, and the IRS average-basis method for mutual funds works the same way. This page shows the formula, step-by-step workings, worked examples, and sources.

Worked examples

Two buys, modest gain

Primary result: $46.67 — 150 shares blended from $50 and $40 buys, up $200.00 at $48. (100 · 50 · 50 · 40 · 0 · 0 · 48)

Average share price (cost basis)$46.67
Total shares150
Total invested$7,000.00
Gain / loss at current price$200.00 (2.86%)

Three buys at mixed prices

Primary result: $24.00 — the blended basis sits above the $22 current price, so the position shows a loss. (200 · 25 · 200 · 20 · 100 · 30 · 22)

Average share price (cost basis)$24.00
Total shares500
Total invested$12,000.00
Gain / loss at current price$-1,000.00 (-8.33%)

One buy, doubled

Primary result: $120.00 — a single purchase, so the average is the purchase price itself. (50 · 120 · 0 · 0 · 0 · 0 · 150)

Average share price (cost basis)$120.00
Total shares50
Total invested$6,000.00
Gain / loss at current price$1,500.00 (25.00%)

The average price formula

The average price formula calculates your cost basis by dividing the total amount invested by the total shares bought. In mathematical terms, you sum the product of shares multiplied by price for every purchase, then divide that sum by the total number of shares you own. This means each purchase is weighted by its size, so a larger buy influences the final average more than a smaller one. A stock average price calculator performs this math instantly, but understanding the formula helps you verify the results and make smarter decisions about adding to or trimming a position.

Consider a worked example: 100 shares at $50.00 plus 50 shares at $40.00 invest $7,000.00 for 150 shares, an average of $46.67. If the current price reaches $48.00, the position is up $200.00, or 2.86%. A second example shows the same principle across three buys: 200 shares at $25.00, 200 shares at $20.00, and 100 shares at $30.00 blend to $24.00 over 500 shares. If the price drops to $22.00, the position is down $1,000.00. A single purchase of 50 shares at $120.00 has an average of exactly $120.00, and if the price climbs to $150.00, the gain is $1,500.00, or 25.00%.

This calculation is a weighted average, not a simple mean of prices. The $50.00 and $40.00 buys average to $46.67, not $45.00, because the dearer buy was twice as large. A simple mean treats every price equally regardless of how many shares you bought at that price, which misleads you about your true cost. If you buy 10 shares at $100.00 and 1,000 shares at $10.00, a simple mean would suggest an average of $55.00, but your actual cost basis is just $10.89. Using a simple mean overstates your cost when you buy more shares at the lower price and understates it when you buy more at the higher price.

Brokers report this blended figure as the cost basis on your statements, and the IRS average-basis method for mutual funds works the same way. Knowing your true average price lets you track gains or losses accurately and plan future purchases with confidence.

Worked examples

A stock average price calculator weights each purchase by its size, so larger buys pull the blended cost toward their price. The first worked example shows why this matters: 100 shares at $50.00 plus 50 shares at $40.00 invest $7,000.00 for 150 shares. That blends to an average of $46.67, not the $45.00 you would get from a simple mean of the two prices. The dearer buy was twice as large, so it carries twice the weight. At a current price of $48.00 the position is up $200.00, or 2.86%.

The second example adds a third purchase and shows a loss. Buy 200 shares at $25.00, another 200 at $20.00, and 100 at $30.00. You invest $12,000.00 for 500 shares, which blends to an average of $24.00. At a current price of $22.00 the position is down $1,000.00. Here the middle purchase anchors the cost: even though one buy was at $30.00, the two 200-share blocks dominate the math because averaging is weighted by shares, not a simple mean of prices.

The third example is the simplest case: a single purchase of 50 shares at $120.00. With only one trade, the average is exactly $120.00. At a current price of $150.00 the gain is $1,500.00, or 25.00%. No weighting is needed because there is nothing to blend, but the formula still holds: total amount invested divided by total shares bought.

Brokers report this blended figure as the cost basis on each position, and the IRS average-basis method for mutual funds works the same way. The three examples above mirror what you will see on a confirmation or monthly statement: one weighted number per holding, tracked against the current price to show unrealized gain or loss.

PurchasesSharesAmount investedAverage priceCurrent priceGain or loss
100 at $50.00 + 50 at $40.00150$7,000.00$46.67$48.00Up $200.00 (2.86%)
200 at $25.00 + 200 at $20.00 + 100 at $30.00500$12,000.00$24.00$22.00Down $1,000.00
50 at $120.0050$6,000.00$120.00$150.00Up $1,500.00 (25.00%)

Averaging down: what it does and does not do

Averaging down means buying more shares of a stock you already own after the price has fallen. The appeal is simple: your average share price drops closer to the new, lower price, and so does the break-even point at which the position turns profitable. A stock average price calculator shows this effect immediately by weighting each purchase by its size, not by taking a simple mean of the prices you paid.

The weighting matters more than people expect. Suppose you buy 100 shares at $50.00 and then 50 shares at $40.00. A simple average of those two prices would be $45.00, but the real average is $46.67 because the first purchase was twice as large and pulls the result upward. Together the two buys invest $7,000.00 for 150 shares, and if the price climbs to $48.00 the position is up $200.00, or 2.86%. Brokers report this blended figure as the cost basis, and the IRS average-basis method for mutual funds works the same way.

Larger purchases shift the average more. If you buy 200 shares at $25.00, another 200 at $20.00, and 100 at $30.00, the three buys blend to $24.00 across 500 shares. At a market price of $22.00 the position is down $1,000.00. Compare that with a single purchase of 50 shares at $120.00, which has an average of exactly $120.00; at $150.00 the gain is $1,500.00, or 25.00%. A larger purchase can move the average sharply, for better or worse.

What averaging down does not do is reduce your total dollars at risk. It increases them. You are concentrating more money in one stock that is already falling, and if the decline continues the larger position loses more in absolute terms. A lower break-even is useful only if the price eventually recovers; if it keeps dropping, the bigger position simply means bigger losses. Use a stock average price calculator to see the new break-even before you add shares, and weigh the risk of further losses against the chance of a rebound.

Cost basis and taxes

When you buy shares of the same stock at different prices, the average price you paid becomes your cost basis per share. The formula is straightforward: average share price equals total amount invested divided by total shares bought, with each purchase weighted by its size. This is the figure your broker tracks and reports to the IRS when you sell. A stock average price calculator does this math instantly, but it helps to understand what the number means for your taxes.

Because averaging is weighted by shares, not a simple mean of prices, larger purchases pull the average toward their price. Consider a worked example: 100 shares at $50.00 plus 50 shares at $40.00 invest $7,000.00 for 150 shares, an average of $46.67. A simple average of the two prices would be $45.00, but that ignores the fact that the dearer buy was twice as large. If the stock later trades at $48.00, the position is up $200.00, or 2.86%. The same weighting applies to a single purchase of 50 shares at $120.00, which has an average of exactly $120.00. At $150.00 the gain is $1,500.00, or 25.00%.

A more complex blend shows the same principle at work. A second worked example: 200 shares at $25.00, 200 at $20.00, and 100 at $30.00 blend to $24.00 over 500 shares. If the price drops to $22.00, the position is down $1,000.00. In every case, the cost basis reflects how much money you actually put in, not a naive average of the prices on your trade confirmations.

Brokers report this blended figure as the cost basis on your tax forms, and it is what you use to calculate capital gains or losses when you sell. The IRS average-basis method for mutual funds works the same way, allowing fund investors to use a single averaged cost basis across all shares rather than tracking individual lots. Whether you are working with individual stocks or mutual funds, the calculation is identical: total dollars invested divided by total shares held.

FAQs

How do you calculate the average price of stock bought at different prices?

Multiply each purchase's shares by its price, add them up and divide by total shares. For example, $7,000.00 / 150 = $46.67. This weighted approach accounts for the different number of shares bought at each price, giving you the true average cost per share across all your purchases.

Why is the average not just the mean of the two prices?

Because the buys are different sizes: 100 shares at $50.00 and 50 at $40.00 average to $46.67, not $45.00. A simple mean treats both prices equally, but you bought more shares at the higher price, so the true average leans toward it. The weighted calculation reflects your actual cost.

What does averaging down mean?

Buying more shares after the price falls so the blended cost drops. In the second example three buys blend to $24.00, though at $22.00 the position is still down $1,000.00. Averaging down lowers your break-even point, but it does not guarantee a profit if the price keeps falling.

How do I find my break-even price?

It is the average price itself: at $46.67 the first example breaks even; above it the position gains, below it loses. Your break-even is simply the weighted average cost per share across all purchases. Any market price above that level means a gain; below it means a loss.

Does the average price include commissions?

For tax cost basis, buy commissions are added to the purchase cost; this calculator works on prices alone, so add fees to the price if you want them included. The calculator gives you the average share price based on the prices you enter, without factoring in trading commissions or other fees.

Can I use this for crypto or funds?

Yes — the same weighted average applies to any asset bought in lots, and the IRS average-basis method for mutual funds is exactly this calculation. Whether you are buying shares of stock, crypto coins, or mutual fund shares, the math for finding your average cost per unit remains the same.

Sources

Related calculators

Dividend Yield Calculator
Dividend yield from share price and annual dividend, your total yearly and monthly dividend income, and your yield on cost at the price you actually paid.
ROI Calculator
Total and annualised return on investment (CAGR) from what you put in, what you got back, and how long it took.
Compound Interest Calculator
How savings or investments grow with compounding at any frequency, plus monthly additions and the effective annual rate.