Capital Gain

A capital gain is the profit from selling an asset for more than it cost; selling for less gives a capital loss. Gains are usually taxed only when realised, and many countries tax short-term and long-term gains differently.

Buy something for one price, sell it later for a higher one, and the difference is a capital gain. Sell for less and it is a capital loss. The idea is simple, but the details matter: what counts as the cost, when the gain becomes real, how long you held the asset and how losses offset gains. This entry explains the concept with US and UK rules as factual examples. It is general information, not tax advice; tax treatment is covered in more detail in Capital Gains Tax.

Category
Trading Basics
Reading time
6 min
Also called
Capital loss, Realised gain, Realized gain
Updated

Capital gain in plain words

A capital gain is the profit you make when you sell an investment for more than you paid for it.1 If the sale price is lower than the cost, the result is a capital loss instead.

The US tax authority measures the gain as the amount you receive from the sale minus your adjusted basis, which is generally what the asset cost you.2 See Cost Basis.

The UK makes the same point from the other side: tax falls on the gain itself, not on the whole amount you receive when you sell.3

While you still hold the asset, any rise in value is only on paper. It turns into a realised gain when you sell. See Realized and Unrealized P&L.

How a capital gain is worked out, step by step

  1. Find the cost basis

    Start with what you paid for the asset. Gifts and inheritances follow different rules.2 See Cost Basis.

  2. Find the sale proceeds

    This is what you received when you sold, gave away, swapped or otherwise disposed of the asset.3

  3. Subtract

    Capital gain = sale proceeds − cost basis. A negative result is a capital loss.

  4. Check the holding period

    In the US, an asset held for more than one year gives a long-term result; one year or less gives a short-term result.2

  5. Net gains against losses

    Losses in the same year usually reduce gains before any tax is worked out.2

  6. Apply local rules

    Allowances, rates and reporting duties depend on the country. See Capital Gains Tax.

Worked examples

Example 1 — A simple gain on shares

Gain

A trader buys 50 shares at a hypothetical $40 and later sells them at $55. Trading costs are ignored to keep the numbers clear.

Example 1 — A simple gain on shares — calculation
Cost basis50 × $40 = $2,000
Sale proceeds50 × $55 = $2,750
Capital gain$2,750 − $2,000 = $750

The gain is the difference between proceeds and basis, not the $2,750 received.3

Example 2 — A loss offsets a gain

Net loss

In the same year the trader also sells another stock for a hypothetical $1,200 less than it cost.

Example 2 — A loss offsets a gain — calculation
Gain on stock A$750
Loss on stock B−$1,200
Net result$750 − $1,200 = −$450

Under US rules a net capital loss of up to $3,000 a year ($1,500 if married filing separately) can be deducted, and any excess carries forward to later years.2 See Tax-Loss Harvesting.

Example 3 — One day changes the holding period

Holding period

Under US rules, a stock is bought on 10 March 2025. The holding period starts the day after purchase and ends on the day of sale.2

Example 3 — One day changes the holding period — calculation
Count starts11 March 2025
Sold 10 March 2026Exactly 1 year: short-term
Sold 11 March 2026Over 1 year: long-term

Long-term status needs more than one year, so a sale on the anniversary date is still short-term.2

Kinds of capital gain compared

AspectWhat it meansTypical treatment
Unrealised gainPrice is above cost, asset still heldA paper gain until you sell
Realised gainAsset sold for more than its basisCounted in the year of sale.2
Short-term (US)Held one year or lessTaxed as ordinary income.2
Long-term (US)Held more than one yearRates of 0%, 15% or 20%, by income.2

Why capital gains matter

  • Measuring results

    Gains and losses show how a trade or investment actually ended. See Profit and Loss.

  • Tax planning

    Timing a sale can change whether a gain is short-term or long-term in the US.2

  • Total return

    Price gains plus income such as dividends make up the full return. See Total Return.

  • Choosing funds

    Index funds usually trade less and so tend to realise fewer capital gains than actively managed funds.4 See Active and Passive Management.

Advantages and disadvantages

Advantages

  • Easy to calculate once the cost basis is known.
  • Usually taxed only when you sell, so you control the timing.
  • Losses can offset gains under many tax systems.2
  • In the US, long-term gains can be taxed at lower rates than ordinary income.2

Disadvantages

  • A gain on paper can vanish before you sell.
  • Inflation can make a nominal gain smaller in real terms. See Inflation.
  • Record keeping is needed for basis, dates and costs.
  • Rules differ by country and change over time.

Going deeper

Read as far as you need. Each level builds on the one before it.

Gain, loss and basis

Beginner

Nearly everything you own for personal use or investment, such as a home or shares held as investments, counts as a capital asset under US rules.2

Losses on personal-use property, such as a car, are not deductible in the US.2

US and UK as examples

Intermediate

In the US, long-term gains for taxable years beginning in 2025 are taxed at 0%, 15% or 20% depending on taxable income, while short-term gains are taxed as ordinary income.2

In the UK, you do not pay Capital Gains Tax if your total gains for the year are below the tax-free allowance.3 GOV.UK gives that allowance as £3,000 for individuals.5

From 6 April 2026, UK gains are taxed at 18% when they fall within the basic Income Tax band and at 24% above it.6

Special categories

Advanced

US gains on collectibles and on qualifying small business stock can be taxed at up to 28%, and unrecaptured section 1250 gain at up to 25%.2

Investors with significant investment income may also owe the US net investment income tax.2 Repurchasing the same security right after a loss can trigger the Wash Sale Rule.

Common mistakes

  1. Taxing the whole sale amount

    Only the gain over the cost basis counts, not the full proceeds.

  2. Forgetting the basis

    Without records of cost and dates, the gain cannot be worked out correctly.

  3. Miscounting the holding period

    In the US, a sale on the one-year anniversary is still short-term.

  4. Ignoring losses

    Realised losses can reduce taxable gains under many systems.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1You buy shares for $3,000 and sell them for $3,800. What is the capital gain?
Q2Under US rules, which sale gives a long-term gain?

Key points to remember

  1. A capital gain is sale proceeds minus cost basis; a negative result is a capital loss.
  2. Gains are usually only on paper until the asset is sold.
  3. In the US, holding for more than one year makes a gain long-term.
  4. Losses can offset gains, within limits that depend on the country.
  5. Rules vary by country; this is general information, not tax advice.

Frequently asked questions

Is a capital gain the same as profit?

It is the profit from selling an asset for more than it cost. Income such as dividends or interest is a separate kind of return.

Do I owe anything on a gain I have not sold?

Generally no. Under most systems, including the US and UK, the gain is counted when you dispose of the asset.

Can a capital loss be useful?

Yes. Losses can usually offset gains, and in the US part of a net loss can reduce other income each year.2

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. Investor.gov (SEC). Capital Gain (glossary) (opens in a new tab) Checked .
  2. Internal Revenue Service. Topic no. 409, Capital gains and losses (opens in a new tab) Checked .
  3. GOV.UK. Capital Gains Tax: what you pay it on, rates and allowances (opens in a new tab) Checked .
  4. Investor.gov (SEC). Index Fund (glossary) (opens in a new tab) Checked .
  5. GOV.UK. Capital Gains Tax: tax-free allowances (opens in a new tab) Checked .
  6. GOV.UK. Capital Gains Tax rates (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.