stock profit calculator icon — free online stock profit calculator

Stock Profit Calculator — Gains, Losses & ROI

Before you sell, know your numbers. Our free stock profit calculator estimates your net gain or loss and ROI from any trade — enter purchase and sale details, including broker fees, and get instant results.

📈 Stock Profit / Loss

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

  1. Enter your buy price per share and sell price per share.
  2. Enter the number of shares in the trade.
  3. Add total broker fees or commissions (enter 0 if none).
  4. Click Calculate to see net profit/loss and ROI.
  5. 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:

MetricCalculationResult
Total cost100 × $45$4,500
Total proceeds100 × $62.50$6,250
Gross profit$6,250 − $4,500$1,750
Net profit$1,750 − $10 fees$1,740
ROI$1,740 ÷ $4,50038.7%

Prefer income over trading? Estimate payouts with our dividend calculator.

Sources & further reading

Frequently asked questions

How do I calculate stock profit?
Subtract total cost (buy price × shares + fees) from total proceeds (sell price × shares). The difference is your net profit.
What is a good ROI on stocks?
The long-run stock market average is roughly 7–10% per year after inflation. Individual results vary widely.
Do I pay tax on stock profits?
In most countries, yes — capital gains tax applies. Rates often depend on how long you held the shares.
What is the break-even price for my shares?
The sell price where profit equals zero after fees: (buy price × shares + total fees) ÷ shares.
What is the difference between short-term and long-term capital gains?
In the US, profits on assets held one year or less are taxed as ordinary income; longer holdings get preferential long-term rates.
What is the wash-sale rule?
In the US, if you sell at a loss and rebuy the same or a substantially identical security within 30 days before or after, the IRS disallows the loss for now and adds it to the cost basis of the replacement shares.
Should I include dividends in my profit calculation?
For total return, yes — add dividends received to your capital gain. This calculator covers price profit; estimate payouts with our dividend calculator.