Do I pay tax on shares in an ISA or pension?

2 minute readChecked on 11 Nov 2026

The short answer

No. Gains on shares inside a Stocks and Shares ISA, or inside a registered pension such as a SIPP, are free of Capital Gains Tax. Leave those accounts out of your calculation. Only your general (taxable) account counts.

What HMRC says

What to do with your accounts

Account Include for Capital Gains Tax?
Stocks and Shares ISA (or Lifetime ISA) No
SIPP or other registered pension No
General investment account ("Invest", "GIA", "dealing account") Yes

Many apps give you a separate export for each account. Only use the file from the general account. If you're not sure which file is which, check the account name in the app before you download.

Moving shares into an ISA ("Bed and ISA")

To get shares into an ISA you usually sell them in the general account and buy them again inside the ISA. That sale happens in the taxable account, so it counts as a normal disposal: include it. The 30-day rule only matches purchases in your taxable account, not purchases inside an ISA. (Check with your broker or an accountant if you're unsure how a transfer was done.)

Dividends

Dividends inside an ISA or pension are also tax-free. Dividends in a general account are income, taxed separately from capital gains. Get My Gains totals them for each year and estimates the Income Tax on them.

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 · CGT on shares, explained · Trading 212 · Freetrade · Bed and ISA and your allowance · dividend tax