Holding investments inside a taxable General Investment Account (GIA) used to be straightforward. When the Capital Gains Tax (CGT) annual exempt amount stood at £12,300, most DIY investors could rebalance or cash out modest gains without filing a Self Assessment tax return.
With the allowance frozen at £3,000 and higher-rate CGT on shares increased to 24%, an unwrapped account is far more hazardous. If your shares grow by even a moderate amount, selling them outside a tax wrapper triggers a tax charge.
The standard solution is a Bed & ISA: moving money from an unwrapped account into a Stocks & Shares ISA so future dividends and capital gains compound tax-free.
Because you cannot transfer shares directly across the wrapper boundary, the process involves a disposal. Here is the arithmetic of how Bed & ISA works, how HMRC's Section 104 pooling calculates your gain, and why the 30-day matching rule does not apply to an ISA repurchase.
1. The disposal rule: why you cannot "just transfer" shares
HMRC rules state that contributions into an ISA must be made in cash. You cannot move existing shares from a GIA into an ISA without selling them first, unless they originate from an approved employee scheme (such as a Save As You Earn or Share Incentive Plan).
A Bed & ISA therefore consists of two linked transactions:
- You sell holdings in your GIA, crystallising any capital gain or loss.
- The cash proceeds are transferred into your Stocks & Shares ISA (counting toward your £20,000 annual allowance) and used to repurchase the same shares or funds.
Most major UK brokers (such as Interactive Investor, AJ Bell, and Hargreaves Lansdown) offer an automated Bed & ISA instruction that executes both legs on the same day for a single dealing fee or discounted charge.
2. Working out the gain: Section 104 pooling
The most common mistake investors make with a Bed & ISA is assuming they can choose which shares they are selling.
If you bought 100 shares of a global index fund at £50 three years ago and another 100 shares at £80 last year, you cannot choose to sell the £80 tranche to claim a smaller gain. Under the Taxation of Chargeable Gains Act 1992, all identical shares held in an unwrapped account sit in a single Section 104 pool.
Your allowable cost is the weighted average price paid across all historic purchases.
Step-by-step pool calculation
Suppose your GIA transaction history shows two purchases of an ETF:
| Date | Transaction | Quantity | Price Paid | Total Cost |
|---|---|---|---|---|
| 15 May 2024 | Buy | 500 units | £10.00 | £5,000 |
| 10 January 2025 | Buy | 500 units | £14.00 | £7,000 |
| Total Pool | — | 1,000 units | — | £12,000 |
Your pooled average cost per unit is £12.00 (£12,000 ÷ 1,000 units).
Suppose the ETF now trades at £17.00 per unit, giving your 1,000 units a market value of £17,000. Your total unrealised gain is £5,000 (£17,000 − £12,000).
If you sell the entire holding, your £5,000 gain exceeds the £3,000 annual exempt amount by £2,000. As a higher-rate taxpayer, you would owe 24% tax on the excess (£480).
The partial Bed & ISA calculation
To stay within the £3,000 allowance, you only sell a fraction of your holding.
Every unit sold has a gain of £5.00 (£17.00 sale price − £12.00 pooled cost). To realise exactly £3,000 of gain:
$$\text{Units to sell} = \frac{£3,000}{£5.00} = 600\text{ units}$$
- You sell 600 units at £17.00, generating £10,200 of cash proceeds.
- The allowable cost is £7,200 (600 × £12.00).
- The capital gain is £3,000 (£10,200 − £7,200), which is completely covered by your annual CGT exemption.
- You transfer the £10,200 into your Stocks & Shares ISA and rebuy 600 units.
- Your remaining GIA pool retains 400 units with an allowable cost of £4,800 (400 × £12.00).
3. The 30-day matching rule: why an ISA is exempt
Under HMRC's "bed and breakfasting" anti-avoidance rules, if you sell shares in a taxable account and repurchase the same security within 30 days, the sale is matched against the repurchase price rather than your Section 104 pool. This rule was designed to stop investors crystallising artificial capital losses or harvesting allowances while keeping their market position.
However, an ISA repurchase is explicitly exempt from the 30-day rule.
HMRC treats a repurchase inside an ISA as held in a separate, tax-privileged capacity. The GIA disposal matches against your historic Section 104 pool as normal, crystallising the intended gain.
Where the 30-day trap still bites
The exemption only applies if the repurchase happens inside an ISA or SIPP. The 30-day rule still applies if:
- You sell shares in your GIA and rebuy them within 30 days in another unwrapped account (for instance, with another broker).
- You sell shares in your personal GIA and repurchase them in your spouse or civil partner's GIA within 30 days. Under Section 106A of the TCGA 1992, the disposal can be matched against the spouse's acquisition.
4. Staging Bed & ISA across tax years
If your unrealised gain exceeds £3,000, you do not have to sell the whole holding and pay tax. You can split the transaction across consecutive tax years.
Because the UK tax year ends on 5 April, you can harvest two allowances within a few weeks:
- Leg 1 (Late March): Sell enough units in your GIA to realise £3,000 of gain and move the proceeds into your ISA before 5 April (using part of this year's £20,000 ISA allowance).
- Leg 2 (After 6 April): Sell another tranche to realise up to £3,000 of gain against the new tax year's CGT allowance, and move the proceeds into your ISA (using part of the next year's £20,000 ISA allowance).
A married couple or civil partners can double this by transferring shares between each other before selling. Inter-spousal transfers are free of CGT, allowing a household to realise £6,000 of gains tax-free each tax year (£12,000 across a staged March/April window).
5. Why Bed & ISA matters even more after the 2027 pension rules
From 6 April 2027, unspent pension pots will be brought into the scope of UK Inheritance Tax (IHT).
For years, the standard strategy was to exhaust ISA savings first and preserve SIPP capital as an inheritance shelter. The new rules change that balance: pensions may face a 40% IHT charge on death, in addition to income tax when beneficiaries withdraw funds.
The Stocks & Shares ISA remains free of income tax, free of capital gains tax, and exempt from mandatory drawdown rules during your lifetime. Maximising your annual £20,000 ISA allowance through Bed & ISA transfers ensures your wealth compounds in the most flexible wrapper available under current UK law.
Check your Section 104 pool before you sell
Before submitting a Bed & ISA instruction to your broker, you need to know your exact pooled cost. Guessing your gain leads to underused allowances or unexpected Self Assessment liabilities.
Omnicogi calculates Section 104 pooled averages automatically from your raw broker CSV exports across Fidelity, Interactive Investor, AJ Bell, and other UK platforms—with no broker passwords or bank credentials required.