Skip to content

Crypto CGT & Disposals

Crypto Same-Day and 30-Day Rules: A Full Worked Example

9 min read

The three-step UK matching order for crypto disposals, with a complete numeric worked example showing same-day, 30-day and s104 pool steps in sequence.

The short answer: three steps, fixed order

When you dispose of a cryptoasset, HMRC requires you to match the disposal against acquisitions in a fixed order. Step one: acquisitions made on the same day as the disposal. Step two: acquisitions made in the 30 days immediately following the disposal (the bed-and-breakfasting rule), matched chronologically. Step three: the s104 pool at average cost. You work through the steps in sequence; only unmatched amounts fall through to the next step.

The order is set by statute (TCGA 1992 sections 105 and 106A) and it applies to every UK individual holding cryptoassets as an investment. It's also the step that's easiest to get wrong if you trade actively and do the figures yourself, because software that isn't set up for UK rules may match first-in, first-out (FIFO) or let you pick lots (specific identification), and both are wrong for UK tax. HMRC sets out all three rules in CRYPTO22200 and works them through in its CRYPTO22250 examples.

Step 1: the same-day rule

If you acquire and dispose of the same token on the same date, the disposal is matched against that day's acquisition first, at the actual acquisition cost paid that day. The same-day acquisition is consumed by the match and does not enter the s104 pool at all. If you sell more than you buy on the same day, the surplus falls through to step two.

This rule exists to prevent a simple tax play: buying in the morning, selling at a gain in the afternoon, and claiming the pool average cost (which might be much lower) as the deductible cost. The same-day rule closes that by using the actual same-day cost instead.

Step 2: the 30-day (bed-and-breakfasting) rule

Any disposal not matched under the same-day rule is then matched against acquisitions of the same token in the 30 days immediately after the disposal date, in chronological order (earliest acquisition first). And if you've sold more than once before the rebuy, it goes to the earliest of those sales first: HMRC's words are "earliest disposal first". This is the bed-and-breakfasting rule, named after the historic share practice of selling before tax year end and rebuying the next morning to crystallise a gain or loss.

The 30-day rule matters most in two scenarios. First, where you sell at a loss and rebuy within 30 days: without the rule, you could crystallise the loss while still holding the position. The rule neutralises this by matching the disposal against the rebuy cost rather than the pool, reducing or eliminating the loss. Second, where you sell at a gain to use up your allowance and buy straight back: without the rule you'd bank the gain tax free and reset your cost higher. The rule matches the sale to the rebuy instead, so the gain mostly doesn't arise and your pool keeps its old, lower cost.

Acquisitions matched under the 30-day rule also do not enter the s104 pool; only unmatched acquisitions go into the pool.

Step 3: the s104 pool

Once same-day and 30-day matching are exhausted, any remaining disposal amount is matched against the s104 pool. The pool holds all previous unmatched acquisitions of the token, and the allowable cost is the pool's average cost at the time of disposal. Each token type has one pool; ETH is one pool, BTC is another, and so on. NFTs don't work this way: each one's separately identifiable, so HMRC says they aren't pooled and none of the matching rules apply.

The average cost updates every time an unmatched acquisition enters the pool: new cost divided by new total quantity. When a disposal draws from the pool, the corresponding cost leaves the pool proportionally, and the average remains unchanged for the remaining balance.

FIFO, LIFO and specific identification aren't allowed for UK individuals. A FIFO figure isn't a formatting choice; it's a different calculation that usually gives a different gain or loss, and HMRC expects the UK method.

Worked example: all three steps in one scenario

Here's one token (call it ETH) with four transactions across seven weeks, all in early 2027, so inside the 2026/27 tax year. The prices are illustrative, but the matching and the arithmetic follow the real UK rules. You can't match a sale until you can see the 30 days after it, so lay out every trade first, then apply the three steps.

Transaction ledger

Date Event Quantity Price per ETH Total £
15 Jan Buy 10 ETH £1,200 £12,000
20 Feb Buy 2 ETH £1,500 £3,000
20 Feb Sell 8 ETH £2,000 £16,000 proceeds
5 Mar Buy 3 ETH £1,800 £5,400

The disposal is the 8 ETH sold on 20 February for £16,000. Apply the three steps.

Applying the matching rules

Step 1, Same-day (20 Feb buy of 2 ETH): The 20 Feb disposal is matched first against the 20 Feb acquisition. 2 ETH are matched at the actual cost of £1,500 each = £3,000. This 2 ETH buy does not enter the pool. That leaves 6 ETH of the disposal unmatched.

