Toolvito

Works on this device

Stock Profit Calculator

Enter the number of shares, the price you paid and the price you sold at. The calculator gives the profit or loss, the return and the break-even price. You can add fees, dividends and a tax rate that you type yourself. It also works for a short sale, and it can find the sell price for a profit you want.

Enter your values

Use this for shares that you bought and then sold, or that you still hold and could sell at the price now.

Your values

A part of a share is allowed, for example 2.5.

Leave this blank for no fee. The price list of your broker or the note of the trade shows it. Use at most 2 decimal places.

Leave this blank for no fee. The price list of your broker or the note of the trade shows it. Use at most 2 decimal places.

All dividends for one share over the time you held it, added up. Type them after any tax that was taken from them.

Your own rate. It can depend on your country, your income and how long you held the shares. Find it in the current rules of your tax authority.

More options

Fill this in to see the return for each year. You can type a part of a year, for example 0.5.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Profit or loss: buy, then sell.
  2. Enter the number of shares, the buy price and the sell price for one share. For shares you still hold, type the price now as the sell price.
  3. Add the fees of the two trades if you paid any. Each fee box can stay blank.
  4. To include dividends, type the total dividends for one share. To see the profit after tax, type your own tax rate.
  5. Choose Calculate. The result shows the profit or loss, the return and the break-even sell price.

The formulas

  • Total cost of the buy = shares × buy price + buying fee.
  • Money from the sale = shares × sell price − selling fee.
  • Profit or loss = money from the sale − total cost of the buy + dividends.
  • Return = profit ÷ total cost of the buy.
  • Break-even sell price = (total cost of the buy + selling fee) ÷ shares.
  • Return for each year = (1 + return)^(1 ÷ years) − 1.
  • Short sale: profit = shares × (price sold − price bought back) − fees − borrowing cost − dividends paid.
  • Sell price for a profit = (total cost of the buy + selling fee + profit you want) ÷ shares.

Worked example

You buy 100 shares at 25 and sell them at 32. The cost is 2,500 and the sale brings in 3,200. The profit is 700, which is a return of 28%.

With a fee of 4.95 on each trade, the cost is 2,504.95 and the sale brings in 3,195.05. The profit is 690.10 and the break-even sell price is 25.099. With a tax rate of 15% on the gain, the tax is 103.52 and the profit after tax is 586.59.

Short sale: you sell 100 borrowed shares at 32 and buy them back at 25. The profit is 100 × 7 = 700, which is 21.88% of the 3,200 sold.

Sell price for a profit: you hold 100 shares bought at 25 and want a profit of 500. The sell price needed is (2,500 + 500) ÷ 100 = 30, which is 20% above the buy price.

Fees and tax are your own figures

  • This tool has no fee table of any broker and no tax table of any country. The fee boxes and the tax rate box start empty.
  • The Try an example button fills them with example values, so that you can see how the tool works. They are not the fees of a real broker and not a current tax rate.
  • The tax line is simple: your rate × the gain of the sale, when the gain is above zero. Real rules have allowances, bands, holding periods and ways to use losses. For a real tax figure, use the rules of your tax authority or ask a tax adviser.

Limits you should know

  • The result is arithmetic on the figures you typed. It is not investment advice, not a forecast and not tax advice.
  • There is no market data. The tool cannot look up the price of a share on a date. You type both prices.
  • One trade at a time. For several buys at different prices, find your average price first.
  • Fees are fixed amounts. A fee that is a percent of the trade must be worked out first and typed as an amount.
  • A profit on shares you still hold is not final. The price can change before you sell.
  • A short sale can lose more than the value sold, because a price can rise without a limit.
  • Money totals are rounded to cents once, at the end. Money is typed with at most 2 decimal places. A price for one share and a number of shares may have more.

Related tools