Stock Average Calculator with Fees and Break-Even Price
Find weighted average share cost across purchases, including fees. Estimate unrealized gain or loss and the sale price needed to break even.
Your inputs
Your result
Enter your values, then choose Calculate.
Estimate based on your inputs. Fees, taxes and market changes are included only where explicitly entered.
Calculation breakdown
Method, assumptions and worked example
Average cost = (sum of quantity × purchase price + purchase fees) ÷ total quantity. The calculation supports fractional units. Each nonempty purchase must include positive quantity, nonnegative price and any fee. Do not combine different securities or currencies.
Worked example
Buy 10 shares at 10 and 20 shares at 16, paying 2 in fees on each purchase. Total cost is 424 for 30 shares, so weighted average cost is 14.1333 per share. At a market price of 15 and sale fee of 5, net sale value is 445 and unrealized gain after fees is 21. Break-even sale price is 14.30.
A simple average of the two prices would be 13 and would be wrong because the second purchase has twice as many shares. Fees also make a sale slightly above the fee-free average unprofitable.
Scope
This is a position-cost planner, not a tax-lot or capital-gains report. It does not process previous sales, stock splits, reinvested dividends, wash-sale adjustments, currency conversions or short positions. Adjust quantities and costs to a consistent current share basis before using historical purchases.
Frequently asked questions
Can this average crypto or fund purchases?
Yes, if all rows represent the same asset in one currency. Exchange conversions and tax basis adjustments are not calculated.
Does averaging down remove risk?
No. A lower average purchase price does not predict recovery or limit future losses.
Sources and review
Formula and content reviewed on 9 October 2026. Examples are hypothetical. Tax years and model limits are stated above; this page does not receive live rates.