Capital Gains Tax Calculator
Free capital gains tax calculator for the US and beyond. Automatic 2025 US federal brackets and NIIT, or a flat-rate mode with exclusion, inclusion, long-term discount, and surcharge levers for the UK, Canada, Australia, and more.
https://hexacalculator.com/calculators/finance/corporate-finance/capital-gains-calculator
Finance
Corporate Finance
Capital Gains Tax Calculator
Free capital gains tax calculator for the US and beyond. Automatic 2025 US federal brackets and NIIT, or a flat-rate mode with exclusion, inclusion, long-term discount, and surcharge levers for the UK, Canada, Australia, and more.
Capital Gains Tax Calculator
Held longer than 1 year (long-term)
In US mode this picks the lower long-term rates. In flat-rate mode it enables any long-term discount you set.
Your US federal filing status sets which bracket thresholds apply.
Turn on only what applies. Each layer folds into the gain and the tax above.
Add purchase and selling costs
Commissions, fees, and capital improvements change your cost basis and net proceeds.
Apply an exclusion or exemption
Any tax-free allowance or exemption: the US Section 121 home-sale exclusion, the UK annual exempt amount, a principal-residence exemption, and so on.
Add state, regional, or provincial tax
A flat additional rate on the gain: a US state, a Canadian province, a Swiss canton, and the like.
Offset with capital losses
Realized losses from other sales reduce the gain you are taxed on (tax-loss harvesting).
On a $8,000 capital gain, the estimated tax is $1,200 (an effective rate of 15%), leaving you $6,800.
Estimated capital gains tax
- Capital gain
- $
- After-tax profit
- $
- Effective tax rate
- %
- Return on investment
- %
Using 2025 US federal brackets: long-term gains at 0, 15, or 20 percent stacked on your income, short-term at ordinary rates, plus the 3.8 percent Net Investment Income Tax for higher earners.
How your tax breaks down across the base tax, any surcharge, and regional tax.
- Base capital gains tax
- $
What the holding period is worth: the same gain taxed short-term versus long-term.
- Tax if short-term
- $
- Tax if long-term
- $
- Long-term saving
- $
You held this long enough for the lower long-term treatment, saving about $560 versus selling short-term.
Was this calculator helpful?
It takes one click and shapes what we fix next.
Add as preferred on GoogleYour capital gain split into the base tax, the surcharge or NIIT, state or regional tax, and what you keep.
Capital gains are the profits made on the sale of an asset - that is, the portion of the selling price that exceeds the purchase price. Assets involved can include stocks, rental properties, certain cryptocurrencies and coin collections. Calculating the gain itself is simple, but tax treatment varies from country to country.

For this reason, this calculator offers two modes: automatic mode for the US with full federal tax brackets, and flat rate mode for other regions. In flat rate mode, you can enter your personal tax rate and some optional adjustments to reflect how capital gains taxes actually work in your home country.

How to use the calculator:
Regardless of the tax system chosen, the starting point is always the same. The acquisition value is the purchase price and the sales price is the price at which the asset was sold. The difference between these two values is the taxable profit.

From this point the calculator branches depending on which tax type is selected. In US mode, it asks for your tax bracket and income, and applies the 2025 cumulative long term capital gains brackets plus federal tax rates, taking into account net investment income tax. In flat rate mode, these details are not asked, instead a single capital gains tax rate is asked, and adjustments can be enabled to suit the situation in your home country.
Choosing the right mode:
Mode | When to use it | What it asks for |
|---|---|---|
United States (automatic) | You file a US federal return | Filing status, taxable income, holding period |
Flat rate (any country) | Anywhere else | Your capital gains tax rate, plus optional levers |
Distinction between short-term and long-term
In the United States, the line between short-term and long-term holdings is one year plus one day. Short-term gains are taxed at the same rates as salary income, with a top rate of 37%. Long-term gains are taxed at lower rates of 0%, 15% or 20%. Because selling just a few days before this deadline can potentially save you nearly half your tax bill, it can be very costly to get it wrong. Other countries have different rules for long-term holdings. In Australia, profits after one year's holding are taxed at half the rate, while in Germany ten years of property ownership leads to exemption from certain taxes. The UK, on the other hand, has no tax benefits at all for longer holding periods. Long-term options reflect US tax rates and will take into account any long-term discounts entered in fixed-rate mode.
The 2025 tax rate for long-term capital gains in the US is.
The long-term tax rates depend not only on the amount of profit but also on the total taxable income. These thresholds apply to the 2025 tax year, i.e. for the return to be filed in early 2026.
Filing status | 0% up to | 15% up to | 20% over |
|---|---|---|---|
Single | $48,350 | $533,400 | $533,400 |
Married filing jointly | $96,700 | $600,050 | $600,050 |
Married filing separately | $48,350 | $300,000 | $300,000 |
Head of household | $64,750 | $566,700 | $566,700 |
Because regular income first fills the lower tax brackets, and then profits go above them, some of your profit may be taxed at 0% while other parts are taxed at 15%. Additionally, high earners pay a net investment tax of 3.8%. This is automatically added if your taxable income exceeds $200,000 for individuals or $250,000 for married couples.
Capital gains tax worldwide
If you are located outside the United States, switch to flat tax mode and use the following numbers as a starting point. These are nominal rates that have applied to individuals over the past few years. The actual values can vary depending on the type of asset, your country of residence, and annual exemption amount. Please check current regulations in your country.
Country | Typical treatment | Lever to use |
|---|---|---|
United Kingdom | 18% or 24% by income band; ~£3,000 annual exempt amount | Flat rate + exclusion |
Canada | 50% of the gain taxed at your marginal rate | Flat rate + inclusion 50% |
Australia | Marginal rate, halved if held over 12 months | Flat rate + long-term discount 50% |
Germany | About 26.4% flat (25% plus solidarity surcharge) | Flat rate ~26%, or 25% + surcharge |
France | About 30% flat (12.8% income + ~17.2% social charges) | Flat rate 12.8% + surcharge 17.2% |
India | 12.5% long-term over an annual exemption; 20% short-term equity | Flat rate + exclusion |
Japan | About 20.3% flat on listed securities | Flat rate 20.3% |
No CGT | New Zealand, Singapore, Hong Kong, Switzerland (private) | Flat rate 0% |
Adaptable elements and countries where they are required:
Exemption or non-taxable amount: The non-taxable amount that is deducted from the gains before taxation. Examples include the US home sale exclusion under section 121 (individuals: $250,000, joint return for married couples: $500,000), the UK annual allowance, and the principal private residence relief.
Taxable portion or inclusion rate: The percentage of the gain that is taxable. In Canada, for example, 50% of the gain is included in taxable income. Set the appropriate values for your country.
Long-term discount: A reduction in the taxable gain by a certain percentage for assets held over a sufficient period of time. For example, Australia offers a 50% discount after twelve months holding period.
Surcharge or levy: A tax rate that is added to the basic tax rate. Examples include the French social levy and the German solidarity levy.
State, provincial and cantonal taxes: Fixed additional tax rates that apply in U.S. states, Canadian provinces and Swiss cantons.
A concrete example:
You bought shares for $10,000 and sold them two years later for $18,000. You declare this in the US as an individual and your other income is $80,000.

