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
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