Investing glossary · Accounts, tax and pensions

Capital gains tax on shares and funds explained

By Alpesh B Patel OBE · Last reviewed 15 November 2026

How the gain is worked out

The gain is what you sell for, minus what you paid, minus allowable costs such as dealing fees and stamp duty. Shares of the same company bought at different times are pooled and averaged. Which rate applies depends on your taxable income plus your gains in that tax year.

Ways to reduce it legally

  • Use ISAs and pensions: gains inside them are tax-free.
  • Bed and ISA: sell investments and buy them back inside an ISA, using your £3,000 allowance each year.
  • Losses: losses can be set against gains in the same year and carried forward if reported to HMRC within four years.
  • Spouses and civil partners can transfer assets between them without CGT, so both allowances can be used.
  • Gilts are exempt from CGT for individuals.

The 30-day rule

If you sell shares and buy the same shares back within 30 days outside an ISA or pension, the sale is matched with the repurchase for tax, so you cannot crystallise a gain or loss that way. Buying back inside an ISA or a spouse’s account is not caught.

Worked example

A higher-rate taxpayer sells shares for £23,000 that cost £10,000: a £13,000 gain. After the £3,000 allowance, £10,000 is taxed at 24%: £2,400.

Questions people ask

What is the capital gains tax allowance for 2026/27?

£3,000 for individuals and £1,500 for most trusts. It was left unchanged for 2027/28 at the October 2026 Budget.

What are the CGT rates on shares?

18% within the basic-rate band and 24% above it, for 2026/27.

Do I pay CGT on an ISA or pension?

No. Gains inside ISAs and pensions are free of capital gains tax.

When do I have to report a gain?

Through self-assessment if your total gains are above the allowance, or if your total sale proceeds are more than £50,000 even when gains are below it.

Related terms

  • Bed and ISASelling investments held outside a tax wrapper and buying them back inside an ISA, so future gains and income are tax-free.
  • ISA (Individual Savings Account)A UK tax wrapper: interest, dividends and gains inside it are free of UK income tax and capital gains tax, and you do not need to declare them.

See Capital gains tax (CGT) in the full glossary →

Sources

Important: this page is education and information only. It is not financial or tax advice or a personal recommendation, and it does not take your circumstances into account. Tax rules can change and depend on your circumstances; UK figures are for the 2026/27 tax year. The value of investments and pensions can fall as well as rise, and you may get back less than you put in. Examples are illustrations, not predictions. If you are unsure what is right for you, speak to a regulated financial adviser.

Keep in touch

Get free investing lessons by email.

Free investing lessons from Alpesh, new guides and tools, and webinar invitations. No spam, unsubscribe at any time.

5.0 51 GOOGLE REVIEWS · OCT 2026