When you sell your primary home, you may have to pay taxes on the profits obtained. However, there is an exemption from the Personal Income Tax (IRPF) if you reinvest the money in the purchase of a new primary home. In this article, we explain in a simple way how this exemption works, based on the recent Supreme Court ruling that clarifies crucial points on the subject.
Requirements for Personal Income Tax Exemption for reinvestment in habitual residence
General Requirements:
The Personal Income Tax Law establishes that capital gains obtained from the sale of a primary residence may be exempt from tax if the total amount is reinvested in the acquisition of a new primary residence. To do this, it is necessary to meet the following requirements:
-
- Habitual Residence: The home sold must have been the taxpayer's habitual residence for at least three continuous years.
- Reinvestment: The money obtained from the sale must be reinvested in the purchase of another primary home within a maximum period of two years from the sale.
Special requirement:
The recent ruling of the Supreme Court of December 12, 2022, Contentious-Administrative Chamber, Section 2, resolves an appeal on this issue and provides an important clarification. According to this ruling, for the exemption to apply, the taxpayer must have had full ownership of the home during the three years prior to the sale.
The case analyzed by the Supreme Court deals with a person who sold his primary home, where he had resided for more than a decade, and reinvested the profits in the purchase of a new home. However, the Tax Agency denied the exemption because, although at the time of the sale it had full ownership, it had not held such status for the last three years.
The Supreme Court concluded that, to apply the exemption for reinvestment in habitual residence, it is necessary that:
-
- The transferred home has been the habitual residence for at least three continuous years.
-
- The taxpayer has held full ownership of the home during that entire period.
The ruling confirms that it is not enough to have been the bare owner (property without usufruct) during part of that time. Freehold ownership must have been held for three years prior to the sale.
Practical Implications
What Does This Mean for Taxpayers?
If you are planning to sell your primary home and benefit from the personal income tax exemption, make sure you comply with the following key points:
-
- Full Domain: You must have been the full owner of the home for three years prior to the sale.
-
- Habitual Residence: The home must have been your habitual residence for at least three years.
-
- Total Reinvestment: The total amount of the sale must be reinvested in the purchase of a new primary home within a period of two years.
Exceptions and Considerations
There are certain exceptions where the three-year period can be reduced, such as in cases of marriage, separation, job transfer, obtaining a first job, among others. These exceptions must be adequately justified.
Conclusion
The recent ruling of the Supreme Court has clarified a crucial aspect regarding the personal income tax exemption in the sale of a primary residence. It is essential that taxpayers understand that they must have held full ownership of the home for the three years prior to the sale to benefit from this exemption. If you have questions about your specific situation, it is advisable to consult with a tax attorney to ensure you meet all requirements and maximize your tax benefits.
For more information and personalized advice, do not hesitate to contact us at our office. We are here to help you navigate the complexities of tax law and ensure you make the most of the exemptions available.


