Stock Sell Calculator
“I bought at $50 and sold at $80” sounds like a $30 per share gain. Then the brokerage statement arrives: buy commission, sell commission, and suddenly the gain is smaller than the story. Add dividends received while holding, and the true number moves again. Most investors never compute the real figure; they remember the prices and forget the plumbing.
The Stock Sell Calculator below reconstructs the full sale: total cost basis including buy fees, net proceeds after sell fees, dividends added back, realized profit or loss, ROI, profit per share, and the break-even sell price most tools skip. It answers the sale side of the trade completely.
Quick Answer
- Quick Answer
- What “selling a stock” actually nets you
- Worked example, checked against this exact tool
- The break-even price traders forget
- Short-term vs long-term: why holding period changes the after-tax answer
- What competing calculators miss
- Frequently asked questions
- Add This Calculator to Your Website
- References
What “selling a stock” actually nets you
The sale side of a trade has six moving parts, and retail investors routinely track two. The full accounting:
Net proceeds = sell price x shares – sell fees + dividends received
Net profit = net proceeds – total cost
Break-even sell price = (buy price x shares + buy fees + sell fees – dividends) / shares
Counts toward your result
- Buy price x shares
- Commissions on the buy
- Commissions on the sell
- Dividends received while holding
- Any other transaction costs
Does not count (yet)
- Capital gains tax (computed separately after the sale)
- Opportunity cost of the capital
- Inflation over the holding period
- Unrealized gains on shares you still hold
Worked example, checked against this exact tool
| Figure | Value | How |
|---|---|---|
| Total cost | $5,010.00 | 50 x 100 + 10 |
| Net proceeds | $8,015.00 | 80 x 100 – 10 + 25 |
| Net profit | $3,005.00 | 8,015 – 5,010 |
| ROI | 59.98% | 3,005 / 5,010 |
| Profit per share | $30.05 | 3,005 / 100 |
| Break-even sell price | $49.95 | (5,000 + 10 + 10 – 25) / 100 |
Enter the pre-filled values and the tool reproduces every line. The naive “$30 per share” story overstates the gain by $0.05 a share here; on larger positions with percentage-based broker fees, the gap is far wider. For fractional share positions, the same six-part math applies with fractional share counts.
The break-even price traders forget
Break-even is the sell price at which the trade nets exactly zero, and it is the most underused number in retail trading. Notice it sits below the buy price here ($49.95 vs $50.00) because the $25 of dividends already received covers part of the cost. Every dividend payment quietly lowers your break-even; every fee raises it. Before entering any trade, compute the break-even and place it on the chart: it is the line the stock must stay above for you to win. If your dividend income is substantial, break-even can sit several percent below your entry, which changes stop-loss placement entirely.
Short-term vs long-term: why holding period changes the after-tax answer
The calculator reports pre-tax profit, but the tax bill on that profit depends on how long you held. In the US, gains on assets held one year or less are taxed as ordinary income (your marginal rate, up to 37%), while gains on assets held more than one year qualify for long-term capital gains rates (0%, 15%, or 20% for most taxpayers). On the worked example’s $3,005 profit, the difference between a 32% short-term rate and a 15% long-term rate is $511 in tax.
This is why the calendar matters as much as the price chart. Selling on day 364 versus day 366 can change the after-tax outcome by hundreds of dollars on a modest position. If you are close to the one-year mark and the investment thesis is intact, waiting is often the highest-return trade available. Run the pre-tax profit from the calculator above through a capital gains tax calculator with your bracket and holding period to see your specific number.
What competing calculators miss
Dividends ignored. Most stock profit tools compute (sell – buy) x shares and stop. Dividends received are part of total return: ignoring $25 here understates the outcome by nearly a percent. Ours adds them as a first-class input.
Buy and sell fees lumped or skipped. Tools that include fees usually offer one fee field. Buy-side and sell-side fees enter the math differently (one raises cost basis, the other reduces proceeds), and separating them keeps the break-even exact.
No break-even price. We checked: the top-ranking stock profit calculators show profit and ROI but not the break-even sell price, arguably the most actionable number for managing an open position. Ours leads with it in the results.
Taxes presented as part of the trade. A few tools subtract estimated tax inside the profit figure, mixing a trade outcome with a personal tax situation. We keep the trade math clean and pre-tax, then point you to the capital-gains step, because tax depends on holding period and bracket, not on the trade.
Key takeaways
- True profit = (sell x shares – sell fees + dividends) – (buy x shares + buy fees).
- 100 shares, $50 to $80, $25 dividends, $10 fees/side: $3,005 profit, 59.98% ROI.
- Break-even was $49.95, below the buy price, because dividends covered part of the cost.
- Keep trade math pre-tax; handle capital gains as a separate step.
Frequently asked questions
Net profit = (sell price x shares – sell fees + dividends received) – (buy price x shares + buy fees). The fees and dividends are what separate the real number from the “sell minus buy” shortcut.
The per-share price at which the trade nets exactly zero: (buy price x shares + buy fees + sell fees – dividends) / shares. Sell above it for profit, below it for a loss. Dividends you already received lower it below your buy price.
Yes. Total return is price appreciation plus income. A stock that went nowhere on price but paid 4% annually for five years returned over 20% on dividends alone. Excluding them understates buy-and-hold outcomes systematically.
No, and deliberately: capital gains tax depends on your holding period (short vs long term), your bracket, and your jurisdiction. Per IRS Publication 550, compute the pre-tax profit here, then apply your tax situation as a second step.
Enter only the shares sold, with the buy price as your average cost per share across all lots. The remaining shares keep their unrealized gain separate. For precise lot-level accounting (FIFO vs specific identification), your broker’s cost-basis report is authoritative.
If you sell at a loss and repurchase a substantially identical security within 30 days before or after, the IRS disallows the loss deduction and adjusts your cost basis instead. This calculator reports the economic loss; the tax treatment follows the wash-sale rules in IRS Publication 550.
Add This Calculator to Your Website
References
- U.S. Securities and Exchange Commission, “Investor Bulletin: Understanding Investment Returns” – how returns are calculated. SEC Investor Education. Accessed October 19, 2026.
- Internal Revenue Service, “Publication 550, Investment Income and Expenses” – capital gains, dividends, wash sales. IRS Publication 550. Accessed October 19, 2026.
- FINRA, “Stocks” – investor education on equity mechanics and costs. FINRA: Stocks. Accessed October 19, 2026.
- U.S. Securities and Exchange Commission, “Capital Gains, Losses, and Sale of Home” – tax treatment of sales. IRS Topic 409: Capital Gains and Losses. Accessed October 19, 2026.
- Morningstar, “Cost Basis” – investor education on tracking investment costs. Morningstar: Cost Basis. Accessed October 19, 2026.
