Enter your buy price, sell price, number of shares, and any fees. Get your profit (or loss) instantly. The calculator shows net profit in dollars, percentage return, total cost, and total revenue with a detailed breakdown.
Calculate stock profit or loss. Free, instant, private.
Calculate Now →It is straightforward math:
Net Profit = (Sell Price × Shares) - (Buy Price × Shares) - Buy Commission - Sell Commission
Or simplified:
Net Profit = (Sell Price - Buy Price) × Shares - Total Fees
| Scenario | Buy | Sell | Shares | Fees | Profit | ROI |
|---|---|---|---|---|---|---|
| Small gain | $25.00 | $28.50 | 100 | $0 | $350.00 | +14.0% |
| Big winner | $150.00 | $220.00 | 50 | $0 | $3,500.00 | +46.7% |
| With fees | $45.00 | $52.00 | 200 | $9.95 each | $1,380.10 | +15.3% |
| Break even | $100.00 | $100.50 | 100 | $50 total | $0.00 | 0.0% |
| Loss | $85.00 | $72.00 | 75 | $0 | -$975.00 | -15.3% |
| Penny stock | $0.50 | $0.85 | 10,000 | $0 | $3,500.00 | +70.0% |
Thinking about selling a position? Enter your buy price (check your broker app for cost basis) and the current market price. See if the profit justifies selling or if you should hold for a better price.
Need to know your exact gain for tax records? Enter the actual buy and sell prices plus any fees. The calculator gives you the precise profit number you need for Schedule D.
Considering a stock at $45 with a price target of $60? Enter hypothetical numbers to see if the potential profit is worth the risk. Try different share quantities to find the right position size.
Which trade was better: 50 shares of Stock A at $100→$130 or 200 shares of Stock B at $25→$31? Run both through the calculator. Stock A: $1,500 (30% ROI). Stock B: $1,200 (24% ROI). Same capital, different returns.
Robinhood, Webull, Fidelity, Schwab, and most major brokers now offer $0 commission on stock trades. But fees still exist:
These are tiny on most trades but add up on large positions. Enter them in the commission fields for exact numbers.
Related: Compound Interest Calculator for growth projections, Percentage Calculator for quick math.