The same-day rule, the 30-day rule and the Section 104 pool

3 minute readChecked on 4 Nov 2026

The short answer

When you sell, swap or spend a coin, HMRC decides what it cost you in this order: first, coins of the same type you bought on the same day; next, coins you bought in the 30 days after the sale; and last, the average cost of all the coins of that type you already held (the "Section 104 pool").

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

Things that catch people out

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.

Start your calculation

Official guidance

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