What is Stock Profit/Loss & ROI Calculator?
Understanding your true profit or loss on stock trades requires accounting for more than just the price difference. Broker commissions, fees, and other transaction costs can significantly impact your returns, especially for frequent traders or smaller positions.
Our stock profit/loss calculator computes both gross profit (the raw price difference) and net profit (after all commissions). It supports both percentage-based and fixed-dollar commission models, so you can accurately model your broker's fee structure. The ROI calculation helps you compare the efficiency of different trades regardless of position size.
Whether you're evaluating a completed trade, planning an exit, or comparing different entry/exit scenarios, this calculator gives you the complete financial picture including the often-overlooked impact of transaction costs.
Steps:
- Enter the price per share you paid to buy the stock.
- Enter the price per share you plan to sell (or already sold) at.
- Input the number of shares in your position.
- Set your broker's buy and sell commission rates (percentage or fixed).
- Review your gross profit, net profit, ROI, and break-even price.
Formula
Gross Profit = (Sell Price − Buy Price) × Shares
Buy Commission Amount = Buy Price × Shares × Buy Commission % (or fixed amount)
Sell Commission Amount = Sell Price × Shares × Sell Commission % (or fixed amount)
Total Cost = Buy Price × Shares + Buy Commission
Total Revenue = Sell Price × Shares − Sell Commission
Net Profit = Gross Profit − Buy Commission − Sell Commission
ROI = (Net Profit ÷ Total Cost) × 100
Break-Even Price = (Buy Price × Shares + Buy Commission + Sell Commission) ÷ Shares
Use Cases
- Stock traders evaluating completed trade performance
- Investors planning exit strategies with commission awareness
- Day traders calculating net returns after frequent trading fees
- Portfolio managers comparing trade efficiency across positions
Key Benefits
- See true net profit after all transaction costs
- Compare percentage vs fixed commission models
- Calculate ROI for trade efficiency comparison
- Identify break-even price for risk management
Pro Tips
- Always calculate net profit, not just gross profit
- Use ROI to compare trades of different sizes fairly
- Factor in all fees — commissions, SEC fees, exchange fees
- Track your break-even price before entering any trade
Common Mistakes to Avoid
- Ignoring commissions when calculating trade profitability
- Using gross profit instead of net profit for performance tracking
- Not accounting for both buy and sell side fees
- Comparing trades without normalizing for position size (use ROI)
Key Terms Explained
- Gross Profit: Price difference × shares before commissions
- Net Profit: Actual profit after all transaction costs
- ROI: Return on Investment as a percentage of total cost
- Break-Even Price: Minimum sell price to cover all costs
Related Concepts
- Stock Break-Even Calculator – Find minimum sell price
- Stock Average Down Calculator – Lower your cost basis
- ROI Calculator – Enterprise-grade return analysis
Example
You bought 100 shares at $150 each with a 0.5% buy commission. You sell at $175 with a 0.5% sell commission. Gross Profit = ($175−$150) × 100 = $2,500. Buy Commission = $15,000 × 0.5% = $75. Sell Commission = $17,500 × 0.5% = $87.50. Net Profit = $2,500 − $75 − $87.50 = $2,337.50. ROI = $2,337.50 ÷ $15,075 × 100 = 15.51%.

