April 2026
The exemption for reinvestment in a main residence allows taxpayers not to be taxed under the Personal Income Tax (IRPF) or the Non-Resident Income Tax (IRNR) on the capital gain obtained from the sale of a principal residence in Spain, provided that the proceeds are reinvested in another main residence, which may be located in a country of the European Union or of the European Economic Area with information exchange. The reinvestment deadlines are, as a general rule, two years from the date of transfer, and require the transaction to be correctly reported (Form 100 for IRPF or Form 210 for non-residents), as well as the coordination of any potential municipal capital gains tax (plusvalía municipal). Furthermore, from our real estate consultancy Velora Realty, we offer a comprehensive service covering the purchase and selling management of your property, the drafting and supervision contracts, and the tax aspects involved.
Introduction: Selling a Property in Spain and Relocating to the EU
The exemption for reinvestment in a main residence in a country of the European Union and European Economic Area allows the capital gain from the sale of a main residence in Spain to be exempt from tax, provided the proceeds are reinvested in another main residence located in the EU/EEA and the requirements regarding deadline, habituality, and documentary evidence are met. It is essential to determine — and adjust if necessary — tax residency in the year of the sale, as this determines whether IRPF or IRNR applies.
Selling a property in Spain typically generates a capital gain which, as a general rule, is subject to tax under the savings base of the IRPF, or under the IRNR if the taxpayer is already a non-resident. However, when the transaction is linked to a change of residence to a country in the EU or the EEA, Spanish legislation permits the exemption to be maintained provided the new residence meets the habituality requirements and the reinvestment deadlines are observed.
From a practical standpoint, in our professional experience advising taxpayers relocating to France, Germany, Italy, Portugal, or the Netherlands, the critical points are typically: correctly establishing the date of transfer, documenting the reinvestment abroad, and coordinating state taxation (IRPF/IRNR) with the municipal capital gains tax and with the tax regime in the new State of residence.
Regulatory Framework of the Exemption for Reinvestment in the EU/EEA
The exemption for reinvestment in a main residence in a country of the European Union and European Economic Area is based on Article 38 of the Personal Income Tax Act (Ley del IRPF), Articles 41 and 41 bis of the Personal Income Tax Regulations (Reglamento del IRPF), and Additional Provision 1.4 of the Non-Resident Income Tax Act (Ley del IRNR), which extend the benefit to EU/EEA residents under specific conditions. In order to apply the exemption, the property transferred must constitute the taxpayer’s main residence, and the reinvestment must be made within a maximum period of two years.
The essential statutory provisions are:
- Article 38 of Act 35/2006, the Personal Income Tax Act (IRPF): declares exempt the capital gains arising from the transfer of a main residence when the proceeds are reinvested in another main residence, in accordance with the regulatory provisions.
- Articles 41 and 41 bis of the Personal Income Tax Regulations (Reglamento del IRPF): define the concept of main residence, the circumstances under which that status is lost, and the detailed regime governing reinvestment.
- Seventh Additional Provision of the Non-Resident Income Tax Act (Ley del IRNR): allows the exclusion from taxation of the capital gain obtained by a taxpayer resident in a Member State of the EU or of the EEA with information exchange from the transfer of what has been their main residence in Spain, provided the total proceeds are reinvested in another main residence.
The tax authorities set out these criteria in the IRPF Practical Guide and in various binding rulings (consultas vinculantes) of the Directorate-General for Taxation (Dirección General de Tributos). As regards case law, the Court of Justice of the European Union has promoted the extension of domestic tax benefits to cross-border situations within the EU, where restricting the exemption to properties located in Spain would be discriminatory or contrary to the freedom of movement, although it would be necessary to verify, on a case-by-case basis, the specific ruling applicable to each circumstance.
General Requirements of the Reinvestment Exemption
The exemption for reinvestment in a main residence requires that the property sold constitutes the taxpayer’s main residence, that the proceeds from the transfer are reinvested in another main residence, that the reinvestment takes place within a period not exceeding two years, and that the transaction is correctly reported under IRPF or IRNR. Failure to comply with any of these requirements results in the loss of the exemption and the regularisation of the capital gain.
Main requirements (residents and EU/EEA non-residents):
- The property transferred must have the status of the taxpayer’s first residence, which requires uninterrupted residence for at least three years, subject to justified exceptions.
- The proceeds obtained must be reinvested in the acquisition, construction, or rehabilitation of another property that is to constitute the taxpayer’s new principal residence.
- The reinvestment may be made in a single payment or in instalments, always within the two-year period from the date of transfer (whether before or after), unless a specific provision or administrative criterion allows for certain flexibilities, the verification of which would require consulting updated case law and doctrine.
- The exemption is applied proportionally when only part of the proceeds from the transfer is reinvested.
In this context, a change of residence to an EU country does not, in itself, preclude the application of the exemption, provided it can be demonstrated that the new property located in the destination State meets the habituality requirements and that the taxpayer is a tax resident in a EU/EEA country with effective information exchange when availing of the regime under the Non-Resident Income Tax Act.
Residents in Spain Who Reinvest in a Property in the EU/EEA
When the taxpayer remains a tax resident in Spain in the year of the sale, the exemption for reinvestment in a main residence in a country of the European Union and European Economic Area applies in full within the framework of the IRPF, without the need to file Form 210, and the location of the new property in the EU/EEA does not constitute an obstacle if habituality is duly evidenced. In this case, the transfer and reinvestment are reported in the annual IRPF return.
Pursuant to Article 38 of the Personal Income Tax Act and administrative doctrine, the exemption is not limited to properties located in Spanish territory, provided they constitute the taxpayer’s main residence. The IRPF Practical Guide and various rulings of the DGT have confirmed that the exemption may be applied when the new property is located in another EU Member State and the requirements of habituality and deadline are met.
In our professional practice, the key points in these cases are:
- Correctly establishing the dates of transfer and acquisition so as not to exceed the two-year period.
- Documenting, by means of deeds, certificates of registration (empadronamiento), and proof of payment, that the new property in the EU genuinely constitutes the main residence.
- Coordinating the IRPF exemption with the tax regime in the destination State in order to avoid double taxation or the loss of benefits due to lack of planning.
EU/EEA Non-Residents, Form 210, and Municipal Capital Gains Tax (Plusvalía Municipal)
For non-resident taxpayers who are tax residents in a State of the European Union or of the European Economic Area with information exchange, the exemption for reinvestment in a main residence in a country of the European Union and European Economic Area applies within the framework of the IRNR, by reporting the capital gain via Form 210. The exemption allows the capital gain to be excluded from taxation provided the total proceeds are reinvested in a new first residence, meeting the requirements of deadline and habituality.
The Seventh Additional Provision of the Non-Resident Income Tax Act (Ley del IRNR) (as referenced in Act 36/2006) establishes that taxpayers resident in the EU or in the EEA with information exchange may exclude from taxation the capital gain obtained from the transfer of what has been their first residence in Spain, provided the total proceeds are reinvested in the acquisition of a new main residence. This rule is implemented through Form 210, which is the self-assessment form for the IRNR, with specific rules and deadlines depending on the type of income and the date of transfer.
In parallel, the municipal capital gains tax (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana) is levied in the majority of sales of urban properties and is administered by the relevant local authority. Although the reinvestment exemption has effects on the capital gain for IRPF or IRNR purposes, it does not automatically entail exemption from the municipal capital gains tax, which is governed by local regulations and any applicable specific benefits (for example, situations of non-subjection or municipal relief, bonificaciones).
Residents vs. EU/EEA Non-Residents in the Reinvestment Exemption
| Tax status in the year of sale | Applicable tax | Main form | Key statutory basis | Location of new property | Main considerations |
| Tax resident in Spain | IRPF | IRPF annual return | Art. 38 LIRPF; Arts. 41 and 41 bis RIRPF | Spain or EU/EEA | Proportional exemption if only partial reinvestment. |
| Non-resident, resident in EU/EEA with information exchange | IRNR | Form 210 | DA 7 Ley IRNR (Act 36/2006) | Spain or EU/EEA | Reinvestment of total proceeds required for full exclusion from taxation. |
| Non-resident, resident outside EU/EEA | IRNR | Form 210 | General IRNR Act | Normally Spain | Reinvestment exemption not extendable on the same terms; to be reviewed on a case-by-case basis. |
Practical Steps for Applying the Exemption (IRPF/IRNR)
Correctly applying the exemption for reinvestment in a principal residence in a country of the European Union and European Economic Area requires following a clear sequence of steps: identifying tax residency, verifying the habituality of the property transferred, planning the reinvestment within the prescribed period, retaining documentation, and correctly completing the tax return and, where applicable, the municipal capital gains tax filing. Lack of planning frequently results in the loss of the exemption or future regularisations.
Steps for a Tax Resident in Spain (IRPF)
- Determine tax residency in the year of the sale, applying the criteria set out in Article 9 of the Personal Income Tax Act (days of presence, centre of economic interests, etc.).
- Verify that the property sold constitutes the main residence, in accordance with Article 41 bis of the Personal Income Tax Regulations (uninterrupted occupation for at least three years).
- Calculate the capital gain in accordance with the general rules (transfer value less acquisition value, inherent expenses and taxes).
- Plan the reinvestment in a new main residence located in Spain or in another EU/EEA Member State, ensuring that it takes place within two years before or after the date of transfer.
- Document the transaction: deeds of sale and purchase, proof of payment, certificates of registration (empadronamiento), mortgage loan agreements, etc.
- Report the transaction in the IRPF return, selecting the option for exemption by reinvestment in a main residence and entering the data required in the capital gains section of the annual return form.
Steps for an EU/EEA Non-Resident (IRNR — Form 210)
- Confirm that you are a tax resident in an EU or EEA State with effective tax information exchange.
- Verify that the property sold in Spain was your main residence, as required by domestic legislation.
- Calculate the capital gain and file Form 210 within the applicable deadline, requesting the application of the reinvestment exemption where appropriate.
- Reinvest the proceeds obtained in the acquisition of a new main residence within the two-year period, and retain the supporting documentation.
- Coordinate the obligation to pay and/or settle the municipal capital gains tax with the competent local authority, reviewing any applicable local benefits.
In our experience, a technical legal analysis of a specific reinvestment exemption case typically includes a factual verification section (residence, deadlines, amounts), a normative interpretation section, and finally a section with a regularisation proposal or defence strategy in the event of an administrative audit by the tax authorities or an administrative appeal (recurso económico-administrativo).
Frequently Asked Questions
What is the deadline for reinvestment if I sell my main residence in Spain and purchase another in the EU?
The general deadline for the exemption for reinvestment in a main residence in a country of the European Union and European Economic Area is two years, calculated from the date of transfer, and the reinvestment may be made before or after that date. The reinvestment may be made in a single payment or in instalments within that period, and the exemption applies proportionally if only part of the proceeds is reinvested.
Can I apply the exemption if I am already a non-resident when I sell and I live in an EU country?
Yes, provided you are a tax resident in a State of the EU or the EEA with effective information exchange and the property sold in Spain was your main residence, you may avail of the exemption under the IRNR, reporting the transaction via Form 210 and reinvesting the total proceeds in another main residence.
Does the new property necessarily have to be located in Spain?
No. The provisions of the IRPF Act and the IRNR Act, interpreted consistently with EU law, allow the reinvestment to materialise in a main residence located in another EU or EEA Member State, provided the requirements of habituality and deadline are met and can be evidenced by documentary means.
What happens if I only reinvest part of the proceeds from the sale?
In that case, the exemption for reinvestment in a main residence applies proportionally: the portion of the capital gain corresponding to the amount reinvested is exempt from tax, while the remainder of the capital gain is subject to IRPF or IRNR, as applicable. It is therefore essential to plan the amount to be reinvested in order to maximise the exemption.
How does the municipal capital gains tax (plusvalía municipal) affect the reinvestment exemption?
The reinvestment exemption affects the capital gain for IRPF or IRNR purposes, but does not automatically eliminate the obligation to pay the municipal capital gains tax (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana), which is governed by the regulations of each local authority. Some municipalities may provide for situations of non-subjection or relief (bonificaciones), but these must be analysed on a case-by-case basis, by consulting the local tax ordinance in force at the time of the transfer.
What is the risk if I do not report, or incorrectly report, the reinvestment exemption?
If the exemption for reinvestment in a main residence is not correctly reported, the tax authorities may regularise the situation, demanding payment of the outstanding tax liability plus late payment interest and, where applicable, penalties for tax infringement. Correctly completing the return and retaining the relevant documentation are essential to avoiding tax contingencies.
Conclusion
The exemption for reinvestment in a main residence in a country of the European Union and European Economic Area is a key tool for those who sell their main residence in Spain and relocate to another EU/EEA State, but its correct application requires careful planning of deadlines, amounts, tax residency, and municipal capital gains tax.
If you are considering a change of residence to an EU country, or you are already a non-resident and are about to sell your main residence in Spain, it is strongly advisable to obtain specialised tax advice before signing the sale and purchase agreement, in order to plan the reinvestment, document it correctly, reduce risks, and maximise the benefit of the exemption. In collaboration with our real estate agency Velora Realty, we offer a comprehensive service for change of tax residence abroad, covering the preparation of your departure from Spain together with the sale of the property, the drafting and review of contracts, and the subsequent filing of the applicable tax returns — allowing you to leave Spain with the peace of mind that comes from having the sale properly managed.
Tax lawyers registered in Spain, with over 20 years of experience in real estate taxation, IRPF, IRNR, and international mobility of individuals within the European Union. We have advised numerous residents and non-residents in transactions involving the sale of main residences in Spain and reinvestment in properties located in different EU/EEA countries.