The gain is $8,000, and since your income exceeds the threshold of $48,350, a tax rate of 15% will be applied to all gains


What's left is an amount of $6,800.. If you sell without meeting the holding period for a year, then normal tax rate of 22% will be applied to the same profit, which results in a tax burden of about $1,760. So the tax saving by long-term holding is about $560.

If the same process is done with a flat tax rate of 24%, the tax burden becomes about $1,920.. In Canada, there's an inclusion rate of 50% and marginal tax rate of 30, which results in a tax burden of about $1,200. When Australian long-term tax discount of 37% is applied, the tax burden becomes about $1,480.. This is a calculator that follows many countries' rules.
Methods to reduce tax burden.
Capital gains are only taxed on sale, so timing and planning is the most important tool for optimization, regardless of where you live.
Hold assets for a long enough period to benefit from favorable long-term tax rules in the respective country.
Offset losses: Loss positions can usually be offset against gains and in some countries it is also possible to carry forward remaining losses into future years.
Use tax-advantaged accounts to shelter appreciation from capital gains taxes.
Spread large sales over different tax years to lower income and tax rate.
Make use of all your allowable allowances, from the home allowance to the annual tax-free personal allowance.
Frequently asked questions
Can this calculator be used outside of the US?
Yes. Change the tax calculation method to flat rate, enter your personal capital gains tax rate and activate the corresponding adjustment points for your country. The Canadian 50% system uses an inclusion rate, Australia has long-term discounts, the UK annual allowance system has deduction values, and France's social security surcharge applies.
What is the difference between short-term and long-term capital gains?
Short-term capital gains are those from assets held for less than one year. In the US these are generally taxed as ordinary income with a top rate of 37%. Long term capital gains, on the other hand, which are assets held longer than a year, have reduced tax rates of 0%, 15% and 20%. Other countries may have different holding period rules. For example in Australia, taxable gain is halved after twelve months while in the UK there are no discounts for holding longer.
How is capital gains tax calculated?
Profit is determined by subtracting the acquisition cost (purchase price plus purchase and improvement costs) from the net sale proceeds (sale price minus selling expenses). Deductions, loss carryovers and credits are applied to determine taxable profit, which is then multiplied by the tax rates. In US mode, profits are added to income and split into brackets of 0%, 15% and 20%. In flat rate mode, taxable profit is directly multiplied by the tax rate, with a surcharge or local taxes added on top.
What are deductions or allowances?
These are non-taxable amounts that are deducted from the profit before tax is calculated. Under US section 121, individuals can deduct up to $250,000 and married couples can deduct up to $500,000 for profits made on their principal residence. In the UK, the annual allowance is around £3,000. Enable adjustments for deductions or allowances and enter the amount you are entitled to.
How can you reduce capital gains tax?
Hold assets as long as possible until they are subject to favorable long-term capital gains treatment in your home country. Offset losses with gains, invest in tax-advantaged accounts, and spread large sales over multiple tax years to take advantage of lower tax rates. Take advantage of non-taxable amounts if applicable. As the specific rules vary by country, be sure to research local regulations or consult a tax advisor for larger transactions.
Related calculators






Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.
References
- IRS - Topic No. 409, Capital Gains and Losses
US definitions, holding-period rules, and the long-term rate structure.
- PwC Worldwide Tax Summaries - Capital gains tax (CGT) rates
Country-by-country capital gains rates used for the international table.
- GOV.UK - Capital Gains Tax rates and allowances
UK 18 and 24 percent rates and the annual exempt amount.
- Canada Revenue Agency - Capital Gains (T4037)
Canada's 50 percent inclusion rate, confirmed unchanged for 2025 and 2026.