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

Main Residence

Main Residence: Tax Definition and Requirements for the Reinvestment Exemption

The reinvestment exemption in art. 38 LIRPF requires both the home sold and the home purchased to be a main residence. This tax concept has crucial nuances that the DGT (Spanish Directorate General of Taxes) and the TEAC (Central Economic-Administrative Tribunal) have progressively refined in numerous resolutions. We explain all the criteria in force, with updated 2025 case law.

By Jacob Salama, Main Home Reinvestment Tax Adviser · Málaga Bar 11.294Updated 1 October 202516 min read
⚖️ Legal notice: This article is for informational purposes only and does not constitute personalised tax or legal advice. Every situation is unique and the rules may change. Consult a qualified professional before making decisions.

1. Legal definition: art. 41 bis of the IRPF Regulation Full article

The reference rule is article 41 bis of Royal Decree 439/2007, of 30 March, approving the Regulation of the Spanish IRPF personal income tax (RIRPF). This provision states:

"The taxpayer's main residence is the building that constitutes their residence for a continuous period of at least three years. However, the home will be deemed to have had the status of main residence when, despite said period not having elapsed, the taxpayer dies or other circumstances arise that necessarily require a change of address, such as marriage, marital separation, work transfer, obtaining a first job, change of job or other duly justified analogous circumstances."

The same article adds that, in order for the home to be considered a main residence, the taxpayer must inhabit it effectively and on a permanent basis, usually within a maximum period of twelve months from the date of acquisition or completion of the works. There are also exceptions to this period when the property could not be inhabited for reasons beyond the taxpayer's control.

The applicable rules are:

  • Art. 38 Law 35/2006 (LIRPF): capital gain exemption for reinvestment.
  • Art. 41 RIRPF: general conditions for the reinvestment exemption.
  • Art. 41 bis RIRPF: definition of main residence.
  • Art. 68.1 LIRPF (deduction for investment in a main residence, now repealed except for the transitional regime): also refers to this concept.
📌 Key point: The "main residence" concept is the same for the reinvestment exemption as for the repealed deduction for acquisition, so the case law and administrative doctrine generated around that deduction are fully transferable to the exemption.

2. The 3-year actual residence requirement Full article

The three-year continuous residence period is the central time-based requirement. However, its practical application raises many doubts:

Continuous or with interruptions?

For the DGT, temporary absences (hospital stays, trips) do not break continuity. What matters is that the home is the habitual centre of life of the taxpayer during the period.

Circumstances that waive the 3-year period

Art. 41 bis RIRPF itself lists causes that allow transfer before completing the 3 years without losing the tax benefit. The legal list is illustrative, not exhaustive (it says "or other duly justified analogous circumstances"), which has allowed it to be broadened by interpretation:

  • Death of the taxpayer
  • Marriage
  • Marital separation
  • Work transfer
  • Obtaining a first job
  • Change of job
  • Other duly justified analogous circumstances
⚠️ Important: The burden of proof for the justified circumstances lies with the taxpayer. It is essential to document them properly (employment contracts, medical certificates, divorce judgments, etc.).

Recent DGT doctrine (2025 rulings)

The DGT has clarified in several 2025 rulings how these three years are counted in special situations, which we analyse in the following sections.

3. Actual residence vs. padrón registration: 2025 DGT doctrine Full article

One of the most frequent mistakes is to confuse padrón registration (municipal census) with actual residence. They are different concepts and the DGT has been categorical on the matter.

Ruling V2347-25 (DGT, 2025)

A couple were to sell the home where they had lived for over thirty years. The taxpayer had been registered for nine months at his mother's home to care for her. The DGT answered that, regardless of where he was registered, the gain will be exempt on reinvestment if the residence requirements are met.

What counts is residence, not registration.

Ruling available at: petete.tributos.hacienda.gob.es — V2347-25

Ruling V1642-25 (DGT, 2025)

The taxpayer bought in May 2022 and registered in January 2023, although she said she had lived there from the start. The DGT recalls that residence is a question of fact, to be proved by any valid means.

Registration alone is not sufficient proof of residence (our summary).

Ruling available at: petete.tributos.hacienda.gob.es — V1642-25

How is actual residence proved?

