Spanish exit tax: when moving your residence abroad triggers tax. Guide to Article 95 bis of the Spanish Personal Income Tax Act

Moving your residence out of Spain is not, in itself, a taxable event. It becomes one, however, for long-standing residents who hold a substantial portfolio of shares or other equity interests. Article 95 bis of Law 35/2006 on Personal Income Tax (LIRPF), introduced by Law 26/2014 with effect from 1 January 2015, taxes as a capital gain the unrealised gain on those holdings at the time of departure, even though nothing has been sold. This is the Spanish exit tax (impuesto de salida). Whether it is paid on departure, deferred or held in suspense depends on the destination, the reason for the move and timely compliance with formal obligations that are often overlooked.

Who is caught: three cumulative requirements

First, the taxpayer must cease to be a Spanish taxpayer as a result of a change of residence, under the criteria in Article 9.1 LIRPF: more than 183 days in Spain in the calendar year, the centre of economic interests in Spain, and a presumption of residence where the taxpayer’s spouse, if not legally separated, and dependent minor children live in Spain. Anyone who continues to run their business from Spain may not have lost Spanish residence at all.

Second, the taxpayer must have been resident for at least ten of the fifteen tax periods preceding the last one that must be declared. For those who opted for the special regime for posted workers, the ten-period count starts from the first year in which they ceased to apply it (Article 95 bis.8). Years under the inbound expatriate regime do not count.

Third, one of two value thresholds must be exceeded, measured at the accrual date of the last tax period:

  • the combined market value of the shares and equity interests exceeds €4,000,000; or
  • failing that, the holding in a single entity exceeds 25 per cent and its market value exceeds €1,000,000. In this second case the tax applies only to those holdings, not to the rest of the portfolio.

What is taxed and what is not

The provision covers shares and equity interests in any kind of entity, Spanish or foreign, listed or unlisted. It extends to units and shares in collective investment undertakings (paragraph 3.c), so investment funds and ETFs count both towards the threshold and towards the gain.

All other assets fall outside it: real estate, bank deposits, receivables and works of art. The Directorate General of Taxes (DGT), which issues binding rulings on behalf of the Spanish Ministry of Finance, also excluded cryptocurrencies held directly in ruling V0666-25 of 14 April 2025, on the ground that they are neither shares nor equity interests. The exclusion falls away where the crypto-assets are held through a company: ruling V5588-26 of 16 September 2026 brought within the exit tax a holding in a transparent US LLC whose only assets were cryptocurrencies.

How the gain is measured and to which year it is allocated

The gain is the positive difference between the market value of the holdings and their acquisition cost (Article 95 bis.1). Market value is taken at the accrual date of the last tax period to be declared as a resident, which is 31 December of that year (Article 12.2 LIRPF), and is determined in accordance with paragraph 3:

  • Securities listed on a regulated market: at their quoted price.
  • Unlisted securities: unless a different market value is proven, at the higher of the net equity shown in the last balance sheet closed and the result of capitalising at 20 per cent the average profit of the last three financial years closed.
  • Collective investment undertakings: at the net asset value on that date or, failing that, the last one published.

The gain forms part of savings income (Articles 95 bis.2 and 46.b LIRPF) and is allocated to the last tax period to be declared, by means of a supplementary self-assessment with no penalty, late payment interest or surcharge (Article 95 bis.2). It is therefore taxed on the savings income scale, whose top marginal rate, combining the state and regional scales in Articles 66.1 and 76 LIRPF as worded by Law 7/2024 and applicable from 2025, reaches 30 per cent (15 plus 15) on income above €300,000.

The self-assessment is filed within the return period for the first year in which the taxpayer is no longer resident (Article 121 of the Personal Income Tax Regulations, approved by Royal Decree 439/2007): if 2026 is the last year of residence, within the period for the 2027 return, which opens in spring 2028. The Act and the Regulations still refer to a supplementary self-assessment; the Spanish Tax Agency, which has replaced that mechanism with the corrective self-assessment (autoliquidación rectificativa), states in its Manual práctico de Renta 2025 that the gain is declared in a corrective self-assessment for the last year of residence, within the same period.

Pay, defer or suspend: destination and reason decide

General rule: the tax is paid

