Stock Rocket AI Logo
HomeToolsCapital Gains Tax Calculator

Capital Gains Tax Calculator

For shares and funds, at 2026/27 rates

What is capital gains tax on shares?

When you sell shares outside an ISA or pension for more than you paid, the profit is a capital gain and HMRC may tax it. You get an annual allowance first, and only what’s left above it is taxed.

The rate depends on your income, because gains sit on top of it — which means one disposal can be taxed at two different rates. This calculator works that split out properly rather than applying a single flat rate.

£

Total proceeds from the sale

£

Purchase price plus any dealing charges

£

Salary and other taxable income this year. This decides how much of your gain is taxed at the lower rate.

£

Capital losses from this year or carried forward

£

Gains you've already realised this year. The allowance is £3,000 for 2026/27.

Capital gains tax due

£1,260

An effective rate of 12.6% on your £10,000 gain

Taxed entirely at the basic rate

£7,000 at 18%
£1,260
Gain on the sale
£10,000
Less annual allowance
−£3,000
Taxable gain
£7,000
You keep from the sale
£18,740

Estimate for guidance only, based on 2026/27 rates for shares and other non-property assets. Residential property, business asset disposal relief and non-UK residency are not covered. This is not tax advice.

Thinking of moving these shares into an ISA? →

Why your income changes your capital gains tax

This is the part most calculators skip. Capital gains are treated as the top slice of your income for the year — they stack on top of your salary rather than being taxed in isolation.

So the rate isn't simply “18% if you're a basic rate taxpayer”. It depends how much of your basic rate band is left after your income. Earn £45,000 and only £5,270 of band remains, so a £7,000 gain gets split: the first £5,270 at 18% and the remainder at 24%.

A flat-rate calculator would tell you the whole gain is taxed at 18% and understate your bill. That's why this one asks for your income.

The order things are deducted

The sequence matters, because it changes the answer:

  1. Work out the gain — what you sold for, minus what you paid
  2. Offset any capital losses, this year's or carried forward
  3. Deduct the annual exempt amount (£3,000 for 2026/27)
  4. Tax what's left, split across the two rates

One subtlety worth knowing: the annual exempt amount reduces the gain you're taxed on, but it does not use up any of your basic rate band. Only your income does that.

Ways to legitimately reduce the bill

  • Split a large disposal across two tax years to use two annual allowances
  • Transfer assets to a spouse or civil partner first — transfers between them are tax-free, and they get their own allowance and their own basic rate band
  • Realise losses on other holdings in the same year to offset the gain
  • Hold future investments inside an ISA, where gains are sheltered permanently

Our ISA transfer calculator works out whether the tax cost of moving shares into an ISA pays for itself, and the compound growth calculator shows what sheltering them is worth over time.

What this calculator doesn't cover

It handles shares, funds and other non-property assets at 2026/27 rates. It does not cover residential property, business asset disposal relief, non-UK residency, or assets held in trust. Those follow different rules and different rates.

It also assumes a straightforward acquisition cost. If you bought the same shares on several dates you may need HMRC's share pooling rules to work out the cost, which this doesn't do for you.

FAQs

How much capital gains tax will I pay on shares?

For 2026/27 the rates on shares are 18% for gains falling within your basic rate band and 24% above it. Your gain is treated as the top slice of your income, so if it straddles the higher rate threshold you pay both rates on different parts of the same gain. You also get an annual exempt amount of £3,000, deducted before any tax is worked out.

Does my salary affect my capital gains tax rate?

Yes, and this is the most commonly missed part. Capital gains stack on top of your income. If your salary already uses your entire basic rate band, the whole gain is taxed at 24%. If your income is low, more of the gain falls into the 18% band. That is why this calculator asks for your other income rather than asking you to declare a tax band.

Does the annual allowance use up my basic rate band?

No. The annual exempt amount reduces the gain you are taxed on, but it does not consume any of your basic rate band. Only your income does that. This trips up a lot of calculators and produces a bill that is too low.

How can I reduce my capital gains tax bill legally?

Split a large disposal across two tax years to use two annual allowances. Transfer assets to a spouse or civil partner before selling, since transfers between them are tax-free and they have their own allowance and basic rate band. Realise losses on other holdings in the same year to offset the gain. And hold future investments inside an ISA, where gains are sheltered permanently.

What if I made a loss?

There is no tax to pay. You should still report the loss to HMRC, because it can be offset against gains in the same tax year or carried forward indefinitely against future gains. You must claim it within four years of the end of the tax year in which it arose, otherwise it is lost.

Stock Rocket AI Logo

Deep company research for investors going beyond index funds.