UK Share and Crypto CGT Calculator (Same-Day, 30-Day and Section 104 Rules)

Log every buy and sell; each sale is matched by HMRC's three rules, and you get the gain per disposal, the pool cost and the tax for the year.

Se ejecuta en tu navegador. Tus archivos nunca salen de tu dispositivo. Cómo comprobarlo

…

Cómo hacerlo

  1. 1
    Set the year

    Pick the tax year and enter your taxable income and any losses brought forward.

  2. 2
    Add trades

    Record every buy and sell with quantity, sterling amount and fees.

  3. 3
    Check matching

    Read which rule matched each sale and look for "not held" warnings.

  4. 4
    Review the pool

    Open an asset's pool history to see the average cost after each trade.

  5. 5
    Read the tax

    See gains, exempt amount used, the 18% and 24% split and the tax due.

  6. 6
    Export

    Download the disposals CSV and print the computation for your records.

Sobre esta herramienta

When you sell shares, fund units or cryptoassets in the UK, the cost you set against the sale is not simply the price of the units you think you sold. HMRC uses fixed identification rules. A sale is matched first with anything of the same asset you bought on the same day. Whatever is left is matched with purchases in the next 30 days, earliest first; this is the rule that stopped the old trick of selling on 5 April and buying back on 6 April to use the exempt amount. Only then does the sale take its cost from the Section 104 pool, which holds every earlier purchase at one average cost. Exactly the same three rules apply to Bitcoin, Ether and other tokens, with a separate pool for each token. Doing this by hand in a spreadsheet is slow and error-prone, especially with dozens of trades. This ledger does the matching for you. Enter each buy and sell with its sterling value and fees, and the tool shows which rule matched which units, the allowable cost, the gain or loss on every disposal and the running pool for each asset. It then nets gains and losses for the tax year you choose, applies the annual exempt amount and any losses brought forward, and splits the taxable gain between the 18% and 24% rates using the basic rate band you have left.

How the three rules work together

The tool groups all buys of one asset on one day into a single purchase, and all sells on one day into a single disposal, because HMRC treats them that way. Same-day matching comes first. Next, any part of the sale that is still unmatched looks forward 30 days for purchases, and an earlier sale gets first claim on a buy-back. Units bought more than 30 days later go into the pool instead. Last, the remaining units come out of the Section 104 pool at its average cost, including the dealing fees of every purchase in it. The matched column in the log shows the result in plain words, such as "500 at 30-day, 1,000 from the pool".

From gains to tax

For the chosen tax year the tool adds up gains and losses. Losses of the same year are set off first and in full. Losses brought forward are used only to bring the gains down to the annual exempt amount, so none of the allowance is wasted. The taxable gain is taxed at 18% while it fits inside your unused basic rate band and at 24% above it. For 2024/25 the year is split at 30 October 2024, when the rates rose from 10% and 20%, and the deductions are set against the later gains first because that saves the most.

Worked example

The sample log holds GREENCO PLC shares and Bitcoin. On 10 June 2025, 1,500 shares are sold for £6,000 less £12 fees. On 24 June, 500 are bought back for £1,912 including fees, so those 500 are matched under the 30-day rule. The other 1,000 come from a pool of 3,000 shares costing £8,424, so their cost is £2,808. The gain is £1,268. On 3 November, 400 shares are sold and 400 bought on the same day, giving a £14 loss. In January 2026, 0.3 BTC is sold for £21,000 less £60; the pool of 0.75 BTC cost £23,620, so the cost is £9,448 and the gain £11,492. Net gains for 2025/26 are £12,746. After the £3,000 exempt amount, £9,746 is taxable. With taxable income of £30,000, £7,700 of band is left: £7,700 at 18% and £2,046 at 24% gives CGT of £1,877.04.

Limits

This is not tax advice; check GOV.UK or HMRC for your own case. The tool does not handle share reorganisations, rights issues, scrip dividends, accumulation fund notional income, employee share schemes, crypto staking income, DeFi lending or hard forks. You must enter sterling values yourself. The 30-day rule here assumes you were UK resident when you bought back.

Ejemplo práctico

Selling 1,500 shares and buying 500 back 14 days later: 500 match the buy-back cost, 1,000 come from the pool, and the gain is £1,268.

Datos rápidos

Preguntas frecuentes

What is the 30-day bed and breakfast rule?

If you buy the same asset within 30 days after a sale, the sale is matched with that later purchase instead of the pool, at the new purchase price.

Does the Section 104 pool apply to crypto?

Yes. HMRC's cryptoasset guidance uses the same-day, 30-day and pool rules, with one pool for each type of token.

Are fees allowable?

Yes. Broker commission, stamp duty and exchange fees add to the cost on purchases and reduce proceeds on sales.

When must I report my gains?

When gains are above the annual exempt amount, or total proceeds are over £50,000, or you want to claim a loss.

Is swapping one crypto for another a disposal?

Yes. Enter it as a sale of the first token and a purchase of the second, both at the sterling value on the day.

Does buying back in an ISA trigger the 30-day rule?

No. Shares bought inside an ISA, or by your spouse, are not matched with your sale, which is why "bed and ISA" is common.

Totalmente gratisSin coste, sin registro
Tus archivos son privadosTodo se ejecuta en tu navegador
Fácil en tu idiomaDisponible en muchos idiomas