ToolNest logoToolNest.

Free Stock Profit Calculator

Last updated: October 18, 2026

Quick answer: The gain on the screen isn't the gain in your pocket — commissions, fees, and dividends all move the real number. This free stock profit calculator computes your net profit, return on investment (ROI %), and breakeven price per share from the buy price, sell price, number of shares, broker commissions, and any dividends received. It answers the two questions that matter before you sell: 'what do I actually take home?' and 'at what price do I break even?' Private, instant, no signup.

✓ Free forever  ·  ✓ No signup  ·  ✓ Tool inputs stay in your browser — never sent to our servers.

How to Use the Stock Profit Calculator

  1. Enter the price per share you bought at, the price you sold (or plan to sell) at, and the number of shares.
  2. Add your broker commissions for the buy and the sell — flat fees and per-trade charges both count.
  3. Add any dividends received while holding, if you want total return rather than price gain alone.
  4. Click 'Calculate profit' — net profit, ROI %, and your breakeven price per share appear instantly.

Why Use Our Stock Profit Calculator?

Common Use Cases

Stock Profit Calculator vs Alternatives

Bottom line: your broker owns the official record of what happened. For the question you're actually asking — 'what do I take home if I sell here, and where do I break even?' — a focused calculator beats digging through the broker's menus.

Frequently Asked Questions

How do you calculate stock profit?
Profit = (sell price − buy price) × shares − buy commission − sell commission + dividends. ROI = net profit ÷ total cost × 100. Example: 100 shares bought at $50 and sold at $70 with $10 total commissions → ($70 − $50) × 100 − $10 = $1,990 profit, a 39.7% return on the $5,010 invested.
What is the breakeven price?
The per-share sale price at which the trade makes exactly $0: (buy price × shares + buy commission + sell commission − dividends) ÷ shares. Anything above it is profit. Knowing it before you set a limit order is the difference between a planned exit and a hopeful one.
Should I include dividends in the calculation?
If you want your total return, yes — a stock that paid $200 in dividends and gained $1,000 in price returned $1,200, not $1,000. The calculator adds them separately so you can see the price gain and the total side by side. Reinvested (DRIP) dividends complicate the cost basis; treat this as an estimate there.
How do broker fees change the math?
Flat commissions hit small trades hardest: $10 in round-trip fees on a $500 trade is a 2% headwind before the stock moves. Zero-commission brokers removed this for most US retail trades, but options contracts, foreign stocks, and some platforms still charge — enter whatever your broker takes.
What about taxes on the profit?
Not included — and deliberately so. Short-term vs long-term capital gains rates, your bracket, and your country all change the answer. Treat the net profit here as pre-tax; your accountant (or your broker's tax documents) handles the rest.
Can I model multiple buys at different prices?
Not in one run — this calculator models a single lot. For multiple purchases, use your average cost per share as the buy price (total spent ÷ total shares). FIFO/LIFO lot accounting for taxes is a separate question your broker tracks.
Is ROI the same as annualized return?
No. ROI is the total return over the whole holding period — 40% over 4 years is 40% ROI but roughly 8.8% annualized. For comparing trades held different lengths, convert with the CAGR formula: (1 + ROI)^(1/years) − 1.