Contains AI-generated informationMore information

Leaving Spanish tax residency

You will know when you stop being resident, what to file and which exit risks apply.

Leaving Spain does not end your Spanish tax residency by itself. This section helps you end it properly, file what is due on the way out, check whether the exit tax applies to you, and defend your position if Hacienda disputes your departure.

6 articlesAbout 37 min of readingTax residency and filing

Start with the first articleSee all 6 articles

Pick the article that fits your situation

  1. How to actually stop being a Spanish tax resident

    Spanish tax residency ends when you stop meeting the Spanish tests, not when you sign out of the town register. This page is for people leaving Spain who want to know when residency stops and what evidence to keep.

    6 min read

  2. Leaving Spain temporarily versus permanently and the return trap

    Leaving Spain does not automatically end your tax residency, and coming back can undo a departure. This page explains how short stays abroad and quick returns are judged, for anyone who has left or plans to leave and may return.

    4 min read

  3. Your last Spanish tax return and what still has to be declared

    For people leaving Spain: how to file your departure-year income tax return, tell the tax agency your new address, and which Spanish filings carry on afterwards if you keep income or property here.

    6 min read

  4. Spain's exit tax and who it actually applies to

    Explains who Spain's exit tax hits when you leave Spanish tax residence, what it covers, and when you can defer it. For long-term residents with sizeable shareholdings who are planning to move abroad.

    5 min read

  5. Moving to a low-tax country and when Spain still taxes you

    If you are a Spanish national moving to a country on Spain's low-tax blacklist, you do not leave Spanish tax residence when you move. This page explains how long Spain keeps taxing you, who the rule covers and what little room exists to argue.

    4 min read

  6. When Hacienda says you are still resident after you left

    For people who have left Spain and face a Hacienda challenge to their departure. It explains the grounds Hacienda uses, how an inspection runs, what happens if Hacienda wins, how the tax treaty protects you, and how long Hacienda can look back.

    7 min read

About this topic

It is for anyone considering, planning or carrying out a move to or from Spain who wants to know when they stop being resident, what to file and which exit risks apply.

Start with "How to actually stop being a Spanish tax resident". It explains when residency ends and how to prove it. After that, read the pages in the order that fits your situation: the return trap if you may come back, the last tax return, the exit tax, the low-tax country rule, and what to do when Hacienda says you are still resident.

Key rules

  • Exit tax thresholds: The exit tax applies if your shares are worth more than €4,000,000 in total, or more than €1,000,000 when you hold at least 25% of one company.
  • Day count: You become Spanish tax resident through the day-count test only if you spend more than 183 days in Spain in a calendar year, so 183 days is the most you can spend.
  • Low-tax destination period: A Spanish national who moves to a listed low-tax jurisdiction stays taxable in Spain as a resident in the year of the move and the following four tax years.
  • Any one test: Meeting just one Spanish test, whether days, economic interests or family, is enough to keep you tax resident.
  • Whole-year rule: Residency is decided for the full calendar year, so leaving in July does not split the year.
  • No minimum absence: No minimum time abroad is needed, and residency is judged for each calendar year.

Leaving Spanish tax residency: the whole process, step by step

  • Check which residence tests you meet for the year you leave (read: How to actually stop being a Spanish tax resident): before you leave

  • Plan your days in Spain after leaving and keep a day-by-day calendar (read: How to actually stop being a Spanish tax resident): from the day you leave, for the whole calendar year

  • If you are a Spanish national moving to a low-tax country, check how long Spain still taxes you (read: Moving to a low-tax country and when Spain still taxes you): before you move; Spain keeps taxing you in the year of the move and the following four tax years

  • Check whether the exit tax applies to your shares and whether to ask for deferral (read: Spain's exit tax and who it actually applies to): before you lose residence

  • Judge the effect of coming back soon, because a quick return can bring residence back for that year (read: Leaving Spain temporarily versus permanently and the return trap): before you plan any return, and again each calendar year

  • Get a tax residence certificate from your new country so absences are not counted as days in Spain: for each year you are away, once you are resident in the new country

  • File your last Spanish income tax return if you are resident for the year you left (read: Your last Spanish tax return and what still has to be declared): in the year after you leave, usually from early April to 30 June

  • Declare the exit gain and pay it or ask for deferral with that return (read: Spain's exit tax and who it actually applies to): with the return for the year you lose residence, in the same April to June window

  • If you are non-resident, file the non-resident return for Spanish income (read: Your last Spanish tax return and what still has to be declared): usually until 31 December of the year after

  • If Hacienda questions your departure, answer its document requests and challenge the assessment if needed (read: When Hacienda says you are still resident after you left): an inspection should end within 18 months, extendable to 27; appeals are due within 1 month of the assessment

  • Keep your evidence until Hacienda can no longer reopen the departure year: 4 years from the end of the voluntary filing period for that year

Documents you may need

Identity and residence

Income and work

The home and the lease

Other documents

Each article lists the other documents it asks for, where you need them.

Leaving Spanish tax residency: questions that cross several articles

Does leaving the padrón end my Spanish tax residency?

No, removing yourself from the padrón (the municipal register) does not by itself end Spanish tax residency. Residency depends on your days in Spain, where your economic interests are and where your family lives, and the padrón is only evidence.

Can my family in Spain keep me tax resident even if I live abroad?

Yes, if your spouse and minor children who live with you usually reside in Spain, Spain presumes you are resident unless you prove otherwise. You can rebut it with a tax residence certificate and proof that your days and centre of interests are elsewhere.

If I leave in June, am I resident only until June?

No, Spain does not split the year by your departure date. If you meet a residence test in that year, you are taxed as resident for the whole year on worldwide income.

Do trips outside Spain count as days in Spain?

Yes, short absences count as days in Spain unless you prove tax residence in another country with a certificate from its tax authority. Keep a day-by-day calendar and travel records to back this up.

What evidence helps me prove I really left Spain?

Any valid evidence is allowed, and you carry the burden of proof. Useful items include a tax residence certificate, travel tickets, a lease or purchase deed abroad, a work contract, school enrolment and bank statements, along with proof of reduced ties in Spain such as ending your lease.

Explore places

Where you live changes the details. See how Spanish regions and cities compare on rent, jobs, weather, safety and healthcare.

Need certainty before you act?

For important relocation decisions, speak with a qualified human specialist.

Consult with a human specialist

For decisions that depend on your own circumstances, a qualified human professional should look at your case. Tell us what you need help with and we will reply by email.

Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.

What matters to me

Tell us who you are and what you care about. Fit scores and rankings across the site follow your answers.