1. What article 41.3 says
The reinvestment must be made, at once or in stages, within two years of the date on which the main residence was transferred. Proceeds used to pay for a new main residence acquired in the two years before the sale also count. Two more rules are in the same article: in sales with deferred price, each instalment must be applied to the new home within the tax year in which it is received; and if the reinvestment is not made in the year of the sale, the return for that year must state the intention to reinvest.
The current article 41 contains no rule on homes under construction.
2. Counting from date to date
The period starts on the date of transfer, normally the public deed, and is counted from date to date (article 5.1 of the Civil Code; DGT V1686-25). A sale on 15 March 2025 can be reinvested until 15 March 2027, or in a home acquired from 15 March 2023.
3. Buying first, selling later
- The new home must be acquired, or the payments made, within the two years before the sale.
- It must become your main residence within twelve months of acquisition or completion of the works.
- If you have already moved, the old home must be sold within two years of ceasing to live there (article 41 bis.3), with the special rules for separated spouses, over-65s and dependent persons in force since 8 October 2026 (Royal Decree-law 29/2026).
- If you bought with a mortgage, what was paid with the loan already counts (judgment 1239/2020 of 1 October, CENDOJ; DGT V0844-24). There is no need to repay it with the sale proceeds.
4. Off-plan and under-construction homes
| Case | Payments | Works | Moving in |
|---|---|---|---|
| Finished home | 2 years | n/a | 12 months from acquisition |
| Off-plan or self-build | 2 years | 4 years from the first reinvested payment | 12 months from completion |
| Renovation | 2 years | no four-year rule (DGT V1204-25) | 12 months from completion |
The four years come from former article 55 of the Regulation, in its wording at 31 December 2012. The Supreme Court applied it to the exemption in judgment 1098/2020, of 23 July (ROJ STS 2698/2020, CENDOJ), and the DGT specifies that they run from the first payment for the construction treated as reinvested (V1148-25, V1639-25, V0703-26), not from the sale. The extensions are those of article 55.3 (developer in insolvency proceedings: four more years) and 55.4 (exceptional circumstances that halt the works: application within thirty days of the breach, treated as refused if not decided in three months).
By order of 12 November 2025 (appeal 7688/2024) the Supreme Court admitted an appeal on whether the four-year limit still applies after the repeal of article 55. It is prudent to meet it meanwhile.

5. No need to own the finished home within two years
In judgment 211/2021, of 17 February (appeal 6309/2019, ROJ STS 663/2021, CENDOJ), the Supreme Court held that it is enough to reinvest the amount within the two years, without having acquired ownership of the new home by delivery and without the construction having finished. Payments made after the two years do not count as reinvested.
6. Plot bought years ago: an example
Plot bought in January 2021 for €60,000. Works start in March 2023. Old home sold in October 2024, amount obtained €180,000. Works paid in 2023-2025: €200,000. House finished and occupied in December 2026. The plot was bought more than two years before the sale, so it does not count; the works paid between October 2022 and October 2026 exceed €180,000 and the exemption is full. The four years from the first reinvested payment (March 2023) end in March 2027: met.
7. If the deadline is missed
The gain, or the part not reinvested, becomes taxable. Article 41.5 requires a supplementary return for the year of the sale, with late-payment interest, filed between the date of the breach and the end of the filing period for the year in which it happens.
Sources: Law 35/2006, article 38 and Royal Decree 439/2007, articles 41 and 41 bis (BOE). Spanish version: el plazo de dos años.
Counting the two years
Is the two-year period counted in tax years?
No. It runs from date to date. If you sold on 15 March 2025, it ends on 15 March 2027.
I bought the new home before selling. Can I claim the exemption?
Yes, if it was acquired within the two years before the sale and becomes your main residence. What you paid for it counts, even with a loan. You do not have to repay the loan with the proceeds.
I was paid in instalments. Do I have two years for each one?
No. Under article 41.3 each instalment must be used for the new home within the tax year in which it is received.
Can the two years be extended?
Article 41 provides no extension, and the DGT refused one even for a renovation that needed special permits (V2618-23).
Last reviewed: 30 November 2026. General information on Spanish law in force; it does not replace advice on your specific case.
Further reading
