WhatsApp and email answered by the lawyer himself.Book a call

Reinvestment Exemption

Counting the three years from the acquisition of ownership

Selling a few weeks before your third anniversary in the home can cost you the whole exemption. The question is not only how long you lived there, but from which date the Spanish Tax Agency starts counting.

By Jacob Salama, Main Home Reinvestment Lawyer · Málaga Bar 11.294Updated 22 November 20264 min read

Article 41 bis of the Spanish Income Tax Regulation (Royal Decree 439/2007) defines the main residence, for the purposes of the reinvestment exemption and the over-65 exemption, as the building that constitutes the taxpayer's residence "durante un plazo continuado de, al menos, tres años". It does not say from which date those three years are counted. That gap has generated many disputes, and a few weeks either way can decide whether a gain of tens of thousands of euros is taxed.

The TEAC rule: from the acquisition of ownership

The Central Economic-Administrative Court (TEAC) answered the question in resolution 00/02456/2015 of 18 September 2018, published in its official DYCTEA database and classified as doctrine. It held that, for the reinvestment exemption, the three years of continuous residence "debe computarse a partir del momento de la adquisición del dominio". Time spent living in the property before you became its owner does not count, even if the home was already your residence.

The resolution follows a criterion that the TEAC had already fixed in an earlier unification resolution, so the Tax Agency applies it consistently.

How ownership passes in Spanish law

To apply the rule you need to know when ownership is acquired. Spanish civil law follows the system of title and delivery. Article 609 of the Civil Code says that ownership is acquired through certain contracts by means of delivery: the contract alone is not enough. For real estate, article 1462 adds that when a sale is made by public deed, signing the deed is equivalent to delivering the property, unless the deed itself states or clearly implies otherwise.

That is why, in the usual Spanish purchase, the deed signed before the notary is both the title and the delivery, and therefore the starting date. Keys are normally handed over on the same day.

Private contracts, deposits and early occupation

Foreign buyers often sign a reservation agreement and then a private purchase contract with a deposit (contrato de arras) months before the deed. Some move in early. Does that time count?

  • Penitential deposit (arras penitenciales, article 1454 of the Civil Code). Either party can walk away, losing the deposit or returning it doubled. The sale is not yet firm, so ownership has not passed and the clock has not started.
  • A firm private sale with delivery of possession. Ownership can pass before the deed if there is a real sale with an agreed price and possession is handed over with the intention of transferring ownership. The burden of proof is on you: you need a written contract with a reliable date and evidence of the handover.
  • Moving in by mere tolerance before the deed. If the seller simply let you in while waiting for completion, that period does not count. The TEAC has also held that time lived under a precario, without legal title, does not count; see precarious occupation.

Inheritance, gifts and new builds

How you acquired the homeUsual starting date
Purchase by public deedDate of the deed (article 1462 of the Civil Code)
Firm private contract with proven deliveryDate of delivery, if you can prove it
InheritanceDate of death, once the inheritance is accepted (articles 657 and 989 of the Civil Code)
GiftDate of the public deed of gift, which article 633 of the Civil Code requires for real estate
Home bought off-plan or builtFrom completion of the works if you move in within the following twelve months; otherwise, from the date of occupation (article 41 bis.2; DGT V1624-25)

Joint ownership and spouses

Where a couple or relatives buy in undivided shares and one of them later acquires the rest, for example on a divorce or the division of the property, the TEAC held in resolution 00/06331/2013 of 10 September 2015, issued to unify criteria, that what matters is the date on which the undivided share was first acquired. The later date on which the remaining share was obtained to complete full ownership is irrelevant for counting the three years. More on this in joint ownership and reinvestment.

When fewer than three years are enough

Article 41 bis.1 treats the home as the main residence even if three years have not passed when the taxpayer dies or when circumstances necessarily require a change of home: marriage, separation, a job transfer, a first job, a change of job, or other similar justified circumstances. The key word is "necessarily". A move you could have avoided is not enough, and you must be able to document the reason. Our page on the three-year residence rule looks at each circumstance.

Practical points for foreign owners

  • Check the date on your escritura, not the date you got the keys or signed the reservation.
  • If you are planning to sell close to the third anniversary, wait until the period is complete, counted day by day from the deed.
  • Remember that residence means actual, permanent occupation. The town hall registration (padrón) helps, but it is not conclusive on its own; keep utility bills and other proof that you lived there.

If you are unsure whether your three years are complete, Jacob Salama can check the dates before you sign, in English or Spanish. Contact us, or read the Spanish article on the computation from acquisition.

Questions about counting the three years

Do the three years start with the reservation or the private contract?

As a rule, no. The TEAC held in resolution 00/02456/2015 of 18 September 2018 that the period runs from the acquisition of ownership, which in a normal Spanish purchase happens when the public deed is signed before a notary.

I lived in the flat as a tenant before buying it. Does that time count?

Under the TEAC criterion, residence before you acquired ownership is not counted towards the three years required for the exemption. Only the period from the acquisition onwards counts.

I inherited the home. When does my period start?

Under the Civil Code, the effects of accepting an inheritance go back to the date of death (articles 657 and 989), so that is the usual starting point, provided you actually lived in the home as your residence from then.

What if I have to sell before three years?

Article 41 bis of the Income Tax Regulation accepts a shorter period when circumstances necessarily require a change of home, such as marriage, separation, a job transfer, a first job or a change of job, or other similar justified reasons.

Jacob Salama

Jacob Salama

Main Home Reinvestment Lawyer · Málaga Bar 11.294

Member of the Málaga Bar (no. 11.294) and managing partner of SALAMA LEGAL, S.L.P. He advises individuals on Spanish income tax and cross-border taxation and reviews the content of this website himself.

About the lawyer (ES) · Book a call

Last reviewed: 22 November 2026. General information on Spanish law in force; it does not replace advice on your specific case.

Further reading

Talk to the lawyer

Before you sign the sale, let a lawyer check your exemption

One wrong date or figure can cost you the whole exemption. We review your case and tell you how much you can save.

Book a callWhatsAppContact form
Book a callWhatsApp