keencalculator
  1. Home
  2. Finance & Loans
  3. Stock Profit Calculator

Stock Profit Calculator

Work out what you made or lost on a stock trade. Enter the number of shares, the price you bought and sold at, and any commissions to get the profit, the percentage return, your break-even price and, optionally, the profit left after capital gains tax.

Quick examples
$
$
$
$
%

Optional. Applied to a profit only.

Your numbers stay in your browser. Nothing is uploaded.
Profit or loss$1,500.00
Return on investment
30%
Total cost
$5,000.00
Net proceeds
$6,500.00
Break-even sell price
$50.00
Profit after tax
$1,500.00

Saved setups

Save a set of inputs you reuse — your usual rate, your loan, your room sizes — and load it back in one tap.

    Your recent calculations

    Results you calculate here are kept on this device so you can come back to them.

      Formula

      Total cost = shares × buy price + buy commission
      Net proceeds = shares × sell price − sell commission
      Profit = net proceeds − total cost
      Return = profit ÷ total cost × 100
      Break-even sell price = (total cost + sell commission) ÷ shares

      How to use it

      1. Enter the number of shares and the price paid per share.
      2. Enter the price you sold at, or a target price to test.
      3. Add commissions and a capital gains tax rate if they apply.

      Worked examples

      100 shares bought at $50 and sold at $65 with no commission

      Profit or loss
      $1,500.00
      Return on investment
      30%
      Total cost
      $5,000.00
      Net proceeds
      $6,500.00
      Break-even sell price
      $50.00
      Profit after tax
      $1,500.00

      500 shares bought at $12.40 and sold at $15.10 with a $5 commission each way and 15% tax

      Profit or loss
      $1,340.00
      Return on investment
      21.6%
      Total cost
      $6,205.00
      Net proceeds
      $7,545.00
      Break-even sell price
      $12.42
      Profit after tax
      $1,139.00

      40 shares bought at $212 and sold at $187

      Profit or loss
      -$1,000.00
      Return on investment
      -11.79%
      Total cost
      $8,480.00
      Net proceeds
      $7,480.00
      Break-even sell price
      $212.00
      Profit after tax
      -$1,000.00

      Tax on stock profits

      In the US, shares held for more than one year are taxed at long-term capital gains rates of 0%, 15% or 20% depending on your income. Shares held a year or less are short-term and taxed as ordinary income. Losses can offset gains, and up to $3,000 of net losses a year can offset other income.

      If you sell at a loss and buy the same or a substantially identical security within 30 days before or after, the wash-sale rule disallows the loss for now. This calculator gives an estimate, not tax advice.

      Several purchases at different prices

      If you bought in stages, use your average cost per share: total dollars spent divided by total shares. Your broker’s default method for tax lots is usually first in, first out unless you choose otherwise.

      Questions people ask

      How do I calculate profit on a stock?

      Multiply the shares by the difference between sell and buy price, then subtract fees. 100 shares bought at $50 and sold at $65 is a $1,500 profit, a 30% return.

      How do I calculate the percentage gain or loss?

      Divide the profit by what you paid. 40 shares bought at $212 and sold at $187 is a $1,000 loss on $8,480, or −11.79%.

      What price do I need to sell at to break even?

      Your total cost plus the selling commission, divided by the shares. 500 shares at $12.40 with a $5 commission each way break even at $12.42.

      Related calculators