A wooden desk with a calculator, a passport and a small stack of share certificates in a sunlit room
    Back to Spain Guide

    Spain's Exit Tax: Who It Actually Hits and How the Triggers Work

    Spain's exit tax hits long-term residents with significant unrealized share gains. Thresholds, ten-year rule, EU deferral and timing moves that still help.

    8 min read

    It applies to almost no one and devastates the small minority it does. The hardest part is recognizing whether you are one of them before the year of departure has already started.

    Quick Takeaways

    • Triggers on shares above four million euros or one million if more than 25% of a single company
    • Requires ten of the previous fifteen years as Spanish tax resident
    • Treats unrealized gains as deemed realized at the moment of loss of residency
    • EU and EEA relocations qualify for indefinite deferral under specific conditions
    • Planning window for meaningful mitigation is two to three years before departure

    I want to start with the misconception that probably brought you to this article: most people leaving Spain do not owe an exit tax, and the headlines about Spain taxing departures are largely overstated for the typical expat. The impuesto de salida — the exit tax codified in Article 95 bis of the Ley del IRPF — is narrowly drawn, hits a specific profile of long-term high-asset resident, and leaves the great majority of departing autónomos, salaried professionals, and retirees untouched. If you have been in Spain for fewer than ten of the previous fifteen years, the tax does not apply at all. If your share holdings are below the thresholds, it does not apply. If your wealth is held in real estate, in cash, in pension instruments, or in any non-share form, it does not apply.

    But for the small minority it does catch, the bill is very large and the planning window for mitigation is long — typically two to three years before departure for the moves that actually work. This article walks through who is in scope, what the trigger mechanics look like, what the EU and EEA deferral options offer in practice, and what someone facing a probable exit-tax exposure can still do in the final twelve months before residency lapses. None of this is tax advice for your specific situation, which has to come from an asesor fiscal who can see your full holdings; what this is is a map of the territory you are likely walking into.

    The Three Conditions That Must All Coincide

    The exit tax triggers when three conditions are simultaneously met. First, the individual must have been Spanish tax resident for at least ten of the previous fifteen tax years. The count is of complete years of residency, not partial ones, and it includes years where Beckham Law applied — the years count regardless of the special regime status during them. Second, the individual must hold shares whose total market value exceeds four million euros at the moment of loss of residency, or shares representing more than twenty-five percent of a single company with a market value above one million euros. The thresholds apply to shares broadly defined: listed equities, unlisted shares, participations in limited companies, units in collective investment vehicles. Third, the individual must lose Spanish tax residency, through one of the standard residency-loss pathways covered in the tax residency exit year deep-dive.

    When all three coincide, the unrealized capital gain on the qualifying shares — the difference between current market value and original acquisition cost — is treated as deemed realized at the moment residency is lost. The gain is reported on the final IRPF return for the year of departure and taxed at the standard capital-gains rates of the savings income box, which currently run from nineteen percent at the bottom band to twenty-eight percent at the top.

    What does not trigger the tax is real estate, regardless of value. A long-term resident with a Madrid apartment worth three million euros and a Valencia property worth two million is not in scope unless they also hold qualifying shares above the thresholds. What also does not trigger it is wealth held in cash, in bonds, in physical assets, or in pension instruments. The tax is specifically a tax on unrealized share gains, and its narrow drafting reflects the policy intent of capturing the founder-equity and concentrated-holding cases rather than wealth more broadly.

    The EU and EEA Deferral That Changes the Calculation

    For relocations to other EU or EEA member states, the exit tax does not have to be paid at the moment of departure. The taxpayer can elect to defer the payment indefinitely, with the obligation crystallizing only when the shares are actually sold, gifted, or when the taxpayer subsequently relocates from the EU or EEA to a third country. The deferral is not automatic — it has to be requested and the taxpayer has to provide the Hacienda with periodic updates on the status of the deferred shares — but for someone moving from Spain to Portugal, France, Germany, the Netherlands, or any other EU state, the deferral fundamentally changes the cash-flow impact of the tax.

    The deferral was introduced specifically to align Spanish exit tax with EU freedom-of-movement rules, which the European Court of Justice has held cannot be impeded by immediate exit-tax payment for intra-EU relocations. The mechanics are straightforward in principle and bureaucratic in execution: a notification to the Hacienda within the year of departure, an annual update on the status of the deferred shares, and a payment when the deferring event finally occurs. For relocations within the EU that are themselves long-term — moving to Lisbon and staying — the deferred liability may never crystallize during the taxpayer's lifetime, and inheritance treatment in the destination country becomes the more relevant consideration.

    For relocations outside the EU and EEA — to the United Kingdom post-Brexit, to the United States, to Switzerland, to any third country — the deferral does not apply and the tax is due in the year of departure. This is one of the consequential implications of the UK's exit from the EU: a Spanish resident with significant share holdings who relocates to London now faces immediate exit-tax liability where the same move before 2021 would have qualified for indefinite deferral. The tax residency exit year deep-dive covers how the destination country choice interacts with the residency cutoff in the year of move.

    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.

    What Mitigation Actually Looks Like in Practice

    There are essentially four families of mitigation, and all of them require time. The first is to fall below the share thresholds before the year of departure, which can mean diversifying out of concentrated single-company positions, monetizing some of the holdings under standard capital-gains treatment while still resident, or restructuring family-business equity to reduce the individual's direct holding below the twenty-five percent threshold. None of these are quick moves; tax-efficient diversification of a concentrated equity position typically takes eighteen to thirty-six months to execute without triggering disproportionate Spanish capital-gains tax in the process.

    The second is to interrupt the ten-of-fifteen-years count before departure. This is rarely a real option for someone who has actually been resident in Spain for the relevant period, but for borderline cases — someone who genuinely spent significant portions of certain years outside Spain and could potentially establish that they were not tax resident in those years — it is worth examining the residency facts of the older years carefully. The Hacienda's view of the count is conservative and disputing it is uphill, but the count is fact-based rather than assumption-based, and facts can sometimes be different from what was reported at the time.

    The third is to ensure that any actual departure is to an EU or EEA destination, so that the deferral is available even if the tax cannot be avoided in principle. For someone with flexibility in their destination — a remote worker, an early retiree, an investor — the choice between Lisbon and London becomes a substantive tax question rather than just a lifestyle one. The fourth, which is more often used than acknowledged, is to time the loss of residency to fall in a year when the share market value is depressed, reducing the deemed gain at the moment of trigger. This is not a strategy for the cycle peak; it is a strategy for the cycle trough, and it requires holding a probable departure decision in suspension long enough to align it with market conditions.

    What the Asesor Fiscal Actually Needs From You

    If your situation is in the zone where the exit tax might apply, the conversation with your asesor fiscal needs to start at least two years before any planned departure, and ideally three. The asesor needs a complete inventory of share holdings — listed and unlisted, Spanish and foreign, direct and through holding structures — with current market valuations and original acquisition costs. They need your residency history for the previous fifteen tax years, with documentation of any years where residency might be disputable. They need clarity on the planned destination country and the planned timing of the move, because both materially affect the recommendation. And they need an honest conversation about your tolerance for delay — some of the mitigations require pushing the departure out by a year or two, which may or may not be acceptable depending on the reasons driving the move in the first place.

    What the asesor cannot do is conjure mitigations in the final fortnight before departure. By the time the moving boxes are being packed, the substantive moves are no longer available, and the conversation reduces to ensuring that the deferral is properly elected if the destination is in the EU or EEA, that the final IRPF return is filed correctly, and that the documentation is in place to defend the valuation if it is later questioned. None of those last-minute moves are negligible — a poorly executed deferral election can lose the deferral entirely — but they are damage control rather than planning.

    The Honest Bottom Line

    I have revised my own thinking on this tax over the years. Earlier I was inclined to treat it as a niche concern that affected almost no one and could be safely ignored in general guides for departing expats. I now think that framing was too dismissive, because the people who do fall into it tend to discover that they fall into it only after the planning window has closed, and the cost of the discovery is enormous. The honest middle position is that most people leaving Spain do not owe this tax, but anyone who has been in Spain for seven or more years and holds meaningful equity in any form should at least have one diagnostic conversation with an asesor fiscal to confirm that they are out of scope, rather than assuming it.

    The conversation is short and inexpensive when the answer is that you are out of scope, which it is for most people who ask. The conversation is long and expensive when it has to be the planning conversation rather than the diagnostic one, which is the situation if you wait until departure is imminent. The asymmetry favors asking early, even if the eventual answer is that the tax does not apply to you and the early conversation was, in retrospect, unnecessary peace of mind. The autónomo deregistration chain deep-dive covers the parallel administrative track that runs alongside the exit-tax conversation for anyone who was registered as autónomo during their Spanish years.

    A Narrow Tax With Wide Consequences for the Few

    The Spanish exit tax catches a small minority of departing residents and changes the economics of departure substantially for the people it catches. The ten-of-fifteen-years rule, the four-million-euro share threshold, and the EU-deferral mechanics together define a fairly precise scope, and falling inside or outside that scope is usually possible to determine with reasonable confidence well in advance.

    The honest move for anyone in the zone of possible exposure is to have the diagnostic conversation early, while the planning window is still long. The honest move for anyone clearly outside the zone is to focus on the other exit tracks — the autónomo deregistration, the residency cutoff, the padrón and TIE handling — which apply to everyone leaving and are where most of the avoidable damage actually occurs.

    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.