Stock profit and loss calculator

Updated 30 November 2026 · ClearCost USA · 4 min read

Stock profit = (sell price − buy price) x shares − fees. 50 shares bought at $40 and sold at $55 earn $750, a 37.5% return.
Advertisement

How do you calculate stock profit?

Subtract total cost (price x shares + fees) from sale proceeds. Holding over a year makes the gain long-term, taxed at 0%, 15% or 20%; shorter holdings are taxed as ordinary income.

What is the profit on 120 shares from $87.5 to $79.2?

Result $-1,001.00 (-9.53%) on a cost basis of $10,505.00.

Advertisement

What is the return at different sell prices?

The table below gives ready answers for common values; the calculator above works for any value.

Profit by sell price

Sell priceProfit (100 sh @ $40)Return
$30$-1,000.00-25%
$36$-400.00-10%
$40$0.000%
$44$400.0010%
$50$1,000.0025%
$60$2,000.0050%
$80$4,000.00100%

How does this calculator work?

It uses (S − B) x n − fees. Results update as you type and are rounded for display; the maths runs in your browser and nothing is stored.

For more, see the everyday calculators page, stock average price calculator, dividend calculator, debt-to-income (DTI) ratio calculator and emergency fund calculator.

Advertisement

Related searches

People who use this page also search for the terms below; the calculator, tables and answers above cover each of them.

  • option profit calculator
  • call option profit calculator
  • how to calculate call option profit
  • calculating option profit
  • how to calculate option profit
  • option profit calculator excel

Sources and further reading

Questions people ask

How are stock gains taxed?
Long-term (over 1 year) at 0/15/20%; short-term as ordinary income.
Can I deduct a stock loss?
Yes, losses offset gains plus up to $3,000 of other income a year.
What is cost basis?
What you paid, including fees.
What is a wash sale?
Buying back within 30 days of a loss sale disallows the loss.
What is unrealized gain?
Profit on shares you still hold.
Does this include dividends?
No, add dividends separately.

Results are estimates for information only, not financial advice. Read the full disclaimer.

More free calculators

Advertisement