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

  1. Choose the quantity you want under “Solve for”.
  2. Type the known values and pick their units: any combination works.
  3. 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)

SymbolQuantityUnits
nNumber of shares—
PbuyBuy price per share$, €, £
PsellSell price per share$, €, £
GProfit 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.

Related calculators

Report an error