---
title: "Capital Gains Tax Calculator for a Home You Used to Live In"
description: "Lived in it, then let it out? Work out the capital gains tax on selling: the tax-free share for the years it was your home, time away for work, costs and the 60-day deadline."
url: https://housemaths.com/tools/capital-gains-tax-calculator/
publisher: House Maths (https://housemaths.com)
editor: Daniil Shumko
note: General information about UK property, not financial advice. Check the dated figures against the sources listed.
---

# Capital gains tax on selling a home you used to live in

Bought a home, lived there, then let it out? Enter your dates and prices. You'll see how much of the gain is tax-free for the time it was your home (plus the last 9 months), the tax at 18% and 24%, and the date to report it by.

Rates checked 15 November 2026 Checked by [Daniil Shumko](https://housemaths.com/about/#editor), editor

> **Interactive calculator.** Use it at https://housemaths.com/tools/capital-gains-tax-calculator/. The figures below are its worked example with the default inputs.

Capital gains tax to pay

**£9,017**

You owned it for 10 years and it counts as your home for 5 years 9 months (5 years living there and the last 9 months), so 58% of the gain is tax-free and 42% is taxable. The split is by time, not by when the value went up.

Report and pay by 14 December 2026 with a UK property return (60 days after completion on 15 October 2026). If you're registered for Self Assessment, put the sale on your tax return too.

*How the tax is worked out*
| Step | Amount |
| --- | --- |
| Sale price | £250,000 |
| Price you paid | −£150,000 |
| Gain | £100,000 |
| Private residence relief: 58% of the gain, for the time it counts as your home | −£57,503 |
| Gain after reliefs | £42,497 |
| Tax-free allowance, 2026-27 | −£3,000 |
| Taxable gain | £39,497 |
| 18% on £7,700 | £1,386 |
| 24% on £31,797 | £7,631 |
| Capital gains tax | £9,017 |

-   The last 9 months of ownership count as lived in, because it was your main home at some point.
-   Lettings relief ended on 6 April 2020 for homes let out in full; it now only applies if you lived there with your tenant.

[Report and pay on GOV.UK](https://www.gov.uk/report-and-pay-your-capital-gains-tax/if-you-sold-a-property-in-the-uk-on-or-after-6-april-2020) (HMRC's Capital Gains Tax on UK property service).

A figure to check before you file, not advice. It doesn't cover non-UK residents, companies or trusts, homes owned before 31 March 1982, sales before 6 April 2014, business use of part of the home, or gardens over half a hectare.

## How the tax is worked out

1.  **The gain.** Sale price, minus what you paid, the costs of buying and selling, and improvements. Joint owners take their own share.
2.  **Private residence relief.** The gain times the time it counts as your home, divided by the time you owned it. "Your home" includes the last 9 months, time away that qualifies, and the time before you moved in if you were doing it up or selling your old home and moved in within 24 months (12 months for sales before 6 April 2020, unless HMRC agreed to more).
3.  **Lettings relief**, only for sales exchanged before 6 April 2020, or since then if you lived there with your tenant.
4.  **The tax-free allowance** (£3,000 in 2026-27) comes off what's left.
5.  **The rate.** 18% on the part that fits in your unused basic rate band, 24% above it. Your taxable income uses up the band first.

The exchange date decides the tax year, the rates and the rules. The 60-day deadline to report counts from completion.

## Worked examples

-   Bought for £150,000 in September 2016, lived there 5 years, let 5, sold for £250,000 in September 2026, taxable income £30,000: **£9,017**. You owned it for 10 years and it counts as your home for 5 years 9 months (5 years living there and the last 9 months), so 58% of the gain is tax-free and 42% is taxable. The split is by time, not by when the value went up.
-   Bought for £100,000 in June 2001, lived there 20 years, let 5, sold for £400,000, higher rate taxpayer: **£11,525** (83% of the gain tax-free).
-   Moved away for work for two and a half years, let it, then moved back before selling: **£0**, against £5,019 if the time away didn't count.
-   Same home and dates, exchanged on 1 April 2020 with lettings relief: **£4,150**; exchanged on 1 May 2020 without it: **£18,608**.
-   Inherited at a probate value of £250,000, sold for £290,000 four years later, never lived in: **£7,512**, reported by 11 August 2026.

## What it doesn't cover

Non-UK residents, companies and trusts, executors selling during the administration of an estate, homes owned before 31 March 1982, sales exchanged before 6 April 2014, part of the home used only for business, gardens and grounds over half a hectare, job-related accommodation, lettings relief for living with a tenant, and losses from other years. Gift hold-over relief on an earlier gift stops private residence relief. In all of these, check HMRC's helpsheet HS283 or ask an adviser.

## Common questions

### I lived in my house for 5 years then rented it out for 5. Do I pay capital gains tax on the whole gain?

No. You get private residence relief for the years it was your home plus the last 9 months, and pay tax only on the rest. Bought for £150,000 in September 2016, lived in until September 2021, then let and sold for £250,000 in September 2026: 58% of the £100,000 gain is tax-free. With £30,000 of taxable income the tax is £9,017.

### The value didn't go up while it was let. Why am I taxed on the rented years?

Because the gain is split by time, not by when the value rose. HMRC's helpsheet HS283 says you multiply the gain by the time it counts as your home divided by the time you owned it, and you "do not introduce valuations of the property at the dates of changes of use". Bought for £100,000 in June 2001, lived in for 20 years, let for 5 and sold for £400,000: 83% of the £300,000 gain is tax-free, leaving £51,023 taxable and tax of £11,525 for a higher rate taxpayer.

### Are the last 9 months always tax-free?

Yes, if the home was your only or main home at some point. For sales exchanged from 6 April 2020 the last 9 months always count; from 6 April 2014 to 5 April 2020 it was 18 months. If you're disabled or living in a care home and have no other home of your own, it's 36 months.

### Can I claim private residence relief if I moved away for work?

Often, yes. Time away counts as living there if you lived there before and moved back in afterwards: up to 3 years in all for any reason, any length of time working abroad, and up to 4 years in all when your job meant you couldn't live there. Your spouse's or civil partner's job counts too. It doesn't matter if you let the home meanwhile. Away for work from March 2020 to September 2022 and then back: tax £0, against £5,019 without the absence rules. If you had another home while away, you need to have nominated this one as your main home within 2 years.

### Does the 3-year absence rule work if I never move back in?

No. Time away for any reason only counts if the home was your main home again afterwards, and the last 9 months don't count as moving back. The one exception is work: if a job (yours, or your spouse's or civil partner's) kept you from moving back, up to 4 years of work-related absence, and any time working abroad, can still count. In the first example, adding 3 years away without moving back changes nothing: the tax stays £9,017.

### What costs can I deduct from capital gains on a property?

The price you paid, stamp duty, the solicitor's, surveyor's and estate agent's fees for buying and selling, advertising to find a buyer, the cost of a valuation for the tax calculation, and improvements that are still there when you sell (an extension, a new kitchen). Not repairs, decorating, mortgage interest, or anything you've already set against rental income.

### Is stamp duty an allowable cost for capital gains tax?

Yes. HMRC lists stamp duty as a cost of buying. The calculator can work out what you paid on a purchase in England or Northern Ireland completed from 4 December 2014: for the first example it's £500, which brings the tax down to £8,966. Your completion statement from the solicitor shows the exact figure.

### Inherited property: is the base cost the probate value?

Yes. You're treated as getting the home on the date of death, at its market value then. If a value was agreed for inheritance tax, that's the value you use. The date the estate was shared out or a deed of appropriation was signed doesn't change it. Inherited at £250,000, sold for £290,000 four years later with £5,700 of costs and never lived in: tax £7,512.

### Are legal fees counted if the property was inherited or gifted?

If you inherited it, you can deduct costs you or the executors paid to transfer the home to you, but not the executors' costs of getting probate (HMRC helpsheet HS282). If it was a gift, use its market value on the day you got it, plus the legal costs of the transfer you paid.

### My husband, wife or civil partner gave me the house (or their share). What's my cost?

Their cost. Transfers between spouses or civil partners who live together are treated as no gain, no loss, and their time owning it and living there counts as yours. Enter the date and price they paid, and the times either of you lived there.

### When do I have to report and pay the tax?

Within 60 days of completion, using HMRC's Capital Gains Tax on UK property service. Completing on 15 October 2026 means reporting and paying by 14 December 2026. As a UK resident you don't need to report online if your gains are within your tax-free allowance. For sales exchanged before 6 April 2020, the gain went on your Self Assessment return instead.

### Can I still get lettings relief?

Only if you lived in the home at the same time as your tenant. Lettings relief for a home let out in full ended for sales exchanged from 6 April 2020. Before then it took up to £40,000 off the gain: the same sale exchanged on 1 April 2020 got £40,000 of lettings relief and tax of £4,150, while exchanging on 1 May 2020 meant £18,608.

### What are the capital gains tax rates on property in 2026-27?

18% on the part of your taxable gain that fits in your unused basic rate band (£37,700), and 24% above it. The tax-free allowance is £3,000. The higher rate on homes was 28% for sales before 6 April 2024.

### Do Scottish taxpayers pay a different rate of capital gains tax?

No. The law says capital gains tax is worked out as if you weren't a Scottish or Welsh taxpayer, so everyone uses the UK basic rate band (£37,700 in 2026-27). Only the income tax rates differ.

## Sources

1.  [GOV.UK: Capital Gains Tax, rates, allowance and worked examples](https://www.gov.uk/capital-gains-tax)
2.  [GOV.UK: Tax when you sell property](https://www.gov.uk/tax-sell-property)
3.  [GOV.UK: Report and pay your Capital Gains Tax](https://www.gov.uk/report-and-pay-your-capital-gains-tax)
4.  [HMRC helpsheet HS283: Private Residence Relief (2026)](https://www.gov.uk/government/publications/private-residence-relief-hs283-self-assessment-helpsheet/hs283-private-residence-relief-2026)
5.  [HMRC helpsheet HS282: Death, personal representatives and legatees (2026)](https://www.gov.uk/government/publications/death-personal-representatives-and-legatees-hs282-self-assessment-helpsheet/hs282-death-personal-representatives-and-legatees-2026)
6.  [HMRC Capital Gains Manual CG65030: periods of absence](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg65030)
7.  [HMRC Capital Gains Manual CG65046: conditions for periods of absence](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg65046)
8.  [HMRC Capital Gains Manual CG65047: other homes during an absence](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg65047)
9.  [HMRC Capital Gains Manual CG65000: delay in moving in](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg65000)
10.  [HMRC Capital Gains Manual CG15250: costs of buying and selling](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg15250)
11.  [Taxation of Chargeable Gains Act 1992, section 223 (amount of relief)](https://www.legislation.gov.uk/ukpga/1992/12/section/223)
12.  [Taxation of Chargeable Gains Act 1992, section 1J (Scottish and Welsh taxpayers)](https://www.legislation.gov.uk/ukpga/1992/12/section/1J)

This calculator gives a general figure, not tax, legal or financial advice. Where the government publishes worked examples, we test it against them. Found a problem? [Tell us](mailto:support@housemaths.com).

Read next

[Landlords

### Landlord tax 2027: the 24%, 44% and 49% rates explained

Rental profit is set to be taxed at 24%, 44% and 49% from 6 April 2027. What changed in the October 2026 Budget, worked examples, and what it costs you.

Updated 26 November 2026](https://housemaths.com/guides/landlord-tax-2027/) [Landlords

### Budget 2026 property changes: every measure and whether it's law

Every property measure in the 28 October 2026 Budget and whether it is law: landlord rates 24/44/49% from April 2027 in the Finance Bill, LISA 20% charge in force.

Updated 26 November 2026](https://housemaths.com/guides/budget-2026-every-property-measure/)

More calculators

-   [Stamp duty calculator](https://housemaths.com/tools/stamp-duty-calculator/)
-   [Landlord tax 2027 calculator](https://housemaths.com/tools/landlord-tax-calculator/)
-   [Mortgage repayment calculator](https://housemaths.com/tools/mortgage-calculator/)
