Overview

You usually owe capital gains tax when you sell an asset for more than it cost. This estimates the tax and what you keep.

Enter your purchase price, sale price, costs and your tax rate. Rates depend on your country, your income and how long you held the asset, so enter the rate that applies to you.

Worked examples

InputsResult
Purchase price ($)10,000Sale price ($)15,000Buying and selling costs ($)100Capital gains tax rate (%)15Tax due: $735.00Capital gain: $4,900.00Profit after tax: $4,165.00
Show 2 more examples
Purchase price ($)10,000Sale price ($)8,000Buying and selling costs ($)100Capital gains tax rate (%)15Capital loss: $2,100.00Tax due: $0.00A loss can usually offset other gains, so keep your records.
Purchase price ($)250,000Sale price ($)400,000Buying and selling costs ($)20,000Capital gains tax rate (%)20Tax due: $26,000.00Capital gain: $130,000.00Profit after tax: $104,000.00

Tax due by capital gains tax rate

With the calculator's starting values, the tax due is $735.00. The table shows how it changes with the capital gains tax rate.

Capital gains tax rate (%)Tax due
8%$392.00
10%$490.00
12%$588.00
14%$686.00
15%starting value$735.00
16%$784.00
18%$882.00
20%$980.00
22%$1,078.00

Other inputs: Purchase price: $10,000 · Sale price: $15,000 · Buying and selling costs: $100. Change them in the calculator above for your own numbers.

How it works

The gain is the sale price minus the purchase price and costs such as commissions. The tax is the gain times your rate. In the US, assets held for over a year get lower long-term rates, while shorter holdings are taxed like income.

The formula

Tax = (sale price − purchase price − costs) × rate
rateYour capital gains tax rate

Practical tips

  • Buying at $10,000 and selling at $15,000 with $100 in costs gives a $4,900 gain and $735 in tax at 15%.
  • State or local tax may be due on top.
  • Home sales and some other assets have special exclusions, so check the rules that apply.

Frequently asked questions

Can a loss reduce my tax?

Often yes. Losses can usually offset gains, with limits on offsetting other income.

What is cost basis?

What you paid for the asset, usually including fees and certain improvements.