An empty suitcase on a wooden floor beside a window with morning light coming through
    Back to Spain Guide

    Leaving Spain in the Tax Sense: The Year Most People Misjudge

    How the Spanish exit year actually works — the all-or-nothing rule, the impuesto de salida, residency certificates, and what to plan in the final months.

    9 min read

    The arrival year is the one everyone plans for. The exit year is the one that quietly costs more, because almost nobody plans for it at all.

    Quick Takeaways

    • Spain's exit year is governed by the same all-or-nothing rule as the arrival year
    • The impuesto de salida can crystallize tax on unrealized gains for high-net-worth departures
    • Establishing tax residency in the new country before the year-end matters more than the physical move
    • Modelo 720 obligations end with residency, but the final-year filing still applies
    • The cleanest exits are planned eighteen months out, not three

    There is an asymmetry in how expats prepare for Spain. The arrival year gets months of attention — the visa, the flights, the rental, the school enrolment, the tax adviser's onboarding call. The exit year gets a few weeks of frantic logistics and a vague hope that things will sort themselves out across the border. They usually do, eventually, but the version that sorts itself smoothly looks very different from the version that gets handled in the last available month.

    This article is about what the Spanish tax system does with the year you leave. It mirrors the arrival-year logic in some ways and differs from it in others, and the differences are where most of the avoidable cost lives. None of this is tax advice. The exit year is, even more than the arrival year, the kind of question where engaging an asesor fiscal early — twelve to eighteen months before the planned departure — produces materially better outcomes than handling it in the months after the boxes are packed.

    The Year of Departure Is Treated the Same Way as the Year of Arrival

    Spanish tax residency is determined on a calendar-year, all-or-nothing basis. Just as you cannot be partially Spanish tax resident in the arrival year, you cannot be partially resident in the departure year. The same three Article 9 tests apply: more than 183 days of physical presence in the calendar year, the centre of economic interests in Spain, or family habitually resident in Spain. If any of these is satisfied for the year of departure, you are Spanish tax resident for the entire year, and your worldwide income for that whole year is part of the Spanish tax base.

    This catches people who plan a clean departure in the spring or early summer. Someone leaving Spain on June 30 has spent 181 days of the year in Spain. They might assume they have just slipped under the threshold. They probably have, on the day count alone — but the family test and the vital-interests test do not switch off the moment they board the plane. If their spouse and children remain in Spain through the autumn, or if their economic activity continues to flow through Spanish entities, the Hacienda may well consider them resident for the full year despite the early physical departure.

    The mirror of the 183-day rule article applies in both directions. The sporadic-absences rule that makes it hard to leave Spain temporarily in mid-year also makes it hard to argue that an early departure with continued ties amounts to a clean exit. The cleanest exits are the ones where physical departure, family relocation, and economic disengagement happen close together and are well documented.

    Establishing Residency Somewhere Else Matters More Than Leaving Spain

    From the Hacienda's perspective, the question is not just whether you have left Spain. It is whether you have established tax residency somewhere else. A taxpayer who leaves Spain in October and spends the rest of the year in a series of short rentals across three countries, with no clear new base, is likely to be considered Spanish tax resident for that calendar year on the family or vital-interests tests, even if the day count is below the threshold.

    The asesor's working principle is that you need to land somewhere — to establish a clear new tax residency in another jurisdiction, with a tax-residency certificate from that country if possible, before the year-end. If you are moving to a country with a calendar-year tax system and a clear residency test, this is straightforward: you arrive, you register, you start the new clock. If you are moving to a country with a different tax-year structure or more complex residency rules, the planning is more involved.

    The mirror-image situation to the dual residency with the UK article applies here too. If you move from Spain to the UK in mid-year, the British Statutory Residence Test will apply to determine your UK residency for the British tax year, while the Spanish system applies its own logic to the calendar year. The treaty tiebreaker may again be needed for the overlap period, and the documentation has to support whichever resolution you and your asesor are arguing for.

    If this is the part you keep circling back to, The Move-Ready Reset is the workbook we built around exactly that question — what must happen so i can actually leave? See how it works.

    The Impuesto de Salida and Who It Catches

    The impuesto de salida — exit tax — is the provision that catches a small but important subset of departing residents. It applies to taxpayers who have been Spanish tax resident for at least ten of the previous fifteen years and who, on departure, hold significant unrealized gains in shareholdings above defined thresholds. The exit tax treats those unrealized gains as crystallized on the date of departure, generating an immediate Spanish tax liability even though no asset has been sold.

    The thresholds are high enough that most departing expats are not affected. The trigger is generally either holdings worth more than four million euros in qualifying shareholdings or significant percentage stakes in specific entities. The taxpayers who do trigger the exit tax are usually founders of unsold companies, holders of significant private equity positions, or executives with large unvested-but-vested-on-departure equity awards. They are also, in many cases, the taxpayers least expecting it, because the rule is not part of the standard expat conversation.

    There are deferral mechanisms for moves to other EU member states, allowing the exit tax to be deferred and ultimately not paid if the assets remain held until eventual disposal in the new country. For moves outside the EU, the deferral options are more limited, and the cash impact at departure can be material. The full mechanics of who triggers the exit tax and how to plan for it are exactly the kind of cross-border planning question that benefits from engaging a specialist eighteen months before departure rather than three months.

    The Final Modelo 720 and What Happens to It

    Modelo 720 — the foreign-asset declaration covered in its own deep-dive — is filed annually for as long as you are Spanish tax resident. The obligation ends with residency. If you are tax resident in Spain for the year 2026, you file Modelo 720 for 2026 by March 31, 2027, even if you have left Spain by the time the filing deadline arrives. If you are not tax resident in Spain for 2027, you do not file Modelo 720 for 2027.

    The final filing is sometimes the most complex one, because it sits at the moment when foreign-asset positions have been reorganized in preparation for the move. New foreign accounts have been opened in the destination country. Old Spanish positions have been liquidated or transferred. The year-end snapshot may bear little resemblance to the position at any other point in the year. The filing requires the year-end values regardless of how short a period the assets were held in their final form.

    The IRPF return for the final year follows the same structure as any other year — worldwide income for the full calendar year, with foreign-tax credits applied where double taxation would otherwise occur. The asesor's main job in the final return is usually to ensure that income earned in the second half of the year, after physical departure but during continued Spanish tax residency, is correctly characterized and that any foreign tax already withheld is appropriately credited.

    What Happens to the Padrón and the TIE

    Tax residency and immigration status are separate questions, but they interact at the exit point. Maintaining a padrón registration in Spain after physical departure is generally an indicator of continued residency that the Hacienda can use against you in any disputed exit-year analysis. The clean approach is to deregister from the padrón on departure, through the baja en el padrón process at the local town hall, which produces a dated administrative record of the deregistration.

    The TIE residency card is its own framework, governed by immigration law rather than tax law. Letting the TIE lapse without formal renunciation is possible — the card simply becomes invalid after a period of absence — but produces a less clean record than formally surrendering it through the extranjería. For most departing expats, the immigration framework allows for periods of absence without immediate loss of residency, which can be useful for those who anticipate possibly returning. The interaction between immigration residency and tax residency at the exit point is one of the questions worth raising with both an asesor fiscal and an immigration lawyer.

    The companion exit costs sub-hub covers the broader picture of leaving cleanly, including the autónomo deregistration chain, pension portability, and the question of returning later. The tax-residency exit covered here is one component of that larger picture.

    Why the Cleanest Exits Start Eighteen Months Out

    The expats who exit Spain most cleanly tend to begin the planning roughly eighteen months before the intended departure. That timeline allows the year before departure to be structured deliberately — choosing whether the final year will be a Spanish-resident year or a partial year, structuring asset disposals to fall on the favorable side of the residency line, and engaging the destination-country asesor early enough to coordinate residency establishment in the new jurisdiction.

    The version that starts three months out usually produces a final year in which the residency conclusion is determined by accident rather than by design. Asset disposals fall on whichever side of the line they happen to land on. The destination country's residency clock starts late, leaving an awkward overlap. The Modelo 720 final filing is rushed, with reconstruction of mid-year balances eating into time that could have been spent on transition planning. The cost of the rushed exit is rarely catastrophic, but it is usually larger than the cost of the planned one.

    For taxpayers in the Beckham Law regime, the exit also raises the question of whether to renounce the regime ahead of departure or let it run to its natural endpoint. The choice affects how the final year's Spanish-source and foreign-source income is treated, and for some profiles the right answer is to renounce mid-Beckham window in favor of ordinary taxation for the final year. This is exactly the kind of planning question that needs months of runway to handle properly.

    The Question of Coming Back

    A meaningful share of departing Spanish residents end up returning, sometimes within a few years. The Spanish tax framework treats returns as new arrivals — the same arrival-year logic applies, with the same options around Beckham Law eligibility (subject to the five-year residency-history rule), the same Modelo 720 obligations from the new arrival, and the same need for fresh asesor engagement on the Spanish side.

    What does not reset is the cumulative documentary record of the departure. A taxpayer who exited Spain cleanly, with proper deregistration, a tax-residency certificate from the destination country, and clean Modelo 720 closure, returns later with a clean slate. A taxpayer who exited messily, with continued Spanish ties and unclear residency status during the years away, returns with a more complicated documentary picture that the Hacienda can revisit if questions arise about prior years.

    The companion returning-after-leaving article — sitting under the exit-costs sub-hub rather than this one — covers the practical side of re-entry. The point worth making here is that the quality of the original exit shapes the ease of any future return. Clean exits compound. Messy exits compound the other way.

    The Last Practical Note

    The exit year is the symmetrical counterpart of the arrival year, and it deserves the same level of planning attention. The all-or-nothing residency rule, the impuesto de salida for high-net-worth departures, the Modelo 720 final-filing mechanics, the padrón and TIE administrative records, and the establishment of new residency in the destination country are all components of the same single transition.

    The version of this transition that goes well is the one started early, run by an asesor who understands both sides of the move, and documented contemporaneously. The version that goes badly is the one assembled in the final weeks from boarding passes and bank statements that nobody thought to keep clean. The choice between the two is largely made eighteen months before the move, in whether you decide to treat the exit as a project or as a logistic.

    CS

    Written by

    Carl S Moller

    Founder & Editor, Expat Blueprint

    Carl S Moller is the founder and sole editor of Expat Blueprint. He researches and writes every guide himself, working from immigration ministries, tax authorities, national statistics and recent first-hand reporting rather than claiming to have lived in all sixteen countries covered.

    Keep the thread going

    One reflective note every few weeks, and 20% off anything in the workbook shop the moment you sign up. The code is valid through 31 August 2026.

    Unsubscribe any time. We never share your address. The 20% code is valid through 31 August 2026.