Skip to main content
Advertisement
StocksFree

Stock Profit Calculator — Shares Gain & Loss

The stock profit calculator gives you the exact net profit or loss on any stock trade after accounting for broker commissions. Simply enter your buy price, sell price, number of shares, and commission fees on both sides of the trade — the calculator instantly shows your gross profit, total commission cost, net profit, return on investment (ROI), and percentage gain or loss. Use this before every trade to set realistic profit targets and after every trade to accurately track your performance.

Updated August 7, 2026

Stock Profit CalculatorResults update instantly
$
$
$

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

Gross Profit+$1,500.00
Gross Proceeds$6,500.00
Net Profit = (Sell Price − Buy Price) × Shares − Total Commission | ROI = Net Profit ÷ Total Cost × 100

How to Use the Stock Profit Calculator — Step by Step

  1. 1

    Enter your buy price

    Input the price per share at which you bought the stock.

  2. 2

    Enter your sell price

    Input the price per share at which you sold or plan to sell the stock.

  3. 3

    Enter number of shares

    Input how many shares you bought.

  4. 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. 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.

About the Stock Profit Calculator

The stock profit calculator gives you the exact net profit or loss on any stock trade after accounting for broker commissions. Simply enter your buy price, sell price, number of shares, and commission fees on both sides of the trade — the calculator instantly shows your gross profit, total commission cost, net profit, return on investment (ROI), and percentage gain or loss. Use this before every trade to set realistic profit targets and after every trade to accurately track your performance.

This free stock profit calculator works directly in your browser — no download, no registration, and no delay. All calculations are performed client-side, so your trading data is never transmitted to a server.

The formula used is: Net Profit = (Sell Price − Buy Price) × Shares − Total Commission | ROI = Net Profit ÷ Total Cost × 100. This is the same formula used by professional traders and institutional risk managers worldwide.

Supported asset classes include: Stocks. Each asset class applies the correct unit conventions so results are always accurate regardless of the market you are trading.

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.

Advertisement