TL;DR
Capital gains tax is a tax on the profit you make when you sell an investment for more than you paid, you are taxed on the gain, not the full sale amount, and usually only when you actually sell. Unrealised gains on assets you still hold are generally untaxed, so long-term investors can defer tax simply by not selling. Many systems tax short-term gains more heavily than long-term ones, rewarding patience. For globally mobile investors, capital gains tax usually depends on where you are tax-resident, so tracking your residency days is essential.

Capital gains tax is a tax on the profit you make when you sell an investment for more than you paid for it. You are taxed on the gain, not the full sale amount, and only when you actually sell, unrealised gains on assets you still hold are generally not taxed. Rates and rules vary widely by country and by how long you held the asset.
Realised vs unrealised gains
A gain is only 'realised', and usually only taxable, when you sell. While you hold an asset, its rise in value is an unrealised gain that is generally untaxed. This is why long-term investors can defer tax simply by not selling.
That deferral is more powerful than it looks. Money that would otherwise have gone to the tax authority stays invested and keeps compounding for you, year after year. It is one of the quiet structural advantages of a patient, buy-and-hold approach: the longer you let a winning position run untouched, the longer the whole pre-tax amount keeps working.
Holding period often matters
Many tax systems tax short-term gains (assets held briefly) more heavily than long-term gains (assets held longer). This rewards patient investing and is one more reason a buy-and-hold approach can be tax-efficient.

Because of this, the decision to sell is rarely just about the price. Selling a position that has only been held for a short time can trigger a higher tax bill than waiting a little longer to cross into long-term treatment, where one exists. The threshold and the size of the difference depend entirely on your jurisdiction, so it is worth knowing your own rules before you trade. Specific holding-period thresholds (e.g. the one-year line that separates short- and long-term treatment in some countries) vary by jurisdiction and should be confirmed locally.
Why residency is critical for expats
Capital gains tax usually depends on where you are tax-resident, not where the asset is held. Moving country, or spending too many days in one, can change which rules apply. Tracking your residency days carefully is essential for globally mobile investors.
For someone splitting the year across borders, this is where a great deal of money is won or lost. Two investors can hold an identical portfolio and sell on the same day, yet face very different tax outcomes purely because of where each was resident at the time. Many countries use a day-count test to decide residency, which is why a tax residency day counter is a practical companion to any cross-border investing plan, and why the 183-day rule comes up so often in expat tax discussions.
A note on the numbers
This article is educational and not tax advice; rates and rules change and differ by jurisdiction, so confirm your own position with a qualified adviser. A worked figure helps make the principle concrete: if you buy shares for 10,000 and later sell them for 13,000, your gain is 3,000, and it is that 3,000 profit, not the 13,000 sale proceeds, that capital gains tax is calculated on, at whatever rate your country applies to that holding period.
Open the tax residency day counter
Summary
Capital gains tax applies to the profit when you sell an investment for more than you paid. Learn how it works, short vs long-term, and why residency matters.
Written by
Federico RomaldiCo-Founder, Worthmap
Published: June 6, 2026
Federico is a co-founder of Worthmap, a wealth-intelligence platform built for serious investors. With a background in software engineering and a long-standing passion for value investing, he created Worthmap to bridge the gap between net-worth tracking and investment analysis.