Capital Gains Tax when moving to Spain from the UK
- Venetia House
- Sep 5, 2022
- 4 min read
Updated: May 2
Selling a UK property before moving to Spain? Learn how Spanish tax residency, timing your move, and the 183-day rule can affect capital gains tax.

If you are planning to move to Spain and sell your UK property, it is worth looking at the tax position before you set your sale completion date and relocation date.
This is especially important if you are planning to sell and move in the same calendar year.
Capital gains tax is not based on the full sale price of the property.
It is normally based on the gain, which is the difference between what you paid for the property and what you sell it for, after taking into account allowable costs.
These costs may include the original purchase price, legal fees, estate agent fees, certain purchase costs and certain selling costs.
If the property is jointly owned, the gain is usually looked at according to each person’s share of the property.
UK property and your main home
If the UK property has genuinely been your main home, you may have little or no UK capital gains tax to pay because of Private Residence Relief.
However, this depends on the full history of the property.
For example, it can be affected if the property has been rented out, used as a second home, inherited, jointly owned, or if you have lived away from it for periods of time.
So even if you believe there is no UK capital gains tax to pay, it is still worth checking the position properly before moving to Spain.
Why Spain needs to be considered
Many people think that because the property is in the UK, Spain will not be interested.
That is not always the case.
If you are Spanish tax resident, Spain taxes you on your worldwide income and gains. This can include a gain from selling a UK property.
This does not automatically mean you will pay tax twice.
If UK tax has been paid, double tax relief may be available, depending on the facts.
But it does mean the sale may need to be reviewed and declared correctly in Spain if you are Spanish tax resident in the year of sale.
The important bit: timing your move
Spain works on a calendar-year tax basis, from 1 January to 31 December.
This means the year you sell the property and the year you become Spanish tax resident can make a big difference.
If you sell your UK property and move to Spain in the same calendar year, this does not automatically mean there will be a Spanish capital gains tax problem.
The important thing is to plan the dates properly.
For many people, moving later in the year can make a real difference.
If you can stay under 183 days in Spain during that calendar year, this may help avoid becoming Spanish tax resident in the same year as the UK property sale.
For example, moving after 3 July may help keep you under 183 days in Spain for that year, depending on your exact travel plans and circumstances.
This is why it is always better to ask before setting the dates.
A few days can sometimes change the whole tax position.
Spanish capital gains tax rates
For Spanish tax residents, capital gains are normally taxed within the savings tax base.
The current Spanish savings tax rates are:
19% up to €6,000
21% from €6,000 to €50,000
23% from €50,000 to €200,000
27% from €200,000 to €300,000
30% above €300,000
These rates should always be checked again for the relevant tax year, especially if you are planning ahead for a future move.
Are there any Spanish exemptions?
Spain does have some exemptions, but they are specific and should not be assumed.
For example, there are rules for reinvesting the proceeds from the sale of a habitual home into another habitual home.
There is also an exemption for some people over 65 selling their habitual home.
However, these rules depend on the facts and should not be treated as a general allowance that everyone can deduct from a property gain.
This is one of the reasons proper advice is important before making decisions.
What if I sell a Spanish property?
Selling a Spanish property is different.
Spain can tax gains on Spanish property whether you are resident or non-resident.
This article is mainly about people selling a UK property before or around the time they become Spanish tax resident.
Final advice
If you are planning to sell a UK property and move to Spain, do not panic, but do not guess either.
The safest approach is to check the dates before you commit to the sale date and relocation date.
If you are planning to sell and move in the same year, we can help you work through the dates and look at whether your move can be timed in a way that avoids becoming Spanish tax resident in the same year as the property sale.
A small change in timing can sometimes make a very big difference.
If you would like us to review your situation before you move, please get in touch.
Venetia @ Expay
Planning to sell a UK property before moving to Spain? Contact Expay before setting your completion and relocation dates.
Source links
HMRC: Tax when you sell your homehttps://www.gov.uk/tax-sell-home
AEAT: Tax residence in Spainhttps://sede.agenciatributaria.gob.es/Sede/no-residentes/residencia-personas-fisicas-juridicas/persona-fisica-residente-espana.html
AEAT: UK income and gains for Spanish tax residentshttps://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/folletos/folletos-residentes-rentas-extranjeras/reino-unido.html




I have a question regarding capital gains. An example, if my husband and I are 65 and we are resident in Spain from September 2020 then we sell our house in the uk
That we lived in for 22 years as our main residence. Do we need to pay capital gains? I find The wording is unclear what is meant by must have lived in the house for more than 3 years - is that immediately prior to or over time ?
I inherited my parents home several years ago. My son has lived in the property ever since. The house is in my name solely, I am 65 years old and we will be selling this house to purchase a home in Spain in 2024. Will I be liable for CGT in either country?
If I sell my house this year 2022 and move to Spain next year whether its before 3rd July or not, am I still liable for CGT