The 5-year rule: moving back to the UK after living abroad

If you were UK resident in at least 4 of the 7 tax years before the year you left, and you come back to live in the UK within 5 years, certain gains and some income from your time abroad can be taxed in the UK in the year you return. Staying away for more than 5 years avoids this.

What the rule is for

Without this rule, someone could leave the UK for a year or two, sell investments or a business while non-resident, and come back without paying UK tax on the gain. The temporary non-residence rules, explained in HMRC's helpsheet HS278 and manual RFIG21510, stop that.

They don't stop you selling things while you're abroad. They mean that if your time away turns out to be short, some of what you did while away is taxed when you return.

Who it applies to

The rule can apply if you had “sole UK residence” for all or part of at least 4 of the 7 tax years before the tax year you left, and your period of non-residence lasts 5 years or less. Sole UK residence broadly means UK resident and not treated as resident somewhere else under a tax treaty.

Most people who lived in the UK for several years before moving meet the first condition, so the 5 years is the number that matters.

The 5 years is measured in years, not whole tax years: split-year treatment can make the period start and end part-way through a tax year. HMRC's guidance gives an example: someone who leaves on 4 May 2015 and returns on 4 May 2020 is outside the rule. So returning on the same date 5 years after you left is just enough.

What can be taxed on your return

If the rule applies, gains on assets you owned before you left, and sold while abroad, can be taxed as if they were made in the tax year you come back. Some types of income are also caught, such as certain dividends from close companies and some pension payments. HS278 explains both.

Assets you bought and sold entirely during your time abroad are generally outside the rule, but there are exceptions. HS278 has the full list and how the tax is worked out, and a tax adviser should check the details for your own assets.

How it fits with the day limits

The 5-year rule works alongside the Statutory Residence Test, not instead of it. Each tax year you're away still needs to be a non-resident year. If a year abroad becomes a UK resident year because you went over your day limit, it can break your period of non-residence.

So people who plan to come back usually do two things: keep each year within their UK day limit, and plan the return date so it falls more than 5 years after they left.

The year you come back matters too. If you return part-way through a tax year, split-year treatment may apply to that year, and that can affect when your period of non-residence is treated as ending. This is a good point to take advice before you book the move.

Worked examples

Example 1: Victoria lived in the UK for 15 years and moved to Dubai on 1 September 2026. She sells her shares in a UK company in 2027 at a large gain. If she moves back before 1 September 2031, that gain can be taxed in the year she returns. If she moves back on or after 1 September 2031, it isn't caught by this rule.

Example 2: Hugo worked in the UK for 3 years before moving to Portugal. He was UK resident in only 3 of the 7 tax years before the year he left, so the temporary non-residence rule doesn't apply to him, however soon he returns.

Example 3: Isabel left the UK on 10 October 2026 and plans to return in 2031. Her first safe return date is 10 October 2031. A visit before then is fine, as long as she stays within her day limit and doesn't become UK resident for the year.

Know your safe date

Relocount works out the 5-year rule from your residence history: whether you were resident in 4 of the 7 years before leaving, and the first day a return would be more than 5 years after you left. It shows you how many days are left until that date.

This guide explains HMRC's published rules. It isn't tax advice: check your own position with a qualified tax adviser.

Questions

Is it 5 tax years or 5 calendar years?

5 years from when you leave, not 5 tax years. HMRC's example shows that leaving on 4 May 2015 and returning on 4 May 2020 is outside the rule.

Can I visit the UK during the 5 years?

Yes. Visits are fine as long as each tax year stays a non-resident year under the Statutory Residence Test.

Does the rule apply to everyone who leaves?

No. Only to people who were UK resident in at least 4 of the 7 tax years before the year they left.

Is everything I sell abroad caught?

No. Mainly gains on assets you owned before leaving, plus some kinds of income. HS278 lists what's included.

Sources

By the Relocount editorial team. Written with AI help and checked against HMRC's published guidance; last checked 15 November 2026. Relocount organises your records against HMRC's published rules. It isn't tax advice.