Taxpayers will lose the reinvestment exemption if the sold property was not the primary residence in the two previous years
The application of the exemption in Personal Income Tax (IRPF) for the reinvestment of the proceeds from the sale of a primary residence into another primary residence is subject to strict temporal requirements. A recent resolution from the Dirección General de Tributos (DGT) delimits the scope of this concept of habitual residence.
What the DGT has ruled
The query concerned the possibility of applying the reinvestment exemption when the taxpayer no longer resides in the property being transferred, having ceased to do so months before the sale. The DGT has determined that, to access this tax benefit, the transferred property must be the primary residence at the time of sale or must have been so on any day during the two years prior to the transfer.
In the case analyzed, the taxpayer ceased to reside in their home in March 2023 and proceeded with its sale in October 2025. Since more than two years had passed since the property ceased to be their effective residence, the requirement of habitual residence required by the Personal Income Tax Regulations (RIRPF) was not met.
The administration clarifies that the causes for change of residence provided for in Article 41 bis of the RIRPF allow a property to be considered habitual even if the three-year minimum residence requirement has not been met, but these provisions do not serve to extend the primary residence status beyond the moment the change of residence occurs.
What this means for you
If you plan to sell a property and intend to avoid taxation by reinvesting the proceeds into a new home, you must monitor the timeline. It is not enough for the property to have been your home in the past; the regulations require that the status of primary residence is maintained within the two-year window prior to the sale operation.
If the property ceases to be your primary residence and a period exceeding two years passes before you formalize the sale, you will lose the right to apply the reinvestment exemption, regardless of whether the money is used to purchase a new property.
What you should do
It is essential to verify the exact date on which the change of effective residence occurred and compare it with the date of the sale deed. Before carrying out any operation of this type, it is necessary to assess your particular tax situation to avoid contingencies with the Tax Administration.
Frequently asked questions
- Can I apply the exemption if I sold my house three years after moving?
- No, the regulations require that the property has been the primary residence in the two years prior to the sale.
- What happens if the change of residence was for justified reasons?
- Those reasons may help meet the minimum residence requirement, but they do not extend the two-year period of prior habitual residence before the sale.