Stock Average Price Calculator

Bought the same stock at different prices? Your real cost basis is the weighted average of every lot — not the simple midpoint. See it, your breakeven, and exactly how many shares it takes to average down to any target.

Your inputs

$
$
$
$
$
$
$
Weighted average price
—
Total shares
—
Total cost basis
—
what you paid
Current market value
—
Unrealized P&L
—
Breakeven price
—
before commissions

Your lots

LotSharesBuy priceCostShare of position

The math: weighted, not simple, average

Your average cost is total dollars paid ÷ total shares owned. The price of each lot is weighted by how many shares you bought at it — a 1,000-share lot at $30 drags the average far more than a 10-share lot at $50. The simple midpoint of your buy prices is only correct when every lot is the same size.

Average = (s₁×p₁ + s₂×p₂ + …) ÷ (s₁ + s₂ + …)
Breakeven ≈ average (before commissions)
Shares to reach target = (total cost − target × total shares) ÷ (target − buy price)

Worked example

100 shares at $50 ($5,000) and 100 shares at $30 ($3,000): $8,000 ÷ 200 shares = $40.00 average. At a $35 market price the position is worth $7,000 — a −$1,000 (−12.5%) unrealized loss, and you need $40 to break even. To average down to $38 buying at $25: (8,000 − 38×200) ÷ (38 − 25) = 400 ÷ 13 ≈ 30.77 shares.

Averaging down: the honest tradeoff

Educational purposes only — not financial advice. Commissions, fees, and taxes are not included in the average. Consult a tax professional for cost-basis reporting.