Finance Calculators

Capital Gains Tax Calculator

Work out the gain on an asset you sold, the tax due on it, and what you keep after tax.

Rate this tool
$
$
$
%

How to use the Capital Gains Tax Calculator

  1. Enter what you originally paid for the asset.
  2. Enter what you sold it for.
  3. Add any buying or selling fees and costs.
  4. Enter your capital gains tax rate to see the tax and your net profit.
Formula Gain = Sale − Purchase − Fees · Tax = Gain × rate (only if the gain is positive)

About the Capital Gains Tax Calculator

Capital gains tax is charged on the profit you make when you sell an asset — shares, a property, crypto, or anything that has risen in value — not on the whole sale price. This calculator takes your purchase price, your sale price and any fees, subtracts them to find the true gain, and applies the rate you enter. It also shows your net profit after tax and the return on what you originally put in, so you can see the sale in the terms that actually matter.

Only a positive gain is taxed here; if you sold at a loss, the tool reports the loss and shows zero tax, because a loss is not a taxable event on its own. In practice many tax systems let you offset losses against other gains, apply an annual tax-free allowance, or tax long-held assets at a lower rate than short-term trades — details this simple model deliberately leaves to you and your rate.

Treat the result as a clear estimate rather than a filing. Real capital gains rules vary widely by country and by how long you held the asset, and they change from year to year. For the profit side without tax, the ROI calculator shows percentage return, and the profit margin calculator covers selling goods.

Frequently asked questions

Is capital gains tax charged on the whole sale price?

No — only on the gain. The gain is the sale price minus what you paid and minus allowable costs and fees. This calculator applies your rate to that gain, not to the full amount you received.

What if I sold at a loss?

The calculator shows the loss and zero tax, since a loss is not taxed. Many tax systems let you carry losses forward or offset them against other gains, but that depends on your local rules.

What rate should I enter?

Use the capital gains rate that applies to you. It often depends on your income and how long you held the asset — short-term gains are frequently taxed at a higher rate than long-term ones. Check your tax authority for the exact figure.