Skip to content
Free CGT calculator

How to Calculate Capital Gains Tax in the UK, Step by Step

A seven-step method with worked examples for property and shares.

Quick answer

To calculate Capital Gains Tax, take the sale price, deduct what you paid and the allowable costs to find the gain, subtract any reliefs and losses, then subtract your £3,000 annual allowance. The rest is taxed at 18% or 24% for 2026/27, depending on how much of your basic rate band your income and the gain use. On a gain of £97,000 and an income of £55,000, the tax is £22,560.

Key facts

  • Gain = sale price (or market value) minus cost minus allowable costs.
  • Deduct reliefs first, then losses, then the £3,000 annual allowance.
  • Rates are 18% and 24%, set by your income and the size of the gain.
  • Shares, funds and crypto use pooling and matching rules to decide the cost.
  • The tax year runs from 6 April to 5 April.
  • You report property gains within 60 days and other gains through Self Assessment.

Good to know

Skip the sum

Our property calculator and shares calculator do all seven steps for you and show every line.

The formula in one line

The tax is the taxable gain multiplied by the rate. The taxable gain is the proceeds, less the costs, less reliefs, less losses, less the allowance. Each step below adds one of those parts. The order matters, because reliefs come before losses and losses come before the allowance. Doing them in the wrong order is the most common reason a hand calculation is wrong.

Infographic: How to Calculate UK Capital Gains Tax: The Step-by-Step Formula From Proceeds to Tax
Gain, deductions, rate

Step 1: Decide whether you have a disposal

A disposal is a sale, a gift, a swap or the loss of an asset. A transfer to a spouse or civil partner is a disposal with no gain and no loss. Giving something to charity is also free of the tax. You only calculate a gain when the asset is chargeable, so check the exemptions guide first. Your main home, ISAs, pensions, cars and British government gilts are exempt.

Step 2: Find the proceeds

The proceeds are the amount you receive. For a gift, or a sale to a connected person at less than its value, you use the market value instead. For a sale, deduct nothing yet. Selling costs come in step 4. Write down the date of the contract, because that decides the tax year, not the date the money arrives.

Step 3: Find the cost

The cost is what you paid. For an inherited asset, it is the value at the date of death, found from the probate value. For a gifted asset, it is the market value when you received it, unless a relief held the gain over. For shares and crypto, the cost comes from the pooling and matching rules, not from the most recent purchase. See the Section 104 guide.

Step 4: Add the allowable costs

Allowable costs reduce the gain. For a property, include the buying costs, Stamp Duty Land Tax, legal and survey fees, the cost of improvements that are still reflected in the property, and the selling costs, such as agent and legal fees. Repairs and maintenance are not allowable. Mortgage interest is never allowable.

AllowableNot allowable
Stamp Duty Land TaxMortgage interest
Solicitor and survey feesRoutine repairs
Estate agent fees on saleDecoration and upkeep
Extensions and new bathroomsInsurance and council tax
Cost of valuing the assetYour own time or labour
Costs you can and cannot deduct when working out a gain.
Infographic: Allowable Costs When Calculating UK Capital Gains Tax: What You Can Deduct and What You Cannot
Capital costs count, running costs do not

Step 5: Work out the gain and apply reliefs

The gain is proceeds less cost less allowable costs. In our property example, a sale at £320,000 of a house bought for £200,000, with £6,000 of buying costs, £5,000 of selling costs and £12,000 of improvements, gives a gain of £97,000. If the property was ever your home, deduct Private Residence Relief now. If it was a business, check Business Asset Disposal Relief. Reliefs reduce the gain or the rate, so they come before losses.

Worked example

A property sale, line by line

Sale price £320,000, less cost £200,000, less buying costs £6,000, less selling costs £5,000, less improvements £12,000, equals a gain of £97,000. Less the £3,000 allowance leaves £94,000 to tax. With an income of £55,000, the taxable gain is charged at the property rates, so £22,560 is due.

Step 6: Deduct losses, then the allowance

Capital losses from the same year come off first. They are deducted in full, even if the gain would have been covered by the allowance. Losses from earlier years are only used to bring the gain down to the allowance, and no further. Then the £3,000 allowance comes off. On a share sale with a gain of £12,800, the allowance leaves £9,800 taxable. With a £4,000 loss in the same year, the tax falls to £1,044. With a £6,000 loss from an earlier year, it falls to £684. The whole £6,000 can be used here because the gain is well above the allowance, but the loss would never be used to take the gain below it. Read more in the losses guide.

