To be a main residence for the Spanish reinvestment exemption, a home must have been your residence for a continuous period of at least three years (article 41 bis of the Income Tax Regulation). A frequent question is whether years spent living in the home before you owned it, without a lease or any other title, can be added. The Central Economic-Administrative Court (TEAC) has said they cannot.
What a precario is
In Spanish civil law, a precario is the occupation of someone else's property without paying rent and without any legal title that supports it. The owner allows it out of tolerance or goodwill and can reclaim the property at any time, without notice or reason. It differs from:
- a lease (arrendamiento), where rent is paid under a contract with legal protection;
- a loan for use (comodato, articles 1740 and following of the Civil Code), which is free but is a contract, normally for a set time or purpose;
- a usufruct, which is a property right to use and enjoy the home.
The TEAC resolution of 24 July 2023
In resolution 00/06133/2022, published in its official DYCTEA database and classified as doctrine, the TEAC stated plainly: "El tiempo de ocupación de la vivienda en precario no se computa" for the three-year period of main residence required by the exemption. The resolution sits alongside the TEAC's earlier doctrine (resolution 00/02456/2015 of 18 September 2018) that the three years are counted from the acquisition of ownership, so that residence before that date does not count.
Taken together, the practical message is simple: what counts is time lived in the home as its owner. Years of living there by tolerance, however real, do not fill the gap.
Where it typically happens
- A child living in the parents' home. The child lives in the flat for years, rent-free and without a contract, then inherits it or buys it and sells two years later. The earlier years do not count.
- Moving in before completion. A buyer signs a deposit contract and the seller lets him move in months before the deed. If that was mere tolerance, the clock starts with the deed. Our page on counting the three years explains when a private contract with delivery can be enough.
- A partner living in the other's home. Someone lives for years in a partner's flat without being an owner, then buys a share and sells soon after. Only the time as owner counts.
- A flat provided by an employer without a contract that the employee later buys.
What may change the analysis
Two situations deserve a closer look:
- Inheritance. Under articles 657 and 989 of the Civil Code, the effects of accepting an inheritance go back to the date of death. An heir who lived in the home from the date of death and later formalised the inheritance can argue that, as owner, the period runs from that date, not from the deed of acceptance.
- A title other than ownership. A lease or a written comodato means you were not a precarist, but under the criterion of the TEAC and the DGT it does not start the period: the three years run from ownership. In V0261-26 the DGT did not count the years lived under a contract granting use before the gift of the home.
How the Tax Agency notices
The facts usually come out of public records. The Land Registry shows when you became owner. The padrón may show you registered at that address years earlier. Utility contracts in your name before the deed confirm it. A sale by a parent or a partner suggests a family arrangement. If you claim three years of residence starting before the deed, expect to be asked under what title you lived there.
If you have already applied the exemption
If you counted precario years and now realise you did not meet the three years, consider a voluntary late return for the year of the sale. Filing before the Tax Agency contacts you means a surcharge, with interest in the longer cases, instead of a penalty of 50 % to 150 % of the unpaid tax. Check first whether another rule saves the exemption, for example a justified change of home under article 41 bis.1 (marriage, separation, job transfer, first job or change of job).
Advice for families planning ahead
- If a child is going to live in a parent's property, remember that those years will not count before the child becomes an owner.
- If you are buying the home you already live in, count three years from the deed before selling.
- Foreign families often hold Spanish homes informally for relatives. The tax consequences on a later sale should be considered before the arrangement starts.
Jacob Salama can review the history of your occupation and the documents you have, in English or Spanish. Contact us, or read the Spanish article on el precario y los tres años.
Questions about precario and the three-year period
What is a precario?
Occupying someone else's property without paying rent and without any legal title, by the owner's mere tolerance. The owner can ask for it back at any time.
I lived in my parents' flat for years and then inherited it. Do those years count?
Under TEAC resolution 00/06133/2022 of 24 July 2023, time occupied as a precario does not count towards the three years. In general, the period starts when you acquire ownership.
Would a written loan-for-use agreement have helped?
Under the current criterion, no. The TEAC (00/02456/2015) counts the three years from ownership, and in V0261-26 the DGT did not count years lived under a contract granting use before the gift of the home.
I already claimed the exemption counting those years. What should I do?
Consider regularising voluntarily with a late return before the Tax Agency contacts you. Late filing surcharges are lower than penalties.
Last reviewed: 22 November 2026. General information on Spanish law in force; it does not replace advice on your specific case.
Further reading
