What Happens to Your Capital Gains Tax When You Leave the UK?

You sell your agency shares for £2.5 million, move to Dubai, and assume the gain is tax-free because you are non-resident. That is correct in many cases. But only if you stay away long enough.

If you return to the UK within 5 tax years, HMRC treats you as if you never left. Every gain you made while abroad becomes taxable in the year you come back. This is the temporary non-residence rule, and it catches more agency founders than most people realise.

The rule is in the UK capital gains tax leaving UK temporary non residence legislation at s.10A TCGA 1992. It applies to anyone who was UK resident for at least 4 of the 7 tax years before leaving, and then returns within 5 years. The clock starts from the date you leave, but it is measured in tax years, not calendar days.

How the 5 Year Rule Actually Works

The rule does not say you must be gone for exactly 5 years to the day. It works on tax years. You need to be non-resident for at least 5 complete tax years. If you return in year 4, the rule bites.

Here is how the counting works in practice:

  • You leave the UK on 1 July 2025. You are non-resident for the 2025/26 tax year (partial year), then 2026/27, 2027/28, 2028/29, and 2029/30. If you return on 6 April 2030 (the start of 2030/31), you have been away for 5 complete tax years. The rule does not apply.
  • If you return on 5 April 2030 (the last day of 2029/30), you have only been away for 4 complete tax years. The rule applies. All deferred gains become taxable.

The difference between those two dates is one day. The tax difference could be hundreds of thousands of pounds.

For agency founders moving to Dubai, this matters because many plan a 3 to 4 year stint. They sell their agency, take a job or start something new in the UAE, and intend to return to the UK within a few years. That timeframe is exactly what triggers the rule.

What Gains Are Caught by the Rule?

The rule applies to gains you make during the period of non-residence. If you sell shares, property, or other assets while living in Dubai, and then return within 5 years, those gains are treated as if they arose in the year you return. You pay UK capital gains tax on them at that point.

There are exceptions. Gains on UK residential property are always taxable in the UK regardless of residence status, so the rule is less relevant there. But gains on shares, including agency shares, business assets, and most other investments, are caught.

The rule also applies to gains that were deferred before you left. If you had a holdover claim or an EIS deferral that crystallises while you are non-resident, that gain is also caught if you return within 5 years.

Why This Matters for Agency Founders Moving to Dubai

Dubai has no capital gains tax. That is the main attraction for many agency founders considering relocation. You sell your shares, pay nothing to the UAE government, and keep the full amount. But the UK temporary non-residence rule means that benefit only sticks if you stay away long enough.

I have seen founders sell their agency for £3 million, move to Dubai for 3 years, and then return to the UK for family reasons. They thought the gain was tax-free. It was not. HMRC assessed the full gain in the year they returned, at 24% CGT (or 14% if BADR applied at the time). That is a £720,000 tax bill they did not plan for.

The rule applies regardless of your intentions. You do not need to plan to return for the rule to apply. If you return within 5 years for any reason, the gains are taxable. HMRC does not care why you came back.

For marketing agency and digital agency founders, the most common trigger is family. A parent falls ill. A child wants to attend UK school. A spouse misses home. These are human reasons, not tax planning reasons. But they have tax consequences.

What About Business Asset Disposal Relief?

If you sell your agency shares and qualify for Business Asset Disposal Relief (BADR), the CGT rate is 14% for disposals from 6 April 2025, rising to 18% from 6 April 2026. That is still a significant tax charge. Moving to Dubai to avoid it only works if you stay non-resident for 5 complete tax years.

BADR itself has its own conditions. You need to hold the shares for at least 2 years, and you must be an officer or employee of the company. If you sell after leaving the UK but before the 2 year holding period ends, you lose the relief entirely. That is a separate issue from the temporary non-residence rule, but it compounds the problem.

How HMRC Measures Your Residence Status

The Statutory Residence Test (SRT) determines whether you are UK resident in any given tax year. If you spend fewer than 16 days in the UK in a tax year and have not been UK resident in the previous 3 years, you are non-resident. If you spent 16 to 45 days, it depends on your work patterns and other ties.

For the temporary non-residence rule, you need to be non-resident for 5 complete tax years. That means you must not be UK resident in any of those years. Even a single tax year where you spend 46 days in the UK could break the non-residence period and restart the clock.

This is where many founders get caught. They keep a UK home. They visit for board meetings. They spend Christmas in the UK. Over 5 years, those visits add up, and one year they cross the threshold. Suddenly the 5 year clock resets, and they have to start again.

If you are planning to leave the UK and want to sell assets tax-free, you need a clean break. No UK property. No UK car. No UK gym membership. No UK bank account with regular transactions. HMRC uses these as evidence of ties.

What Happens If You Return Within 5 Years

