Stock Average Cost Calculator
Average cost per share across up to 5 purchases, your profit or loss today, and how many shares it takes to average down to a target.
OpenSee what a stock trade made you, after fees and tax.
Your results
Profit
+$1,20024% return on $5,000 invested.
You keep about $1,020 after an estimated 15% long-term tax.
Estimates based on your inputs and the assumptions listed below. Not tax, financial or lending advice. Disclaimer
100 shares bought at $50.00 and sold at $62.00.
Each row moves the sell price up or down from what you paid. Fees and your tax rate stay the same.
| Sell price | Change | Profit | Return | After tax |
|---|---|---|---|---|
| $35.00 | -30% | -$1,500 | -30% | -$1,500 |
| $40.00 | -20% | -$1,000 | -20% | -$1,000 |
| $45.00 | -10% | -$500 | -10% | -$500 |
| $50.00 | 0% | $0 | 0% | $0 |
| $55.00 | +10% | +$500 | 10% | +$425 |
| $60.00 | +20% | +$1,000 | 20% | +$850 |
| $65.00 | +30% | +$1,500 | 30% | +$1,275 |
| $75.00 | +50% | +$2,500 | 50% | +$2,125 |
| $100.00 | +100% | +$5,000 | 100% | +$4,250 |
Cost = 100 x $50.00 + $0.00 fees = $5,000.00.
Proceeds = 100 x $62.00 - $0.00 fees = $6,200.00.
Profit = proceeds - cost = +$1,200. Return = profit / cost = 24%.
Short answer
Stock profit is the number of shares times the difference between your sell and buy price, minus commissions. Divide the profit by what you paid to get your return. If you held more than one year, the gain is long-term and usually taxed at a lower rate.
Buying 100 shares at $50.00 and selling at $62.00 gives a profit of $1,200, a 24% return, or +$1,020 after an estimated 15% tax.
Cost = shares x buy price + buy fees. Proceeds = shares x sell price - sell fees. Profit = proceeds - cost. Return = profit / cost. Break-even price = (cost + sell fees) / shares. Tax = profit x your capital gains rate (only on a profit).
Multiply the shares by the sell price, subtract fees, then subtract what you paid including fees. The result is your profit or loss.
The sell price at which you neither gain nor lose after commissions: what you paid plus selling fees, divided by the number of shares.
Gains on shares held more than one year are long-term and taxed at 0%, 15% or 20% federally, depending on income. Shares held one year or less are short-term and taxed as ordinary income.
Capital losses offset capital gains. If losses are larger, up to $3,000 a year ($1,500 if married filing separately) can offset other income, and the rest carries forward.
Formulas and figures last checked Nov 5, 2026.
Go deeper
Average cost per share across up to 5 purchases, your profit or loss today, and how many shares it takes to average down to a target.
OpenFederal and state tax on a sale, short-term vs. long-term, your 0% bracket room and the 3.8% surtax.
OpenTotal return (ROI) and annualized return (CAGR) on any investment, counting money you added or took out and cash dividends.
Open