If the move does not fall within any of the special cases, the liability is self-assessed and paid within the period indicated. The taxpayer may apply for deferral or payment by instalments under the general rules in Article 65 of Law 58/2003, the General Tax Act, with the interest and security those rules require.

Temporary relocation: deferral against security

Article 95 bis.4 provides a specific deferral, at the taxpayer’s request, where the change of residence results from a temporary relocation in either of two cases:

  • for work reasons, to a country or territory that is not a tax haven (now a non-cooperative jurisdiction under the tenth additional provision of Law 36/2006, as listed in Order HFP/115/2023 of 9 February, amended by Order HAC/649/2026 of 21 June); or
  • for any other reason, to a country or territory with which Spain has a double taxation agreement containing an exchange of information clause.

The deferral bears interest and requires security under the General Tax Act, although the security may be provided over the holdings themselves. The application is filed within the same return period, stating the country of destination and, where the reason is work, enclosing a certificate from the employer (Article 122 of the Regulations). The deferred amount falls due at the latest on 30 June of the year following the end of the five tax years after the last one declared, or two months after any earlier sale.

If the taxpayer becomes resident again within those five years without having transferred the holdings, the liability and the interest are extinguished, although the cost of the security is not refunded. For work relocations an extension of up to five further years may be requested.

Moving to the European Union or the European Economic Area: tax held in suspense

Where the destination is another Member State of the European Union, or a State of the European Economic Area with which there is an effective exchange of tax information, the taxpayer may opt for the regime in Article 95 bis.6. Following Law 11/2021, the reference in that provision to paragraph 4 of the first additional provision of Law 36/2006 is to be read as deleted, and an effective exchange of information is equated with the existence of rules on mutual assistance in the exchange of tax information (tenth additional provision, paragraphs 2 and 3, of that Law). Norway, Iceland and Liechtenstein, the three EEA States outside the Union, are, like Spain, parties to the Council of Europe and OECD Convention on Mutual Administrative Assistance in Tax Matters, so the condition can be regarded as met for all three.

The gain is computed on departure but only has to be self-assessed if, within the ten years following the last year declared, any of the following occurs:

  • a transfer inter vivos of the holdings;
  • loss of residence in a Member State of the European Union or the European Economic Area; or
  • failure to comply with the reporting obligation.

In that event the gain is allocated to the last period declared in Spain, without penalty, interest or surcharge. If the trigger is a sale at a price below the value computed on departure, the gain is reduced by the difference (Article 95 bis.6.b).

The option is not automatic. It is exercised on Form 113 (modelo 113), approved by Order HAP/2835/2015 of 28 December, which is filed electronically and identifies the holdings, their market value, the gain, the State of destination and the taxpayer’s address. It must be filed between the date of departure and the end of the return period for the first year as a non-resident, and any change of address must be notified within two months (Article 123 of the Regulations and Article 4 of the Order). Form 113 does not replace the ordinary notification of a change of tax address, which must be made separately. And, as ruling V1648-26 of 18 June 2026 points out, a gift is a transfer inter vivos even though it is gratuitous.

Moving to a tax haven

A Spanish national who moves to a tax haven remains a Spanish taxpayer in the year of the move and the following four years (Article 8.2 LIRPF), but the exit tax applies nonetheless: the gain is allocated to the last year of actual residence and, if the holdings are sold during that period, their acquisition cost is the value already taxed (Article 95 bis.7).

Switzerland: outside the Union, inside the European regime

Switzerland belongs neither to the European Union nor to the European Economic Area. Even so, the DGT applies the deferral in paragraph 6 to it (rulings V2959-19 of 24 October 2019 and V1648-26) by virtue of the Agreement on the Free Movement of Persons with the Swiss Confederation, as interpreted by the Court of Justice of the European Union in its judgment of 26 February 2019, Case C-581/17, Wächtler. We discuss that position, and the risk posed by a later gift within the family, in our article on the Spanish exit tax when moving to Switzerland. The ruling does not, however, explain how the trigger consisting of ceasing to reside in the European Union or the European Economic Area operates for someone resident in Switzerland.

Returning to Spain

