TraderWaves Just Got a New Look and More Powerful ChartsNew Look. More Powerful Charts.
TraderWaves

Stock profit calculator

Enter the number of shares and the prices you bought and sold at. The calculator returns your net profit or loss, the percentage return and the exit price that covers your commissions.

  • Long and short trades
  • Commissions and dividends included
  • Free, no sign-up

For education only, not financial advice. Results depend on the numbers you enter, and trading carries a risk of loss.

How to use the stock profit calculator

  1. Choose the direction

    Pick Buy (long) if you bought first and sold later. Pick Short sell if you sold borrowed shares first and bought them back.

  2. Enter the number of shares

    Use the size of the whole trade. If you built the position in several orders, work out one entry price with the stock average price calculator first.

  3. Enter the entry and exit prices

    The entry price is what you paid, or sold short at. The exit price is what you sold at, or bought back at. Use your actual fills, not the prices you were aiming for.

  4. Add commissions and dividends

    All three fields are optional. Entry commission and Exit commission are the total fee on each order. Dividends per share are added to a long trade and taken off a short one.

The formula

  • Gross profit = (exit price − entry price) × shares, reversed for a short
  • Net profit = gross profit + dividends − commissions
  • Return = net profit ÷ (entry price × shares + entry commission)
Gross profit
The price difference multiplied by the number of shares, before any costs.
Net profit
Gross profit plus dividends received, minus both commissions. This is the money the trade made or lost.
Return
Net profit as a percentage of the money you put in: the position value at entry plus the entry commission.
Break-even exit price
The exit price at which net profit is exactly zero once commissions are paid.

Worked example

You buy 100 shares at $50.00 and sell them at $56.50, with no commission.

  1. Position value at entry = 100 × $50.00 = $5,000.
  2. Position value at exit = 100 × $56.50 = $5,650.
  3. Net profit = $5,650 − $5,000 = $650.
  4. Return = $650 ÷ $5,000 = 13.00%.

The trade makes $650, a 13.00% return, and with no commission the break-even exit price is the $50.00 you paid. Add a $5 commission on each order and the profit falls to $640, the return to 12.79% and the break-even rises to $50.10.

The calculator above opens with these numbers, so you can change one input and see what moves.

How to calculate profit on a stock

Stock profit is the difference between what you sold for and what you paid, multiplied by the number of shares, less what the trade cost you to place. A $6.50 gain per share on 100 shares is $650 before costs.

The percentage return divides that profit by the money you committed. It is the figure to compare trades with, because a $650 profit on $5,000 is a very different result from $650 on $50,000.

How commissions change your return

A fixed commission matters most on small positions. A $5 fee on each order is $10 for the round trip. On a $10,000 position that is 0.1% of the trade. On a $500 position it is 2%, so the stock has to rise 2% before you have made anything.

Many brokers now charge no commission on shares, but regulatory fees, currency conversion and the bid-ask spread still exist. If your broker shows a total cost on the trade confirmation, enter that figure.

A $10 round-trip commission as a share of the position
Position valueRound-trip commissionMove needed to break even
$500$102.00%
$1,000$101.00%
$5,000$100.20%
$10,000$100.10%

How profit works on a short sale

A short sale earns when the price falls. You sell first and buy back later, so the gross profit is the entry price minus the exit price, multiplied by the shares. Short 100 shares at $50.00, cover at $46.00, and the gross profit is $400.

Dividends work against a short. If the company pays $0.25 per share while you are short, you owe it to the lender, and the profit drops to $375. Borrow fees are not a separate field, so add them to the exit commission.

Percentage return versus money made

The return shown here is for the trade, not per year. A 13% gain in two weeks and a 13% gain over three years are the same number on this page and very different results in practice. Note the holding period beside the return when you compare trades.

The return also ignores the rest of your account. A trade can return 13% and still add only 2.6% to a $25,000 account, because only $5,000 of it was in the trade.

FAQs

Stock profit questions

How do I calculate profit on a stock?

Subtract the price you paid from the price you sold at, multiply by the number of shares, then subtract commissions and add any dividends received. For 100 shares bought at $50.00 and sold at $56.50 with no commission, the profit is $6.50 × 100 = $650.

How do I calculate percentage return on a stock?

Divide the net profit by the amount you put into the trade and multiply by 100. The amount put in is the entry price times the number of shares, plus the entry commission. A $650 profit on a $5,000 position is a 13% return.

What is the break-even price on a stock trade?

It is the exit price at which the trade makes nothing and loses nothing after costs. With no commission it equals your entry price. With commissions it sits above your entry on a long trade and below it on a short, by the total commission divided by the number of shares.

Does the calculator include dividends?

Yes, if you enter them. Type the total dividends paid per share during the holding period in the Dividends per share field. They are added to the profit on a long trade and subtracted on a short trade, because a short seller pays the dividend to the share lender.

How do I calculate profit on a short sale?

Choose Short sell, then enter the price you sold short at as the entry and the price you bought back at as the exit. The profit is the entry price minus the exit price, multiplied by the shares, less commissions and any dividends you owed while the position was open.

Is the profit shown before or after tax?

It is before tax. The calculator covers the trade itself: prices, shares, commissions and dividends. Tax on gains depends on where you live and how long you held the shares, so it is outside what a trade calculator can work out for you.

Free trading journal and analytics

Plan the trade here. Review it in TraderWaves.

Every calculator on this site is also inside the app, next to a journal that records what you actually did and analytics that show whether it worked.

Stock Profit Calculator: Net Gain and Return | TraderWaves