What Is Capital Gains Tax?
Capital gains tax is a tax on the profit you make when you sell certain assets. Rules vary by country, especially the difference between ordinary income and capital gains.
By Finadence Editors 5 min read
Key takeaways
- Capital gains tax is generally based on profit from selling an asset, not on the asset’s full sale price.
- Many countries tax capital gains at different (often lower) rates than wages, but not always.
- Holding periods, exemptions, and allowances can change how much tax you owe.
- Tax rules differ by country and by asset type, so details matter.
Capital gains tax is a tax on the profit (gain) you make when you sell certain investments or other assets. Instead of taxing your whole sale price, most systems tax only the amount above what you paid (and certain costs).
What counts as a capital gain?
A capital gain usually happens when you sell an asset for more than your “cost basis” (what you paid plus certain expenses). That profit is the taxable gain in many countries.
Common examples include:
- Selling stocks or funds for a higher price than you bought them
- Selling a house, condo, or other property (rules often differ from investment assets)
- Selling other items treated as investments or capital assets in your country
In many places, losses can sometimes offset gains. But the ability to use losses and the limits on doing so vary widely.
How is capital gains tax different from income tax?
Capital gains tax and income tax are taxes on different things: gains versus ongoing earnings.
- Income tax is typically charged on wages, salary, business profits, and similar cash flow.
- Capital gains tax is charged on the profit from selling an asset.
Many countries apply different rates to capital gains because the gain is often viewed as less “regular” than wages. Still, this depends on your country and your situation.
For example, tax frameworks often differ by asset type and taxpayer details. Some countries treat gains as capital income; others blend them into broader income tax. Some also tax short-term gains more like ordinary income.
Which assets can trigger capital gains tax?
Capital gains tax usually applies when you dispose of assets that are treated as capital in your tax system.
This can include investment holdings (like shares) and certain real estate. But the definition of “capital asset,” plus the exemptions, can be very different from one country to another.
Here are a few examples of how countries handle it (not rules for a single place):
| Example asset | Often treated as capital gain? | Notes you may see |
|---|---|---|
| Shares or funds | Yes, commonly | Gains usually measured at sale vs. purchase price |
| A second home | Often yes | Primary residence exemptions may exist |
| Collectibles | Sometimes | Rules can be more specific |
| Business assets | Maybe | Sometimes taxed under business or income rules |
Because the categories and exemptions differ, you typically need to check how your country defines the asset and the event that counts as a “sale” or “disposal.”
How do holding periods affect capital gains?
Holding periods often matter because many countries tax shorter-held gains differently than longer-held gains.
A “holding period” means how long you owned the asset before you sold it. Common patterns include:
- Short-term gains taxed more like ordinary income
- Long-term gains taxed at a lower rate
- Special rules for certain assets, like property
Some systems also offer different treatment based on whether the asset was held in a regular taxable account versus a tax-advantaged account.
Holding periods are not universal. The exact length of a short vs. long category, and the rates/benefits attached to them, vary by country.
What are allowances and exemptions?
Many countries provide ways to reduce or eliminate capital gains tax, often through allowances, exemptions, or reliefs.
These can include:
- A general annual allowance that lets you realize a certain amount of gains with little or no tax
- Exemptions for a primary residence (often with conditions)
- Relief for low-income taxpayers, retirees, or specific circumstances
- Special rules for disability, inheritance, or moving between countries
The existence of allowances is common, but the size and eligibility criteria are not the same everywhere.
If you’re comparing across countries, here are a few named examples of how tax-advantaged accounts are used (again, not universal rules):
- A 401(k) in the US can defer taxes on retirement investments
- An ISA in the UK can shelter growth from capital gains tax (within limits)
- A TFSA in Canada can allow tax-free growth and withdrawals
Those aren’t “capital gains tax exemptions” in the traditional sense for taxable accounts, but they often change how capital gains are taxed by changing whether the gains occur in a taxable environment.
How do you calculate capital gains?
Capital gains are usually calculated as:
Capital gain = Sale price − cost basis − allowed selling costs
The “cost basis” is often the purchase price plus certain fees. Selling costs can include commissions or other expenses directly tied to selling.
Important details can affect the final number:
- Reinvested dividends or distributions can affect your cost basis in some countries
- Stock splits, mergers, or corporate actions can adjust your basis
- Currency conversions may apply if you sold an asset priced in another currency
The basic idea—profit equals what you received minus what you paid (plus qualifying costs)—is widely used, but the paperwork rules vary.
What tax rates apply?
Capital gains tax rates depend on where you live, your income level, and the holding period. No country rates are the same everywhere, and some countries blend gains into ordinary income.
To understand your situation, look for three things in your country’s rules:
- Whether you’re taxed on the gain or on the whole sale price (most tax profit, not the full sale price)
- Whether there’s a short-term vs. long-term distinction
- Whether you have an allowance, exemption, or special account treatment
Because rates vary, a good goal is to estimate your taxable gain first, then apply the country’s rules for the tax treatment you fit.
Tip: Start with the taxable gain, not the headline sale price. Keep your purchase date, purchase price, and selling expenses, because they drive the math.
Tip: Check whether your country distinguishes short-term and long-term gains. If it does, the same profit can face a different tax result depending on when you sold.
A simple example of capital gains math
Let’s say you bought a stock for $3,000 and paid $50 in purchase fees. Later you sell it for $4,200 and pay $100 in selling fees.
- Cost basis = $3,000 + $50 = $3,050
- Sale proceeds (net of selling fee) are handled by subtracting selling costs in the gain calculation here.
- Capital gain = $4,200 − $3,050 − $100 = $1,050
The key point: you’d typically tax the $1,050 gain (subject to your country’s allowances and rates), not the full $4,200 sale price. The arithmetic is the same in any currency.
How Profit Becomes a Capital Gain
Worked exampleHere’s the basic gain calculation for a hypothetical stock sale.
This shows how profit becomes a gain. Your actual tax depends on your country’s rules, holding period category, exemptions, and how losses are treated.
Frequently asked questions
Is capital gains tax only for stocks and funds?
Do I pay capital gains tax when I receive dividends?
What if I sell at a loss—do I still pay?
Does the tax event happen when I trade one investment for another?
For information only, not financial advice. This article explains general principles and does not take your circumstances into account. Rules, rates and products vary by country. Disclaimer.
More on Taxes
All Taxes →Tax Deductions vs Tax Credits: What’s the Difference?
Deductions reduce your taxable income. Credits reduce your tax bill directly. Knowing the difference helps you plan better.
4 min read
How Income Tax Brackets Work: Marginal vs Effective Rates
Income tax brackets spread your tax bill across portions of your income. Your marginal rate applies to the next dollar, while your effective rate is your overall average.
5 min read