Step 2, 30-day (5 Mar buy of 3 ETH): The 5 Mar buy falls within 30 days after 20 Feb, so 3 ETH are matched against the disposal at the 5 Mar acquisition cost: 3 ETH × £1,800 = £5,400. This 3 ETH buy does not enter the pool. That leaves 3 ETH of the disposal unmatched.

Step 3, s104 pool (remaining 3 ETH): The pool at the point of disposal holds only the 15 Jan buy (the same-day and 30-day buys were matched out, not pooled). Pool: 10 ETH, total cost £12,000, average cost £1,200. The disposal draws 3 ETH from the pool at £1,200 each = £3,600. Pool balance after: 7 ETH, remaining cost £8,400, average still £1,200.

Gain on each matched tranche

Matched by ETH matched Buy it's matched to Proceeds (@ £2,000) Allowable cost Gain
Same-day rule 2 ETH 20 Feb buy (same day) £4,000 £3,000 (@ £1,500) £1,000
30-day rule 3 ETH 5 Mar buy (13 days after the sale) £6,000 £5,400 (@ £1,800) £600
s104 pool 3 ETH Pool built from the 15 Jan buy £6,000 £3,600 (@ £1,200 avg) £2,400
Total 8 ETH £16,000 £12,000 £4,000

Cross-check: total proceeds £16,000 minus total allowable cost (£3,000 + £5,400 + £3,600 = £12,000) = £4,000 gain. Confirmed.

Pool state summary

After event Pool ETH Pool cost Avg cost/ETH
15 Jan buy (enters pool) 10 ETH £12,000 £1,200
20 Feb buy (matched same-day, does NOT enter pool) 10 ETH £12,000 £1,200
20 Feb disposal (3 ETH drawn from pool) 7 ETH £8,400 £1,200
5 Mar buy (matched 30-day, does NOT enter pool) 7 ETH £8,400 £1,200
Calculator

Match my trades

For one token. List its buys and sells and we'll match each sell the way HMRC does: buys on the same day first, then buys in the next 30 days, then your pool at average cost. A buy is what it cost you, fees included; a sell is what you received, after fees.

Before the first trade below. 0 if none.

  1. Trade 1
  2. Trade 2
  3. Trade 3
  4. Trade 4
Up to 20 trades.

Used to work out how much basic-rate band is left, as in the quick estimate.

Your result

Your answer's ready. Press below to see it.

Why crypto-tax software often gets this wrong

Some crypto-tax tools let you choose FIFO, LIFO or specific identification as your cost method, because some tax systems allow that choice. You don't get it in the UK. HMRC requires the s104 average-cost pool, overridden by the same-day and 30-day rules in that same manual page, and its CRYPTO22250 examples show the order in action.

Run the example above through FIFO and all 8 ETH come from the 15 January buy at £1,200: a cost of £9,600 and a gain of £6,400, against the correct £4,000. Specific identification would let you pick the dearest coins to shrink the gain instead. HMRC accepts neither figure.

Even with UK settings switched on, these are the gaps worth checking for: the 30-day rule applied only to loss-making sales, a buy in the 30 days after a profitable sale not picked up, or several buys and sells on one day not matched in the right proportions. If you trade actively, these aren't obscure edge cases; they're a normal week. Trading most days? Here's how we work with crypto day traders.

The deeper issue is that the same-day and 30-day steps require the software to look forward in time from each disposal, not just backward. A calculation that runs through your CSV once, in date order, can't do this correctly; it needs a second pass over the whole ledger. That's why the quick estimate in our calculator doesn't try to apply the matching rules: it takes one total, so it can't see the trades either side of each sale. Its Match my trades mode does the matching for a short list of trades in one token. Matching your whole history needs every transaction and a calculation built on your own ledger. That's the work we take on, and you can read who we are and how we work.

Want this checked against your specific situation?

Leave your details and a one-line summary. A specialist will come back to you, with no obligation.

We'll only use your details to respond to your enquiry. We don't pass them to any other firm. See our Privacy Policy.

Where this leaves your CGT figure

Once you have the total gain from all disposals in the tax year, the CGT calculation follows a fixed sequence.

First, offset any allowable capital losses from the same year or carried forward from earlier years. Losses must be claimed to be usable, normally within four years of the end of the tax year the loss arose in, and older unclaimed years can still count if they're inside that window. The two kinds don't work the same way, though. Losses from the same year come off in full, even if that wastes some of your allowance, while losses brought forward only bring your gains down to £3,000 (gov.uk on losses), so they're never used up against the allowance. Our guide to legitimate ways to cut crypto CGT covers loss claims alongside the other levers.

