1. The same-day rule
All your purchases of one coin on the same day are treated as one purchase, and all your disposals that day as one disposal. The disposal is matched with that day's purchases first.
2. The 30-day rule
Whatever is left of the disposal is matched with coins of the same type you buy in the next 30 days, earliest purchase first. This is sometimes called "bed and breakfasting". It means that selling and buying back within a month doesn't reset the cost of your coins.
3. The Section 104 pool
Anything still left comes from your pool: all the coins of that type you hold, with their total cost added together. The cost of the coins you dispose of is the pool's total cost times the share of the pool you dispose of. Each type of coin has its own pool (bitcoin and ether are pooled separately), and the pool includes the same coin on every exchange and wallet you use. NFTs aren't pooled.
A worked example
Made-up figures, one type of coin ("Token X"), and no fees to keep it simple. Sam buys and sells like this:
| Date | What happened | Tokens | Pounds |
|---|---|---|---|
| 10 May 2025 | Buys | 10 | £1,000 |
| 1 Aug 2025 | Buys | 10 | £3,000 |
| 15 Jan 2026 | Sells | 8 | £2,400 |
| 15 Jan 2026 | Buys | 2 | £500 |
| 5 Feb 2026 | Buys | 3 | £450 |
Before 15 Jan, Sam's pool holds 20 tokens that cost £4,000 in total (£200 each on average). The sale of 8 tokens for £2,400 (£300 each) is matched like this:
| Rule | Tokens | Proceeds | Cost | Gain |
|---|---|---|---|---|
| Same day (15 Jan purchase) | 2 | £600 | £500 | £100 |
| 30 days (5 Feb purchase, 21 days later) | 3 | £900 | £450 | £450 |
| Pool (£4,000 × 3 ÷ 20) | 3 | £900 | £600 | £300 |
| Total | 8 | £2,400 | £1,550 | £850 |
- The 2 tokens bought on 15 Jan and the 3 bought on 5 Feb are used up by the matching, so they never join the pool.
- Afterwards the pool holds 17 tokens with a cost of £3,400 (£4,000 − £600).
- Without the 30-day rule, the 6 tokens not matched on the same day would all have come from the pool at £200 each (£1,200), and the gain would have been £700. The cheaper buy-back within 30 days makes this year's gain higher.
- This sale is in the 2025-26 tax year (6 Apr 2025 to 5 Apr 2026), so its £850 gain counts towards that year's £3,000 allowance.
Things that catch people out
- Swaps count. Swapping Token X for another coin is a disposal of Token X and a purchase of the other coin, both at the value in pounds at the time.
- Missing files. If a purchase on another exchange is missing, the pool's cost is too low and your gains look too high.
- UK dates. "Same day" and "30 days" use UK dates, so a late-night trade stamped in another time zone can land on a different day.
- Fees are generally allowable costs. A fee paid in a coin can also be a small disposal of that coin (HMRC Cryptoassets Manual, CRYPTO22280).
Let the app do the matching
Get My Gains applies these three rules to your exchange files, coin by coin, and is tested against the worked examples in HMRC's Cryptoassets Manual. It runs in your browser: nothing is uploaded.
Official guidance
- CRYPTO22200: pooling, the same day rule and the 30 day rule
- CRYPTO22250: pooling examples (CRYPTO22251 to 22257)
- Check if you need to pay tax when you sell cryptoassets (GOV.UK)
This guide is general information, not tax advice. It covers individuals who are UK residents; companies have different rules. It is not connected to or endorsed by HMRC. Check HMRC's guidance or ask an accountant before you file.
Rules checked against HMRC's Cryptoassets Manual (updated 28 Nov 2025) on 4 Nov 2026.
More guides: all guides · downloading your exchange history · gains under £3,000? · got an HMRC letter? · crypto tax in the UK, explained · SA108 crypto boxes