Stock Profit Calculator — Shares Gain & Loss
Commission on both sides of a stock trade can quietly turn a paper gain into a break-even — especially on smaller positions. Enter buy price, sell price, number of shares, and broker commissions to get exact gross profit, total fees, net profit, and ROI to the cent. Accurate and ready to paste directly into your trading journal after every trade.
Updated · Reviewed by Foysal Mostafa
Leave 0 for zero-commission brokers
✓ Profitable Trade
Net Profit
+$1,500.00
ROI
+30.00%
Total Invested
$5,000.00
Total Commission
$0.00
Why Use the Stock Profit Calculator?
A stock trade that looks profitable on the raw price difference may not be after both sides of commission are included. This calculator shows your true net profit after all fees, your exact ROI on invested capital, and your percentage gain — giving you an honest performance record for every trade in your journal.
Formula Used
Net Profit = (Sell Price − Buy Price) × Shares − Total Commission | ROI = Net Profit ÷ Total Cost × 100Worked Example
Bought 200 shares of AAPL at $175.00, sold at $192.50. Commission: $0 (zero-commission broker). Gross profit = ($192.50 − $175.00) × 200 = $3,500. Net profit = $3,500. ROI = $3,500 ÷ ($175.00 × 200) × 100 = 10%. If broker charged $9.99 each way: net = $3,500 − $19.98 = $3,480.02. ROI = 9.94% — commissions cost 0.06% of ROI on this larger trade but hit much harder on small positions.
How to Use the Stock Profit Calculator — Step by Step
- 1
Enter your buy price
Input the price per share at which you bought the stock.
- 2
Enter your sell price
Input the price per share at which you sold or plan to sell the stock.
- 3
Enter number of shares
Input how many shares you bought.
- 4
Enter commissions
Input the broker commission for buying and selling. Many modern brokers charge $0, but some charge per trade or per share.
- 5
Read your net profit and ROI
The calculator shows gross profit, total commission paid, net profit after fees, your ROI percentage, and the total capital you invested.
What Your Stock Profit Calculator Results Mean
Gross Profit
The raw profit from the price difference times shares, before any broker commissions are deducted. This is what you made before costs.
Net Profit
Your actual take-home profit after all commissions on both the buy and sell sides. This is the number that matters for your trading journal and tax records.
ROI %
Return on investment — net profit as a percentage of total capital invested (buy price × shares + buy commission). Use ROI to compare performance across trades of different sizes on equal terms.
Stock Profit Calculator — Frequently Asked Questions
Q.How do I calculate profit on a stock trade?
Net Profit = (Sell Price − Buy Price) × Number of Shares − Total Commissions. For example: bought 100 shares at $50, sold at $65, with $9.99 commission each way → Gross profit = (65−50) × 100 = $1,500. Net profit = $1,500 − $19.98 = $1,480.02.
Q.What is ROI in stock trading?
ROI (Return on Investment) = Net Profit ÷ Total Amount Invested × 100. If you invested $5,000 and made a net profit of $1,480, your ROI = 1,480 ÷ 5,000 × 100 = 29.6%. ROI lets you compare performance across trades of different sizes.
Q.How do broker commissions affect stock profits?
Commissions reduce your net profit directly. On a small trade, commissions can eat a significant percentage of your gains. For example, $19.98 in commissions on a $500 trade = almost 4% cost before the stock even moves. This is why many traders now use zero-commission brokers like Robinhood, Webull, or Fidelity.
Q.How do I calculate stock profit percentage?
Profit % = (Net Profit ÷ Total Cost) × 100. Total cost = Buy Price × Shares + Buy Commission. This is more accurate than just comparing prices because it accounts for what you actually spent including fees.
Q.How do broker commissions affect stock trading profit?
Commissions directly reduce your net profit. On a $5,000 position with $10 commission each way, your $20 total cost means you need the stock to rise 0.4% ($20 ÷ $5,000) just to break even. On smaller positions the impact is larger — a $500 trade with $10 commission needs a 4% gain to break even. This is why commission-free brokers (Robinhood, Webull, etc.) are significant for active small-account traders.
About the Author

Forex Trader & Software Developer · Founder, TradeCalc
Active forex trader since 2019, specializing in risk management and systematic position sizing. Built TradeCalc to replace manual spreadsheets used in live trading. Every calculator is cross-verified against broker platforms before publishing.
More Stocks Calculators
Profit / Loss Calculator
Free profit and loss calculator for forex, stocks, and crypto. Enter your entry price, exit price, and position size to instantly see your exact P&L in dollars and pips.
Compounding Calculator
Free trading compounding calculator for forex, binary options & crypto. Enter starting balance, % gain per trade, and periods to see your account grow.
Break-Even Calculator
Calculate your break-even price after broker fees, spread, and commissions for any trade. Know exactly what price you need to reach to cover your trading costs.
Gain & Loss % Calculator
Calculate the percentage gain or loss on your trading account. Enter your starting and ending balance to see exact % change, dollar amount, and recovery needed.