Capital Gains Tax Calculator

Enter your sale price, cost basis, and tax rate to estimate the capital gains tax.

How it is calculated

The tool applies one flat percentage to the profit: gain = sale − cost, tax = max(0, gain) × rate ÷ 100, net = sale − tax. Sale is the price you sold for, cost is what you paid (your cost basis), and rate is the tax rate in percent. A loss is shown as a negative gain and the tax is 0; the tool does not carry the loss forward or offset it against other gains. There is no separate field for fees, holding period, exemptions or allowances: add purchase and selling costs into the cost figure yourself, and pick the rate that applies to you. These rules differ by country and year, so the rate is yours to choose. Negative inputs give no result.

Worked example

You sell shares for 15000 that cost you 10000, and your capital gains rate is 15%. Gain: 15000 − 10000 = $5,000.00. Tax: 5000 × 15 ÷ 100 = $750.00. Net amount received after tax: 15000 − 750 = $14,250.00. The net figure is the sale proceeds minus the tax, not the profit minus the tax, so it still includes the money you originally paid in. The dollar sign is only a display symbol; any currency works.

Try this example →

Common mistakes

  • Leaving fees out of the cost. Commissions and purchase costs are not a separate field, so they only reduce the gain if you add them to the cost figure.
  • Reading the net figure as profit after tax. It is the whole sale price minus the tax; the profit after tax here is 5000 − 750 = 4250.
  • Entering the rate as a decimal such as 0.15. The field takes a percentage, so 15 means 15%; 0.15 would be taxed at 0.15%.
  • Using one rate for every sale. Many countries tax short-term and long-term holdings differently, and some exempt part of the gain, so the tool only gives a rough figure for the rate you choose.
  • Expecting a loss to cut your tax elsewhere. A sale below cost shows a negative gain and zero tax, with no offset against other gains.

Sources

About this calculator

This calculator estimates the taxable gain on an asset by subtracting what was originally paid for it from the price it was sold for (there is no separate fee field, so add purchase and selling costs into the cost figure yourself), then applies a tax rate the user provides to estimate the resulting tax. Because rates, exemptions, and how long an asset was held before selling all affect the outcome and vary by country and by year, the rate itself is left as a user input rather than assumed.

Investors use it after selling stocks, property, or other assets to get a rough sense of the tax impact of that sale, and some use it beforehand to compare how the numbers might look under different holding periods or sale prices before deciding when to sell.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    This is handy for a what-if before you sell: run the same sale at two different rates and compare the net lines. On the default 15,000 sale with a 10,000 cost, 15% takes 750 and 20% takes 1,000. It uses one flat rate with no loss offset, so a loss simply shows tax of zero. Tax rules for gains differ by country and year, and Turkish rules are not built in. Which kind of asset are you thinking of selling?

Popular calculators

All Calculators