OrderWhat you deductWhy it matters
1ReliefsThey reduce the gain or the rate
2Losses from the same yearAlways used in full
3Annual allowance (£3,000)Applied after current-year losses
4Losses from earlier yearsOnly down to the allowance
The order in which gains are reduced before tax is charged.
Infographic: What Order to Deduct Reliefs, Losses and the Allowance When Calculating UK Capital Gains Tax
The order changes how much tax is left

Step 7: Apply the rate

The taxable gain is added on top of your taxable income. The part that falls in your basic rate band is taxed at 18%, and the part above it at 24%. The basic band is £37,700 above your personal allowance of £12,570. With an income of £30,000, the share gain is all taxed at the lower rate and the bill is £1,764. With an income of £90,000, all of it is taxed at 24% and the bill is £2,352. Trustees and personal representatives pay 24% on everything. See the rates guide.

Infographic: How Your Income Sets Your UK Capital Gains Tax Rate: The Same Gain, Different Bills
Basic rate against higher rate on a £12,800 gain

Worked example

Shares with a gain of £12,800

You sell shares for £28,000 that cost £15,000, with £100 of dealing costs each way. The gain is £12,800. The allowance leaves £9,800. On an income of £30,000, the basic rate applies, so the tax is £1,764. If your income were £90,000, it would be £2,352.

Step 8: Report and pay

Property gains must be reported within 60 days. Other gains go on your Self Assessment return, or into the real-time service if you do not usually file one. If the proceeds are more than £50,000, report even if no tax is due. Find the routes in how to report Capital Gains Tax.

Infographic: How to Report Capital Gains Tax in the UK: Three Routes, One Deadline Each
Pick the route by asset

Common mistakes when calculating Capital Gains Tax

  • Deducting repairs or mortgage interest. Neither is allowable.
  • Forgetting the buying and selling costs. They can lower the gain by thousands of pounds.
  • Using the wrong order. Reliefs, then losses, then the allowance.
  • Using the last purchase price for shares. The pool average or the matching rules decide the cost.
  • Using the date money arrives. The contract date sets the tax year.
  • Forgetting the £50,000 reporting rule. You may need to report with no tax due.
  • Ignoring other gains in the year. The allowance is shared across all disposals.

What to do next

  1. Gather the contract, the purchase price, the invoices and the dates.
  2. Run the figures through the property or shares calculator.
  3. Check for reliefs you could claim.
  4. Report within the deadline and keep your workings and records in case HMRC asks for them.

Frequently asked questions

How is Capital Gains Tax calculated?

Subtract the cost and allowable costs from the proceeds to get the gain. Deduct reliefs, losses and the £3,000 allowance, then tax the rest at 18% or 24%.

What is the formula for Capital Gains Tax?

Tax = (proceeds – cost – allowable costs – reliefs – losses – allowance) x rate. The rate depends on your income and the size of the gain.

Do I deduct the allowance before or after losses?

Current-year losses come off first. The allowance then comes off. Losses from earlier years are only used to bring the gain down to the allowance.

Can I deduct mortgage interest?

No. Mortgage interest is never an allowable cost for Capital Gains Tax.

What counts as an allowable cost?

Buying and selling fees, Stamp Duty Land Tax, legal and survey fees, valuation costs and the cost of lasting improvements.

Which rate do I pay?

18% on the part of the gain inside your basic rate band and 24% above it. Trustees and personal representatives pay 24%.

How do I calculate the gain on shares?

Match each sale to the same-day purchases, then purchases in the next 30 days, then the Section 104 pool average cost. The difference is the gain.

What if I made a loss?

A loss can be reported and carried forward, as long as you tell HMRC within 4 years of the end of the tax year.

Which tax year does the gain fall in?

The year that includes the date of the contract. Years run from 6 April to 5 April.

Is there a quicker way to work it out?

Yes. Use the calculators on this site. They show every step so you can check the sum.

Official sources

This page gives general information for UK taxpayers and is not tax advice. Capital Gains Tax rules can change and your own circumstances matter. Check the latest rules on GOV.UK or with a qualified tax adviser before you act.