Stock Profit Calculator

Net profit and return after commissions and taxes

Varies by country and holding period. Enter 0 to see the pre-tax result.

Stock profit in 3 steps

  1. Purchase costbuy price × shares, plus the buy commission
  2. Sale proceedssell price × shares, minus the sell commission and any transaction tax on the sale
  3. Profit and taxprofit before income tax = sale proceeds − purchase cost; capital gains tax = profit × your rate, only when the profit is positive

Net return = net profit ÷ (buy amount + buy commission) × 100

How to calculate stock profit

The simple way to judge a trade is to compare the sell price with the buy price. That number, the gross return, ignores what the trade actually cost you. This stock profit calculator starts from the same numbers and then subtracts every cost you enter, so you see the amount that really ends up in your account.

  1. Purchase cost = buy price × shares, plus the buy commission.
  2. Sale proceeds = sell price × shares, minus the sell commission and any transaction tax on the sale.
  3. Profit before income tax = sale proceeds − purchase cost.
  4. Capital gains tax = profit × your rate, only when the profit is positive.
  5. Net return = net profit ÷ (buy amount + buy commission) × 100.

The break-even sell price is the price at which the trade exactly covers its commissions and transaction tax: (buy amount + buy commission) ÷ (shares × (1 − sell commission % − transaction tax %)). Capital gains tax does not change it, because no tax is due when there is no gain.

Worked example

ItemCalculationResult
Purchase20 × 150.003,000.00
Sale20 × 180.003,600.00
Profit, zero commission3,600.00 − 3,000.00600.00 (20.00%)
Capital gains tax at 15%600.00 × 15%90.00
Net profit after tax600.00 − 90.00510.00 (17.00%)
Same trade with 0.1% commission each way600.00 − 3.00 − 3.60593.40 (19.76%)

A 0.1% commission looks tiny, yet it took about a quarter of a percentage point off the return. On frequent short-term trades those small costs add up, while for a long-term holding they matter much less than the tax rate.

Tips for getting an accurate number

Reading a negative result

If the sell price is below the buy price, or costs are larger than the price gain, the net profit shows as a loss. No capital gains tax is applied to a loss, but commissions and transaction taxes still count. In many tax systems a realized loss can be used to reduce taxable gains elsewhere, which is why the after-tax cost of a loss can be smaller than it looks here.

Cautions

Tax rules differ widely between countries and change over time, so the rates in this page are examples only. The calculator assumes one purchase and one sale at fixed prices. It does not include dividends, withholding tax, margin interest, or account fees, and it does not give tax advice. For a position built over several purchases, work out your average cost first with the stock average calculator and use that as the buy price.

Frequently asked questions

What is the difference between gross and net return?

Gross return only compares the sell price with the buy price. Net return subtracts commissions, transaction taxes and (optionally) capital gains tax, and divides by everything you actually paid in, including the buy commission.

My broker charges zero commission. What should I enter?

Enter 0 for both commission fields. Many US and international brokers no longer charge commission on stocks and ETFs, though regulatory fees, currency conversion or account fees may still apply.

What goes in “transaction tax on sale”?

Some markets charge a tax or levy on the value of every sale, such as a stamp duty or securities transaction tax. It is charged even when you lose money. If your market has none, leave it at 0.

Which capital gains tax rate should I use?

It depends on your country, income and how long you held the shares. Many countries tax long-term gains at a lower rate than short-term gains, and some do not tax them at all. Enter the rate that applies to you; the calculator only applies it when the trade makes a profit.

Does this include dividends?

No. It measures the price gain on one buy and one sell. Add any dividends you received to the profit yourself to see your total return.

Related calculators