Temporary Non-Residence: Capital Gains Tax When You Leave the UK and Come Back
Moving abroad does not let you sell your shares free of UK tax and then come straight back. If you had sole UK residence in at least 4 of the 7 tax years before you left and your period of non-residence lasts 5 years or less, gains you make while abroad on assets you owned before leaving are treated as arising in the tax year you return, and taxed then.12 Assets you bought after leaving are normally outside the rule.1 To be clear of it, your non-residence has to last longer than 5 years.2
- Legal basis: section 10A of the Taxation of Chargeable Gains Act 1992 (departures in 2013/14 or later).3
- Residence test: sole UK residence for the whole or part of at least 4 of the 7 tax years before departure.12
- Time test: non-residence of 5 years or less; more than 5 years means 5 years and a day.2
- Caught gains are taxed in the year of return, whether or not the money comes to the UK.1
- Assets acquired abroad are excluded, with three exceptions in HS278.1
- In 2026/27 the gain would be taxed at 18% or 24% after the £3,000 allowance.4
Temporary non-residence calculator
Answer the three tests and enter the gain and your income in the tax year you return. We show whether the gain is caught and, if it is, the CGT in the year of return at 2026/27 rates. Inputs are posted, not shown in the address.
| Result | Caught: the gain is treated as arising in the tax year you return. |
| Gain | £35,000 |
| UK CGT in the year of return | £7,680 |
CGT at 18% / 24% with the £3,000 allowance and no other gains in the year of return.4 It does not cover UK land and property, which non-residents are taxed on anyway, foreign tax credits, or the residence test itself: whether a year counts depends on the Statutory Residence Test and any split year.12 Estimates, not tax advice.
Who the rule applies to
HMRC's helpsheet HS278 says you are a temporary non-resident if you had "sole UK residence" for the whole or part of at least 4 out of the 7 tax years before you left, then had one or more periods that were not periods of sole UK residence, and those periods add up to no more than 5 years before you again have sole UK residence.1 RDR3, HMRC's guide to the Statutory Residence Test, sets out the same conditions: sole UK residence in "4 or more of the 7 tax years immediately preceding the year of your departure", and "your period of non-residence lasts 5 years or less".2
Double tax treaties matter here. HS278 explains that whole tax years, or the UK parts of split years, in which a treaty treats you as non-UK resident count towards the non-residence period, and the treaty's tie-breaker rules decide who has you when you are resident in both.1 HMRC's manual adds that the rules for departures in 2013/14 or later look back up to seven years before the year of departure, and that the current definitions differ from the earlier rules.3
How long is "more than 5 years"?
RDR3 says the period of non-residence must be longer than 5 years for the rules not to apply: 5 years plus one day.2 The period starts and ends with your residence status, not your flight dates, and HS278 notes that a temporary non-residence period can start or end part-way through a tax year because of split year treatment.1 If you plan to come back close to the 5-year mark, the dates the split year rules give you matter more than the date on your ticket. Our page on CGT for non-residents covers how residence is decided.
Which gains are caught, and when they are taxed
Section 10A charges gains made during a period of non-residence by treating them as accruing when you become UK resident again.3 HS278 puts it in terms of the return year: for temporary non-residents returning in 2025/26, "certain gains and losses arising during their period of temporary non-residence are treated as arising in 2025 to 2026".1 The losses come with the gains: losses on caught assets during the absence become allowable in the year of return alongside them.1
Because the gain is treated as yours in the year you return, it is taxed with that year's allowance, rates and income. With the 2026/27 rates of 18% and 24% and the £3,000 allowance,4 the gain is added to whatever else you have that year. A large gain in a year when you are also back on a full UK salary will mostly be taxed at 24%.
HS278's examples, worked at 2026/27 rates
A gain on an asset owned before leaving. HS278 example 1: a man left the UK on 25 March 2021 and resumed UK residence on 2 February 2026. He realised a £35,000 gain on 15 September 2021 on an asset he held before he left. He "will be chargeable on this gain in the tax year of return", whether or not the proceeds are brought to the UK.1 At 2026/27 rates, on £55,000 of income in the return year, the tax would be £7,680; on £35,000 it would be £6,763.80, because part of the gain fits in the unused basic rate band.
An asset bought after leaving. HS278 example 3: the same man bought 20,000 shares in a UK company on 6 June 2021, after he had left, and sold them the following 15 March at a £12,000 gain. Because the shares were acquired after departure, "the gain is not treated as arising in the year of return".1 UK CGT on it: £0.
Staying away longer. Had the absence lasted more than 5 years, the first gain would not have been caught either: £0 of UK tax instead of £7,680. That is the trade-off the rule is designed to force.
Assets bought while abroad: the exceptions
The general rule in HS278 is that "any gains or losses on such assets are not normally treated as arising when UK residence is resumed".1 Three situations bring them back in:1
- the asset came to you from someone who got it under the no gain, no loss rules, such as a transfer between spouses;
- its cost was reduced by rollover relief on an asset you held before you left; or
- a gain deferred on an asset held before departure crystallises while you are non-resident.
These close the obvious routes round the rule: moving pre-departure value into a new asset and selling that instead.
UK property, income and other catches
- UK land and property. Non-residents can be taxed on direct and indirect disposals of UK land, including residential property, while abroad, so leaving does not shelter them in the first place.1 See foreign property for the reverse case and our non-residents guide for UK property.
- Income items. RDR3 says some income is also taxed in the year you return, including certain pension payments, remitted foreign income and chargeable event gains, and that its list is not exhaustive.2 HS278 adds offshore income gains, flexible drawdown withdrawals and certain close company distributions, among others.1
- Companies and trusts. Gains of closely controlled non-resident companies and settlor-interested trusts can be attributed to you and treated as arising in the year of return.1
- Tax paid abroad. If the other country taxed the gain when it arose and the UK taxes it again in the year of return, relief may be available; HS278 points to helpsheet HS263 for how to claim.1
Reporting the gain
Caught gains go on the Capital Gains Tax summary pages (SA108) of the Self Assessment return for the year you come back, and HS278 is written to help you fill them in.1 Keep the records of each sale you make while abroad, the date you acquired each asset, and evidence of your residence status for each year. If you sold shares, those records are what you need to apply the share matching rules; see the shares CGT calculator to work out the gain itself.
Frequently asked questions
If I move abroad and sell shares, do I pay UK capital gains tax?
Not normally while you are non-resident. But if you were UK resident in at least 4 of the 7 tax years before you left and you come back within 5 years, gains on assets you owned before leaving are treated as arising in the tax year you return.
How long do I need to stay abroad to avoid the temporary non-residence rules?
More than 5 years. RDR3 says the period of non-residence must be 5 years or less for the rules to apply, so you need to be away for longer than that, 5 years and a day.
Are assets I bought while abroad caught?
Not normally. HS278 says gains on assets acquired after you left are not usually treated as arising when you return, unless the asset came to you under no gain, no loss rules, its cost was reduced by rollover relief on an earlier asset, or a deferred gain crystallised.
Is the gain taxed at the rates of the year I sold or the year I return?
The gain is treated as arising in the tax year you return, so it is taxed with that year's annual exempt amount, rates and income. In 2026/27 that is the £3,000 allowance and 18% or 24%.
What if the country I moved to taxed the gain too?
HS278 says relief may be available where a gain is taxed abroad in the year it arises and in the UK in the year of return. Helpsheet HS263 explains how to claim it.
General information, not tax advice. Residence is decided by the Statutory Residence Test; check RDR3 for your own years.

Before you go
Your Full CGT Report
- Every 2026/27 figure worked out from your own numbers
- Your deadline, and what to report and when
£4.99 one-off · instant download · full refund via our contact page
Sources & references
The rates, allowances and rules in this guide are drawn from the official HMRC and GOV.UK sources below, checked for the 2026/27 tax year. Each link opens the relevant government page in a new tab.
- HS278 Temporary non-residents and Capital Gains Tax (2026) (checked 29 Nov 2026) www.gov.uk/government/publications/temporary-non-residents-and-capital-gains-tax-hs278-self-assessment-helpsheet/hs278-temporary-non-residents-and-capital-gains-tax-2026
- RDR3 Statutory Residence Test guidance, section 7: temporary non-residence (checked 29 Nov 2026) www.gov.uk/government/publications/rdr3-statutory-residence-test-srt/guidance-note-for-statutory-residence-test-srt-rdr3
- HMRC Capital Gains Manual CG26500: meaning of temporary non-residence (s10A TCGA 1992) (checked 29 Nov 2026) www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg26500
- Capital Gains Tax: rates (18% and 24% from 6 April 2026, £3,000 allowance for 2026 to 2027) (checked 29 Nov 2026) www.gov.uk/capital-gains-tax/rates