Stock Average Calculator

Stock Average Calculator

Leading AI Skill PRO

Enter Calculation

More purchases (6 to 10)

Formula

Average Price=Price 1×Qty 1+Price 2×Qty 2Qty 1+Qty 2\text{Average Price} = \frac{\text{Price 1} \times \text{Qty 1} + \text{Price 2} \times \text{Qty 2}}{\text{Qty 1} + \text{Qty 2}}

Example

Average Price=100×10+120×1510+15=112.00\text{Average Price} = \frac{100 \times 10 + 120 \times 15}{10 + 15} = 112.00
Usage stats

Advertisement

Results

Average Stock Price

$112.00

Details Values
Purchase 1 10 × $100.00 = $1,000.00
Purchase 2 15 × $120.00 = $1,800.00
Total Shares 25
Total Investment $2,800.00

Report an error on this page

What Is the Stock Average Calculator?

The Stock Average Calculator works out the true average price you have paid for a stock when you buy the same company's shares at two different prices. This is often called "averaging down" (when the second purchase is cheaper) or "averaging up" (when it's more expensive). Instead of guessing your blended cost, the calculator gives you an exact figure based on how many shares you bought at each price. It works with any currency, so it's useful for investors anywhere — just enter your own price and quantity values.

The Inputs You Provide

  • Stock Price 1 — the price per share of your first purchase.
  • Quantity 1 — the number of shares bought in that first purchase.
  • Stock Price 2 — the price per share of your second purchase.
  • Quantity 2 — the number of shares bought in that second purchase.

Quantities are treated as whole numbers of shares, while prices can include decimals.

The Formula Explained

The calculator uses a weighted average — not a simple average of the two prices — because the number of shares at each price affects your real cost:

$$\text{Average Price} = \frac{\text{Price 1} \times \text{Qty 1} + \text{Price 2} \times \text{Qty 2}}{\text{Qty 1} + \text{Qty 2}}$$

Behind the scenes it calculates your total cost (the money spent on both lots combined) and your total quantity (all shares held), then divides total cost by total quantity. The result is your average cost per share.

Advertisement
Diagram showing two stock purchases combining into one weighted average price
The average price is the total amount invested divided by the total shares held.

Worked Example

Suppose you first buy 10 shares at a price of 100, then buy 20 more shares when the price drops to 70.

  • First lot cost: \(100 \times 10 = 1{,}000\)
  • Second lot cost: \(70 \times 20 = 1{,}400\)
  • Total cost: \(1{,}000 + 1{,}400 = 2{,}400\)
  • Total shares: \(10 + 20 = 30\)
  • Average price: \(2{,}400 \div 30 = \) 80

So your average buying price is 80 per share — lower than your first price of 100, because the bigger, cheaper purchase pulled your average down.

Number line showing two purchase prices and the resulting weighted average closer to the larger quantity
The weighted average sits closer to the price where more shares were bought.

Interpreting Your Average Price Result

The number this calculator returns is your weighted average cost per share — the total money you put into the position divided by the total number of shares you hold. It is a cost figure only: it reflects the share prices and quantities you entered in Price 1, Qty 1, Price 2 and Qty 2, and it does not include commissions, exchange or regulatory fees, currency conversion costs, or taxes.

Formally, the result is:

$$\text{Average Price} = \frac{P_1 Q_1 + P_2 Q_2}{Q_1 + Q_2}$$

What you can do with the number

  • Unrealized gain or loss. Multiply the difference between the current market price and your average price by the total number of shares: \((P_{\text{market}} - P_{\text{avg}}) \times (Q_1 + Q_2)\). If you bought 20 shares at an average of 85 and the stock now trades at 92, the paper profit is \((92 - 85) \times 20 = 140\). Nothing is realized until you actually sell.
  • Break-even price. Your average price is the price at which the position would sell for exactly what you paid — excluding commissions, the bid–ask spread, and any tax on gains. Once those costs are added, your true break-even sits slightly above the calculated average.
  • A sanity check on the number itself. The weighted average always falls between the two purchase prices, and it sits closer to the price of the lot with more shares. If your answer lands outside that range, an input is wrong.

Averaging down: what the number does and does not tell you

Buying more shares at a lower price pulls the average down, which lowers the break-even price. But it also raises the total capital at risk and the total share count, so every further move in the stock — up or down — now affects a larger position in absolute dollars. A lower average price is not the same as a safer position, and it says nothing about why the price fell.

Cost basis for tax purposes may differ

