Skip to main content
Tax · CGT

The 30-day rule (bed-and-breakfasting)

If you sell shares or fund units and buy the same ones back within 30 days, the "bed and breakfast" rule matches the sale with the shares you bought back, so you cannot use a quick sale and re-purchase to realise a loss (or a gain). Before 1998 investors could sell one evening and buy back the next morning; the Finance Act 1998 brought in the 30-day rule. Here is how it works in 2026/27, how it fits with section 104 pooling, and which alternatives remain.

By · Reviewed

The 30-day rule (section 106A of the Taxation of Chargeable Gains Act 1992) stops "bed and breakfasting": selling shares to realise a loss and buying them straight back. If you buy shares of the same class within 30 days after a sale, the sale is matched with those new shares rather than your section 104 pool, so little or no loss arises and the loss stays built into your holding until a later sale. It applies to shares, fund units and other securities, and HMRC applies it to fungible crypto tokens; it does not apply to property, art or NFTs. Alternatives: buy back after more than 30 days, buy back inside an ISA, let your spouse buy, or buy a similar but different fund.

The mechanic

When you sell shares or fund units, the law decides which of your holdings you sold, in a fixed order (HMRC Capital Gains Manual CG51560):

  1. Same day: shares of the same class bought on the same day as the sale (section 105).
  2. Next 30 days: shares of the same class you buy in the 30 days after the sale, earliest first (section 106A(5)). This is the "bed and breakfast" rule.
  3. The section 104 pool: everything else, at the pool's average cost (section 104).

So if you sell and then buy back the same shares within 30 days, the sale is matched with the shares you bought back, and the gain or loss is worked out against their cost, not the pool's average. A sale and quick re-purchase at a similar price therefore produces little or no gain or loss, and your pool and its original cost are left as they were.

Three details matter:

Traded options can meet the rule in two ways. The first runs through the shares. Buying or writing an option on a share acquires no shares, so on its own it is not matched with an earlier sale of them. But when a written put is assigned, or a bought call is exercised, the shares that arrive are an acquisition, and section 144 of the Taxation of Chargeable Gains Act 1992 treats the option and that purchase as one transaction; inside the 30 days after a sale, the sale is matched with them. Shares called away under a written call are a disposal in the same way, so buying the shares back within 30 days brings the rule in. The second runs through the options themselves. HMRC pools options of the same series (the same share, type, strike and expiry) in a section 104 holding and applies the share identification rules to them (CG55535), so a bought option sold at a loss and the same series bought again within 30 days are matched like shares. Examples 10 to 12 of the options tax worked examples put each case in pounds: a BP call bought back ten days after it was sold at a loss, a Tesco put assigned 15 days after a loss-making share sale, and BP shares bought back a week after being called away.

Worked example

Loss-harvesting attempt blocked by the rule

You hold 1,000 shares of XYZ plc in your section 104 pool, total cost £10,000 (£10 a share)£10,000
The price falls to £6. You sell all 1,000, hoping to realise a £4,000 loss£6,000 proceeds
Next day (inside the 30 days), you buy 1,000 XYZ shares back at £6£6,000 cost
The sale is matched with the shares bought back, not with the pool
Gain or loss on the sale: £6,000 proceeds − £6,000 cost£0
What you hold now: 1,000 shares with an allowable cost of £10,000 (the original pool cost carries on)£10,000

No loss arises this year. The loss is not lost, though: it is still built into your holding, because the shares you now own carry the original £10,000 cost. If you later sell at £6 without buying back within 30 days, you realise the £4,000 loss then; if the price recovers to £10 and you sell, there is no gain to pay tax on. The rule defers the loss rather than destroying it, but you cannot use it in the year you wanted to.

Three legitimate workarounds

1. Wait more than 30 days

The simplest approach. Sell, then buy back on the 31st day after the sale or later. The sale is then matched with your section 104 pool and the loss is realised. Counting the days carefully is worth it; a few days' margin costs little.

Risk: you are out of the market while you wait. If the price rises, you buy back higher; if it falls, you buy back lower.

2. Bed and ISA

Sell the shares in your general investment account and buy the same shares inside your Stocks and Shares ISA. The ISA regulations treat ISA investments as held in a different capacity from shares you hold directly (Individual Savings Account Regulations 1998, regulation 34), and section 106A only matches shares held in the same capacity, so the 30-day rule does not match the sale with the ISA purchase. The gain or loss on the sale is worked out against your pool in the normal way. The repurchase uses your ISA allowance (£20,000 for 2026/27).

See Bed-and-ISA for the mechanism. Buying back inside a SIPP works in a similar way, because the pension scheme, not you, owns the shares, but contributions have their own limits.

3. Bed and spouse

You sell, and your spouse or civil partner buys the same shares with their own money. The 30-day rule only matches shares bought by the same person, so your sale is matched with your pool and your loss stands. The shares your spouse buys have their own cost.

Two cautions. Transfers between spouses living together are at "no gain, no loss", so if you give your spouse the money to buy, be clear the money and the shares are genuinely theirs. And section 16A of the Taxation of Chargeable Gains Act 1992 denies a loss that arises from arrangements whose main purpose, or one of whose main purposes, is to secure a tax advantage, so take advice before relying on this for large amounts.

The "different but correlated" workaround

Instead of selling and re-buying the same fund, sell Fund A and buy Fund B with similar but not identical exposure. Examples:

Units in two different funds from different providers are not shares of the same class, so the 30-day rule does not match one with the other, and the loss on the first fund is realised. Your market exposure stays broadly similar while you wait out the 30 days, or permanently.

HMRC has not published guidance treating two different funds that track the same index as the same holding. The general anti-avoidance rule on losses in section 16A still applies to arrangements made mainly for a tax advantage, so for large amounts take advice.

Same-day rule (the other matching rule)

Separate from the 30-day rule: if you buy and sell shares of the same class on the same day, the sale is matched with that day's purchases first, before the 30-day rule is considered (section 105). It mostly affects people who trade within the day.

How the rule applies to crypto, property and art

CGT rates and using losses in 2026/27

For 2026/27 the annual exempt amount is £3,000, and gains on shares above it are taxed at 18% within your unused basic rate band and 24% above it. A loss must be reported to HMRC within 4 years of the end of the tax year in which it arose. Losses in a year are set against gains of the same year first, even if that wastes some of the exempt amount; losses brought forward from earlier years are only used to bring your gains down to the exempt amount.

Sources and methodology

Checked on 3 October 2026.

For positions involving complex pooling, derivatives or overseas assets, see the guide to choosing a qualified UK tax adviser. The methodology page explains how we check figures.

Editorial accountability
Open Trust Centre →

Pages are checked against the primary sources listed on each page and reviewed by the Editor; corrections are logged in the changelog. Pages are drafted with the help of AI tools (how AI is used). No affiliate revenue. No sponsored content. No paid placements.

Editorial policy Corrections policy How we make money The Editor Methodology

UK Tax Drag is an independent publication by Finsolve Consulting Limited, not affiliated with or endorsed by HMRC, GOV.UK or any government body.