This page explains how the rules work. It isn't advice on whether to sell or buy anything: that depends on your own situation.
What is Bed and ISA?
Selling investments in a general (taxable) account and buying them again inside an ISA, so future growth is sheltered. The sale is a normal disposal and counts towards your gains for the year. You can put up to £20,000 a year into ISAs (2026/27). Many brokers offer it as a service.
Does the 30-day rule apply to Bed and ISA?
HMRC's share matching rules apply to shares bought by the same person "in the same capacity" (CG51560). The GOV.UK pages we checked don't say directly how that applies to a purchase inside an ISA, so ask your broker or an accountant before relying on it.
What is bed and breakfasting?
Selling something and buying it back shortly afterwards. HMRC matches a sale with any of the same shares or tokens you buy in the 30 days after it, so the sale's cost becomes the new purchase price, not your old pooled cost, and the gain you meant to use may mostly vanish. See the 30-day rule for crypto and for shares.
Worked example (made-up figures)
Alex holds 400 units of a fund in a general account, costing £8,000 (£20 each). They're now worth £30 each. Alex has no other gains in 2026/27.
| Step | Amount |
|---|---|
| Sell 300 units at £30 in Mar 2027 | £9,000 |
| Cost: 300 × £20 from the pool | £6,000 |
| Gain, covered by the £3,000 allowance | £3,000 |
| Capital Gains Tax | £0 |
If Alex bought 300 units back in the same general account within 30 days for £9,150, the sale would be matched with that purchase instead: a £150 loss rather than a £3,000 gain, with the old £6,000 cost still in the pool. Dealing costs are left out to keep it simple.
Can I transfer shares or crypto to my spouse to use their allowance?
GOV.UK says you don't pay Capital Gains Tax on assets you give to your husband, wife or civil partner, unless you were separated and didn't live together at all in that tax year. Each of you has your own £3,000 allowance as an individual. When they later sell, their gain is worked out from what you originally paid.
- The matching rules look at purchases by the same person, so your spouse buying shares doesn't match your sale (CG51560).
- For crypto, see gifting crypto to your spouse.
Can I carry over unused CGT allowance?
No. GOV.UK only describes carrying forward unused losses, not an unused allowance: see CGT allowance and rates by year.
Should I use losses before 5 Apr?
Losses in the same tax year are taken off that year's gains first, so a loss made before 5 Apr reduces this year's gains. Losses from earlier years only bring your gains down to the allowance, not below it, and what's left carries forward. You must report a loss within 4 years of the end of the tax year to use it (crypto losses).
Working it out with Get My Gains
Get My Gains reads your exchange and broker files, applies HMRC's matching rules and the allowance for each year, and shows your gains and estimated tax. It runs in your browser: nothing is uploaded. It's free to check your gains and estimated tax.
Work out crypto and shares together Just crypto
Official guidance
- Capital Gains Tax allowances (GOV.UK)
- Capital Gains Tax: gifts (GOV.UK)
- Capital Gains Tax: if you make a loss (GOV.UK)
- CG51560: share identification rules (HMRC Capital Gains Manual)
- Individual Savings Accounts (GOV.UK)
- HS284 Shares and Capital Gains Tax (2026)
This guide is general information, not tax advice or investment advice. It covers individuals who are UK residents. It is not connected to or endorsed by HMRC. Check HMRC's guidance or ask an accountant before you file.
Checked against GOV.UK and HMRC's manuals on 12 Nov 2026.
More guides: all guides · CGT allowance and rates by year · ISAs and pensions · gifts to a spouse