The average produced here is a simple weighted average of the lots you entered. The cost basis your broker reports for tax is determined by your jurisdiction's rules and your elected accounting method — commonly FIFO (first-in, first-out), LIFO, specific identification, or a mandated average-cost method — and these differ by country and sometimes by security type. In the United States, for example, average cost is generally permitted for mutual fund and certain dividend-reinvestment shares but not as a free choice for ordinary stock lots, whereas some other jurisdictions require pooled average cost. Always use your broker's or tax authority's figures when filing, not this estimate.

This page is general information for calculating a cost figure — it is not investment, tax, or financial advice. An average price is a record of what you paid; it is not a prediction of future value and carries no implication that a stock will return to it. Consider consulting a licensed professional for decisions about your own portfolio.

Average Price Across Common Scenarios

Each row below uses the same formula — total cost divided by total shares. Prices are shown in generic currency units; the arithmetic is identical in any currency.

Scenario Price 1 × Qty 1 Price 2 × Qty 2 Total Cost Total Shares Average Price Change vs Price 1
Averaging down, equal lots 100 × 10 = 1,000 70 × 10 = 700 1,700 20 85.00 −15.00 (−15%)
Averaging down, heavy second lot 100 × 10 = 1,000 70 × 30 = 2,100 3,100 40 77.50 −22.50 (−22.5%)
Averaging down, small second lot 100 × 50 = 5,000 70 × 5 = 350 5,350 55 ≈ 97.27 ≈ −2.73 (−2.7%)
Averaging up, equal lots 50 × 100 = 5,000 80 × 100 = 8,000 13,000 200 65.00 +15.00 (+30%)
Averaging up, small add 50 × 100 = 5,000 80 × 20 = 1,600 6,600 120 55.00 +5.00 (+10%)

Worked example, step by step

Take row 2. You bought 10 shares at 100, then added 30 shares at 70:

$$\text{Average Price} = \frac{100 \times 10 + 70 \times 30}{10 + 30} = \frac{1{,}000 + 2{,}100}{40} = \frac{3{,}100}{40} = 77.50$$

The second purchase was three times the size of the first, so the average lands much closer to 70 than to 100. Compare that with row 3, where the price gap is exactly the same 30 units but the added lot is only 5 shares against an existing 50 — the average barely moves, from 100 to about 97.27.

Takeaway: it is lot size, not the price gap alone, that determines how far your average moves; a big discount on a tiny number of shares changes your cost basis very little.

Advertisement

Key Terms Explained

Average cost per share (cost basis per share)
The output of this calculator: total money invested divided by total shares owned. It is what each share cost you on average, before fees and taxes.
Weighted average
An average in which each price counts in proportion to the number of shares bought at it. This is why Qty 1 and Qty 2 matter as much as the prices — a simple midpoint of the two prices is only correct when the two lots are equal in size.
Total cost (total capital invested)
The numerator of the formula: \(P_1 Q_1 + P_2 Q_2\), the full amount you have committed to the position across both purchases.
Total quantity
The denominator: \(Q_1 + Q_2\), the combined number of shares you hold after both purchases.
Averaging down
Buying additional shares at a price below your existing average — entering a Price 2 lower than Price 1. It lowers the average price but increases the total amount of money exposed to the stock.
Averaging up
Buying additional shares at a price above your existing average — a Price 2 higher than Price 1. The average rises, which raises the break-even price on the whole position.
Break-even price
The market price at which selling everything returns exactly what you paid. It equals the calculated average price when trading costs are ignored, and sits a little higher once commissions, spreads and taxes are counted.
Unrealized gain or loss
The paper profit or loss on shares you still hold: (current price − average price) × total shares. It becomes realized — and generally taxable — only when you sell.
Commission / brokerage fee
What your broker charges to execute a trade, plus any exchange, clearing or regulatory charges. These are not included in this calculator's inputs; to approximate a fee-inclusive basis, add the fee to a lot's cost before dividing.
Lot
A single purchase transaction at one price. Each price-and-quantity pair in this tool represents one lot; brokers track lots individually because tax rules such as FIFO or specific identification operate on them.

Frequently Asked Questions

Why not just average the two prices? A plain average of 100 and 70 would give 85, but that ignores that you bought twice as many shares at 70. The weighted average of 80 reflects your real money outlay.

Does this include broker fees or taxes? No. The calculator uses only your share prices and quantities. If you want your true break-even cost, add any commissions or charges to your purchase amounts before entering them.

Can I use it for averaging up? Yes. Whether your second purchase is higher or lower than the first, the formula returns the correct blended cost per share.

Last updated:

Most popular in Financial

View all Financial calculators