The law offers a way out for those who return without having sold, which differs according to the regime applied:

  • General regime: the taxpayer may apply for rectification of the self-assessment and a refund of the amount paid, with late payment interest from the date of payment. The application may be filed from the end of the return period for the first tax period in which the taxpayer is again a Spanish taxpayer (Article 95 bis.5).
  • Deferral for temporary relocation: the liability and the interest are extinguished if the return takes place within the five years, or within the extended period (Article 95 bis.4).
  • European Union regime: if none of the triggering events has occurred, the provisions of the Article cease to have effect (Article 95 bis.6.d).

Double taxation agreements and a later sale

The exit tax charges a gain allocated to the last year of residence in Spain, so the treaty with the State of destination does not usually prevent it. The risk lies in the later sale: Article 13 of most treaties allocates gains on shares to the State in which the seller is resident at that time, and that State may tax the entire gain since the original acquisition if it neither recognises the exit value as the base cost nor gives credit for the Spanish tax. There is no rule common to all treaties: the answer depends on the specific treaty and, above all, on the domestic law of the new State. Four frequent destinations show how widely the outcome varies:

  • Germany. German law recognises the exit value. Section 17(2), third sentence, of the Income Tax Act (Einkommensteuergesetz) replaces the acquisition cost with the value that the State of departure used to compute its tax, capped at market value, provided the taxpayer shows that he or she already held the shares on becoming subject to unlimited tax liability in Germany and that the gain accrued until then was subject in the State of departure to a tax comparable to that under Section 6 of the German Foreign Tax Act (Außensteuergesetz). The rule is part of Section 17, which covers holdings of at least 1 per cent in a corporation at any time in the five years before the sale, so it does not reach smaller holdings. The treaty between Spain and Germany of 3 February 2011 also allows the State of departure to tax under its domestic law the gain on shares attributable to the period of residence of a person who was resident there for five years or more, if the sale takes place within five years of departure (Article 13.7).
  • Portugal. The Portuguese Personal Income Tax Code (Código do IRS) takes as the acquisition cost of shares and holdings their documented cost (Article 48), with no reference to the value taxed by the State of departure. Relief may come from the treaty of 26 October 1993, which allows the State in which the company is resident to tax the sale of a substantial holding, of at least 25 per cent during the preceding twelve months (Article 13.3). If the company is Spanish, Spain then retains the right to tax the sale as the source State (the domestic exemption for EU residents does not extend to such holdings, Article 14.1.c of the consolidated Non-Resident Income Tax Act), and Portugal must give credit for the tax paid in Spain (Article 23.2.a of the treaty).
  • United Kingdom. The treaty of 14 March 2013 contains no specific clause on exit taxes: its Article 13 reserves gains on shares, other than shares in property-rich companies, to the State of residence of the person making the disposal, and the credit for Spanish tax under Article 22.2.a) requires the gains to be the same as those on which that tax was computed, without making clear whether the exit tax meets that condition. Since 6 April 2025, however, the 4-year foreign income and gains regime (4-year FIG regime) has been available: an individual arriving after at least ten consecutive years of non-residence in the United Kingdom may claim, year by year and during the first four years of residence, that gains on the disposal of assets situated outside the United Kingdom are not taxed (Schedule D1 to the Taxation of Chargeable Gains Act 1992). A sale within that window avoids double taxation; a later sale remains exposed to it.
  • Switzerland. For holdings forming part of private assets, the question does not arise: gains on their sale are exempt from direct federal tax (Article 16.3 of the Federal Direct Tax Act, DBG) and from cantonal and municipal taxes (Article 7.4.b of the Federal Tax Harmonisation Act, StHG, subject to the exceptions it reserves). The gain is thus taxed only in Spain, on departure or, if the deferral applies, on a sale within the ten years.

Spanish law relieves double taxation within its own sphere. If the later sale remains taxable in Spain as a non-resident, Article 24.4 of the consolidated Non-Resident Income Tax Act (Royal Legislative Decree 5/2004) takes as the acquisition cost the market value used for the exit tax. And under the European regime, as explained above, the deferred gain is reduced if the value falls. The LIRPF does not, however, provide a credit for any tax the new State of residence charges on that sale.

Not to be confused with the corporate exit tax

