Capital Gains Tax on shares, explained simply

3 minute readChecked on 11 Nov 2026

The short answer

When you sell shares for more than they cost, the profit is a "gain". If your total gains in a tax year (6 Apr to 5 Apr) are more than £3,000, you pay Capital Gains Tax on the rest, at 18% or 24%. Shares in an ISA or a pension are tax-free, so you can leave those out.

Which shares count

GOV.UK says shares and investments you may need to pay tax on include:

You don't pay Capital Gains Tax on shares in an ISA or PEP, shares in an employer Share Incentive Plan, or UK government gilts. Investments in a registered pension (such as a SIPP) are also exempt. See ISAs and pensions.

Selling, giving away and swapping all count

Selling is the usual one. Giving shares away also counts, except to a husband, wife, civil partner or charity. Dividends are different: they are income, taxed separately, not capital gains.

How a gain is worked out

  1. Take what you sold the shares for.
  2. Take off what they cost. GOV.UK says you can also deduct fees, such as stockbrokers' fees, and Stamp Duty Reserve Tax (SDRT) when you bought the shares.
  3. What's left is your gain (or a loss, if it's negative).

If you bought the same shares at different times, "what they cost" follows HMRC's matching rules, in this order: shares bought the same day, then shares bought in the next 30 days, then the average cost of all the rest (the "Section 104 holding"). See the 30-day rule and Section 104 pool example.

The allowance and the rates

Tax year Tax-free allowance Rates
2025-26 £3,000 18% and 24%
2026-27 £3,000 18% and 24%

The rate depends on your income. Your gains (after the allowance) are added on top of your taxable income: the part within the basic-rate band is taxed at 18%, the rest at 24%.

One allowance for everything. The £3,000 covers all your capital gains in the year together: shares, crypto and anything else. You don't get £3,000 for each.

When you must report

Shares go in the "Listed shares and securities" boxes on the SA108 capital gains pages: SA108 boxes 23–27. The online return for 2025-26 is due by 31 Jan 2027.

Losses

A loss on one share can be taken off gains in the same year. Unused losses can be carried forward if you report them, within 4 years of the end of the tax year. The rules are the same as for crypto: how losses work.

Working it out with Get My Gains

Get My Gains works out Capital Gains Tax on your shares in your browser, with nothing uploaded, using these same HMRC rules. It reads Trading 212, Freetrade, Interactive Brokers and Hargreaves Lansdown files (other brokers' files can be matched column by column), and leaves out ISA and pension accounts. It's free to check your gains and estimated tax.

Work out your shares tax See an example report

Official guidance

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 on 11 Nov 2026.

More guides: shares guides · all guides · ISAs and pensions · SA108 boxes 23–27 · rates and allowance by year · dividend tax · using your allowance