The simplest answer to how to avoid capital gains tax on shares is to hold them inside a Stocks and Shares ISA or a pension, where gains are never taxed. Outside those wrappers, UK investors can cut the bill with the £3,000 annual allowance, spouse transfers, losses and timing. For 2026/27 any remaining gain is taxed at 18% or 24%.
Founders and employees selling shares in their own company have extra options, mainly Business Asset Disposal Relief. Each method is covered below with 2026/27 figures and worked examples.
Capital gains tax on sale of shares in the UK for 2026/27
You pay CGT when you sell, give away or swap shares held outside a tax wrapper for more than you paid. The gain is the sale proceeds less the purchase cost and dealing costs such as broker fees and the stamp duty reserve tax paid when you bought.
| Item | 2026/27 figure |
|---|---|
| Annual exempt amount for individuals | £3,000 |
| Rate on gains within the basic rate band | 18% |
| Rate on gains above the basic rate band | 24% |
| Business Asset Disposal Relief rate | 18% on up to £1 million of lifetime gains |
| Dividend allowance (income, not gains) | £500 |
GOV.UK lists the current CGT rates. Your gain is added on top of your taxable income to decide how much falls in the 18% band. Our post on the CGT allowance and rates covers the wider rules for every type of asset.
Tax free allowance on shares
Every individual has a £3,000 CGT allowance each tax year, and dividends have a separate £500 dividend allowance. Neither allowance can be carried forward, so an unused allowance is lost on 5 April.
Selling enough shares each year to use the £3,000 allowance is a steady way to lift your base cost over time. A couple can do this twice, realising £6,000 of gains a year free of tax. Splitting a large sale either side of 5 April gives you two allowances in a few days.
Hold shares in a Stocks and Shares ISA
Gains and dividends inside an ISA are free of tax, and you do not report them. You can pay in up to £20,000 a year across all your ISAs.
ISAs are now the main home for UK investors. HMRC’s annual savings statistics show adult ISA holdings were worth £952 billion at the end of 2024 to 2025, with Stocks and Shares ISAs making up 55.8% of that value. The number of Stocks and Shares ISAs paid into rose by 802,000 on the year before.
How bed and ISA works
Bed and ISA moves shares you already own into an ISA. Your broker sells the shares in your general account and buys them back inside your ISA, usually on the same day.
The sale is a disposal, so it can create a gain. The trick is to move only enough each year to keep the gain within your £3,000 allowance. Once inside the ISA, all future growth is tax free. The 30 day rule described below does not catch a repurchase inside an ISA.
Use a pension to shelter gains
Investments held in a registered pension, such as a SIPP, grow free of CGT. You can do a bed and pension in the same way as a bed and ISA, and you also get income tax relief on the contribution.
A pension contribution helps even for shares you keep outside it. Personal contributions to a relief at source pension extend your basic rate band by the gross amount. More of your gain then falls in the 18% band instead of 24%. Pension money is locked away until at least age 55, rising to 57 from April 2028, so this suits long term savers.
Transfer shares to your spouse or civil partner
Gifts between spouses or civil partners who live together are free of CGT. The partner receiving the shares takes over the original cost, so no gain arises on the transfer itself.
This lets a couple use two allowances and two basic rate bands. It works best where one partner pays tax at a lower rate. The transfer must be an outright gift made before the sale, with the shares then sold by the partner who owns them.
Worked example of reducing CGT on shares
Priya earns £45,000. In 2026/27 she sells shares in a general account for £38,000 after costs. She bought them in 2018 for £20,000 including fees, so her gain is £18,000.
| Approach | How the tax works | CGT due |
|---|---|---|
| Priya sells everything herself | £15,000 taxable after the allowance. £5,270 at 18% is £948.60 and £9,730 at 24% is £2,335.20 | £3,283.80 |
| She gives half to her husband first, and he earns £15,000 | Each has £6,000 taxable. Priya pays £948.60 plus £175.20. Her husband pays £6,000 at 18% | £2,203.80 |
| She sells alone but pays £8,000 into a pension (£10,000 gross) | Her basic rate band grows by £10,000, so all £15,000 is taxed at 18% | £2,700.00 |
Splitting the sale across two tax years would add a second £3,000 allowance on top of any of these. The method behind each figure is explained in our guide on how to calculate capital gains tax.
Use losses and the share matching rules
Losses on shares can be set against gains in the same tax year, and unused losses carry forward. You must claim a loss within four years of the end of the tax year you sold. Shares that have become worthless can be claimed as a negligible value loss without selling them.
Brought forward losses are only used to bring your gain down to £3,000, so your allowance is never wasted. Selling a loss making holding before 5 April in a year with large gains can cut the bill straight away.
The 30 day rule
You cannot sell shares and buy the same shares back a day later to use your allowance or crystallise a loss. HMRC matches a sale with any shares of the same company you buy on the same day, then with any bought in the next 30 days, before the average cost of your older holding. HMRC explains this in helpsheet HS284.
Three legal ways around it are a bed and ISA, a bed and spouse where your partner buys the shares, or waiting 31 days before buying back. The same matching rules apply to tokens, as our post on crypto and CGT explains.
Business Asset Disposal Relief on company shares
If you sell shares in your own trading company, Business Asset Disposal Relief can cut the rate to 18% on up to £1 million of lifetime gains. For 2026/27 that is 6 points below the 24% higher rate.
The BADR conditions must be met for at least two years up to the sale.
- You hold at least 5% of the ordinary shares and voting rights.
- You are entitled to at least 5% of distributable profits and assets on a winding up, or of sale proceeds.
- You are an employee or officer of the company or its group.
- The company is a trading company or the holding company of a trading group.
You claim on your tax return. For a sale in 2026/27 the deadline is 31 January 2029. HMRC’s statistics show 61,000 people claimed BADR in 2024 to 2025, on £18.5 billion of gains, with tax due of £1.8 billion.
Worked example for a company sale
Tom sells his 40% stake in a trading company he has run for ten years and makes a gain of £600,000. After the £3,000 allowance, £597,000 is taxable. At 24% that would be £143,280. With BADR at 18% it is £107,460, a saving of £35,820. Planning the sale early through an exit planning strategy helps make sure every condition is met on the day.
Other reliefs for share investors
Shares in qualifying start ups carry their own CGT breaks under the venture capital schemes on GOV.UK.
| Scheme | Income tax relief | CGT treatment |
|---|---|---|
| EIS | 30% | Gains exempt after 3 years. Other gains can be deferred by reinvesting |
| SEIS | 50% | Gains exempt after 3 years. 50% reinvestment relief on gains |
| VCT | 20% | Gains on VCT shares are exempt |
These are higher risk investments, so the tax relief should never be the only reason to buy. Our team advises on EIS and SEIS tax relief claims. Gifts of shares to a UK charity are also free of CGT, and shares from an employer Share Incentive Plan are exempt.
Conclusion
Most investors can keep CGT on shares low or at nil by filling an ISA, using a pension, spreading sales over tax years and sharing holdings with a spouse. Business owners selling their company should check BADR well before a sale. For property gains, see our separate guide to reducing CGT on UK property.
ABM Chartered Accountants works with investors and founders from our Canary Wharf office. Our capital gains tax service can model your options and report the gain. You can book a consultation to discuss your portfolio.
Frequently Asked Questions
Are shares tax free after 5 years in the UK
No. There is no holding period after which ordinary shares become free of CGT. The only time based exemptions are for EIS and SEIS shares held for at least three years with income tax relief claimed.
How much tax do I pay if I sell my shares
You pay nothing on the first £3,000 of total gains in the tax year. Above that, gains are taxed at 18% where they fit in your unused basic rate band and 24% on the rest. Shares inside an ISA or pension are not taxed at all.
Can I avoid capital gains tax by reinvesting
Buying other ordinary shares does not defer the tax. The exception is reinvesting a gain into EIS shares, which defers the gain until you sell the EIS shares, or into SEIS shares, which can remove half of the reinvested gain.
Can I give shares to my children to avoid CGT
No. A gift to a child is treated as a sale at market value, so you pay CGT as if you had sold the shares. Only gifts to a spouse, civil partner or charity are free of CGT. A loss on a gift to a family member can only be used against gains on assets you dispose of to that same person.