Second, deduct the annual exempt amount of £3,000 (frozen, 2026/27). If your net gains after losses are £3,000 or below, there's no CGT to pay. You may still have to report the disposals, though: if you're registered for Self Assessment, you report them once your total proceeds for the year are over £50,000, even with no tax due.

Third, apply the rate to what remains. Cryptoassets are non-residential assets. A basic-rate taxpayer pays 18% only on the portion of the taxable gain that fits inside their remaining basic-rate band (the basic-rate band ceiling is £37,700 of taxable income for 2026/27; the remaining room is £37,700 minus your taxable income other than the gain). Any gain above that boundary is taxed at 24%. Higher-rate and additional-rate taxpayers pay 24% on the whole taxable gain.

Continuing the example: total gain is £4,000. Assume no losses and no other disposals in the year. After the £3,000 annual exempt amount, taxable gain is £1,000. If you've got £30,000 of other taxable income, your remaining basic-rate band is £37,700 minus £30,000 = £7,700. The £1,000 gain fits entirely within that room: CGT at 18% = £180. If you're a higher-rate taxpayer with no basic-rate band left, it's CGT at 24% = £240.

This example has a single disposal. If you trade actively or swap tokens often, you may have dozens or hundreds of CGT events in a year, since crypto-to-crypto swaps are themselves disposals at the sterling market value at the moment of the swap. The £3,000 annual exempt amount is exhausted quickly under those conditions.

Getting your numbers reconciled

If you've used Koinly, Recap, CoinTracker or a similar tool to generate a tax report, the figures it produces may differ from a correct UK calculation for the reasons above. The gaps we check for first are: FIFO used instead of average cost, the 30-day rule applied only to loss-making disposals, same-day matching omitted or incomplete, and DeFi deposit events not treated as disposals.

Our crypto-tax software report review and reconciliation service works through your full transaction export against the UK rules and identifies where the software output diverges from what you would owe. The outcome is a corrected CGT figure and, where needed, a corrected Self Assessment return.

For a rough scenario estimate, use our crypto CGT estimator. The quick estimate takes the total gain you've already worked out and applies the £3,000 AEA and the 18% and 24% rates. Match my trades takes a short list of buys and sells for one token and runs the same three steps as the example above, showing which buy each sell was matched to. Use either for ballpark planning, not as a filing figure.

If you are unsure whether your situation is straightforward or not, the short answer is: if you traded more than once a month, swapped between tokens, used a DeFi protocol, or received staking or mining rewards, it probably isn't straightforward. A crypto Self Assessment review is the right starting point.

Common questions

What is the bed and breakfasting rule for crypto?
The 30-day (bed-and-breakfasting) rule means that if you sell a cryptoasset and then buy the same token within the next 30 days, HMRC matches the disposal against that later purchase rather than against your s104 pool. This prevents you from crystallising a loss (or locking in a gain at a higher cost) by selling and quickly rebuying. See HMRC CRYPTO22200, with worked examples in the CRYPTO22250 series.
Does the 30-day rule apply to crypto in the UK?
Yes. The same share-matching rules that apply to shares apply to cryptoassets. Disposals match same-day acquisitions first, then acquisitions in the following 30 days, then the s104 pool. Source: HMRC CRYPTO22200.
What order do you match crypto disposals in the UK?
Same-day acquisitions first, then acquisitions in the following 30 days (chronological order), then the s104 average-cost pool. This is fixed by statute and cannot be changed by the taxpayer.
Why does my Koinly report differ from HMRC rules?
Software that isn't set up for UK rules may match first-in, first-out (FIFO) or let you pick which coins you sold (specific identification). UK law requires the same-day rule, then the 30-day rule, then the s104 average-cost pool. Software that does not implement all three steps in the correct order will produce incorrect UK figures.
Is FIFO allowed for UK crypto tax?
No. FIFO (first-in, first-out) is not a permitted method for UK individuals calculating crypto CGT. The correct method is the s104 average-cost pool, subject to the same-day and 30-day matching rules taking priority. Source: HMRC CRYPTO22200.
What is a section 104 pool?
The s104 pool holds all your acquisitions of a given token in one aggregate. The allowable cost on any disposal is the average cost of the pool at that date. Each token type has its own separate pool. Source: HMRC CRYPTO22200.
How does the same-day rule work for crypto?
If you buy and sell the same cryptoasset on the same day, HMRC matches the disposal against the same-day acquisition, using that acquisition's actual cost rather than the pool average. The same-day acquisition does not enter the s104 pool at all.

Need help with your crypto tax position?

Tell us about your situation and we will explain what is involved.

Step 1 of 2 · About you

Optional: a bit more detail (helps us prepare)