Leaving Spain for the UAE: residence, the exit tax and the treaty
Leaving Spain for the UAE? The 183-day and economic-base tests, the article 95 bis exit tax on large shareholdings, and why the treaty may not help.

Who this is for
This page is for Spanish nationals and other Spanish tax residents moving to Dubai or Abu Dhabi, including founders with a Spanish company, and it covers the Spanish side of the move. The UAE’s own residence tests and tax residency certificate are covered in UAE tax residency certificates for individuals, and treaty withholding rates are on our Spain and UAE treaty page.
When do you stop being Spanish tax resident?
Spain treats you as resident for the whole calendar year if you spend more than 183 days there in that year. There is no split year, so in the year you leave you are either resident for all of it or not resident at all. Sporadic absences abroad count as days in Spain unless you prove that you are tax resident in another country, normally with a certificate from that country’s tax authority. You are also resident if your main base of activities or economic interests is in Spain, directly or indirectly, whatever your day count.
Family ties carry weight. Spain presumes that you are resident if your spouse, who is not legally separated, and your dependent minor children live habitually in Spain, unless you prove otherwise. A move that leaves the family in Spain therefore starts with a presumption against you.
Does the five-year rule apply to the UAE?
Spanish nationals who move to a tax haven stay Spanish taxpayers for the year of the move and the next four years. That rule now applies to jurisdictions on Spain’s list of non-cooperative jurisdictions, and the UAE is not on the list in force at the date of this page, nor on the version that applies from 2027. The list is amended by ministerial order, so recheck the UAE position at the time you leave.
How does the Spanish exit tax work?
When you lose Spanish residence, the unrealised gain on your shares is treated as a capital gain if you were a Spanish taxpayer for at least ten of the fifteen tax years before your last Spanish tax year. The charge applies if your shares in all entities are worth more than EUR 4 million in total. If they are not, it applies to any company in which you hold more than 25% where that holding is worth more than EUR 1 million, and only to the gain on those shares.
If you used the inpatriate (Beckham) regime, the ten tax years needed for the exit tax start to count only from the first year that regime no longer applied to you.
The gain is the market value of the shares on 31 December of your last Spanish tax year less their acquisition cost, and listed shares are valued at their quoted price and fund units at their net asset value. Unlisted shares are valued at the higher of net asset value in the last closed balance sheet and the average of three years’ results capitalised at 20%, unless you can prove a different market value. The gain is taxed as savings income and falls into the last tax year you must declare in Spain. It is declared on a supplementary return for that year, filed in the return window for your first year as a non-resident.
A deferral exists but is narrow. You can ask to defer payment only if the move is a temporary displacement. That means a move for work to a country that is not a non-cooperative jurisdiction, or a move for another reason to a country whose tax treaty with Spain has an information exchange clause, as the UAE treaty does. Interest runs on the deferred tax and the tax office can ask for a guarantee. If you become Spanish resident again within five years without having sold the shares, the deferred debt is extinguished, and the period can be extended by up to five more years for work moves. For a permanent move to the UAE, plan on paying the tax through the supplementary return for your last Spanish tax year. If you later return to Spain still holding the shares, you can ask for that tax to be repaid.
Any income not yet allocated to a tax year, such as instalment-sale gains you chose to spread, goes into your last Spanish tax year. If that means more tax, the rules give you three months from losing residence to file a supplementary return for that year, with no penalty, interest or surcharge, and you can ask to pay that tax in instalments. That deadline is separate from the exit tax one.
Does the Spain and UAE treaty help?
Usually not for the individual. The treaty defines a UAE resident individual as a person domiciled in the UAE who is also a UAE national. A Spanish citizen living in Dubai is not a UAE resident under the treaty, so the tie-breaker rules never apply to them, and Spanish domestic law decides where they are resident.
For a UAE national who qualifies, the treaty leaves most share gains to the UAE and caps Spanish tax on dividends at 15% for individuals, with the rates set out on our Spain and UAE treaty page. Everyone else is outside these limits, so after you leave, Spanish dividends and gains on Spanish shares can remain taxable in Spain under non-resident income tax, unless a Spanish exemption applies.
The UAE side
The UAE does not charge personal income tax on salary, and salary is excluded from UAE corporate tax. Individuals carrying on a business in the UAE come within UAE corporate tax only if their total business turnover exceeds AED 1 million in a calendar year. UAE individual tax residence, including the 183-day and 90-day tests, is set by Cabinet Decision No. 85 of 2022. A UAE certificate is normal evidence for the 183-day count. Spain’s General Directorate of Taxes (DGT) has accepted a UAE certificate held by a Spanish national as showing UAE tax residence for the 183-day test (V1856-16, 27 April 2016), although that ruling predates the current UAE certificate under Cabinet Decision No. 85 of 2022. A foreign certificate does not by itself stop Spain treating you as resident where your main economic base is still in Spain (TEAC, the Central Economic-Administrative Tribunal, RG 00/01527/2019, 24 May 2022, criterion 1). If your spouse (unless legally separated) and dependent minor children stay in Spain, Spain presumes you are resident, but you can rebut that, normally with a tax residence certificate from the other country (DGT V1497-16, 11 April 2016).
PBF view
Spanish departures go wrong in two places. The first is the family and the economic base: a spouse and children who stay in Spain put the burden on you to prove that you have left, and a business you keep running from Madrid can leave you resident however long you spend in Dubai. The second is the exit tax, which reaches investors as well as founders, because the EUR 4 million test counts all your shares together, including listed holdings and fund units. Value the shares, decide where the family lives, and plan the supplementary return for your last Spanish tax year before you leave.
About PBF: We only do tax. Tax advice across the UAE and more than 75 jurisdictions. If you are leaving Spain for the UAE, speak to us about your own move.
Who handles your case
- Your first call is free, and it is with a senior adviser who works on the countries and questions you bring to us.
- We use it to understand what you own, where you are moving or investing and what needs deciding first, and if we can help, we follow up with a written proposal at a fixed fee.
Next step
Speak to us, or email hello@pbfglobaltax.com with your expected departure date and a short note of what you hold in Spain. You can also read how we work with private clients and family offices.
FAQ
When do I stop being Spanish tax resident if I move to Dubai?
You stop when you no longer spend more than 183 days in Spain in a calendar year and your main base of activities or economic interests is no longer in Spain. Spain decides this for each calendar year as a whole, so a move in September usually leaves you resident for that whole year. A UAE certificate is normal evidence for the 183-day count, but it does not by itself stop Spain treating you as resident if your main economic base is still in Spain. If your spouse (unless legally separated) and dependent minor children stay in Spain, Spain presumes you are still resident unless you show otherwise, usually with a UAE tax residence certificate.
Is there an exit tax when I leave Spain?
Yes, on shares, if you were a Spanish taxpayer for at least ten of the fifteen tax years before your last Spanish tax year. The tax applies only if your shares are worth more than EUR 4 million in total or, if they are not, you hold more than 25% of a company and that holding is worth more than EUR 1 million, and in that case only that holding is taxed. The gain is taxed as savings income in your last Spanish tax year.
Can I defer the Spanish exit tax?
Only on request, and only for a temporary displacement, for example a work posting to a country that is not on Spain’s non-cooperative list. For a permanent move, you should expect to pay the tax through the supplementary return for your last Spanish tax year.
Does Spain’s five-year rule apply if I move to the UAE?
It applies to Spanish nationals who move to a jurisdiction on Spain’s non-cooperative list, and the UAE is not on that list at the date of this page. The list can change, so check it when you leave.
Does the Spain and UAE double tax treaty protect me?
It protects UAE residents as the treaty defines them, and for individuals that means UAE nationals only. A Spanish citizen living in the UAE is therefore usually outside the treaty, and Spanish domestic residence rules apply.
Sources
All links opened on 4 December 2026.
- Ley 35/2006 del Impuesto sobre la Renta de las Personas Físicas, Articles 8, 9, 12, 14, 46 and 95 bis. https://www.boe.es/buscar/act.php?id=BOE-A-2006-20764
- Ley 36/2006, disposición adicional décima, apartado 1 (added by Ley 11/2021, artículo 16.2). https://www.boe.es/buscar/act.php?id=BOE-A-2006-20843
- Reglamento del IRPF (Real Decreto 439/2007), Articles 121 and 122. https://www.boe.es/buscar/act.php?id=BOE-A-2007-6820
- Texto refundido de la Ley del Impuesto sobre la Renta de no Residentes (Real Decreto Legislativo 5/2004), Article 13(1)(f) and (i). https://www.boe.es/buscar/act.php?id=BOE-A-2004-4527
- Orden HFP/115/2023, de 9 de febrero, jurisdicciones no cooperativas. https://www.boe.es/buscar/act.php?id=BOE-A-2023-3508
- Orden HAC/649/2026, de 21 de junio, amending Orden HFP/115/2023. https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-13946
- Convenio entre el Reino de España y los Emiratos Árabes Unidos para evitar la doble imposición, Articles 4, 10, 13 and 25, and the Protocol (section I, on Article 13). https://www.boe.es/diario_boe/txt.php?id=BOE-A-2007-1343
- Agencia Tributaria, Manual práctico de Renta 2025, loss of taxpayer status on a change of residence (supplementary return deadline). https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/irpf-2025/c18-cuota-liquida-resultante-autoliquidacion/regularizacion-situaciones-tributarias/supuestos-especificos-irpf/perdida-condicion-contribuyente-cambio-residencia.html
- Dirección General de Tributos, consulta vinculante V1856-16, 27 April 2016. https://petete.tributos.hacienda.gob.es/consultas/?num_consulta=V1856-16
- Dirección General de Tributos, consulta vinculante V1497-16, 11 April 2016. https://petete.tributos.hacienda.gob.es/consultas/?num_consulta=V1497-16
- Tribunal Económico-Administrativo Central, resolución RG 00/01527/2019, 24 May 2022, criterion 1. https://serviciostelematicosext.hacienda.gob.es/TEAC/DYCTEA/criterio.aspx?id=00/01527/2019/00/0/1
- UAE Cabinet Decision No. 49 of 2023. https://mof.gov.ae/wp-content/uploads/2023/05/Cabinet-Decision-No.-49-of-2023.pdf
- UAE Cabinet Decision No. 85 of 2022, Article 4. https://tax.gov.ae/datafolder/Files/Legislation/Corporate%20Tax/Cabinet%20Decision%2085%20of%202022%20-%20For%20publishing.pdf
Checked on