The DGT accepts any means of proof admitted by law (art. 105 LGT). The most common are:

  • Padrón registration certificate (the most common, although not sufficient on its own)
  • Utility contracts (electricity, water, gas) in the taxpayer's name
  • Evidenced consumption of utilities (the contract alone is not enough if consumption is non-existent)
  • Bank statements showing the home as the address
  • Certificates from institutions (GP, children's school, etc.)
  • Previous tax returns showing that home as the tax address
  • Witness statements from neighbours or community reports
🚨 Frequent risk: The Tax Inspectorate usually cross-checks reported electricity consumption with the home's data. If utilities show very low consumption (typical of an empty or barely used home), it may question actual residence even with a padrón certificate. Keep your bill history.

4. Bare ownership and usufruct: who can apply the exemption? Full article

The situations of bare ownership (owner without use and enjoyment) and usufruct (right to use without full ownership) raise specific doubts about who can apply the reinvestment exemption.

Ruling V1632-25 (DGT, 2025) — Bare ownership

The taxpayer had been bare owner since 2005 of the home where she lived, with the usufruct belonging to her mother, and sold it in 2024.

The DGT concludes that:

  • Main-residence benefits depend on full ownership, even if shared.
  • As a bare owner, she could not claim the reinvestment exemption, although she lived there.

Ruling available at: petete.tributos.hacienda.gob.es — V1632-25

Ruling V1618-25 (DGT, 2025) — Consolidation of full ownership

The taxpayer had been bare owner since 2016, lived there throughout and obtained full ownership in June 2023. Relying on Supreme Court judgment 1858/2018, of 20 December, the DGT concludes:

  • The three years are counted from full ownership; earlier residence does not count.
  • If he sold at the date of the ruling he could not claim the exemption.

Ruling available at: petete.tributos.hacienda.gob.es — V1618-25

💡 Practical tip: before selling, check since when you have had full ownership. Residence as bare owner or usufructuary is not enough for the DGT.

5. Change of address due to noise or other analogous causes Full article

As noted, art. 41 bis RIRPF allows for transfer before the 3 years have elapsed if "other duly justified analogous circumstances" arise. The DGT has analysed whether serious noise or other nuisances constitute such circumstances.

Ruling V1628-25 (DGT, 2025) — Unbearable noise

A couple moved in March 2024 into a new cooperative home and suffered structural noise from the flat above.

For the DGT, those circumstances do not by themselves require a change of home; moving is, in principle, a voluntary decision. The disorders caused by noise might in some cases become a circumstance that forces the change (our summary).

The assessment is for the Tax Agency, in the light of the duration and seriousness of the noise and of a medical diagnosis.

Ruling available at: petete.tributos.hacienda.gob.es — V1628-25

Other analogous causes

The DGT usually leaves the assessment to the Tax Agency. The analogous circumstances invoked to justify a move before the 3 years include:

  • Serious health problems requiring living close to medical centres or family carers
  • Subsequent dilapidation or uninhabitability of the property
  • Situations of gender-based violence
  • Need to care for dependent relatives
  • Structural problems of the building requiring eviction
⚠️ Warning: The DGT analyses each case individually. The success of the claim depends on the quality of the evidence provided. If your situation is special, consult an advisor before filing the return.

6. Home comprising two or more cadastral plots or registered properties Full article

It is common for a single-family home to be made up of several cadastral plots or several separate registered properties (for example, the house plus a segregated garden or garage). The question is what part of the sale price can benefit from the exemption.

Ruling V1631-25 (DGT, 2025) — Home with two plots

The taxpayer, over 65, had lived since 1995 on two adjoining plots joined internally, with different cadastral references: the house on one, and the garage, garden, vegetable plot and pool on the other. The ruling concerns the over-65 exemption of article 33.4.b), but the concept of main residence is the same. The DGT sees no obstacle to treating two adjoining properties joined internally as the main residence, even if they are not joined at the Land Registry, provided you live in them as your main home; both cadastral references must be stated in the return (our summary).

As a matter of prudence, land or premises that do not function as part of the home (farmland, a shop) should not be included in the exemption even if sold together.

Ruling available at: petete.tributos.hacienda.gob.es — V1631-25

📌 Recommendation: A garage or storage room follows the home if it is in the same building or complex, was acquired in the same act and is for your private use (DGT V1821-25); one bought later does not (V1906-25). If there are clearly separate elements (plot, warehouse, premises), assign a specific price and treat their gain separately.

7. Adaptation works and the 12-month deadline to inhabit Full article

Art. 41 bis RIRPF states that the home must be occupied as a main residence within a maximum of 12 months from acquisition or completion of the works. What happens when the property requires prior works to be habitable?

Ruling V1624-25 (DGT, 2025) — Adaptation works delaying occupation

The taxpayer bought a second-hand home in July 2021, carried out adaptation works until November 2021 and moved in in July 2022. The DGT answers that, if he occupied it within the twelve months after the purchase, counted from date to date, the three years run from the purchase; if later, from the date of occupation. In this case of adaptation works the DGT took the purchase date as reference, not the end of the works.

