[Learn](https://saigo.io/learn.html)

# The 30-day rule

The second matching rule. A sale is matched with buys of the same token in the 30 days after it.

## How it works

- The window starts the day after the sale and ends 30 days after it.
- Only the part of the sale that the same-day rule did not cover is matched.
- Buys in the window are used earliest first, until the sale is covered.
- If several sales are waiting, the earliest sale is matched first.
- The cost of the matched tokens is their share of what that buy cost.
- Tokens matched this way do not go into the pool.

Anything still not matched comes from the section 104 pool.

So selling and buying back within 30 days does not give you the pool's average cost. The sale takes the cost of the tokens you bought back.

## Worked example (HMRC's example)

Your pool holds 14,000 tokens that cost £200,000. On 30 August you sell 4,000 for £160,000. On 11 September, 12 days later, you buy 500 for £17,500.

- **30-day rule: 500 tokens bought on 11 September**: £17,500
- **Pool: £200,000 × 3,500 ÷ 14,000**: £50,000
- **Total cost**: £67,500
- **Proceeds**: £160,000
- **Gain: £160,000 − £67,500**: £92,500

The pool is left with 10,500 tokens costing £150,000. The 500 bought on 11 September do not join it.

## HMRC guidance

- [CRYPTO22200: pooling and the matching rules](https://www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22200)
- [CRYPTO22255: HMRC's 30-day example](https://www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22255)
- [CG51560: the same-day and 30-day rules](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg51560)

## Related guides

- [The same-day rule](https://saigo.io/rules-same-day.html)
- [The section 104 pool](https://saigo.io/rules-pool.html)
- [How a gain or loss is worked out](https://saigo.io/rules-gain.html)

This page sums up HMRC's published guidance in plain words. It is not tax advice. Saigo is not affiliated with HMRC.

---

Saigo is not affiliated with HMRC.

Saigo is not tax advice. If you are unsure about your tax position, check with an accountant or tax adviser.

Email: [hello@saigo.io](mailto:hello@saigo.io)

This is a Markdown copy of https://saigo.io/rules-30-day.html.
