M
M
e
e
n
n
u
u
M
M
e
e
n
n
u
u

Capital gains tax

Selling shares: the same-day rule, 30-day bed and breakfasting rule and Section 104 pool

When you sell shares, HMRC matches them in a set order. We explain the same-day rule, the 30-day rule and the Section 104 pool, with a worked example.

By Harrington & Holt

· Tax team

KEY POINTS

  • Shares sold are matched first with shares bought the same day.

  • Next, they are matched with shares bought in the 30 days after the sale.

  • Anything left comes from the Section 104 pool at average cost.

  • The 30-day rule stops a quick sell and buy back from creating a gain or loss on paper.

  • Gains above £3,000 are taxed at 18% or 24% in 2025 to 2026.

If you have bought the same shares at different times and different prices, which ones have you sold? You don’t get to choose. HMRC has fixed rules for matching a sale with earlier or later purchases, and they decide how much gain you make.

These rules apply to shares of the same class in the same company held outside an ISA or pension. They also apply, with some changes, to units in funds and to cryptoassets.

How it works

When you sell shares, they are matched in this order:

  • Same day: shares of the same class you bought on the same day as the sale

  • Next 30 days: shares you buy in the 30 days after the sale, if you are UK resident when you buy them

  • Section 104 pool: all the other shares of that class you hold, at their average cost

The Section 104 pool

All your shares of the same class in the same company form one pool, known as the Section 104 holding. Each share in it is treated as costing the same average amount. When you sell part of the pool, the cost you deduct is the number of shares sold, divided by the total in the pool, times the total pool cost.

Why the 30-day rule exists

This is often called the bed and breakfasting rule. In the past, people sold shares in the evening and bought them back the next morning, purely to use their annual exempt amount or create a loss. The 30-day rule stops that. If you buy back within 30 days, the sale is matched with the new purchase, not the older, cheaper shares in your pool.

Who it affects

  • Investors who buy the same shares in several lots

  • People who reinvest dividends into extra shares

  • Anyone who sells and buys back the same shares within a month

  • Employees with share schemes who sell some shares and keep others

Key dates

  • Tax year 2025 to 2026 runs from 6 April 2025 to 5 April 2026

  • Annual exempt amount: £3,000

  • CGT rates on shares: 18% in your basic rate band and 24% above it

  • 31 January 2027: online Self Assessment deadline for gains made in 2025 to 2026

Questions people are asking

Can you show me a worked example?

Sam bought 1,000 shares in a company for £4,000 in 2018 and another 500 for £3,000 in 2021. The Section 104 pool is 1,500 shares costing £7,000.

On 10 June 2025, Sam sells 1,200 shares at £8 each, for £9,600. On the same day Sam buys 200 shares for £1,560. On 25 June 2025, Sam buys another 300 shares for £2,250. Ignoring dealing costs, the 1,200 shares sold are matched like this:

  • 200 with the same-day purchase: proceeds £1,600, cost £1,560, gain £40

  • 300 with the 25 June purchase, which falls within 30 days: proceeds £2,400, cost £2,250, gain £150

  • 700 from the Section 104 pool: proceeds £5,600, cost £3,267 (700 divided by 1,500, times £7,000), gain £2,333

Sam’s total gain is £2,523. That is within the £3,000 annual exempt amount, so with no other gains in the year there is no tax to pay. Afterwards, the pool holds 800 shares with a cost of £3,733. The 500 shares bought in June were matched with the sale, so they don’t join the pool. If Sam had matched everything with the pool instead, the cost would have been £5,600 and the gain £4,000, which would have been over the allowance.

Does the 30-day rule work against me if prices fall?

It can. If you sell at a loss and buy back within 30 days at a similar price, the loss largely disappears, because the sale is matched with the new shares. If you want to crystallise a loss to use against other gains, it is worth understanding this first. Our guide to capital losses has more.

What about shares I gave my spouse?

Transfers between spouses and civil partners living together don’t usually create a gain. We explain this in our article on gifts to family and a spouse.

Our Capital Gains Tax advice team can work out your pool and gains, especially if you have years of purchases to piece together.

Please bear in mind

This article is general information and is not personal advice. Share reorganisations, scheme shares and older holdings can follow extra rules. Please speak to an adviser before you sell.

This article is general information for discussion only. It is not tax, legal or financial advice and does not take your circumstances into account. Tax rules change often. Please speak to us before acting on anything here. Read our editorial standards.

Ready to take control of your tax planning?

Get in touch

Whether you have questions or just want to explore options, we’re here.

By submitting, you agree to our Terms and Privacy Policy.

HEADQUARTERS in London

Ready to take control of your tax planning?

Get in touch

Whether you have questions or just want to explore options, we’re here.

By submitting, you agree to our Terms and Privacy Policy.

HEADQUARTERS in London

Ready to take control of your tax planning?

Get in touch

Whether you have questions or just want to explore options, we’re here.

By submitting, you agree to our Terms and Privacy Policy.

HEADQUARTERS in London

£
0
0
,
0
0
0
,
0
0
0

Tax saved by Harrington and Holt clients

2026 YTD

ENTER SITE

£
0
0
,
0
0
0
,
0
0
0

Tax saved by Harrington and Holt clients

2026 YTD

ENTER SITE