Free tool — nothing to install

30-day rule
checker

You sold shares, then bought the same shares back. Did HMRC's bed-and-breakfast rule catch it, and how much of the disposal did it take? Two dates and two quantities is all this needs.

Input — the two trades

No prices are asked for, because none are needed: which rule applies is decided by dates and quantities alone. What the shares cost changes the gain, never the matching.

Result

Verdict
Quantity matched
Remaining from the pool

Enter the two dates and quantities. The verdict comes from the engine’s own matching implementation, not from date arithmetic in this page.

Runs locally

The check runs inside this browser tab, in the same engine the desktop app uses. Nothing is sent anywhere. The verdict comes from the engine's own matching implementation rather than from date arithmetic in the page, so this cannot claim a window the engine does not honour.

What the 30-day rule is

If you dispose of shares and acquire the same shares within the following 30 days, those two are matched with each other — not with your Section 104 pool. The rule is section 106A of the Taxation of Chargeable Gains Act 1992, and it is usually met by people trying to do something perfectly sensible.

The classic case: you are sitting on a loss in December, you sell to crystallise it against gains made earlier in the year, and you buy back a fortnight later because you still want to own the thing. The loss you banked is not banked. Your disposal is matched against the repurchase, and the loss follows the new holding instead of landing in this year's return.

The details that catch people out

  • It is the 30 days after, not before. A purchase in the 30 days running up to a sale is an ordinary pool acquisition. Only what comes after is pulled back.
  • Day 30 is inside the window; day 31 is outside it. The boundary is exact, and this checker gets it from the engine, whose tests pin both sides of it.
  • Partial matches are normal. Sell 1,000 and buy back 300 and the rule takes 300 of them; the other 700 meet the pool as usual, and one disposal ends up with two different cost bases.
  • Same-day comes first. Shares bought and sold on the same day are matched with each other before the 30-day rule is reached at all.
  • A spouse buying back is not caught by this rule — s.106A applies to acquisitions by the same person. Other anti-avoidance rules may still be relevant, and this is the point at which to ask an accountant rather than a web page.

What it costs you, in money

The rule does not delete the loss. It moves it: the disposal is computed against what you paid on the repurchase, and the difference ends up in the cost of the shares you now hold — so it surfaces whenever you eventually sell those. What it does destroy is the timing, and timing is the whole point of a December sale.

To see the actual figures, you need what the shares cost. The Section 104 calculator takes those and shows the gain each rule produces.

Planning around this rather than reporting it? GainPool flags a bed-and-breakfast match before you make it, and shows how much of a gain or loss a repurchase would defer.

What GainPool does →

The desktop app

Every rule,
on your whole year.

Same-day, 30-day and pool matching across every broker you use, with the working shown for each figure. £12, once.

See what GainPool does