If the home could not be lived in when you bought it, the argument is the exception in art. 41 bis.2 for circumstances that necessarily prevent occupation, with technical evidence.

Ruling available at: petete.tributos.hacienda.gob.es — V1624-25

What counts as "necessary to inhabit"?

There is no fixed regulatory definition. Signs that the home could not be occupied:

  • Lack of basic installations (water, electricity, sewerage)
  • Defective structure requiring reinforcement to be safe
  • Certificate of uninhabitability or ruin
  • New build under construction

The following will hardly be enough in themselves: kitchen or bathroom remodelling, replacement of windows, installation of air conditioning, or aesthetic improvements.

💡 Key tip: If you buy a home to renovate, obtain a technical report confirming that the home is not habitable in its current state. This gives you a basis to argue that something necessarily prevented you from moving in on time (art. 41 bis.2).
Jacob Salama, international tax lawyer, in his office

8. Precarious occupation: time in precarious occupation does not count Full article

Precarious occupation is the situation where a person occupies a property with the owner's tolerance, without legal title or consideration. It is common in family situations (parents allowing their children to live in a flat they own). The question is whether that time counts towards the 3 years of main residence.

TEAC, Resolution 00/06133/2022 (24-07-2023)

The Central Economic-Administrative Tribunal, in a resolution of 24 July 2023, classified in DYCTEA as doctrine, held the following (our summary):

The time during which the home was occupied under precarious occupation is not counted towards the three years of actual residence required for the reinvestment exemption.

Main-residence benefits are tied to full ownership, even if shared: the three years must be lived as owner, so time as a tenant or usufructuary does not count either.

Consult the resolution directly at DYCTEA: TEAC 00/06133/2022 — DYCTEA

Practical implications

This resolution has particular impact on situations such as:

  • Children who lived in their parents' home before inheriting the property (time before the inheritance does not count).
  • Taxpayers who occupied a home "on loan" before formalising the purchase.
  • People who lived in a home provided by the employer without a formal contract.

In all these cases, the 3-year count must start from the date ownership was acquired (the sale deed or the inheritance), in full ownership of at least a share.

🚨 Note: If you sold a home where you had previously lived under precarious occupation and applied the exemption counting that time, the Spanish Tax Agency is likely to challenge your assessment. Review your situation with an advisor.

9. Counting the 3 years: from acquisition of ownership Full article

A key question is when the 3-year period starts running. The TEAC addressed it in a 2018 resolution, classified as doctrine.

TEAC, Resolution 00/02456/2015 (18-09-2018)

The Central Economic-Administrative Tribunal, in a resolution of 18 September 2018, holds:

The three years run from the moment ownership is acquired, and time of residence before the acquisition cannot be counted (our summary).

Consult the resolution directly at DYCTEA: TEAC 00/02456/2015 — DYCTEA

When is ownership acquired?

Under the Spanish system, acquisition of ownership requires title and mode (art. 609 Civil Code):

  • Title: sale contract (public deed or private document).
  • Mode: delivery or handover of the asset.

In practice, delivery normally occurs upon the signing of the public deed before a notary and the handover of the keys. Therefore, the 3-year period runs from the date of the public sale deed, not from the signing of the private earnest money agreement.

Exception: private contract with possession

The DGT applies the rule of title plus delivery (V1530-26): if the private contract effected actual delivery of possession (the buyer received the keys and started residing there), the period may count from that date, even if there was no public deed. But this is a contentious issue and requires solid evidence.

📌 Practical rule: For greater certainty, count the 3 years from the date of the public sale deed (or acceptance of inheritance, if acquired by inheritance). Never from the earnest money agreement or the private contract.

10. Joint ownership: the date of the first share Full article

It is common for a home to be in joint ownership between several persons (siblings who inherit, a spouse under a separation of property regime, an ex-partner). The transfer of an undivided share raises the question of how the exemption applies.

TEAC, Resolution 00/06331/2013 (10-09-2015) — Unification of Criteria

The TEAC, in a unification of criteria resolution of 10 September 2015, holds:

Where the taxpayer acquired an undivided share and has lived in the home without interruption since then, the three years run from the acquisition of that share; the date on which the rest was acquired (division of the joint property, dissolution of the marital community and similar cases) is irrelevant (our summary).

Consult the resolution directly at DYCTEA: TEAC 00/06331/2013 — DYCTEA

Implications in inheritance and divorce

