The core idea: tax on profit, not on value
Capital gains tax (CGT) is a tax on the profit from selling an asset that has risen in value. Shares, funds, bonds, property and crypto assets can all fall under it, depending on the country. Many countries do not call it "capital gains tax" at all; the gain may be taxed within income tax, or under a separate schedule. The underlying logic is similar almost everywhere.
Three questions drive the result:
- Did you actually sell (realise the gain)?
- What was the gain after your cost basis, fees and any losses?
- How long did you hold the asset, and what rate or allowance applies in your country?
This guide walks through each, with round, hypothetical numbers. It is education, not tax advice, and the rates used in examples are illustrative assumptions.
Realised vs unrealised gains
An unrealised gain is a rise in value on an investment you still own. A realised gain happens when you sell, or in some systems when you are treated as having disposed of the asset.
If you buy a fund for 10,000 and it is worth 12,000 a year later, you have a 2,000 unrealised gain. In most countries, no capital gains tax is due yet. Tax usually arises when you sell.
This timing matters for two reasons:
- Deferral. Tax is postponed while you hold, so more money stays invested and compounds.
- Control. In many systems you choose when to realise a gain, which can influence which tax year it falls into.
A few situations can count as a disposal even without a cash sale, such as swapping one crypto asset for another, gifting an asset in some countries, or moving tax residence. Rules vary, so check the current official source for your jurisdiction.
Cost basis: the starting point of every calculation
Your cost basis is, broadly, what you paid for the asset, including purchase fees or stamp duties where allowed. The gain is:
Sale proceeds − cost basis − allowable selling costs = capital gain (or loss)
If you bought the same investment several times at different prices, your country will have a rule for which units are treated as sold. Common approaches include:
- First in, first out (FIFO): the oldest units are treated as sold first.
- Average cost: a pooled average price is used.
- Specific identification: you choose which lots are sold, where permitted.
Reinvested dividends often increase your cost basis, because they were taxed (or counted) as income when received. Forgetting this can cause the same money to be taxed twice.
Holding periods: why time can change the rate
Many countries tax short-term gains differently from long-term gains. The dividing line, rates and even the existence of a distinction vary.
- United States (at the time of writing): assets held for one year or less generally produce short-term gains taxed like ordinary income. Longer holdings generally get lower long-term rates, which are tiered by income.
- United Kingdom (at the time of writing): no short-term or long-term split. Instead, individuals have an annual exempt amount, and gains above it are taxed at rates that depend on income band and asset type.
- India (at the time of writing): listed equity and equity funds held beyond twelve months are treated as long-term, with a separate rate and a yearly exemption threshold on long-term gains. Other assets use different periods and rates. See our India-specific guides for detail.
- Some countries have no capital gains tax on individual investors in many cases, while others tax gains only after short holding periods.
Because governments change these figures regularly, treat any number you read, including those above, as something to confirm with the current official tax authority.
For a deeper look at this one factor, see our guide on short-term vs long-term capital gains.
Allowances, exemptions and wrappers
Most systems soften the tax in at least one of these ways:
- Annual allowance or exemption: the first slice of gains each year is tax-free (the UK annual exempt amount is one example; India's yearly threshold on certain long-term equity gains is another).
- Tax-advantaged accounts: gains inside certain accounts, such as ISAs in the UK or some retirement accounts elsewhere, are sheltered from CGT or deferred.
- Asset-specific relief: for example, primary-residence exemptions on property in several countries.
Allowances are usually "use it or lose it" each tax year, which is why people sometimes realise gains gradually rather than all at once. That is a planning consideration, not a recommendation, since selling for tax reasons alone can conflict with your investment goals.
Worked example: from gain to tax bill
All rates below are illustrative assumptions chosen for easy arithmetic. They are not real rates for any country.
Step 1: A simple gain
| US dollars | Indian rupees | |
|---|---|---|
| Cost basis (purchase) | $10,000 | ₹10,00,000 |
| Sale proceeds | $12,000 | ₹12,00,000 |
| Capital gain | $2,000 | ₹2,00,000 |
| Illustrative tax rate | 15% | 15% |
| Tax due | $300 | ₹30,000 |
You keep $1,700 (or ₹1,70,000) of the gain after tax.
Step 2: Add costs and a loss
Now suppose that in the same tax year you also sold a different investment at a $500 loss (₹50,000), and paid a $50 fee (₹5,000) when selling the winning investment.
In many systems, allowable selling costs reduce the gain and realised losses offset gains, though the exact rules and any limits differ by country.
- Gain: $2,000
- Less loss: $500
- Less selling fee: $50
- Net taxable gain: $1,450
- Tax at the illustrative 15%: $217.50
The tax fell from $300 to $217.50, a total reduction of $82.50. That breaks down as:
- $75 from the loss ($500 × 15%)
- $7.50 from the fee ($50 × 15%)
The rupee version works the same way: net taxable gain of ₹1,45,000, tax of ₹21,750, a reduction of ₹8,250 from ₹30,000 (₹7,500 from the loss plus ₹750 from the fee).
Notice what this does and does not show. Losses and fees reduce tax, but you are still worse off than if the loss and fee had never happened. A deductible loss softens the blow; it does not turn it into a benefit.
Step 3: Add an allowance
Suppose your country gave a tax-free allowance of $1,000 (illustrative). The net gain of $1,450 would be reduced to $450 taxable, and the tax at 15% would be $67.50. Real allowances differ in size and in how they are applied, so check the current figures.
Capital losses: what they can and cannot do
Losses are part of the system, and the rules usually include limits:
- Losses typically offset gains of the same kind first.
- Unused losses may be carried forward to future years, sometimes only if reported on time.
- Some countries allow a limited amount of loss against ordinary income; others do not.
- Anti-avoidance rules can block losses if you repurchase the same or a very similar asset within a set window. The exact window and wording differ by country.
Deliberately realising losses to reduce tax is a topic of its own. Our guide on tax-loss harvesting explains the mechanics and the trade-offs.
What happens inside funds
How you hold an investment changes when tax appears.
- Direct shares: you realise a gain when you sell the shares.
- Mutual funds and ETFs: you generally realise a gain when you sell fund units. Some countries also tax gains or distributions that the fund passes on to you, so a fund can create a tax event even if you did not sell.
- Accumulating vs distributing funds: the way income is paid out can change the tax treatment, depending on country.
The rules vary enough that a fund which is tax-efficient in one country may not be in another.
Currency and cross-border complications
If you invest in assets priced in a different currency, the gain is often calculated in your home currency. That means exchange-rate movements can create or erase part of a taxable gain.
Expats and globally mobile investors may face more than one tax system: the country of residence, the country where the asset is located, and sometimes citizenship-based rules. Tax treaties may reduce double taxation, but they do not remove the need to report. Our guides on foreign investments for expats and NRI taxation cover these angles.
Common mistakes
- Ignoring fees and reinvested dividends when working out cost basis, which can overstate the gain.
- Losing records. Without purchase dates and prices, calculating a gain years later is slow and error-prone. Keep contract notes, statements and annual summaries.
- Letting tax drive the whole decision. Holding a concentrated position purely to avoid tax can create a risk larger than the tax saved.
- Assuming one country's rules apply everywhere. Holding periods, allowances and loss rules differ.
- Missing deadlines. Late reporting can forfeit loss carry-forwards or trigger penalties.
- Relying on old figures. Rates, thresholds and allowances change; confirm them with the official tax authority each year.
A simple process to follow
- Record the purchase: date, price, units and fees.
- Track reinvestments and corporate actions such as splits, which can change per-unit cost.
- Before selling, estimate the gain, check whether the holding period or allowance matters, and note any losses you may offset.
- After selling, keep the contract note and the calculation.
- At filing time, use the official forms or a qualified tax professional, especially for cross-border situations.
Trade-offs to keep in mind
Tax efficiency is worth caring about, but it is one input among several. Selling to realise a loss may leave you out of the market. Holding longer for a lower rate means staying exposed to price swings. Using sheltered accounts can come with contribution limits or access rules. A sensible approach weighs tax against diversification, goals and risk tolerance rather than treating it as the sole objective.