How the stock profit calculator works
Net profit = (sell price − buy price) × shares − fees. ROI expresses that profit as a percentage of your original cost. The calculator deducts commissions so you see your true net result — a trade that looks like a 20% gain can net far less after fees.
Two costs investors forget:
- Break-even price: the sell price at which profit hits zero after fees. With $20 in total commissions on 100 shares bought at $50, you need $50.20 just to break even.
- Capital gains tax: not included here, but material. In the US, gains on stocks held under a year are taxed as ordinary income (short-term); holdings over a year qualify for lower long-term rates (0%, 15% or 20%). Losses can offset gains, and up to $3,000 of net loss can offset ordinary income per year.
Tax rules differ by country and change over time — confirm with a tax professional. Not investment advice.
How to use the stock profit calculator
- Enter your buy price per share and sell price per share.
- Enter the number of shares in the trade.
- Add total broker fees or commissions (enter 0 if none).
- Click Calculate to see net profit/loss and ROI.
- Remember taxes are excluded — factor in capital gains for your country.
Worked example
You buy 100 shares at $45, sell at $62.50, and pay $10 in total broker fees:
| Metric | Calculation | Result |
|---|---|---|
| Total cost | 100 × $45 | $4,500 |
| Total proceeds | 100 × $62.50 | $6,250 |
| Gross profit | $6,250 − $4,500 | $1,750 |
| Net profit | $1,750 − $10 fees | $1,740 |
| ROI | $1,740 ÷ $4,500 | 38.7% |
Prefer income over trading? Estimate payouts with our dividend calculator.