This criterion is highly relevant in situations of partial inheritance (the taxpayer first inherits half the home and later acquires the other half) or in divorces with share allocation. In these cases:

  • If you already held a share in full ownership and lived there, the 3 years run from that first share, also for the part acquired later (TEAC 00/06331/2013; DGT V1778-22).
  • If you owned no share before the inheritance or purchase, the time lived there earlier does not count (DGT V0741-23).
  • Each share may have its own acquisition value and its own capital gain.
💡 Example: Two siblings inherit a home 50/50 in 2019 and both live in it. In 2021, one of them buys the other's share. If they sell in 2024: the three years run from 2019 for the whole home, also for the share bought in 2021 (TEAC 00/06331/2013).

11. Requirements of the destination home (reinvestment)

Not only the home sold must be the main residence: the home acquired with the reinvestment must also be the taxpayer's main residence. Art. 41 bis RIRPF sets the same criteria.

Deadline to turn it into a main residence

Art. 41 bis RIRPF requires the home acquired to be inhabited within a maximum of 12 months from acquisition or completion of the works. This requirement is independent from the 2-year period to carry out the reinvestment.

Ruling V1623-25 (DGT, 2025) — Home under construction as destination

A couple sold in March 2025 and had been building their new home since 2023 with borrowed money. Following the Supreme Court (judgment 1098/2020), the DGT requires two conditions:

  • The amount obtained must be applied to the construction within the two years before or after the sale. Payments outside that window do not count; payments financed with a loan do.
  • The works must finish within four years of the first payment for the construction treated as reinvested.

The home must then be occupied within twelve months of completion of the works (art. 41 bis.2).

Ruling available at: petete.tributos.hacienda.gob.es — V1623-25

What if it is not inhabited?

If the home acquired is not inhabited as a main residence within the indicated period (due to unjustified circumstances), the exemption applied must be regularised: the taxpayer must file a supplementary return and pay the tax due plus the corresponding default interest.

🚨 Important: If you purchased the new home and anticipate that you will not be able to inhabit it within 12 months (due to works, an existing tenant who is not leaving, etc.), consult an advisor before applying the exemption. There may be ways to justify the delay, but they require proper documentation.

12. Conclusion and practical recommendations

The concept of main residence is far more complex than it first appears. A summary of the most important criteria:

Issue Current criterion Source
Padrón registration vs. residence Actual residence prevails; padrón is an indication, not full proof DGT V2347-25, V1642-25
Bare ownership Full ownership is required; the 3-year count begins when it is consolidated DGT V1632-25
Serious noise/nuisances In principle voluntary; may be argued with evidence DGT V1628-25
Two plots/registered properties Two adjoining plots joined internally may be one main residence DGT V1631-25
Adaptation works In a second-hand home with adaptation works, the 12 months were counted from the purchase DGT V1624-25
Precarious occupation Does not count for the 3 years; full ownership required TEAC 00/06133/2022
3-year count From acquisition of ownership (public deed) TEAC 00/02456/2015
Joint ownership From the first share, if you have lived there since TEAC 00/06331/2013 (UC)

Final recommendations

  1. Document actual residence with utility bills, padrón certificates, tax address and any evidence available.
  2. Count the 3 years from the public deed, not from the private contract.
  3. If you had a period of precarious occupation, exclude that time from the count.
  4. If you sold before 3 years, identify whether any justified circumstance applies and document it.
  5. If the home has separate elements (plot, premises), break out the price so as not to contaminate the exemption.
  6. Consult an advisor before filing the return if you have any doubts about your situation.
📞 Need to analyse your specific case? Every situation is unique. If you have doubts about whether your home meets the "main residence" requirements or how to apply the exemption correctly, we recommend consulting a tax advisor.

Tell us your case

Official sources and reference legislation

When Spain treats a home as your main residence

Do hospital stays or trips interrupt the three years of residence?

Temporary absences, such as hospital stays or trips, do not break continuity. What matters is that the home remains the habitual centre of your life during the period.

How do I show the Tax Agency that I lived in my home?

You can use any evidence admitted by law: utility contracts with real consumption, bank statements, a doctor's or school certificate, earlier returns showing that tax address, and witness statements. A padrón certificate is common but not sufficient on its own, especially if consumption is very low.

From what date do I count the three years in Spain?

From the acquisition of ownership, normally the public deed, according to the TEAC in ruling 00/02456/2015. The private contract does not start the clock, and time spent in the home by mere tolerance of the owner does not count either.

My home came with an extra plot. Does everything qualify?

Not automatically. Separate elements such as a plot or premises may fall outside the main residence, so the price should be broken down between them. That keeps the exempt part clear and avoids putting the whole exemption in dispute.

Jacob Salama

Jacob Salama

Main Home Reinvestment Tax Adviser · 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: 1 October 2025. 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