Capital gains tax on shares is the tax you may have to pay on the profit when you sell shares that are held outside an ISA. If you buy shares for £2,000 and later sell them for £5,000, the £3,000 profit is your gain — and it is the gain, not the full £5,000, that can be taxed. In 2026/27 you pay no capital gains tax on your first £3,000 of gains, and after that the rate is 18% or 24% depending on your income. This guide explains how capital gains tax on shares works, how to work out your gain, the 30-day rule that catches people out, and how to report it to HMRC. All figures are taken from GOV.UK and HMRC guidance checked on 30 November 2026.
The short version: shares held in a stocks and shares ISA are completely free of capital gains tax, so most regular investors never pay it at all. Outside an ISA, add up all your gains for the tax year, take off the £3,000 tax-free allowance and any losses, and pay 18% on the part that falls inside your basic rate Income Tax band and 24% on the rest. If you are a higher or additional rate taxpayer, the whole taxable gain is charged at 24%. You report share gains through Self Assessment, not through the 60-day property rule.
What is capital gains tax on shares?
Capital gains tax is charged on the profit when you dispose of an asset that has increased in value. Disposing of shares includes selling them, giving them away, swapping them for something else, or receiving compensation for them, for example an insurance payout. The tax applies to shares that are not held in an ISA or Personal Equity Plan (PEP), units in a unit trust, and certain bonds. GOV.UK’s guide to tax when you sell shares lists exactly which investments are in scope. It also applies to cryptoassets, which our crypto tax guide covers separately.
You do not usually pay capital gains tax on shares held inside an ISA or PEP, shares in an employer Share Incentive Plan, UK government gilts including Premium Bonds, or Qualifying Corporate Bonds. You also do not usually pay it when you give shares to your husband, wife, civil partner or a charity. If you give shares to anyone else, that still counts as a disposal, and the gain is worked out using the market value of the shares on the date of the gift, not what the other person paid you. The same market-value rule applies if you sell shares for less than they are worth, if you inherit shares and do not know the Inheritance Tax value, or if you owned the shares before April 1982 — in that case the market value on 31 March 1982 is used instead.
Because the tax is on the gain and not on the sale price, keeping records matters. You need the date and price of every purchase, the sale price, and the costs of buying and selling, such as stockbroker fees and Stamp Duty Reserve Tax. HMRC says you must keep these records for at least a year after the Self Assessment deadline, and longer if you filed late or HMRC opens a check into your return.
Capital gains tax on shares: rates and allowance for 2026/27
For the 2026/27 tax year, the capital gains tax-free allowance is £3,000. For trusts it is £1,500. You only pay tax on your total gains above that allowance, after deducting any allowable losses. The rate then depends on your Income Tax band.
| Who you are | Rate on share gains from 6 April 2026 |
|---|---|
| Basic rate taxpayer — gain falls inside the basic rate band (£37,700) | 18% |
| Basic rate taxpayer — gain falls above the basic rate band | 24% |
| Higher or additional rate taxpayer | 24% |
| Trustee or personal representative of someone who has died | 24% |
| Qualifying for Business Asset Disposal Relief | 18% |
To work out your rate as a basic rate taxpayer, add your taxable gains (after the £3,000 allowance) to your taxable income. The part of the combined figure that stays inside the £37,700 basic rate band is taxed at 18%, and anything above it at 24%. HMRC’s capital gains tax rates page gives this worked example: with taxable income of £20,000 and gains of £52,600, you first deduct the £3,000 allowance to leave £49,600 of taxable gains. You pay 18% on £17,700 of that — the amount that fits inside the basic rate band — which is £3,186, and 24% on the remaining £31,900, which is £7,656. The total bill is £10,842.
A simpler case shows the same idea. A higher rate taxpayer who makes a £20,000 gain on shares deducts the £3,000 allowance, leaving £17,000, and pays 24% on the whole amount: £4,080. A basic rate taxpayer with the same £20,000 gain and taxable income of £20,000 would pay 18% on the £17,700 of gain that fits inside the basic rate band, but here the taxable gain is only £17,000, so the whole £17,000 is charged at 18%, which is £3,060. Your income matters as much as the size of the gain, which is why the same sale can cost two people very different amounts of tax.
How to work out your gain on shares
Your gain is usually the sale price minus what you paid, minus the costs of buying and selling. The costs you can deduct include stockbroker fees and Stamp Duty Reserve Tax, which is charged at 0.5% when you buy shares electronically. That sounds simple, but it gets complicated when you bought the same shares at different times and prices, because you cannot choose which purchase to match against the sale. HMRC’s answer is the Section 104 holding: all shares of the same class in the same company are pooled together and treated as if each one cost the same average price.
HMRC’s own example makes this clear. You buy 100 shares for 80p each, a total of £80, and later buy 300 more for £1.20 each, a total of £360. You now hold 400 shares costing £440 in total, so the average cost is £1.10 per share. If you sell 150 shares, the cost for your tax calculation is 150 × £1.10 = £165, which you deduct from what you sold them for.
Here is a fuller example with costs included. You buy 200 shares at £4 each (£800) and later 200 more at £6 each (£1,200). Your Section 104 holding is 400 shares costing £2,000, an average of £5.00 per share. You sell 100 shares at £8 each, receiving £800. The cost of those 100 shares is 100 × £5.00 = £500, so your gain is £800 − £500 = £300. After deducting a £12 broker fee, the gain is £288 — well under the £3,000 allowance, so no tax is due on that sale.
And here is an example where the allowance covers the whole gain. You buy 1,000 shares at £2.50 each, a total of £2,500, pay a £25 broker fee and Stamp Duty Reserve Tax of 0.5%, which is £12.50. Your total allowable cost is £2,537.50. You later sell all 1,000 shares at £5 each, receiving £5,000, and pay a £25 selling fee, leaving net proceeds of £4,975. Your gain is £4,975 − £2,537.50 = £2,437.50. Because that is below the £3,000 allowance, no capital gains tax is due — as long as you have no other gains in the same tax year.
The 30-day rule for shares
The 30-day rule, sometimes called bed and breakfasting, is the trap most share sellers fall into. If you sell shares and buy the same kind back within 30 days, HMRC does not let you use the pooled average cost for the sale. Instead, the shares you sold are matched against the shares you bought back, in this order, as set out in HMRC’s Helpsheet 284 on shares and capital gains tax:
| Matching order | Which shares are matched first |
|---|---|
| First | Shares bought on the same day as the sale |
| Second | Shares bought in the 30 days after the sale |
| Third | Shares in the Section 104 pooled holding |
The gain or loss on the shares matched to a buy-back is the sale proceeds minus the buy-back cost. Suppose you sell 500 shares at £10 each, receiving £5,000, and your pooled average cost is £6 a share. On the pooling rules alone, your gain looks like £5,000 − £3,000 = £2,000. But if you buy 500 shares back at £9.50 each within 30 days, the sale is matched to that buy-back instead, and your gain is £5,000 − £4,750 = £250. Selling to “use up” your £3,000 allowance and then buying the shares straight back does not bank a £2,000 gain the way many people expect — the 30-day rule stops that. The rule only applies if you were UK resident for tax purposes when you bought the shares back. Our guide to capital gains tax in the UK explains the general rates and allowance in more detail.
What if you make a loss on shares?
Losses are useful, but only if you claim them. A loss on one sale is deducted from gains on other sales in the same tax year, and if your total gain is still above the allowance you can also use losses brought forward from earlier years. Any losses left over after that can be carried forward to a future tax year. You do not have to claim a loss straight away: you have up to four years after the end of the tax year in which you disposed of the shares. You claim by including the loss on your tax return, or by writing to HMRC if you have never made a gain and are not registered for Self Assessment.
For example, suppose you make a £10,000 gain on one set of shares and you have £4,000 of unused losses from an earlier year. Deducting the losses leaves £6,000, then deducting the £3,000 allowance leaves £3,000 taxable. As a basic rate taxpayer that costs 18% × £3,000 = £540. Without the brought-forward losses, the bill would have been 18% × £7,000 = £1,260, so the old loss saved £720.
Two loss rules are worth knowing. First, you can claim a loss on shares you still own if they have become worthless or of “negligible value” — for example because the company has gone into liquidation. HMRC has specific guidance on making a negligible value claim. Second, you cannot claim a loss on shares you give or sell to your spouse or civil partner, and a loss on a disposal to another family member or a “connected person”, such as a business partner, can only be set against a gain from that same person.
Reliefs that can reduce capital gains tax on shares
Several reliefs can cut or delay the tax on share gains. Business Asset Disposal Relief charges 18% from 6 April 2026 if you sell shares in a trading company you work for and you hold at least 5% of the shares and voting rights — what HMRC calls a “personal company”. Our Business Asset Disposal Relief guide explains the qualifying conditions and the lifetime limit. Gift Hold-Over Relief lets you give away shares in a personal company or an unlisted company without paying capital gains tax at the time; the person you gave them to pays when they eventually sell. Our gift tax guide covers the wider rules on giving assets away.
If you reinvest a gain in shares approved under the Enterprise Investment Scheme, you can delay paying capital gains tax on it, and if you reinvest a gain of up to £100,000 in shares approved under the Seed Enterprise Investment Scheme, you pay no capital gains tax on that gain at all. Our SEIS and EIS tax relief guide explains both schemes. Investors’ Relief may also reduce the rate on qualifying shares in unlisted trading companies — HMRC’s Helpsheet 284 points to Helpsheet 308 for the details, so check the current conditions before relying on it.
Dividends are taxed differently from share gains
It is easy to mix up the two ways shares produce tax. When you sell shares at a profit, the gain is taxed under capital gains tax at 18% or 24%. When the company pays you a dividend, that income is taxed as income, not as a gain. For 2026/27 you get a dividend allowance of £500 a year, and above that the rates are 10.75% for basic rate taxpayers, 35.75% for higher rate taxpayers and 39.35% for additional rate taxpayers, as set out on GOV.UK’s tax on dividends page. Dividends from shares in an ISA are tax-free, just like gains in an ISA. If you run your own company, our guide to paying yourself as a limited company director explains how salary and dividends are combined.
How to report and pay capital gains tax on shares
HMRC does not send you a bill for capital gains tax. You have to work out whether your total gains are above the allowance and report them yourself. Share gains are reported in the tax year after you sold the shares, usually through a Self Assessment tax return, and any tax is due by 31 January. If you are eligible, you can also use HMRC’s “real time” Capital Gains Tax service to report by 31 December in the tax year after the sale. Our Self Assessment tax return guide explains who must file and the deadlines.
One common confusion is the 60-day rule. That rule applies only to UK residential property: if you sell a residential property and owe tax, you must report and pay within 60 days. It does not apply to shares. Our guide to capital gains tax on selling a second home or buy-to-let explains the property rule in full.
There is one reporting trigger that catches people out even when no tax is due. If you are registered for Self Assessment, you must report your gains on your tax return if the total amount you sold the assets for was more than £50,000 in the tax year, even if your gains are below the £3,000 allowance. So a large sale with a small profit still has to be declared.
What to check now
- Add up all your gains for 2026/27, not just one sale. The £3,000 allowance covers your total gains for the year, so a second sale can push you over it even if each sale looks small on its own.
- Check whether your shares are in an ISA. Gains on shares in a stocks and shares ISA are tax-free and do not need to be reported. The ISA allowance for 2026/27 is £20,000 — our ISA, pension and savings tax guide explains how it works.
- Work out your pooled average cost before you sell. If you bought the same shares at different prices, use the Section 104 average, not the price of your most recent purchase.
- Think before you buy back within 30 days. The bed and breakfasting rule matches the sale to the buy-back, so selling to use your allowance and rebuying straight away rarely works the way people expect.
- Claim your losses. Losses from this year and earlier years reduce your bill, and you have up to four years after the end of the tax year to claim one. Check for negligible value claims on shares in companies that have failed.
- Check the £50,000 proceeds rule. If you are in Self Assessment and sold assets for more than £50,000 in total, you must report the gains on your return even if no tax is due.
Do I pay capital gains tax on shares in an ISA?
No. You do not pay capital gains tax on shares held in a stocks and shares ISA, and you do not need to declare ISA gains on a tax return. The same applies to dividends from shares in an ISA. The ISA allowance for 2026/27 is £20,000, and you cannot transfer shares you already own into an ISA unless they came from an employee share scheme.
How much capital gains tax do I pay on shares?
It depends on your income. After the £3,000 tax-free allowance and any losses, basic rate taxpayers pay 18% on the part of the gain that falls inside the £37,700 basic rate band and 24% above it. Higher and additional rate taxpayers pay 24% on the whole taxable gain. Trustees and personal representatives also pay 24%. Qualifying gains under Business Asset Disposal Relief are charged at 18%.
What is the 30-day rule for shares?
If you sell shares and buy the same kind back within 30 days, HMRC matches the sale against the buy-back instead of using your pooled average cost. The gain is then the sale proceeds minus what you paid to buy the shares back. The rule exists to stop people selling shares just to use their annual allowance and immediately buying them back at the same price.
Do I need to report share sales if my gain is under £3,000?
Usually not, but there is an exception. If you are registered for Self Assessment and the total amount you received from selling assets in the tax year was more than £50,000, you must report the gains on your tax return even if they are below the allowance and no tax is due. If you are not in Self Assessment and your gains are below the allowance, you do not normally need to tell HMRC.
Can I use losses on shares to reduce my tax bill?
Yes. Losses are deducted from gains in the same tax year, and unused losses from earlier years can be used too, with the remainder carried forward. You have up to four years after the end of the tax year to claim a loss. You can also claim a loss on shares that have become worthless or of negligible value, for example if the company went into liquidation. Losses on disposals to your spouse, civil partner or other connected people are restricted.
This article gives general information about UK tax, not personal financial or tax advice. Tax rules can change, and your situation may be different. Check GOV.UK or speak to a qualified accountant before you act.
