What HMRC says
- ISAs: GOV.UK says you do not pay Capital Gains Tax when you dispose of "shares you've put into an ISA or PEP".
- Pensions: HMRC's Pensions Tax Manual (PTM121000) says any gain from disposing of investments held for a registered pension scheme is exempt from Capital Gains Tax. You pay tax when you take money out of a pension, under the pension rules, not CGT.
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
- Tax when you sell shares (GOV.UK)
- PTM121000: pension investments, essential principles (HMRC)
- Individual Savings Accounts (GOV.UK)
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