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.