Where it is a company that moves its residence out of Spain, a different rule applies, Article 19.1 of Law 27/2014 on Corporate Income Tax, which transposes Article 5 of Directive (EU) 2016/1164: it includes in the tax base the difference between the market value and the tax value of the company’s assets, except those that remain attributable to a permanent establishment in Spain, and allows payment in five annual instalments if the destination is in the European Union or the European Economic Area with mutual assistance in tax recovery. The shareholder’s departure does not trigger this tax in a Spanish company the shareholder keeps, although the residence of that company may be called into question if it comes to be managed from abroad.

Before you move: a checklist

  • Count your years of residence, excluding those under the inbound expatriate regime.
  • Value the holdings at 31 December of the last year of residence and document any value other than the statutory one.
  • Gather the acquisition cost of each holding: deeds, capital increases and contributions.
  • Choose the timing. The year of departure fixes the last period declared and the valuation date; the departure must be documented from day one (home, tax residence certificate, days of presence).
  • Decide on the regime and file the deferral application or the notification of the European option on time, with the required security.
  • Plan the following ten years: gifts, restructurings and sales within the family may trigger the deferred tax.
  • Review the State of destination and how it will treat a future sale.
  • Make sure the departure is genuine, particularly if you continue to manage a Spanish company.

Conclusion

The Spanish exit tax does not tax the move itself but the gain built up in significant holdings by someone who has been resident for many years. Its cost is decided before leaving: in the valuation at 31 December, in the choice of destination and regime, and in deadlines which, if missed, turn a tax held in suspense into a liability that is due.

At Lex·on we advise entrepreneurs, investors and families moving their residence out of Spain on quantifying the exit tax, choosing the applicable regime and planning the years that follow, as part of our international tax and estate planning practice, from Palma de Mallorca and Manacor. If you are considering a change of residence, we can review your plans before you take the step.

For anyone preparing to leave, proving that Spanish residence has ended matters as much as computing the tax. Tramuntana Tax, the international desk run by the same partners, explains how Spain counts days of presence and how residence elsewhere is evidenced.

About the author

Juan Pedro Vidal López

Partner at Lex·on. Member of the Bar Association of the Balearic Islands (ICAIB), no. 6948, and of the Spanish Association of Tax Advisors (AEDAF). He specialises in international taxation, tax proceedings and corporate and estate tax planning.

Source: Articles 8.2, 9.1, 12.2, 46, 66, 76 and 95 bis of Law 35/2006 on Personal Income Tax; Articles 121, 122 and 123 of the Personal Income Tax Regulations, approved by Royal Decree 439/2007; Articles 14.1.c and 24.4 of the consolidated Non-Resident Income Tax Act, approved by Royal Legislative Decree 5/2004; Article 19.1 of Law 27/2014 on Corporate Income Tax; first and tenth additional provisions of Law 36/2006 on measures to prevent tax fraud; Article 65 of Law 58/2003, the General Tax Act; Order HFP/115/2023 of 9 February, amended by Order HAC/649/2026 of 21 June; Order HAP/2835/2015 of 28 December approving Form 113; Spanish Tax Agency, Manual práctico de Renta 2025; Article 5 of Directive (EU) 2016/1164; Convention on Mutual Administrative Assistance in Tax Matters; double taxation agreements with Germany (2011), Portugal (1993) and the United Kingdom (2013); Section 17 of the German Einkommensteuergesetz; Article 48 of the Portuguese Código do IRS; Schedule D1 to the UK Taxation of Chargeable Gains Act 1992; Article 16.3 of the Swiss Federal Direct Tax Act and Article 7.4.b of the Swiss Tax Harmonisation Act; binding rulings of the Directorate General of Taxes V2959-19 of 24 October 2019, V0666-25 of 14 April 2025, V1648-26 of 18 June 2026 and V5588-26 of 16 September 2026; and judgment of the Court of Justice of the European Union of 26 February 2019, Case C-581/17, Wächtler.
© Lexon Advisory, S.L.U. All rights reserved. The total or partial reproduction of this content, by any means or procedure, without the express written authorisation of its owner is prohibited. Any unauthorised use will constitute an infringement of intellectual property rights under applicable law.
This article is for information purposes only and reflects the administrative position in force on the date of publication. It does not constitute legal or tax advice and does not replace an individual analysis of each case.