Skip to content
InvestmentCalculator
All calculators

Capital gains tax calculator — methodology

How a gain stacks on income, the annual exempt amount, the rates table, the gov.uk sources and the two limits that change the answer.

Open the capital gains tax calculator

This calculator taxes a gain you supply. It does not work the gain out — there is no share matching, no same-day rule, no thirty-day rule and no s104 pooling — and the difference between “what did I sell it for less what I paid” and the chargeable gain HMRC expects is exactly where a self-assessment goes wrong.

The calculation, in order

  1. Start from the gain you entered.
  2. Deduct the annual exempt amount, once. What remains is the chargeable gain. The exempt amount does not consume any basic-rate band, which is why the exempt slice of a gain never pushes the rest of it into the higher rate.
  3. Work out taxable income: gross income less the personal allowance that actually applies to it. That allowance tapers above £100,000, so this step runs through the income tax engine rather than subtracting a fixed figure.
  4. Stack the chargeable gain on top of taxable income. The part landing below the basic-rate ceiling is taxed at the basic rate for gains; the rest at the higher rate. One gain routinely meets both — and a calculator that asks “are you a higher-rate taxpayer?” and applies one rate to the whole gain cannot produce the right answer for anyone straddling the boundary.
  5. Gains qualifying for Business Asset Disposal Relief skip the stack entirely and are charged at a flat rate.
chargeable       = max(0, gain − annual exempt amount)
basic-rate room  = max(0, basic-rate ceiling − taxable income)
at basic rate    = min(chargeable, basic-rate room)
at higher rate   = chargeable − at basic rate

Rates and allowances

Read from the rules files this calculator runs on
Figure2025/262026/27
Annual exempt amount£3,000£3,000
Other assets — basic / higher18.00% / 24.00%18.00% / 24.00%
Residential property — basic / higher18.00% / 24.00%18.00% / 24.00%
Business Asset Disposal Relief14.00%18.00%
Relief lifetime limit (reported, not enforced)£1,000,000£1,000,000
Personal allowance£12,570£12,570

Capital gains tax is not devolved. The rates, the annual exempt amount and the basic-rate band for gains are the same across the UK; Scottish income tax bands differ but do not change which capital gains rate a gain meets.

Sources

The rates, thresholds and allowances used by this calculator were verified against gov.uk on . That covers the published rates, thresholds and allowances this page calculates with. It does not verify any figure the page produces for you: that is arithmetic on verified inputs. Parts of the engine behind it are checked against HMRC’s own published worked examples, which tests the method on a small number of scenarios rather than your answer, and most of the test suite derives its expected values by hand. That check was carried out automatically and no named person has signed it off yet.

The verification log, as recorded in the source repository
Figures coveredVerified onVerified byHuman sign-off
2025-262026-08-12Automated verification (Claude Opus 5)not yet signed off
2026-272026-08-12Automated verification (Claude Opus 5)not yet signed off
2020-21 to 2024-25 — pension annual allowance only2026-08-12Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — share identification window only2026-08-13Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — pension relief at source only2026-08-13Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — inheritance tax only2026-08-13Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — family tax, LISA and pension-access additions2026-08-13Automated verification (Codex)not yet signed off
2025-26 and 2026-27 — student loan deductions only2026-08-18Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — property acquisition tax only2026-08-18Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — automatic enrolment only2026-08-18Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — State Pension age and rates only2026-08-18Automated verification (Claude Opus 5)not yet signed off

The log covers the rules directory, not only this calculator. 8 rows are deliberately narrow — 2020-21 to 2024-25 — pension annual allowance only; 2025-26 and 2026-27 — share identification window only; 2025-26 and 2026-27 — pension relief at source only; 2025-26 and 2026-27 — inheritance tax only; 2025-26 and 2026-27 — student loan deductions only; 2025-26 and 2026-27 — property acquisition tax only; 2025-26 and 2026-27 — automatic enrolment only; 2025-26 and 2026-27 — State Pension age and rates only — and they verify the figures named there and nothing else. Those tax years are not modelled by any calculator on this site: the years this page can compute are the ones its tax-year selector offers, and no others.

A verification goes stale the moment one of its sources is updated past the date above. If a source below carries a later date than this stamp, trust the source.

Rates, thresholds and allowances on this page are taken from material published by HM Revenue & Customs and the Scottish Government. Contains public sector information licensed under the Open Government Licence v3.0.

Three limits that change the answer, stated here rather than buried

  • The gain is yours to work out, and that is where it usually goes wrong. This page taxes the figure you enter. It does not derive it: there is no share matching, no same-day rule, no thirty-day rule and no s104 pooling, so a disposal out of a holding built up over several purchases needs the chargeable gain calculated before you get here. Enter a proceeds-less-cost figure where HMRC expects a pooled one and every number below is arithmetic on the wrong input.
  • The Business Asset Disposal Relief lifetime limit is not applied. The relief is capped across every qualifying disposal you have ever made, and this calculator has no record of your earlier claims. If those claims have already used the cap, gains above it are charged at the ordinary rates and the figure this page shows is too low. Keep your own running total.
  • One asset class per calculation. Every run deducts a full annual exempt amount, so running the page twice and adding the results deducts the exemption twice and understates the bill. A year with disposals in more than one class needs the exemption set against the gains taxed at the highest rate and the remainder stacked in a single calculation, which this page does not do.

This site publishes information, not advice. It cannot know your circumstances, it does not recommend any product, provider or course of action, and nothing on it is a personal recommendation. For a decision that matters, check the figures against gov.uk or speak to an accountant or a regulated adviser.

Every calculation runs in your browser. There is no application server and no database, so nothing you type is transmitted or stored. A share link is the exception: it carries your figures in the URL.

Found an error? It belongs on the corrections log, and how to report one is on that page.