How do I calculate my crypto gains for HMRC?

In short: Keep each type of token in its own pot, with a running total of its cost. When you sell some, your cost is that share of the pot, and the gain is what you got less that cost and fees. Tokens bought the same day or in the 30 days after are matched first.

Put each type of token in its own pool and keep a running total of what the pool cost. When you dispose of some, your cost is that share of the pool. Proceeds less that cost and fees is the gain. Before using the pool, match any tokens bought the same day or in the 30 days after the sale.

What is a section 104 pool?

HMRC’s pooling guidance says each type of token needs its own pool. Every time you buy or receive that token, its number and cost go in. Every time you dispose of some, a proportion of the cost comes out. The pool cost is an average, so it does not matter which coins you think you sold. NFTs are the exception: each is unique, so it is not pooled.

In what order are disposals matched?

HMRC matching order for individuals
OrderRuleWhat it does
1Same-day ruleTokens of the same type bought on the same day as the sale are matched first
230-day ruleThen tokens of the same type bought in the 30 days after the sale
3Section 104 poolAnything left comes from the pool at its average cost

Our page on the same-day and 30-day rules explains the first two with an example. If you never buy back the same token within 30 days of selling, only the pool matters.

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

What costs can I deduct?

HMRC’s guidance allows transaction fees, the cost of advertising for a buyer or seller, contract drafting, valuation costs for working out the gain, and the share of pooled cost. You cannot deduct costs already claimed against income, or mining costs such as equipment and electricity.

Worked example

Ali’s bitcoin pool
DateEventTokens in poolPool cost
March 2022Buys 1 BTC for £30,0001.0£30,000
May 2024Buys 0.5 BTC for £20,0001.5£50,000
August 2026Sells 0.6 BTC for £36,000, fee £1000.9£30,000

The cost of the 0.6 BTC sold is £50,000 × 0.6 ÷ 1.5 = £20,000. The gain is £36,000 − £20,000 − £100 = £15,900. After the £3,000 allowance, £12,900 is taxable. The pool carries on with 0.9 BTC costing £30,000, which is the starting point next time.

What about fees paid in tokens?

If a fee is paid in tokens, HMRC says at CRYPTO22280 that the fee is itself a small disposal. In HMRC’s own example, someone sells 1,000 tokens for £5,000 and pays a one-token fee worth £5. Because both happen the same day, they are combined, giving a gain of £2,998.

What about tokens I received as income?

Tokens from staking, mining, an employer or an airdrop you were paid for go into the pool at the pound value that was taxed as income. HMRC says you do not pay Capital Gains Tax on value already taxed as income.

Common mistakes

  • Using first-in-first-out. That is the rule in some other countries, not the UK.
  • Mixing tokens on different chains that are really different assets.
  • Relying on an exchange report. HMRC says exchange reports are not tax calculations and do not track pooled costs.
  • Forgetting tokens held on a second exchange or in a private wallet. The pool covers all your tokens of that type.

Common questions

Do I need crypto tax software?

Not by law. A spreadsheet works for a few trades. Software helps with hundreds of trades across exchanges, but check its output. See do I need an accountant for crypto tax.

What exchange rate do I use?

A reasonable pound value at the time of each transaction, from a consistent source.

Is the pool per exchange?

No. It is per token type, across every exchange and wallet you own.

Where is the official worked example?

HMRC’s guidance includes a simple pool example, and helpsheet HS284 explains the same rules for shares.

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: “how to work out capital gains on crypto”; “crypto cost basis uk”; “average cost crypto tax hmrc”.

NextCrypto tax return: reporting 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