1. Home
  2. Guides
  3. Capital gains tax on shares

Capital gains tax on shares: how it works in 2026/27

Last updated . Written by Divisio Capital. Figures checked against GOV.UK on 15 November 2026.

The short answer, for 2026/27 (6 April 2026 to 5 April 2027):

  • Allowance: the first £3,000 of your gains for the year is tax-free.
  • Rates: 18% on gains within your basic rate Income Tax band, 24% above it.
  • Matching: a sale is matched with shares bought the same day, then in the next 30 days, then with the section 104 pool at its average cost.

If you sell shares for more than they cost you, the profit is a capital gain. In the UK you can be taxed on it if your gains for the tax year are above the allowance, unless the shares were in an ISA. This guide covers the rules for the 2026/27 tax year, with an example worked through in pounds.

The gain

Your gain is usually the difference between what you paid for your shares and what you sold them for. You can deduct certain costs, such as stockbrokers' fees and the Stamp Duty Reserve Tax you paid when you bought the shares. If you give shares away, other than to your spouse, civil partner or a charity, the gain is usually worked out from their market value instead.

Source: GOV.UK, Tax when you sell shares: work out your gain.

The allowance and the rates for 2026/27

The tax year runs from 6 April 2026 to 5 April 2027. Your gains for the year are added up and the annual exempt amount comes off them. What is left is taxed at a rate that depends on your taxable income.

Capital gains tax for individuals, 2026/27
What2026/27
Annual exempt amount£3,000
Gains that fall within your basic rate Income Tax band18%
Gains above the basic rate band24%

So a basic rate taxpayer can pay 18% on part of a gain and 24% on the rest, once the gain added to their income goes past the basic rate band. A higher or additional rate taxpayer pays 24%.

Sources: GOV.UK, Capital Gains Tax rates and annual tax-free allowances and Capital Gains Tax rates. The Budget on 28 October 2026 lists the same allowance and rates for 2027/28 (Budget 2026, Annex A: rates and allowances). Checked against GOV.UK on 15 November 2026.

Which shares a sale is matched with

If you bought the same company's shares at different times and prices, you do not choose which ones you sold. HMRC matches a sale with shares bought the same day, then with shares bought in the 30 days after it, then with the section 104 holding at its average cost. The same-day and 30-day rules guide explains the first two, with examples, and the section 104 holding guide shows how the pool's average cost is kept.

Source: GOV.UK, HS284 Shares and Capital Gains Tax (2026).

A worked example

Sam holds shares in one company in a general account (not an ISA), and makes no other gains or losses in 2026/27.

Sam's purchases
DateBoughtPriceFees and stamp dutyTotal cost
12 May 20221,000 shares£4.00£30.00£4,030.00
4 March 2024500 shares£5.00£25.00£2,525.00
Section 104 holding: 1,500 shares, an average of £4.37 a share£6,555.00

The sale

On 3 November 2026 Sam sells 1,200 shares at £9.00, paying a £12 dealing fee, and buys none back on that day or in the 30 days after.

Proceeds: 1,200 × £9.00, less the £12 fee£10,788.00
Cost from the pool: 1,200 × £4.37£5,244.00
Gain£5,544.00
Less the annual exempt amount£3,000.00
Taxable gain£2,544.00
Tax if it all falls within the basic rate band (18%)£457.92
Tax for a higher rate taxpayer (24%)£610.56

Sam's pool now holds 300 shares with a cost of £1,311.00 (still £4.37 a share), ready for the next sale.

The same sale, with a buy-back

Now suppose Sam buys 200 shares back on 20 November 2026, 17 days after the sale, at £8.50, paying £20.50 in fees and stamp duty: £1,720.50 in all. Because that is within 30 days, 200 of the 1,200 shares sold are matched with the buy-back first, and only the other 1,000 with the pool. The proceeds are £8.99 a share (£10,788 over 1,200).

200 shares matched with the buy-back: £1,798.00 less £1,720.50£77.50
1,000 shares matched with the pool: £8,990.00 less £4,370.00£4,620.00
Gain£4,697.50
Less the annual exempt amount£3,000.00
Taxable gain£1,697.50

The 200 shares bought back are used up by the match and do not join the pool. Sam owns 500 shares, and the pool holds those 500 at a cost of £2,185.00.

Shares in an ISA

Shares you hold in an ISA are not subject to capital gains tax, so selling them uses none of the allowance and needs no matching. If you hold the same company in an ISA and a general account, only the general account's purchases and sales count. See the ISA allowance guide for how much you can put in each year.

Source: GOV.UK, Tax when you sell shares.

What to keep a record of

When you know your gain, GOV.UK explains how to work out whether you need to pay, and how to report and pay.

How Divisio works it out

Divisio does this matching for you from the purchases and sales you have recorded or imported: the same day, then the next 30 days, then the section 104 holding, with fees and stamp duty from your broker's files, and this tax year's earlier sales counted first. Portfolios marked as an ISA, SIPP, Lifetime ISA or Junior ISA are left out. The capital gains tax on shares page lists everything it counts, and the demo shows it on two example portfolios with no sign-up.

Questions people ask

What about shares given to a spouse or civil partner?

GOV.UK says that if you give shares away, the gain is usually worked out from their market value, and it names gifts to your spouse, civil partner or a charity as the exception (Tax when you sell shares: work out your gain).

Do I pay capital gains tax on shares sold inside an ISA?

No. GOV.UK lists shares you have put into an ISA among those you do not pay Capital Gains Tax on, so selling them uses none of the £3,000 allowance.

How and when do I report a gain?

GOV.UK gives two ways: in a Self Assessment tax return for the tax year after the sale, or through HMRC's online service to report and pay Capital Gains Tax, where you report by 31 December in the tax year after the gain and pay by 31 January (Report and pay your Capital Gains Tax).

Did the October 2026 Budget change capital gains tax on shares?

Not the allowance or the rates: the Budget on 28 October 2026 lists £3,000, 18% and 24% for 2027/28, as for 2026/27. It also said Stamp Duty and Stamp Duty Reserve Tax on shares will be replaced by a Securities Transfer Tax from late 2027 (Budget 2026: Overview of tax legislation and rates, paragraph 1.64).

See your own shares this way

Add what you own, from any broker, in a couple of minutes. Every feature is free during the beta, and no card is asked for. Or look round the demo first: two example portfolios, no sign-up.

For informational purposes only, not financial or tax advice. Tax rules depend on your own circumstances and can change; GOV.UK has the rules in full. Prices from Yahoo Finance, which can be delayed, usually by 15 minutes and on some exchanges by more.