Calculate your net profit, ROI, and total returns including broker commissions on both buy and sell sides. Free stock trading calculator.
Loading calculator...
Did this calculator help you?
What is Stock Profit/Loss 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.
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%.
Frequently Asked Questions
What is the difference between gross profit and net profit?
Gross profit is simply (sell price − buy price) × shares — the raw price difference. Net profit subtracts all commissions and fees from the gross profit. Net profit is what you actually keep. For example, a $500 gross profit with $25 in buy commissions and $25 in sell commissions equals $450 net profit.
How are broker commissions calculated?
Commissions can be charged as a percentage of the trade value (e.g., 0.5% of the total) or as a fixed flat fee per trade (e.g., $5 per trade). This calculator supports both methods. Many modern brokers offer zero-commission trading, but some still charge fees, especially for international markets or options.
What is ROI and how is it calculated?
ROI (Return on Investment) = (Net Profit ÷ Total Cost) × 100. Total Cost includes your purchase price plus buy commission. A positive ROI means you made money; negative means you lost. For example, investing $5,000 and earning $500 net profit gives an ROI of 10%.
Do I need to pay taxes on stock profits?
In most countries, yes. Short-term capital gains (held less than a year) are typically taxed as ordinary income. Long-term gains (held over a year) often receive preferential tax rates. Always consult a tax professional for your specific situation, as tax laws vary by jurisdiction.
How does this calculator handle short selling?
This calculator is designed for long positions (buy first, sell later). For short selling, the math is reversed — you profit when the price drops. Use the same inputs but expect a negative gross profit if sell price is below buy price.
What break-even price do I need?
Break-even price = (Buy Price × Shares + Buy Commission + Sell Commission) ÷ Shares. This is the minimum price you need to sell at to cover all costs. The calculator shows this automatically in the results.
Are there hidden costs beyond commissions?
Yes. Additional costs may include: SEC fees (small fraction of sale value), exchange fees, spread costs (difference between bid and ask), slippage (difference between expected and actual fill price), and margin interest if trading on borrowed money.
How do I calculate profit percentage vs dollar profit?
Dollar profit = Net Profit (shown in currency). Profit percentage = ROI (shown as %). Both are important — a $100 profit on a $1,000 investment (10% ROI) is better than $100 profit on a $10,000 investment (1% ROI), even though the dollar amount is the same.
Can I use this for mutual funds or ETFs?
Yes, the calculator works for any tradable security — stocks, ETFs, mutual funds, REITs, or even cryptocurrency. Just enter the buy/sell prices, number of shares/units, and any applicable fees.
What is the impact of commissions on frequent trading?
Commissions compound with each trade. If you pay $10 per round trip and trade 100 times per year, that's $1,000 in commissions. You need to earn at least $1,000 just to break even on fees. This is why low-commission brokers are essential for active traders.
How do dividends affect my profit calculation?
Dividends are separate from capital gains and are not included in this calculator. To get your total return, add all dividends received to your net profit. For example, $500 capital gain + $200 dividends = $700 total return. Dividends may also have different tax treatment than capital gains.