How to Calculate Capital Gains Tax in the UK: Step-by-Step Guide

Updated · Tax and pay

Introduction

Tax in the UK is worked out in layers: allowances first, then bands, then separate charges such as National Insurance and student loans. Once you see each layer, the numbers on your payslip stop being a mystery.

This guide explains how to calculate capital Gains Tax in the UK, step by step. Estimate Capital Gains Tax on shares, second homes and other assets after the £3,000 annual exempt amount. You'll see the formula, a fully worked example and practical tips for UK readers.

What this calculation covers

Estimate Capital Gains Tax on shares, second homes and other assets after the £3,000 annual exempt amount.

Knowing your figures helps you check your payslip, negotiate pay, plan pension contributions and avoid a surprise bill from HMRC. Mistakes in tax codes are common, and HMRC will only refund what you notice and claim.

The method and formula

Take the £3,000 annual exempt amount off your gain. The part that fits inside your unused basic-rate band is taxed at 18%; the rest at 24%.

Every figure on our capital Gains Tax Calculator follows this method, so you can check the working yourself.

Worked example

Here's a typical example using these figures:

InputValue
Total gain£20,000
Your taxable income this year£30,000

Running them through the method gives:

ResultValue
Capital Gains Tax£3,060.00
Taxable gain£17,000.00
Taxed at 18%£17,000.00
Taxed at 24%£0.00

The headline figure is capital gains tax: £3,060.00. Change any input and the result will move with it.

How to use the calculator

  1. Enter or choose total gain (£).
  2. Enter or choose your taxable income this year (£).
  3. Read your results. The main figure is shown at the top, with a breakdown underneath.
  4. Try different values to compare scenarios side by side.

Tips for UK readers

  • Check your tax code on every payslip. 1257L is the standard code for 2025/26; anything else deserves a quick look in your HMRC app.
  • Pension contributions and salary sacrifice reduce your taxable pay, which matters most if you're near a band threshold.
  • If your income is between £100,000 and £125,140, you lose personal allowance and face an effective 60% marginal rate. Pension contributions can bring it back.
  • Keep records of expenses and allowances you can claim, such as working-from-home costs, professional fees and uniform cleaning.

Frequently asked questions

What's the quickest way to work out capital Gains Tax?

Use our free capital Gains Tax Calculator. It applies this method automatically: Take the £3,000 annual exempt amount off your gain. The part that fits inside your unused basic-rate band is taxed at 18%; the rest at 24%.

When does the UK tax year start?

The UK tax year runs from 6 April to 5 April the following year. Most allowances and bands reset on 6 April.

Where can I check the official rates?

GOV.UK publishes all current income tax, National Insurance and student loan rates. Our figures are based on the tax year shown on each calculator.

Is this calculator a substitute for advice?

No. It gives a clear estimate for common situations. For complex cases such as multiple incomes, benefits in kind or residency questions, speak to an accountant or HMRC.

Summary

To work out capital Gains Tax, follow the method above: Take the £3,000 annual exempt amount off your gain. For a quick, accurate answer with your own figures, use the calculator.

Try the capital Gains Tax Calculator

Enter your own figures and get an instant answer – free, no sign-up.

Open the capital Gains Tax Calculator

Next, read Capital Gains Tax: Common Mistakes, Tips and FAQs.

More tax and pay guides

This guide is general information, not financial, tax, legal or medical advice. Figures use 2025/26 UK rates where relevant. Always check GOV.UK or NHS.uk for official guidance.