Capital Gains Tax Calculator

Calculate your investment tax liability instantly. Supports US, UK, Germany, Spain and 8+ countries with 2026 tax rates.

Free Forever - No Signup Required

Calculate Your Capital Gains Tax

Enter your investment details below to see your estimated tax liability

Capital Gain
$5,000
Tax Rate
15%
Estimated Tax
$750
Net Profit
$4,250
Short-Term Rate (< 1 year)
22%
Tax: $1,100
Long-Term Rate (> 1 year)
15%
Tax: $750
You save $350 by holding long-term!
🇺🇸

United States

Long-term gains (held > 1 year) get preferential rates. Short-term gains taxed as ordinary income.

Track Your Real Gains Automatically

AllInvestView calculates your actual capital gains across all investments in real-time.

Start Free Trial

How Capital Gains Tax Works

Capital gains tax (CGT) is a tax on the profit you make when you sell an investment for more than you paid for it. It only applies to realized gains - meaning you don't owe any tax until you actually sell the asset.

The basic formula is simple:

Capital Gains Tax Formula

Capital Gain = Sale Price - Purchase Price - Fees
Tax Owed = Capital Gain x Tax Rate

For example, if you bought shares for $10,000 and sold them for $15,000, your capital gain is $5,000. If your tax rate is 15%, you would owe $750 in capital gains tax.

Short-Term vs Long-Term Capital Gains

Most countries distinguish between short-term and long-term capital gains, with long-term gains typically taxed at lower rates to encourage long-term investing.

United States

In the US, the distinction is clear:

  • Short-term gains (assets held less than 1 year): Taxed as ordinary income at rates from 10% to 37%
  • Long-term gains (assets held 1 year or more): Taxed at preferential rates of 0%, 15%, or 20% depending on income

Pro Tip: Wait for Long-Term Treatment

If you're close to the 1-year mark, consider waiting before selling. The tax savings can be substantial - potentially cutting your tax rate in half or more.

Capital Gains Tax Rates by Country (2026)

Tax rates vary significantly by country. Here's a comparison of major markets:

Country Short-Term Rate Long-Term Rate Notes
🇺🇸 United States 10-37% 0-20% Rate depends on income bracket
🇬🇧 United Kingdom 18-24% 18-24% No short/long distinction; £3,000 allowance
🇩🇪 Germany 26.375% 26.375% Flat rate (Abgeltungssteuer); €1,000 allowance
🇪🇸 Spain 19-30% 19-30% Progressive rates based on gain amount
🇫🇷 France 30% 30% Flat tax (PFU) includes social charges
🇨🇦 Canada ~26.5% ~26.5% 50% inclusion rate (only half is taxed)
🇦🇺 Australia Up to 45% Up to 22.5% 50% CGT discount for assets held > 12 months
🇨🇭 Switzerland 0% 0% No CGT for private investors

Strategies to Minimize Capital Gains Tax

There are several legal strategies to reduce your capital gains tax burden:

1. Hold Investments Long-Term

In countries like the US and Australia, holding investments for over a year can dramatically reduce your tax rate. This is the simplest and most effective strategy for most investors.

2. Tax-Loss Harvesting

Sell losing investments to offset your gains. If you have $5,000 in gains and $3,000 in losses, you only pay tax on $2,000 net gain.

Watch Out for Wash Sale Rules

In the US, you can't claim a loss if you buy the same or "substantially identical" security within 30 days before or after the sale. Similar rules exist in other countries.

3. Use Tax-Advantaged Accounts

Investments in accounts like 401(k), IRA (US), ISA (UK), or similar tax-advantaged accounts in other countries grow tax-free or tax-deferred.

4. Strategic Timing

If you expect to be in a lower tax bracket next year (retirement, sabbatical, etc.), consider delaying sales until then.

5. Gift or Donate Appreciated Stock

Donating appreciated stock to charity lets you avoid capital gains tax entirely while getting a tax deduction for the full market value.

Capital Gains Tax on Cryptocurrency

In most countries, cryptocurrency is treated as property for tax purposes, which means selling crypto triggers capital gains tax just like stocks.

Taxable events include:

  • Selling crypto for fiat currency (USD, EUR, etc.)
  • Trading one cryptocurrency for another
  • Using crypto to purchase goods or services
  • Receiving crypto as payment (also income tax)

Germany's Crypto Exception

In Germany, cryptocurrency held for over 1 year is completely tax-free (0% CGT). This makes Germany one of the most crypto-friendly countries for long-term holders.

Frequently Asked Questions

How is capital gains tax calculated?
Capital gains tax is calculated on the profit from selling an investment. The formula is: Tax = (Sale Price - Purchase Price - Fees) x Tax Rate. The rate depends on your country, holding period, and sometimes your income level.
Do I pay capital gains tax if I don't sell?
No. Capital gains tax only applies to "realized" gains - meaning gains from actually selling an asset. Unrealized gains (paper profits) are not taxed until you sell.
What's the difference between short-term and long-term capital gains?
In the US, short-term gains (assets held less than 1 year) are taxed as ordinary income at rates up to 37%. Long-term gains (held over 1 year) get preferential rates of 0%, 15%, or 20% depending on your income. Many other countries have similar distinctions.
Can I offset capital gains with losses?
Yes! This is called "tax-loss harvesting." You can use capital losses to offset capital gains. In the US, if losses exceed gains, you can deduct up to $3,000 of excess losses from ordinary income and carry forward the rest.
Which countries have no capital gains tax?
Switzerland has 0% CGT for private investors. Belgium, New Zealand, Singapore, and Hong Kong also have no or very limited capital gains taxes. However, tax rules can be complex, and other taxes may apply.
Is cryptocurrency taxed as capital gains?
In most countries including the US, UK, and most of Europe, cryptocurrency is treated as property. Selling crypto for profit triggers capital gains tax. Germany has a notable exception: crypto held for over 1 year is tax-free.

Track Your Capital Gains Automatically

Stop calculating manually. AllInvestView tracks your cost basis, holding periods, and capital gains in real-time across all your investments.

Start Free Trial