You return to the UK in year 3. HMRC treats you as if you were UK resident for the entire period. Every gain you made while abroad is taxable in the year you return. You file a tax return for that year, declare the gains, and pay CGT at the prevailing rate.

The gains are calculated at the date of disposal, not the date of return. If your agency shares were worth £2 million when you sold them in Dubai in year 1, and they would be worth £4 million now, you still only pay tax on the £2 million gain. But you pay it at the rate that applies in the year you return.

If you sold the shares in year 1 and returned in year 4, and CGT rates have increased in the meantime, you pay the higher rate. There is no grandfathering.

You also lose the benefit of any tax-free years you had abroad. If you used your personal allowance or the £500 dividend allowance in Dubai, those are irrelevant. The UK taxes the gain in full, subject to your personal allowance for the return year.

Can You Avoid the Rule?

There is no legal way to avoid the temporary non-residence rule if you return within 5 years. It is a statutory provision. You cannot contract out of it. You cannot structure around it with trusts or offshore companies (though those can create their own problems).

The only way to avoid it is to stay non-resident for 5 complete tax years. That is it. If you plan to return, you either accept the tax charge or delay the sale until after the 5 year period.

For some founders, the better strategy is to sell the agency before leaving the UK, pay the CGT at the time, and then move to Dubai with the after-tax proceeds. That way there is no deferred gain, no temporary non-residence issue, and no risk if you return early. The tax is paid and done.

For others, the strategy is to sell after the 5 year period has expired. That requires planning. You need to know when your 5 year clock started and when it ends. You need to be certain you will not return before that date.

Practical Steps Before You Move

If you are a creative agency or advertising agency founder considering a move to Dubai, here is what you should do before you go:

  • Get a formal residence opinion from a UK tax adviser who understands the SRT and the temporary non-residence rule. Do not rely on internet forums or WhatsApp groups.
  • Document your departure date and your intended return date. Keep a diary of UK days from the moment you leave.
  • Sell any assets you plan to sell before you leave, or commit to staying away for 5 complete tax years. Do not sell during the non-residence period unless you are certain you will not return.
  • Review your UK ties. Cancel gym memberships, close bank accounts you do not need, and sell or rent out your UK property. The fewer ties, the cleaner your non-residence.
  • If you have a spouse who will stay in the UK, understand that their residence status affects yours. A spouse in the UK is a strong tie that can keep you UK resident even if you spend few days there.

For PR agency and web design agency founders, the most common mistake is assuming that working remotely from Dubai for 3 years is enough. It is not. You need to be non-resident for 5 complete tax years, not 3 calendar years. The difference is significant.

As ICAEW qualified accountants working exclusively with agency founders, we see this issue regularly. The temporary non-residence rule is one of the most misunderstood parts of UK tax law for founders moving to Dubai. It is not complicated. It is just poorly communicated by most advisers.

What About the UAE Double Tax Treaty?

The UK-UAE double tax treaty does not override the temporary non-residence rule. The treaty allocates taxing rights between the two countries. But the UK's domestic law says that gains made during temporary non-residence are taxable in the UK regardless of the treaty. The treaty does not help.

Some advisers will tell you that the treaty gives you protection. It does not. The UK's domestic law takes precedence, and the treaty does not prevent the UK from taxing its own residents. Since the rule treats you as if you were resident throughout the period, the UK claims taxing rights over the entire gain.

If you want to challenge this, you would need to take HMRC to tribunal. I am not aware of any successful challenge to the temporary non-residence rule. It is well-established law.

Planning for a Return

If you know you will return to the UK within 5 years, plan for the tax charge now. Set aside funds to cover the CGT. Invest the sale proceeds in a way that allows you to pay the tax when it falls due.

The tax is due on 31 January following the tax year of return. If you return in the 2029/30 tax year, the tax is due by 31 January 2031. That gives you time to prepare, but only if you know it is coming.

If you do not plan for it, the tax bill can be a shock. I have seen founders sell their agency, move to Dubai, spend the proceeds on lifestyle and property, and then return to the UK to find they owe £500,000 in CGT with no cash to pay it. HMRC charges interest and penalties on late payments. It gets worse.

For SEO agency and recruitment agency founders, the lesson is the same. The temporary non-residence rule is a hard deadline. Five complete tax years. Nothing less.

Final Thoughts

The UK capital gains tax leaving UK temporary non residence rule is not a trap. It is a clear rule that is well-documented in legislation. The problem is that many founders do not know about it until they return and HMRC sends them a letter.

If you are considering a move to Dubai, talk to an accountant who understands both UK and UAE tax law before you sell anything. The timing of your sale and your return matters more than almost any other decision you will make.

If you want to discuss your specific situation, contact us. We work with agency founders who are planning international moves, and we can help you understand the implications before you commit.