The UK Temporary Non-Residence Trap: How a Short Stint Abroad Claws Back Tax on Indian Gains You Sold While Non-Resident
Sell Indian shares or property tax-free as a UK non-resident, then return within five years, and UK CGT claws the gain back. The 5-year rule explained.
You are an Indian who built a career in London, accumulated a portfolio of Indian shares, a couple of Indian mutual funds, and a flat in Pune you bought back in 2015. A two-year contract in Dubai comes up. You take it, you become UK non-resident, and somewhere in that window you sell the Pune flat and a chunk of the Indian equity portfolio. No UK capital gains tax, you reason, because you are non-resident and these are foreign assets. The money lands clean. Then the Dubai contract ends, you move back to London in year three, and your accountant tells you that the gain you thought you had crystallised tax-free is now sitting in your UK tax return for the year you came back. That is the temporary non-residence rule, and it is one of the most expensive surprises an Indian moving in and out of the UK can walk into.
The 30-second answer: If you were UK resident in at least four of the seven tax years before you left, become non-resident for five years or less, and then return to UK residence, certain gains and income you realised while you were abroad are treated as arising in the tax year you return and taxed then. The big target is capital gains on assets you owned before leaving the UK, including Indian shares, mutual funds, and property bought before departure. Gains on assets you both bought and sold entirely while non-resident are generally outside it. It also catches flexible pension withdrawals and close-company distributions (from 6 April 2026, firmly so). To escape, your non-resident period must exceed five years, or you never return. The India-UK DTAA and a foreign tax credit for Indian tax paid soften the double hit but rarely cancel it.
This guide is written for the UK side of your financial life, the part that decides whether a gain you realised abroad follows you home. What follows is how the rule actually works, the two conditions that have to both be true before it bites, exactly which assets and income are caught and which slip through, a full worked example with an Indian asset sold at a Rs 50,00,000 gain and what happens depending on whether you return inside or beyond the five-year window, how the India-UK DTAA and the foreign tax credit interact, and an honest set of edge cases around the four-of-seven-years test, split-year treatment, assets bought while you were away, and how the five-year clock is actually measured. If you are weighing a short overseas posting against a permanent move, the difference between the two is worth real money, and the rule is the reason.
What "temporary non-residence" actually means in UK tax law
The phrase sounds informal, but it is a defined statutory concept, and the definition is what does the work. The rules sit in the UK's anti-avoidance code and were rebuilt to align with the Statutory Residence Test (SRT) when that came in for the 2013-14 tax year. The whole point of the regime is to stop one specific manoeuvre: a UK resident who is sitting on a large unrealised gain, leaves the UK just long enough to be non-resident, sells the asset free of UK CGT, and then comes home. Without the rule, anyone with a big gain could simply take a year or two abroad to wash it. With the rule, that washing only works if you stay away long enough to mean it.
You are a temporary non-resident if all of the following hold:
- You had sole UK residence for the whole or part of at least four of the seven tax years immediately before the year you became non-resident.
- Your period of non-residence is five years or less.
- You then return to UK residence.
If all three are true, the rule applies. If any one of them is false, it does not. So someone who had only been in the UK for two years before leaving is outside it, because they fail the four-of-seven test. Someone who stays away for six years is outside it, because the non-resident period exceeds five years. And someone who never comes back is outside it, because there is no year of return to tax in. The rule needs a "before", an "away", and a "back", and it needs the "before" to have been substantial and the "away" to have been short.
The mechanism, once it applies, is blunt. Gains and certain income that you realised during the period of non-residence are treated as if they arose in the tax year you return. They do not get spread, they do not get a special rate, they simply land in your return-year self-assessment as though you had been UK resident when you sold. You report them on the return for the year of return, and you pay UK CGT or income tax on them at that year's rates and rules.
The two conditions, in the order you should check them
Most people get the five-year part and miss the four-of-seven part, so take them in turn.
Condition one: the four-of-seven-years residence test
Before the rule can touch you, you have to have been a genuine UK resident for a meaningful stretch. The test is sole UK residence for all or part of at least four of the seven tax years before the year of departure. "Sole UK residence" is a specific SRT concept that broadly means you were UK resident and not treaty-resident somewhere else for that period. The practical effect is that the clawback is aimed at established UK residents, not at someone who touched down in the UK for a year or two and left.
For most Indians who built a career in London or Manchester over five, eight, ten years, this condition is comfortably met and is not the variable that saves you. If you arrived in the UK in 2014, settled, and have been resident every year since, then by the time you leave in 2026 you easily clear four of the prior seven. Where this condition genuinely matters is the person who came to the UK relatively recently. If you only became UK resident two or three tax years before you left, you may simply fall outside the rule, and a gain realised abroad stays abroad even if you come back quickly. Do not assume; count the actual tax years.
Condition two: the five-year non-residence clock
This is the one that determines whether a quick return costs you. The rule applies only where your period of non-residence is five years or less. Stay non-resident for more than five years and the gains you realised while away are out of reach of the clawback, even if you later return to the UK.
The honest read on the clock is that it is not as simple as "I left on 1 July 2026, so I am safe on 2 July 2031." The period is measured by reference to residence periods under the SRT, which interact with split-year treatment, so the start and end of your non-residence are tax concepts, not the dates on your boarding passes. A year that splits into a UK part and an overseas part, or a return that triggers split-year treatment on the way back, can move the boundaries. The safe operating rule for anyone deliberately planning around this is to build in a clear margin. If you are leaving partly so you can realise Indian gains free of UK CGT, do not aim to be away for five years and one week. Aim to be genuinely, structurally non-resident for well beyond five years, with a return that is a real return and not a calculated one.
The assets and income that are caught, and the ones that are not
This is where the rule has teeth, and where the single most important distinction lives.
Caught: gains on assets you owned before you left the UK. If you held the asset at the point of departure and you dispose of it while non-resident, the gain is within the clawback. For an Indian moving out of the UK, this is the heart of the problem, because the assets most likely to carry a large gain are exactly the ones held for years before departure:
- Indian listed shares held in a demat account.
- Indian mutual funds and ETFs you had been running through SIPs.
- Unlisted Indian shareholdings, including stakes in a family business or a startup.
- Indian residential or commercial property bought before you left the UK.
- Non-Indian assets too, such as a portfolio of US stocks or a holiday home, if owned before departure.
Generally not caught: assets you both acquired and disposed of entirely during the non-resident period. If you buy something after you have left the UK and sell it before you return, the gain on that asset is generally outside the temporary non-residence rules. The logic is that the rule is designed to stop you washing a pre-existing gain, not to tax genuinely new investment activity carried out while you were a non-resident. So a stock you buy in Dubai in year one and sell in year two, having never owned it as a UK resident, is generally clean. This exception is real, but it is narrow, and the timing has to be clean at both ends.
On the income side, the rules reach beyond capital gains. The categories most relevant to NRIs are:
- Pension withdrawals, in particular flexible drawdown and certain lump sums taken while non-resident, which can be pulled into the year-of-return income charge.
- Distributions from close companies where you are a material participator, broadly a holder of more than 5%. Dividends and distributions you take from your own close company while non-resident can be taxed on return. From 6 April 2026 the rules were tightened so that close-company distributions received during temporary non-residence are firmly within the income charge, and the older "post-departure trade profits" concept was removed. If you own an Indian or UK private company and were planning to clear out retained profits as dividends during a short stint abroad, this is the provision that catches you.
Worked example: a Rs 50,00,000 Indian gain, returning inside versus beyond five years
Take a concrete case, because the abstract rule does not land until you put a number on it.
The setup. Priya is an Indian who moved to London in 2015 and was UK resident every tax year from 2015-16 onwards. She owns Indian listed shares she has held since 2016. In April 2026 she takes a posting in Dubai, becomes UK non-resident, and in the 2027-28 tax year she sells the Indian shares. The gain, in rupees, is Rs 50,00,000. She paid Indian capital gains tax on the sale.
Because she held the shares before she left the UK, the gain is exactly the kind the temporary non-residence rule targets. Whether she ends up paying UK CGT depends entirely on what she does next.
Scenario A: Priya returns to the UK in 2029, after three years away.
She was UK resident in at least four of the seven tax years before departure (she clears that comfortably). Her period of non-residence is three years, which is five years or less. She returns to UK residence. All three conditions are met, so the temporary non-residence rule applies.
The Rs 50,00,000 gain she realised in 2027-28 is treated as arising in 2029-30, the tax year she returns. It goes into her UK self-assessment for that year. Converted to sterling at the relevant rate, suppose the gain is around GBP 47,000 for UK purposes. After her annual exempt amount, the balance is charged to UK CGT at the rate applying to shares for her income band in the year of return. The gain she thought she had banked cleanly in Dubai is now a UK tax event two years later.
She is not necessarily taxed twice in full. Under the India-UK Double Taxation Avoidance Agreement and the UK's foreign tax credit rules, the Indian capital gains tax she already paid on the sale can generally be credited against the UK CGT on the same gain. So the UK takes, broadly, the excess of the UK charge over the Indian tax already paid. If UK CGT on the gain is higher than the Indian tax she paid, she tops up to the UK figure; if the Indian tax was higher, the credit is capped at the UK liability and she does not get a refund of the difference. Either way, the gain is firmly inside the UK net, and the clean tax-free exit she imagined did not happen.
Scenario B: Priya stays non-resident until 2032, returning after six years.
Same shares, same Rs 50,00,000 gain realised in 2027-28, same Indian tax paid. But now her period of non-residence is six years, which exceeds five years. One of the three conditions fails. The temporary non-residence rule does not apply.
The gain she realised in 2027-28 stays outside UK CGT. When she returns in 2032, there is nothing to pull back into her UK return for the gain on those shares. The only UK tax cost on the disposal is, in effect, nil, because she was a genuine non-resident when she sold an asset that is not UK land. The Indian tax she paid is the end of the story.
The difference between the two scenarios is the whole point. Same person, same asset, same gain, same Indian tax. The only variable is whether she came home in year three or year six, and that single variable decides whether a roughly GBP 47,000 gain is a UK tax event or not. This is why "I am non-resident, so no UK CGT" is a half-truth. It is true at the moment of sale and can be untrue two years later, retroactively, the day you become UK resident again.
How the India-UK DTAA and the foreign tax credit interact
When the clawback does apply, you are not generally taxed twice over on the full gain, but the relief is partial and it is worth understanding the mechanics rather than assuming the treaty makes the problem go away.
The India-UK DTAA allocates taxing rights and provides for relief from double taxation, and the UK gives that relief in practice through a foreign tax credit. For a gain on Indian shares that is dragged into your UK return under the temporary non-residence rule, the broad outcome is:
- India taxes the gain when you sell, under Indian capital gains rules.
- The UK, on your return, also taxes the same gain as arising in the year of return.
- You claim a foreign tax credit in the UK for the Indian tax paid on that gain, capped at the UK tax on the same gain.
The credit means you are not paying both taxes in full on top of each other, but you do end up paying the higher of the two effective charges, not the lower. If the UK rate on the gain is higher than the Indian rate you paid, you top up to the UK level. The relief stops you being double-taxed; it does not give you the tax-free result you would have had if you had simply stayed away beyond five years. For the detailed mechanics of claiming credit in India for foreign tax, the mirror-image process is covered in foreign tax credit and Form 67, and the treaty itself is unpacked in the India-UK DTAA deep dive.
There is a timing wrinkle worth flagging honestly. Because the UK treats the gain as arising in the year of return rather than the year of sale, and India taxed it in the year of sale, you can have a mismatch between the year the foreign tax was paid and the year the UK charge falls. Foreign tax credit relief is generally available for the foreign tax on the same income or gain, but the administration of matching a credit across tax years is fiddly, and this is the kind of detail where you want an adviser who has actually run a temporary non-residence return rather than a generalist.
Edge cases
The general rule is clean enough. The places it gets genuinely awkward are these, and being honest about them matters more than pretending the day counts are simple.
The four-of-seven-years test for recent arrivals. If you have not been a UK resident long, you may be outside the rule entirely. The test requires sole UK residence for all or part of at least four of the seven tax years before departure. Someone who came to the UK in 2024 and leaves in 2026 simply does not meet it, and gains they realise abroad are not clawed back even on a quick return. The catch is that "sole UK residence" is an SRT concept with its own definition, and part-years and treaty-residence elsewhere can affect the count. Do not eyeball it; tally the actual tax years and their residence status. For how the residence lines are drawn on the Indian side of the same move, see NRI residency and RNOR rules, and for the treaty tie-breaker when both countries claim you, DTAA tie-breaker and dual residency.
Split-year treatment. UK residence is assessed by tax year, but the SRT allows a tax year to be split into a UK part and an overseas part where you leave or arrive partway through. This affects when your period of non-residence is treated as starting and ending. A disposal made in the overseas part of a split year, or a return that triggers split-year treatment, can shift the boundaries of the five-year clock and of what is treated as realised while non-resident. This is the single biggest reason the "five years from my departure date" mental model is unsafe. The clock runs on residence periods, not calendar dates.
Assets bought while you were away. As covered above, gains on assets you both acquired and disposed of entirely during the non-resident period are generally outside the rules. The honest caveat is that the timing has to be genuinely clean. If you owned the asset, even partly or indirectly, before you left, or you still hold it when you return and dispose of it afterwards, you are no longer in the safe exception. The exception protects new, self-contained investment activity while abroad. It does not protect a pre-existing position you simply traded in and out of.
The five-year clock itself. The non-resident period must exceed five years for you to be clear. Five years or less, and you are caught. Because the period is measured on residence periods rather than dates, and because split-year treatment can move both ends, treating five years as a precise tripwire is risky. If you are deliberately structuring a departure around realising Indian gains, plan to be away well beyond five years with a margin, and make the return a genuine one. A return engineered purely to start just after the clock runs out is exactly the kind of arrangement the anti-avoidance code is built to scrutinise.
The closing read
The honest read is that "I am non-resident, so my Indian gains are free of UK tax" is true only if you mean it. For an Indian who genuinely leaves the UK, whether to settle permanently in India, the UAE, or anywhere else, and stays gone for more than five years or never returns, the statement holds, and gains on Indian shares, funds, and property sold while non-resident sit outside UK CGT. That is a real and legitimate planning outcome, and there is nothing aggressive about it.
The trap is the half-departure. If you leave for a couple of years intending to wash a gain and come home, the temporary non-residence rule treats the gain as arising the year you return and taxes it then, with only a foreign tax credit to soften the blow. The single most expensive mistake I see is someone selling a large Indian holding in Dubai in year two, spending the proceeds, and then taking a job back in London in year three without realising the sale they thought was finished is about to reappear on a UK return.
So the practical rule is simple to state and worth holding onto. If you might return to the UK within five years, assume gains on assets you owned before you left are still within UK CGT, and plan as if the clawback applies. Only treat a non-resident sale as genuinely UK-tax-free if your departure is real, your absence will comfortably exceed five years, and your return, if it ever comes, is a real return rather than a date chosen to beat the clock. Where the timing is tight or the sums are large, the cost of an hour with an adviser who has actually filed a temporary non-residence return is trivial against the cost of pulling several years of gains into a single UK tax bill.
Related guides
- India-UK DTAA deep dive
- NRI residency and RNOR rules
- Capital gains tax for NRIs on shares and mutual funds
- Foreign tax credit and Form 67
- DTAA tie-breaker and dual residency
- Selling property in India as an NRI
- Tax-efficient investing for NRIs
- NRI portfolio asset allocation
- UK NRI: Indian funds and the offshore income gains regime
- UK NRI: the FIG regime and the four-year window
- UK NRI: the temporary repatriation facility
- UK NRI: ISAs and pensions when non-resident
This guide is general information, not personal tax advice. The UK temporary non-residence rules interact with the Statutory Residence Test, split-year treatment, the India-UK DTAA, and foreign tax credit rules, and the boundaries depend on your specific residence history and dates. Rules also change: the close-company distribution provisions were tightened from 6 April 2026. Before acting on a planned departure or a disposal made while non-resident, confirm your position with a qualified UK tax adviser and, on the Indian side, a chartered accountant familiar with NRI taxation.
Frequently asked questions
Does the UK temporary non-residence rule tax gains on Indian shares I sell while I am non-resident?
It can, and this is the trap. If you were UK resident in at least four of the seven tax years before you left, then become non-resident for five years or less, and then return to the UK, certain gains you realised during the non-resident period are treated as arising in the tax year you return and are taxed then. This catches gains on assets you owned before you left the UK, including Indian shares, Indian mutual funds, and Indian property bought before departure. So selling your Indian portfolio in Dubai while non-resident does not make the gain disappear if you move back to London within five years. The gain sits dormant and is pulled into your return-year UK tax computation. The India-UK DTAA and a foreign tax credit for any Indian tax paid can reduce the double hit, but they rarely cancel it entirely.
How long do I have to stay non-resident to avoid the UK temporary non-residence charge?
Your period of non-residence has to exceed five years. The rule bites only where the non-resident period is five years or less and you were UK resident in at least four of the seven tax years before departure. Stay genuinely non-resident for more than five years, or never return to UK residence at all, and the clawback does not apply, so gains realised on previously-owned assets while you were abroad stay outside UK CGT. The five-year clock is measured by reference to residence periods, and with the Statutory Residence Test and split-year treatment the start and end points are not always the calendar dates you assume. If you leave intending to sell Indian assets and come back, build in a clear margin beyond five years rather than cutting it fine, because a single mistimed return-year can pull years of gains into one tax bill.
Which assets and income are caught by the UK temporary non-residence rules?
Capital gains on assets you held before you left the UK are the main target, including Indian listed shares, Indian mutual funds and ETFs, unlisted shareholdings, and Indian property owned before departure. Gains on assets you both acquired and disposed of entirely during the non-resident period are generally outside the rules. On the income side, the rules also capture certain pension withdrawals such as flexible drawdown lump sums, and distributions from close companies where you are a material participator, meaning a holding above 5%. From 6 April 2026 the rules were tightened so that close-company distributions received while temporarily non-resident are firmly within the income charge on return. All of these are treated as arising in your year of return and taxed in that single year.
Rakesh Sinha, NRI Finance Writer
Rakesh Sinha is a technology professional and an NRI since 2016. He holds a master’s from Carnegie Mellon University and a BTech in Computer Science from IIT Guwahati, and has worked at Microsoft, Cisco, InMobi and Google across Bengaluru, the United States and London. He has personally navigated the decisions these guides cover: moving foreign salary and tech-company RSUs across borders, opening NRE, NRO and FCNR accounts, filing Indian returns as a non-resident, and claiming DTAA relief between the US, UK and India. How these guides are written and reviewed.
Disclaimer: This guide is educational and general in nature. It is not individual financial, tax, or legal advice. Tax and FEMA rules change and your situation may differ, so confirm specifics with a qualified chartered accountant or financial adviser before acting. See our editorial standards for how these guides are researched, reviewed and updated.