Tax & Trade Admin

Capital Gains Tax Calculator

Estimate the tax on a realised gain: enter your purchase price, sale price, quantity and the tax rate that applies to you, and see the tax owed, the profit left after tax and the return before and after tax.

Total Gain / Loss

+$7,000

Tax Owed

$1,050

Net Profit After Tax

+$5,950

After-Tax Return

119%

Cost Basis$5,000
Sale Proceeds$12,000
Pre-Tax Return140%
After-Tax Return119%

How the Capital Gains Tax calculator works

The calculator works out the gain on a sale as the sale proceeds minus what the asset cost, then applies the tax rate you enter to that gain. It shows the tax, the profit left after tax and the return on your cost before and after tax. A loss is shown with no tax; the tool applies a single rate and does not model allowances, tax bands or losses set against other gains.

Gain = (Sale price - Purchase price) x Quantity
Tax owed = Gain x Tax rate (when the gain is positive)
Net profit after tax = Gain - Tax owed
After-tax return = Net profit after tax / (Purchase price x Quantity)

Worked example

You bought 100 shares at $50, sell them at $120 and pay tax on the gain at 15%.

  1. Cost basis: 100 x $50 = $5,000; sale proceeds: 100 x $120 = $12,000.
  2. Gain: $12,000 - $5,000 = $7,000.
  3. Tax owed: $7,000 x 15% = $1,050.
  4. Net profit after tax: $7,000 - $1,050 = $5,950.

The sale leaves $5,950 after $1,050 of tax, a return of 119% on the $5,000 cost against 140% before tax.

Frequently asked questions

What tax rate applies to a capital gain?

It depends on the country where you pay tax, and often on your income and how long you held the asset. In the United States, most long-term gains are taxed at 0%, 15% or 20% depending on taxable income, and short-term gains are taxed as ordinary income.

What counts as long-term in the United States?

An asset held for more than one year before it is sold gives a long-term gain or loss. Held for one year or less, the gain or loss is short-term.

What does the calculator do with a loss?

It shows the loss and no tax. It does not set the loss against other gains or income, which many tax systems allow within limits.

More tools in the Hub

Premium opens the Hub's Analytics section: market data, research, radars, screeners, macro, calculators and backtesting. The website and the Discord stay free.