Selling a property in Spain when you're moving back to the UK
If you're selling your home in Spain because you're moving back to the UK, the most important question is whether Spain treats you as resident for tax in the calendar year of the sale. Spain decides that for the whole year, and a move part-way through doesn't split it. A resident seller pays Spanish income tax on the savings scale, may be able to use the main-home reliefs and can avoid the 3% retention. A non-resident pays 19%, has 3% of the price held back and gets fewer reliefs.
Once you're back and UK resident, HMRC can tax the same gain, with credit for what you paid in Spain. This guide sets out the rules as they stand in November 2026 and the practical jobs of leaving. Have a tax adviser who knows both countries look at your dates before you agree a completion date.
Resident or non-resident in Spain in the year you sell
The Agencia Tributaria (Spain's tax agency) treats you as resident for a calendar year if either:
- you spend more than 183 days in Spain during that year, or
- the main base of your business or economic interests is in Spain.
Its guidance is clear that you are resident or non-resident for the whole calendar year, and that a change of residence doesn't interrupt the tax period. So if you spend most of the year in Spain and sell after you've left, Spain may still count you as resident for that year. If you left early in the year and spend fewer than 183 days there, you're likely to be non-resident for it.
The UK has its own test, the statutory residence test. GOV.UK's RDR3 notes explain that you are UK resident for a whole tax year, but the year you arrive can be split into an overseas part and a UK part in some cases, for example when you start to have a home only in the UK. If both countries count you as resident at once, the UK-Spain tax treaty settles it with tie-breaker tests: first where you have a permanent home, then where your personal and economic ties are closer, then where you usually live, then nationality.
How the timing changes the Spanish tax
| Sold while Spain treats you as resident | Sold once you're non-resident | |
|---|---|---|
| Tax and rate | Income tax (IRPF) on the savings scale, 19% to 30% for 2025 and 2026 | Non-resident income tax at 19% of the gain |
| 3% held back by the buyer | Not if you give a Spanish tax residence certificate | Yes, paid in on Modelo 211 |
| Main-home reinvestment relief | Available if the conditions are met | Only for residents of the EU, Iceland, Norway or Liechtenstein, so not for UK residents |
| Over-65 main-home exemption | Available if the conditions are met | Part of the residents' income tax law, so ask an adviser before relying on it |
| When you declare | In the Renta return the following spring | Modelo 210 within four months of the sale |
The full rates and deadlines are in taxes when selling property in Spain, and the retention in the 3% retention for non-resident sellers.
Avoiding the 3% retention
The Agencia Tributaria says the buyer doesn't have to withhold 3% when the seller proves they pay Spanish income tax with a tax residence certificate issued by the Agencia Tributaria. It also says residence certificates are valid for one year. If you're selling while still resident, ask your lawyer to apply for the certificate before completion.
The main-home reliefs for residents
Spanish residents can exempt the gain on their main home in two main ways:
- Reinvesting in a new main home. The gain is exempt if the money is put into another main home within two years before or after the sale, and partly exempt if only part is reinvested.
- Being over 65. A seller over 65 pays no tax on the gain from their main home, with no need to reinvest.
For both, the home must have been where you lived for at least three years running. The Agencia Tributaria's manual also says a home you've moved out of still counts as your main home if it was one at any point in the two years before the sale. Whether a new home in the UK can count for the reinvestment relief, and how it fits with a change of residence, is a question to put to a Spanish tax adviser with your dates in hand.
The jobs to do in Spain before you go
- The padrón. GOV.UK advises deregistering from the padrón, the town hall's register of residents, before you leave, and telling your local foreigners' office (Oficina de Extranjería) and health centre that you're going.
- Healthcare. If the NHS funds your healthcare in Spain through an S1 form, GOV.UK says to contact the NHS Overseas Healthcare Team to cancel it.
- Utilities and the community. Ask your lawyer to arrange final readings and to move the electricity, water and internet contracts to the buyer or close them, and to tell the community administrator about the sale.
- Tax returns still to file. If you'll be non-resident for the year of the sale, you'll have a Modelo 210 to file after you've left. If you'll be resident, the gain goes in the following year's Renta. Agree in writing who will file it and what they charge.
- A power of attorney. If you might be in the UK on the signing date, sign a power of attorney before you go. Selling a property in Spain from the UK explains the three ways to do it.
Getting the money to the UK
The buyer pays at the notary, usually by bank cheque or transfer to a Spanish account. Lawyers generally advise keeping that account open until the sale money has arrived, the retention has been dealt with and any tax refund has been paid.
Banks on both sides will ask where a large sum has come from, so keep the deed of sale and your Spanish tax forms. Compare exchange rates and charges before you transfer, and if you use a UK currency transfer firm, check it on the FCA's Financial Services Register first. More detail is in getting the money home after selling in Spain.
UK tax once you're back
GOV.UK says UK residents pay Capital Gains Tax when they dispose of overseas property. If you sell after you've become UK resident, HMRC can tax the gain even though Spain taxes it too.
- Credit for Spanish tax. Under the UK-Spain tax treaty, Spain may tax gains on property there, and the UK allows the Spanish tax as a credit against UK tax on the same gain.
- Main-home relief. HMRC's helpsheet on Private Residence Relief says a home outside the UK may still qualify, with extra rules for a home in a country where you weren't tax resident. If the Spanish house was your home, ask your adviser how much of your ownership counts.
- Temporary non-residence. If you were UK resident before you moved to Spain and you come back within five years, HMRC's helpsheet HS278 says certain gains made while you were away can be taxed in the year you return. Assets you bought while non-resident are not normally caught.
The UK sum is worked out in pounds under UK rules and reported on a Self Assessment tax return. The 60-day UK property return doesn't apply to a Spanish home. The step-by-step version is in UK tax when selling a property in Spain.
Agent or cash buyer when you're leaving
A move gives you a deadline, and that shapes the choice. An estate agent will usually achieve the highest price, but you may still be waiting for a buyer, and perhaps their mortgage, after you've left, while you pay the running costs of an empty property from the UK.
A cash buyer doesn't need a mortgage approval or a bank valuation, which can make the timing easier to plan around a move. The trade-off is the price: cash buyers, including those on Your House Bought's cash buyer panel, usually offer less than the asking prices on the property portals. If you have time, or can leave a trusted lawyer with a power of attorney to finish the sale, an agent is likely to leave you with more.
Your House Bought introduces owners across Spain to its panel of vetted cash buyers, who show proof of funds first. There is one fixed fee, confirmed in writing first: €299 to list the property. You get every offer in writing, the decision is yours alone, and you can keep an estate agent working at the same time.
Questions people ask
Should I sell my Spanish home before or after I move back to the UK?
It depends on your residence for tax in both countries in the year of the sale, which is why it is worth checking before you set a date. Selling while Spain still treats you as resident can open the main-home reliefs and avoid the 3% retention. Selling once you are UK resident brings in UK Capital Gains Tax as well, with credit for Spanish tax. A tax adviser who knows both systems can compare the two for you.
Am I resident in Spain for tax in the year I leave?
The Agencia Tributaria treats you as resident for a calendar year if you spend more than 183 days in Spain that year, or if the main base of your business or economic interests is there. You are resident or non-resident for the whole year: a change of residence part-way through doesn't split it. If the UK also treats you as resident, the UK-Spain tax treaty has tie-breaker rules.
Can I avoid the 3% retention when I sell?
The buyer doesn't have to hold back 3% if you prove you are a Spanish income tax payer with a tax residence certificate issued by the Agencia Tributaria. The Agencia Tributaria says such certificates are valid for one year. If you are non-resident when you sell, the buyer must withhold 3% of the price and pay it to the tax office on Modelo 211, and you settle the final bill on Modelo 210.
Do I pay UK tax on my Spanish house sale after moving back?
If you are UK resident when you sell, GOV.UK says you pay Capital Gains Tax on overseas property. The gain is worked out in pounds, main-home relief may reduce it if the house was your home, and the Spanish tax on the same gain is allowed as a credit. You report it on a Self Assessment return, not the 60-day return, which is only for UK residential property.
What do I need to do in Spain before I leave?
GOV.UK advises deregistering from the padrón, the town hall's register of residents, before you leave, and telling your local foreigners' office and health centre that you are going. If the NHS pays for your healthcare in Spain through an S1 form, tell the NHS Overseas Healthcare Team. Ask your lawyer to sort the utility contracts and any tax returns still due after the sale.
Sources
- Persona física residente en España (Agencia Tributaria)
- Manual práctico de Renta 2025: concepto de vivienda habitual (Agencia Tributaria)
- Manual práctico de Renta 2025: ganancias patrimoniales exentas (Agencia Tributaria)
- Supuestos sin obligación del modelo 211 (Agencia Tributaria)
- Capital gain from the transfer of property by non-residents (Agencia Tributaria)
- Living in Spain: returning to the UK (GOV.UK)
- Tax when you sell property: selling overseas property (GOV.UK)
- HS278 Temporary non-residents and Capital Gains Tax (2026) (GOV.UK)
- RDR3: Statutory Residence Test notes (GOV.UK)
- HS283 Private Residence Relief (2026) (GOV.UK)
- Synthesised text of the Multilateral Instrument and the 2013 UK-Spain Double Taxation Convention (HMRC)
Related guides
Taxes when selling property in Spain: what sellers pay and when
A seller in Spain meets two main taxes: tax on the gain and the town hall's plusvalía municipal. Non-residents pay 19% on the gain whichever country they live in, and the buyer holds back 3% of the price towards it. Residents pay 19% to 30% on the savings scale (2025 and 2026 rates). There are reliefs for main homes, and each tax has its own deadline.
Costs and moneyUK tax when selling a property in Spain: what UK residents pay and report
If you're UK resident when you sell a property in Spain, you owe UK Capital Gains Tax on the gain worked out in pounds, at 18% or 24% from 6 April 2026 after the £3,000 allowance. Spanish tax on the same gain is credited against the UK bill, up to the UK tax on it. You report on a Self Assessment return: the 60-day return is only for UK homes.
Costs and moneyThe 3% retention when a non-resident sells property in Spain
When a non-resident sells property in Spain, the buyer must hold back 3% of the agreed price and pay it to the Agencia Tributaria on Modelo 211 within one month. It is a payment on account of the seller's 19% tax on the gain. The seller files Modelo 210 within four months of the sale and either pays the difference or claims a refund of the excess.
General information about selling property in Spain, not legal, tax or financial advice. Rules and rates change and differ between regions, so check with a Spanish lawyer or tax adviser. Last checked 25 November 2026.