Stock Profit Calculator

Calculate your profit or loss from a stock trade.

🧮

Enter your values and click Calculate

Enter the number of shares, buy price, and sell price to instantly calculate your gross profit or loss from a stock trade — before tax and broker fees. This calculator shows both the dollar profit and the percentage gain or loss, giving you a quick way to evaluate any stock trade without needing a spreadsheet. It works equally well for individual stocks, ETFs, index funds, REITs, and any other investment with a per-unit purchase and sale price. Use it to review past trades, set profit targets before entering a position, or compare the return on different trade sizes at a glance. Understanding both your dollar profit and percentage gain matters because a large dollar gain on a small percentage return may not be as compelling as a smaller dollar gain on a high percentage return, depending on your investment goals. This calculator gives you both metrics instantly so you can evaluate performance across different positions on a level footing, regardless of position size or entry price level.

How It Works

Total buy cost is calculated as the number of shares multiplied by the buy price per share. Total sell value is the number of shares multiplied by the sell price per share. Net profit or loss equals the total sell value minus the total buy cost — a negative result means a loss. Percentage gain is calculated as: ((sell price − buy price) ÷ buy price) × 100, which represents the per-share return regardless of how many shares were traded. For example, buying 100 shares at $50 and selling at $75 gives a profit of (75 − 50) × 100 = $2,500, and a percentage gain of ((75 − 50) ÷ 50) × 100 = 50%. These two figures together tell you both the absolute dollar outcome and the proportional return, which are both important when comparing trades of different sizes and entry prices.

Examples

Profitable Trade
100 shares bought at $50, sold at $75.
Result: Profit: $2,500 (50% gain).
Loss Trade
50 shares bought at $200, sold at $180.
Result: Loss: -$1,000 (-10%).
Large position gain
500 shares bought at $30, sold at $45.
Result: Profit: $7,500 (50% gain).

Frequently Asked Questions

Does this include broker fees?
No — this calculator shows gross profit only, which is the raw difference between your total buy cost and total sell value. To find your net profit, subtract your broker commissions and any transaction fees from the gross profit figure.
How is percentage gain calculated?
Percentage gain is calculated as ((sell price − buy price) ÷ buy price) × 100. This formula measures the per-share return as a percentage of your original cost, and is the same regardless of how many shares you traded.
Can I use this for ETFs or mutual funds?
Yes — this calculator works for any investment that has a per-unit buy price and sell price. ETFs, mutual funds, REITs, and even cryptocurrency all follow the same profit calculation logic as individual stocks.

Related Calculators