The 30-Day Bed & Breakfast Rule: UK CGT Guide 2025-26

Last updated: April 2026

If you sell shares and then buy the same shares back within 30 days, you might think you've crystallised a gain or loss for tax purposes. But HMRC disagrees. The 30-day bed and breakfast rule (formally known as the “identification rule”) overrides the normal Section 104 pool matching and instead matches your sale against the repurchase. This fundamentally changes how your gain or loss is calculated.

Why Does the Rule Exist?

The name “bed and breakfast” comes from a practice that was common before 1998: an investor would sell shares just before the end of the tax year (“put them to bed”) to crystallise a loss and reduce their CGT bill, then buy the same shares back the next morning (“at breakfast”). The investor's economic position was unchanged — they still owned the same shares — but they'd claimed a tax loss.

HMRC closed this loophole by introducing the 30-day rule. If you sell and repurchase within 30 calendar days, the disposal cost is set to the repurchase price, not the original pool cost. This typically eliminates the artificial loss.

Key point: The 30-day window starts from the day after the sale. If you sell on 1 June, the rule applies to any repurchase between 2 June and 1 July (inclusive). A repurchase on 2 July would be outside the window.

How the Rule Works — Step by Step

  1. You sell shares of security X.
  2. Within the next 30 calendar days, you buy shares of the same security X.
  3. The sale is “matched” against the repurchase. The allowable cost of the disposal becomes the cost of the repurchased shares (not the Section 104 pool cost).
  4. The repurchased shares are not added to the Section 104 pool — they are consumed by the B&B match.

Example 1: A Loss Being Reduced

James owns 500 shares of Vodafone (VOD) in his Section 104 pool with a total cost of £1,250 (average cost £2.50 per share). He decides to sell and rebuy:

Timeline

  • 1 March: James sells 500 shares at £2.00 each = £1,000 proceeds
  • Without B&B rule: Gain = £1,000 − £1,250 = −£250 loss
  • 15 March: James buys 500 shares at £2.10 each = £1,050 cost
  • With B&B rule: The sale is matched to the 15 March purchase
  • Actual gain: £1,000 − £1,050 = −£50 loss

The B&B rule has reduced James's loss from £250 to just £50. This is exactly what HMRC intends — James's economic position barely changed (he sold at £2.00 and rebought at £2.10), so the tax relief should reflect the true economic movement, not the artificial comparison to his original cost.

Example 2: A Gain Being Affected

Emma owns 200 shares of Barclays (BARC) with a pool cost of £600 (£3.00 per share). She sells and rebuys at a lower price:

Timeline

  • 10 July: Emma sells 200 shares at £5.00 each = £1,000 proceeds
  • Without B&B rule: Gain = £1,000 − £600 = £400 gain
  • 25 July: Emma buys 200 shares at £4.50 each = £900 cost
  • With B&B rule: The sale is matched to the 25 July purchase
  • Actual gain: £1,000 − £900 = £100 gain

In this case, the B&B rule actually reducesEmma's gain (from £400 to £100) because she repurchased at a lower price. The remaining pool cost of £600 is preserved for future disposals. This can occasionally work in the investor's favour, but it's not something you should plan around.

Legitimate Alternatives: Bed and ISA, Bed and SIPP, Bed and Spouse

While the classic bed and breakfast is caught by the 30-day rule, HMRC does allow several legitimate alternatives:

Bed and ISA

Sell shares in your taxable general investment account and repurchase them within your Stocks & Shares ISA. The sale is a genuine disposal for CGT purposes (the 30-day rule does not apply because the repurchase is in a different tax wrapper). Any future gains on those shares within the ISA are entirely tax-free. This is one of the most effective CGT planning strategies available to UK investors.

Bed and SIPP

Similar to bed and ISA, but you repurchase within your Self-Invested Personal Pension. The disposal crystallises the gain or loss, and the shares then grow tax-free within the pension. You also receive tax relief on the pension contribution. However, you cannot access pension funds until age 55 (rising to 57 in 2028).

Bed and Spouse

Transfer shares to your spouse or civil partner (this is a no-gain, no-loss transfer and is not a taxable event). Your spouse then sells and repurchases in their own name. Each spouse has their own annual exempt amount (£3,000 for 2025-26), so this can effectively double the household's tax-free allowance. The 30-day rule does not apply because the repurchase is by a different person.

Want to check if the B&B rule applies? Use our free bed and breakfast rule calculator to enter your sell and re-buy details and see your actual gain or loss instantly.

Key Points to Remember

  • The 30-day window is calendar days, not business days — weekends and bank holidays count.
  • The rule applies per security — selling Vodafone and buying Barclays within 30 days does not trigger the rule.
  • If you sell more shares than you repurchase, only the quantity repurchased is matched under B&B. The remainder is matched against the Section 104 pool.
  • The same-day rule takes priority over the 30-day rule. If you buy and sell on the same day, those are matched first.
  • B&B matched acquisitions are not added to the Section 104 pool — they are entirely consumed by the match.

How CGT Tracker Handles This

CGT Tracker automatically detects bed and breakfast matches when processing your broker CSV. The engine applies HMRC's matching rules in the correct priority order: same-day first, then 30-day B&B, then Section 104 pool. Each matched disposal is clearly labelled in your tax report, so you can verify exactly how each gain or loss was calculated.

Related Guides

Ready to calculate your exact CGT position?

Upload your broker CSV and get your SA108 figures in minutes.

Start free trial

14-day free trial. No credit card required.