Capital Gains Tax on shares: how gains on shares are taxed in the UK
By Hussein Bhaiji FCCA CTA, Managing Partner. Reviewed 22 November 2026.

Capital Gains Tax on shares is charged when you sell or give away shares held outside an ISA or pension at a gain. For 2026/27, CGT on shares is 18% on gains within your unused basic rate band and 24% above it, after a £3,000 annual exempt amount. Gains on EIS and SEIS shares can be exempt, subject to conditions.
Dividends are taxed as income, and buying UK shares usually carries stamp duty or stamp duty reserve tax (AIM shares are exempt); this guide deals only with the tax on shares when you dispose of them. So how much will you pay, and how do you work it out?
Do you pay tax when you sell shares?
Yes, if you make a gain on shares held outside an ISA or a pension and your total gains for the tax year, after losses, are more than the £3,000 annual exempt amount (Taxation of Chargeable Gains Act 1992, section 1K). The exception is shares with EIS or SEIS income tax relief that you have held for the qualifying period and on which the relief has not been withdrawn: gains on those are not chargeable, or only partly chargeable if the income tax relief you received was less than the full amount (section 150A(2) and (3), and section 150E for SEIS). That applies to UK shares, US and other foreign shares, AIM shares and shares in a private company alike, if you are UK resident.
Selling is not the only disposal. A gift of shares is treated as a disposal at market value (section 17), so giving shares to your children can create a CGT bill even though you receive nothing. Transfers between spouses and civil partners who are living together are the exception: they take place at no gain and no loss (section 58), and since 6 April 2023 that treatment continues for separating couples until the end of the third tax year after the tax year in which they stopped living together, or the date of a court order for divorce, dissolution, annulment, judicial separation or a separation order if that is earlier (section 58(1C)). Transfers made under a formal divorce or separation agreement or court order are at no gain and no loss whenever they happen (section 58(1D)).
Selling through a platform or broker does not change the tax. The platform’s annual tax statement helps with the figures, but it will not apply the matching rules across accounts you hold elsewhere, so the calculation is still yours. If you are mainly searching for how to sell shares, the sale itself is done through your platform, broker or the company’s registrar; the tax is the same whichever route you use.
Capital gains tax on dividends does not arise: dividends are income, taxed at the dividend rates through Self Assessment or PAYE. Our guide to salary vs dividends in 2026/27 covers how they are taxed.
Capital Gains Tax rates on shares for 2026/27
How much is Capital Gains Tax on shares? For individuals in 2026/27, gains on shares are taxed at:
- 18% on the part of your gains that falls within your unused basic rate band;
- 24% on the part above it.
These rates have applied to gains on shares since 30 October 2024 (Finance Act 2025, section 7). Trustees and personal representatives pay 24% (section 1H). If you are a Scottish taxpayer, your gains are measured against the UK basic rate band, not the Scottish bands (section 1J(6)).
Your income is used first. Work out your taxable income, see how much of the basic rate band is left, and the gains fill that space at 18%. Anything over it is taxed at 24%. You can set the annual exempt amount against the gains taxed at 24% first, which saves the most tax.
| 2026/27 | |
|---|---|
| Annual exempt amount (individuals and personal representatives) | £3,000 |
| Annual exempt amount (most trustees) | Up to £1,500 (reduced where the settlor has made more than one settlement) |
| Rate on gains within the unused basic rate band | 18% |
| Rate on gains above it | 24% |
| Business Asset Disposal Relief rate (qualifying shares in your own trading company) | 18% |
| How you report | Self Assessment, or HMRC’s real time CGT service |
Business Asset Disposal Relief also taxes qualifying gains at 18%, up to a £1m lifetime limit. Its advantage is now mainly for people whose gains would otherwise be taxed at 24%. It applies to shares in a trading company (or the holding company of a trading group) that has been your personal company, broadly meaning you hold at least 5% of the shares and votes with matching economic rights, and of which you have been an officer or employee, throughout the two years before the sale. The government has announced that the lifetime limit will fall to £500,000 for disposals on or after 6 April 2027; that change is in Finance Bill 2026-27 and is not yet law. An unconditional contract exchanged before 6 April 2027 but completed afterwards keeps the £1m limit only if the parties can show they did not enter into it with a purpose of obtaining a tax advantage from that timing or, where they are connected, that it was entered into for wholly commercial reasons; a statement is also needed where the gain is over £100,000.
Budget 2026 also announced a new Founders’ Relief for founders and early investors in high-growth, innovative companies. As proposed, the individual must broadly have held at least 25% of the company’s ordinary share capital when it began trading or preparing to trade and held the shares for at least five tax years, and the company must meet size, trading, UK presence and growth or innovation conditions. It would give a 10% rate on qualifying disposals of shares or securities on or after 6 April 2027, with a £10m lifetime limit reduced by any Business Asset Disposal Relief or Investors’ Relief claimed from that date. It is subject to a consultation and is to be added to Finance Bill 2026-27, so it is not yet law.
Note
The figures above are for 2026/27. Budget 2026 did not change the main CGT rates or the annual exempt amount, but check them again at the start of each tax year.
Does holding shares for longer reduce the tax?
No. Taper relief and indexation allowance ended for individuals’ disposals from 6 April 2008 (Finance Act 2008, section 8 and Schedule 2). Capital Gains Tax on shares held for 10 years, 20 years or 5 years is charged at exactly the same rates as on shares held for 10 days: what changes is only the size of the gain.
The share matching rules: same day, 30 days and the section 104 pool
When you have bought shares of the same class in the same company at different times, you cannot choose which ones you sold. The share matching rules decide, in this order:
- shares bought on the same day as the sale (section 105);
- shares bought in the 30 days after the sale, earliest first (section 106A(5));
- shares in your section 104 holding, the “pool”, at their average cost (section 104).
The pool holds all your other shares of that class, with one combined cost: what you paid for them plus incidental costs such as broker fees and stamp duty. Each sale takes out a proportion of the pool’s cost. Bonus issues and rights issues are generally treated as part of the original holding rather than as new purchases, so they join the pool, with any amount paid for rights shares added to its cost (sections 126 to 128).
Example
Sam bought 2,000 shares in a listed company in 2015 for £4,000 including costs, and another 1,000 in 2019 for £5,000. The pool is 3,000 shares with a cost of £9,000, or £3 a share. In June 2026 Sam sells 1,500 shares for £10,500 after dealing costs and does not buy any back. The cost taken from the pool is 1,500 / 3,000 × £9,000 = £4,500, so the gain is £6,000. After the £3,000 annual exempt amount, £3,000 is taxable: £720 at 24% if Sam’s income already uses the basic rate band, or £540 at 18% if £3,000 or more of the band is unused. The pool carries on with 1,500 shares and a cost of £4,500.
The 30-day rule (bed and breakfasting)
Bed and breakfasting, often searched for as bed and breakfast shares or the bed and breakfast rule, is selling shares and buying the same shares back shortly afterwards, usually to use the annual exempt amount or crystallise a loss. The bed and breakfasting rules stop it working for shares held directly. If you buy shares of the same class within 30 days after a sale, the sale is matched with the shares you bought back, not with your pool (section 106A(5)). So if you sell 1,000 shares on 10 June 2026 and buy 1,000 back on 25 June 2026, your gain or loss is worked out against the 25 June purchase price, and the pool is unchanged.
The rule does not catch every repurchase:
- shares bought back inside an ISA are held in a different capacity, so a sale followed by a purchase in your ISA (Bed and ISA) is not matched under the 30-day rule;
- if your spouse or civil partner buys the shares, that is their acquisition, not yours;
- the rule does not match shares you acquire while you are not UK resident, or while you are UK resident but treated as resident in another country under a double tax treaty (section 106A(5A)).
The rule applies for Capital Gains Tax, not Corporation Tax. Companies have their own identification rules, and the “bed and breakfasting” rule for directors’ loans (section 464ZA of the Corporation Tax Act 2010) is a different thing, covered on our Corporation Tax returns page.
How to calculate Capital Gains Tax on shares
How is Capital Gains Tax calculated on shares? How to work out Capital Gains Tax on shares, step by step:
- take the sale proceeds, or the market value if you gave the shares away;
- deduct the cost of the shares matched under the rules above, including the purchase costs, and the costs of selling;
- add up your gains for the tax year and deduct any losses of the same year;
- deduct any losses brought forward from earlier years, but only as far as needed to bring your gains down to £3,000;
- deduct the £3,000 annual exempt amount;
- tax what is left at 18% within your unused basic rate band and 24% above it.
For foreign shares, every figure must be converted into sterling at the exchange rate on the date of that purchase or sale (HMRC Capital Gains Manual CG78310), not worked out in dollars and converted at the end.
Note
No calculator is offered here. The arithmetic is simple once the matching rules have been applied; the matching is where most mistakes happen.
Losses on shares: share loss relief and negligible value claims
A loss on shares is set against gains of the same tax year first, in full, even if that wastes part of your £3,000 exempt amount. Any loss left over is carried forward without time limit and used against future gains. A loss only counts once you have told HMRC about it, and you have four years from the end of the tax year in which you made it to do so (section 16(2A) and the Taxes Management Act 1970, section 43).
If a company fails and its shares become worthless, you do not need to sell them to get the loss. A negligible value claim treats you as having sold and immediately reacquired the shares at their negligible value (section 24(2)). You can ask for the deemed sale to be treated as happening up to two years before the start of the tax year in which you make the claim, provided you owned the shares and they were already of negligible value at that earlier time.
Some losses can be set against income instead, which is worth more to a higher rate taxpayer. Share loss relief applies to shares that carry EIS relief, and to shares you subscribed for in a qualifying unlisted trading company; you can claim to set the loss against your income of the tax year of the loss, the previous tax year, or both (Income Tax Act 2007, sections 131 and 132). The claim must be made within a year after the normal Self Assessment filing date for the year of the loss. The relief counts towards the cap on certain income tax reliefs (the greater of £50,000 and 25% of adjusted total income), except where EIS, SEIS or social investment relief is attributable to the shares (section 24A).
An EIS negligible value claim is common: an EIS company fails, you claim negligible value under section 24, and then claim share loss relief on the resulting loss. The loss is reduced by any EIS income tax relief you received and kept.
Special cases
Inherited and gifted shares
There is no CGT on death. Capital Gains Tax on inherited shares starts from the value at the date of death: the personal representatives take the shares at their market value then, and if they pass them to you, you are treated as having acquired them when they did (section 62). Your gain on a later sale is measured from that value.
If the executors sell shares from a deceased estate during the administration, the estate pays CGT at 24% on the gain since death. The estate has its own £3,000 annual exempt amount for the tax year of death and the next two tax years (section 1K(7)).
Inherited ISAs are different. The ISA becomes a continuing account of a deceased investor, and there is no Income Tax or CGT on it until the earliest of the completion of the administration of the estate, the withdrawal of all the investments, and the third anniversary of the death (regulation 2G). If the investments are passed to you while that status continues, you are treated as acquiring them at their market value on the date of the transfer (Individual Savings Account Regulations 1998, regulation 34A).
Gifts of shares are disposals at market value. For shares in an unlisted trading company, or in a trading company in which you can exercise at least 5% of the voting rights (your personal company for this relief, a wider test than for Business Asset Disposal Relief), the gain can usually be held over if you and the recipient make a joint claim (not available on a gift to a company), so the recipient takes over your base cost (section 165). Changes to the formula that restricts holdover on gifts of shares, where the company holds non-business assets, are due to apply to gifts from 6 April 2027; they are not yet law. Gifting shares to charity is simpler still: a gift of shares to a charity is treated as made at no gain and no loss (section 257), and for listed shares and certain other qualifying investments you can also claim Income Tax relief on their value (Income Tax Act 2007, Part 8, Chapter 3).
Note
Unlisted shares given away or inherited need a market value, and HMRC’s Shares and Assets Valuation team can be asked to check it. We do not value shares; you will need a valuer.
AIM shares
For Capital Gains Tax on AIM shares, the rules are the same as for any other shares: the same rates, the same matching rules and the same annual exempt amount. The difference is Inheritance Tax. From 6 April 2026, AIM shares that qualify for Business Relief get relief at 50%, not 100% (Inheritance Tax Act 1984, sections 104 and 105(1)(aa), as amended by the Finance Act 2026, Schedule 12). AIM companies are not “listed” for these purposes, which matters for holdover relief, so check the company’s status before a gift.
US and other foreign shares
If you are UK resident, you pay UK Capital Gains Tax on gains on US shares and any other foreign shares, at the same rates. Each purchase and sale is converted into sterling at the rate on its own date (CG78310), so a gain can arise purely because the pound has moved.
Under the UK and US double taxation convention, gains on shares made by a UK resident are taxable only in the UK (Article 13(5)), unless you are a US citizen (Article 1(4)), you were resident in the US at any time in the six years before the sale (Article 13(6)), or the shares are a US real property interest, broadly shares in a company whose value comes mainly from US real property (Article 13). US withholding tax on dividends is a separate matter, and does not apply to gains.
The remittance basis ended on 5 April 2025. From 2025/26 most UK residents are taxed on their worldwide gains as they arise; someone who has newly arrived in the UK may qualify for the four-year foreign income and gains regime instead, but a person who claims it loses the annual exempt amount for that year (section 1K(6)). Our non-UK residents and companies page covers the residence questions.
Shares in your own company
Selling shares in a private company raises questions the rest of this guide does not: Business Asset Disposal Relief, earn-outs and loan notes, and whether a share sale or an asset sale suits you better. Those decisions need advice before heads of terms, and our tax advisory services cover them. This section deals only with the tax on the shares sold: the gain is worked out in the same way as for listed shares, using what you paid for the shares (often their nominal value if you subscribed at formation).
Employee shares and EMI options have their own rules, which we will cover separately.
Reporting and paying Capital Gains Tax on shares
When do you pay Capital Gains Tax on shares? You report the gain and pay the tax after the end of the tax year in which you sold. If you are UK resident, the 60-day reporting rule does not apply to shares; it covers UK residential property. A non-resident who sells shares in a UK property-rich company (one that gets at least 75% of its gross asset value from UK land) must normally report within 60 days, even if no tax is due, if they hold, or held at any time in the two years before the sale, at least 25% of the company, counting interests held by connected persons. Exemptions apply, for example where the company’s UK land is used in its trade.
How to pay Capital Gains Tax on shares depends on whether you file a Self Assessment return:
- if you file a return, report the disposal on the capital gains pages by 31 January after the tax year if you file online (31 October if you file on paper), so 31 January 2028 for a sale in 2026/27, and pay by 31 January 2028;
- if you do not, and you are UK resident, you can report through HMRC’s real time Capital Gains Tax service by 31 December after the tax year and pay by the following 31 January (31 December 2027 and 31 January 2028 for 2026/27); HMRC sends you a payment reference.
You must report if your gains are above the annual exempt amount. If you are registered for Self Assessment, you must also complete the capital gains pages if your gains before deducting losses were more than £3,000, if the chargeable assets you sold or gave away in the year were worth more than £50,000, or if you want to claim a loss, even when no tax is due.
Tip
Keep your contract notes and platform statements for every purchase, not just the year you sell. The pool cost for a sale in 2026/27 depends on what you paid in 2015.
Legal ways to reduce Capital Gains Tax on shares
How to avoid Capital Gains Tax on shares, legitimately:
- use each year’s £3,000 annual exempt amount, because it cannot be carried forward;
- transfer shares to your spouse or civil partner at no gain and no loss before a sale, so that two exempt amounts and two basic rate bands are available (section 58); the transfer must be a genuine, outright gift;
- claim every loss you are entitled to, including negligible value claims on worthless shares;
- reinvest gains in EIS shares to defer them (Schedule 5B), or in SEIS shares for reinvestment relief, if the investment suits you on its merits;
- give shares to charity rather than selling them and donating the cash.
Warning
Selling shares and buying them back within 30 days outside an ISA does not reset your base cost. The 30-day rule matches the sale with the repurchase. Bed and ISA works because the repurchase is inside the ISA, but the sale itself is still a disposal and any gain on it is taxed.
ISAs and Bed and ISA
Gains inside a stocks and shares ISA are free of Capital Gains Tax, and a loss inside an ISA is not an allowable loss. To move shares you already hold into an ISA, you sell them and buy them back inside the ISA, using your annual subscription. The sale is a disposal, so any gain up to that point is taxed. The repurchase is held in a different capacity, so the 30-day rule does not match it with the sale.
Bed and ISA each year, using your annual exempt amount on the sale, is one of the simplest ways to move a portfolio into a tax-free wrapper over time. We do not advise on which investments to buy or which ISA product to use; we can tell you what the sale will cost in tax.
What to do next
Pull together the purchase history for every holding you plan to sell, work out the pool cost before you sell, and look at whether a transfer to your spouse first, or a sale split across two tax years, would reduce the tax.
We report capital gains for clients every year through our Capital Gains Tax reporting service and their personal tax returns, and advise on larger portfolios and family planning through our work with high net worth individuals. Merit Accountants is a firm of Chartered Certified Accountants and Chartered Tax Advisers. Book a free appointment by video call or at one of our offices; we reply to every enquiry promptly.
Capital Gains Tax on shares FAQs
How many shares can I sell tax free?
It depends on the gain, not the number of shares. You can make total gains of £3,000 in 2026/27 tax free, after deducting losses. If you bought shares at £2 and they are now worth £5, each share sold carries a gain of £3, so about 1,000 shares use the whole £3,000 before dealing costs. If you are registered for Self Assessment and the assets you sold or gave away in the year were worth more than £50,000, or your gains before losses were more than £3,000, you must report them even if no tax is due. Shares held in an ISA can be sold tax free in any quantity.
Is Capital Gains Tax payable on a stocks and shares ISA?
No. Gains on investments held inside a stocks and shares ISA are free of Capital Gains Tax, however large, and you do not report them. The flip side is that a loss inside an ISA cannot be set against gains elsewhere. Moving shares into an ISA is different: selling them outside the ISA to buy them back inside (Bed and ISA) is a disposal, and any gain on that sale is taxable in the normal way.