A sale is still a disposal if you buy the same shares back within 30 days. The repurchase can change the cost used to work out your gain or loss. 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 an eligible 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
- Start with shares sold that are still unmatched after checking same-day purchases.
- Check purchases of the same class in the same company by the same person in the same capacity during the next 30 calendar days, earliest first. UK residence at the time of the purchase matters. Include purchases at other taxable brokers. See HMRC’s matching rules.
- Use each purchase to match as many outstanding shares as it covers. Its acquisition cost applies to that matched quantity.
- After checking all eligible purchases, use the Section 104 pool for the remaining shares where you have a holding.
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 Barclays shares with a pool cost of £600 (£3.00 per share). She stays UK resident, trades the same share class and has no other purchases to match. Assume there are no fees.
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
The £4.50 repurchase cost is £1.50 higher per share than the £3.00 pool cost. Across 200 shares, that increases the matched cost by £300 and reduces the gain from £400 to £100. The £5.00 sale price still exceeds the repurchase cost, so Emma has a gain of 50p per share. Her pool retains its 200 shares and £600 cost for a later disposal.
ISAs, pensions and shares owned by a spouse
The tax treatment depends on who beneficially owns each holding and whether it is in a taxable account.
Bed and ISA
A sale in your general investment account remains a taxable disposal. A purchase inside your Stocks & Shares ISA is outside personal taxable share matching. Check any other purchases in your taxable accounts.
Bed and SIPP
A purchase inside a registered pension falls outside your personal taxable share pool. Contribution relief and pension withdrawals have separate rules. Include the sale made through your taxable account.
Bed and Spouse
A sale by one person and a genuine purchase by their spouse is different from the same person selling and buying back. Simply transferring shares to a spouse who then sells and repurchases does not avoid their own 30-day matching. Ownership, transfer and connected-person rules matter; get advice before arranging a transaction.
Want to check if the B&B rule applies? Use our free bed and breakfast rule calculator to compare one sale with one repurchase and see the gain or loss before fees on the matched quantity.
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 one purchase covers only part of the sale, check every other eligible purchase within the 30-day window before using 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.