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?

How it works

  1. 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).
  2. 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.
  3. 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

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

Start with shares

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.