Boneyard Tools

Stock Profit Calculator

Enter your buy price, sell price and share count, then add any buy or sell commissions to see the full picture of a trade. The calculator returns your total cost, total proceeds, dollar profit or loss, the percentage return on your cost, and the exact break-even sale price that covers both fees. Losing trades turn the profit figure red so you can spot a loss at a glance.

How to calculate stock profit

  1. Enter the Buy price, the price per share you paid.
  2. Enter the Sell price, the price per share you received or expect.
  3. Set Shares to the number of shares in the trade.
  4. Add any Buy commission and Sell commission your broker charges on each side.
  5. Read the Profit / loss headline, then the Total cost, Total proceeds and Break-even tiles.
  6. Click Copy results to copy the full summary to your clipboard.

Examples

A winning trade with fees on both sides

Buy $100, Sell $120, 10 shares, $5 buy fee, $5 sell fee
Profit $190.00 (18.91%), cost $1005.00, proceeds $1195.00, break-even $101.00

A losing trade

Buy $50, Sell $45, 100 shares, no commissions
Profit -$500.00 (-10%), cost $5000.00, proceeds $4500.00, break-even $50.00

Break-even lifted by commissions

Buy $20, Sell $20, 50 shares, $10 buy fee, $10 sell fee
Profit -$20.00 (-1.98%), cost $1010.00, break-even $20.40

Frequently asked questions

How is stock profit calculated?

Profit is total proceeds minus total cost. Total cost is the buy price times the number of shares plus the buy commission. Total proceeds is the sell price times the number of shares minus the sell commission.

What is the break-even price?

It is the sell price per share that would make your profit exactly zero once both commissions are paid. The tool computes it as the total cost plus the sell commission, divided by the number of shares, so at $101.00 in the worked example the trade neither gains nor loses.

How is the return percentage figured?

Return percent is profit divided by total cost, times 100. Because total cost includes the buy commission, the percentage reflects the true amount of money you committed, not just the share price times quantity.

Do I have to enter commissions?

No. The commission fields can stay at zero if you trade with a no-fee broker. When they are zero the break-even price equals your buy price and the numbers simplify to a plain price-times-shares calculation.

Does it handle a loss?

Yes. If proceeds come in below cost, the profit shows as a negative dollar figure and a negative percentage, and the headline turns red. The break-even tile still shows the sell price you would have needed to avoid the loss.

Are the results rounded?

Every dollar figure and the percentage are rounded to two decimal places for display. Values are formatted in US dollars, so a large cost appears as $1,005.00 with a thousands separator.

Does it include taxes, dividends or margin interest?

No. The calculator covers price, shares and trading commissions only. Capital gains tax, dividends received, and any margin interest are not part of the result, so treat the profit figure as pre-tax.

Can I use it for any currency?

The math works for any currency, but the labels and formatting are fixed to US dollars. If you trade in another currency, read the dollar sign as your own and the figures still hold.

Is my data private?

Yes. All calculations happen in your browser. No prices, share counts or results are sent to a server or stored.

Learn more

Related tools