UK shares tax calculator
Capital Gains Tax on shares, worked out on your own device
The short answer: download the trading history from each taxable broker account (not your ISA or pension), drop the files into Get My Gains, and it works out your gains with HMRC's matching rules, ready for SA108 boxes 23 to 27 (and box 28 if you're making a claim). The files are read in your browser and never uploaded. It's free to check your gains and estimated tax.
Work out your shares tax See an example report (made-up figures)
Do I need it?
- Yes, if you sold, gave away or swapped shares, ETFs, investment trusts or fund units held in a general (taxable) account, such as a Trading 212 Invest account or a Freetrade Basic account.
- No, for shares in a Stocks and Shares ISA, a Lifetime ISA, a SIPP or a workplace pension: there's no Capital Gains Tax on those (why).
- You only pay tax if your gains for the year, after losses, are more than the £3,000 tax-free allowance. You may still need to report sales worth more than £50,000 (the rules).
How it works
- Download your history. Files from Trading 212, Hargreaves Lansdown, Vanguard, AJ Bell, Freetrade, eToro, Interactive Investor, Interactive Brokers and more are recognised automatically (the full list). For other brokers, match the columns or fill in a simple template (step-by-step help).
- Check what needs you. The app asks which account each file is from and leaves ISA and pension rows out. Stock splits are worked out for you; takeovers, rights issues and fund income have a short form to fill in.
- Copy into your return. Each tax year shows your gains, the allowance used and an estimate of the tax. The filing-ready report adds the SA108 "Listed shares and securities" box figures, with copy buttons, and a report to print for your records.
What it works out
- HMRC's matching rules for shares: the same day, the next 30 days ("bed and breakfasting"), then the Section 104 holding (average cost), tested against the worked examples in HMRC's helpsheet HS284.
- Dealing fees and stamp duty, fractional shares, and US shares in dollars.
- Splits, consolidations and bonus issues.
- Gifts to a spouse, civil partner or charity, and to anyone else, and losses carried forward.
- Negligible value claims, for shares that are now worthless.
- Dividends from shares held outside an ISA or pension: the total for each year, with an estimate of the Income Tax on them.
- Crypto as well, if you choose "Both": one £3,000 allowance covers everything (how).
Not covered: foreign tax credit relief on foreign dividends; unlisted shares, EIS and SEIS; Business Asset Disposal Relief; UK tax-advantaged employee schemes (EMI, SAYE, SIP, CSOP); offshore non-reporting funds; large returns of capital; gifts into a trust or with holdover relief; and non-UK residents, companies and trusts. For those, ask an accountant.
Private by design
There's no account and nothing to connect. Your files are read inside the web page and never sent anywhere, there are no cookies or trackers, and once the page has loaded it works with your Wi-Fi off.
Shares guides
- Capital Gains Tax on shares, explained simply
- The 30-day rule for shares
- Section 104 pool for shares: a worked example
- SA108 boxes 23 to 27 for shares, and claim box 28
- Trading 212 · Freetrade · other brokers · employee shares (RSUs)
- All shares guides
Get My Gains is a record-keeping aid, 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.
Brokers are named only to explain which files can be read: this is not a recommendation of any broker. Sold crypto? Crypto tax.