Stock Profit Calculator
Stock profit calculator: profit or loss and percentage return from shares, buy price and sell price.
G = n · (Psell − Pbuy)
How to use this calculator
- Choose the quantity you want under “Solve for”.
- Type the known values and pick their units: any combination works.
- The result updates as you type. Open “Show the steps” to see the substitution.
Profit = number of shares × (sell price − buy price). The return is the price change divided by the buy price.
Subtract trading fees and taxes from the result to get your net gain.
Estimates for information only, not financial advice.
Formula
G = n · (Psell − Pbuy)
| Symbol | Quantity | Units |
|---|---|---|
| n | Number of shares | — |
| Pbuy | Buy price per share | $, €, £ |
| Psell | Sell price per share | $, €, £ |
| G | Profit or loss | $, €, £ |
Worked example
Given: n = 50 · Pbuy = 120.00 $ · Psell = 150.00 $
G = n · (Psell − Pbuy)
Result: G = 1,500.00 $
Frequently asked questions
What is the profit on 50 shares bought at $120 and sold at $150?
50 × 30 = $1,500, a 25 % return.