What is the 30-day rule for crypto in the UK?

In short: If you sell a token and buy the same type back within 30 days, HMRC matches the sale with the new purchase, not your older tokens. It stops people selling at a loss and buying straight back just to cut their tax.

If you sell a token and buy the same type back within 30 days, HMRC matches the sale with the new purchase, not your pool. Tokens bought the same day are matched even before that. This stops people selling at a loss and buying straight back just to create a tax loss, and it can also change the size of a gain.

Where does the rule come from?

HMRC’s pooling guidance applies the share rules to tokens. The same-day rule is section 105 and the 30-day rule is section 106A of the Taxation of Chargeable Gains Act 1992. HMRC’s crypto guidance says not to pool costs when you buy tokens on the same day or within 30 days of selling, and points to helpsheet HS284. For shares, see selling shares and buying them back.

Matching order
OrderMatched with
1Tokens of the same type bought the same day
2Tokens of the same type bought in the 30 days after the sale, earliest sale first
3The section 104 pool

Worked example 1: trying to bank a loss

Ben holds 2 BTC in his pool at a cost of £100,000. The price has fallen. On 01/03/2027 he sells both for £80,000, hoping to claim a £20,000 loss to set against a gain on shares. On 10 March he buys 2 BTC back for £81,000.

How HMRC matches Ben’s sale
What Ben expectedWhat actually happens
Proceeds£80,000£80,000
Cost matched£100,000 (pool)£81,000 (10 March purchase)
Result£20,000 loss£1,000 loss

Because the 10 March purchase is matched with the sale, the 2 BTC in his pool are treated as never having left. They stay at a cost of £100,000, so the loss is not lost forever: it shows up when he finally sells. But it does not help this year.

Want your crypto tax return done for you?

A personal tax return is £69 one-off, including the crypto pages. You send your exchange exports and we work out the gains and income. You see the tax figure and approve the return before we file it. See what’s included.

Get started

Worked example 2: the same-day rule

Mia buys 1 ETH at 9am for £2,000 and sells 1 ETH at 5pm for £2,100. Her pool cost is £1,200 per ETH. The sale is matched with the 9am purchase, so the gain is £100, not £900. Her pool is untouched.

Does the rule apply if I buy a different token?

No. It only applies to the same type of token. Selling bitcoin and buying ether is two separate things. Whether two versions of a token on different chains are the “same type” depends on the facts. If you are unsure, write down your reasoning and apply it consistently.

What should I check?

  • Any purchase of the same token in the 30 days after each sale, on any exchange or wallet.
  • Purchases made by recurring buys you forgot about.
  • Staking rewards or airdrops of the same token received within 30 days, which also count as acquisitions.
  • That your software applies UK rules, not first-in-first-out.

Common mistakes

  • Matching with purchases in the 30 days before a sale. The rule only looks forward.
  • Assuming the rule cancels the gain or loss. It only changes which cost is used.
  • Applying the company rule. Companies use a different 10-day rule instead.

Common questions

Can my spouse buy back instead?

The rule applies per person. A purchase by your spouse is not matched with your sale. Do not do it just for tax without advice, as HMRC has anti-avoidance rules.

Does the rule apply to NFTs?

No. HMRC says NFTs are not pooled and no matching rules apply.

Is 30 days counted from the sale?

Yes, it covers acquisitions in the 30 days after the day of disposal.

Does this make a loss disappear?

No. The cost stays in your pool and is used when you sell later.

How Wenzo can help

You can do this yourself: HMRC’s guidance is free and the crypto section of the online return takes the totals. If you would rather hand it over, our personal tax return is £69 one-off. You send your exchange and wallet exports, we work out the figures in pounds, and you see the tax and approve the return before we file it.

Article reviewed

Also asked as: “bed and breakfast rule crypto”; “can I sell crypto at a loss and buy back”; “same day rule crypto uk”.

NextHow do I calculate my crypto gains?

Need help with your Self Assessment?

Call or WhatsApp us for a free, no-obligation chat about your tax return and exactly what it costs.

Call 020 7123 9335
WhatsApp us

Mon to Sat, 9am to 9pm