1. Why art. 41 bis RIRPF is the central rule of residential property taxation
When a taxpayer sells their home and wants to apply the reinvestment exemption under article 38 of Law 35/2006 (LIRPF), the first question to answer is: was that property their main residence? Without that condition, no exemption is possible, regardless of whether the full amount is reinvested in another home or whether the two-year period is met. The same question arises in order to determine whether the new acquisition will give rise to the exemption.
The definition of main residence is not in the IRPF Act but in its implementing regulation: article 41 bis of Royal Decree 439/2007, of 30 March, approving the Personal Income Tax Regulation (hereinafter, RIRPF). This rule, regulatory in rank but with transversal application to all tax provisions linked to housing, sets out a precise technical concept that has been interpreted in many administrative rulings and court decisions.
This article analyses art. 41 bis RIRPF in depth: its literal text, regulatory history, three sub-conditions and practical application in each of the tax benefits linked to the main residence. It is the reference article that expands the contents of the blog post on the tax definition of main residence.
2. Legal text of art. 41 bis RIRPF
Article 41 bis of Royal Decree 439/2007, in its current wording, provides (paragraphs 2 and 3 partly summarised):
Art. 41 bis RIRPF — Concept of main residence for purposes of certain exemptions
1. For the purposes of articles 7.t), 33.4.b) and 38 of the Tax Act, the taxpayer's main residence is the building that constitutes their residence for a continuous period of at least three years.
However, the property will be deemed to have had the character of main residence where, despite that period not having elapsed, the taxpayer dies or other circumstances arise that necessarily require a change of domicile, such as marriage, marital separation, work transfer, obtaining a first job, or change of job, or other analogous justified circumstances.
2. For the property to constitute the taxpayer's main residence, it must be inhabited in an actual and permanent manner by the taxpayer in person, within a period of twelve months counted from the date of acquisition or completion of the works.
However, the property does not lose that character on death or other circumstances that necessarily prevent occupation (as in paragraph 1), or where the taxpayer has a home by reason of office or employment and the one acquired is not used, in which case the period runs from the end of that post. If the home was occupied within those twelve months, the three years run from acquisition or completion of the works (summary of the rest of paragraph 2).
3. For articles 33.4.b) and 38 only, the main residence is being transferred if it is so then or was on any day of the two previous years. Since 8 October 2026 (Royal Decree-law 29/2026), also if it was until a person over 65, or with severe or major dependency, moved to a care centre or to the home of a relative up to the third degree because of age or dependency; and, on separation, divorce or annulment, if the spouse who stayed occupies it (summary).
Every term has a precise technical meaning, analysed below.
3. Regulatory history: from Law 44/1978 to the current text
The tax concept of main residence did not originate with the current IRPF Act. Its evolution reflects decades of doctrinal and judicial debate over how tax law should treat the taxpayer's principal place of residence.
3.1. Law 44/1978: first sketches
Law 44/1978, of 8 September, on Personal Income Tax, the first modern Spanish IRPF act, introduced the deduction for investment in the main residence, but did not contain a precise legal definition of "main residence". What constituted a main residence was left to case law and administrative criteria, generating significant legal uncertainty.
The regulations implementing Law 44/1978 (in particular Royal Decree 2384/1981) began to articulate some criteria: the home had to be the taxpayer's actual residence; formal ownership was not enough. But the temporal parameters (how long one had to reside) remained imprecise.
3.2. Law 18/1991 and Royal Decree 1841/1991: the first regulatory definition
Law 18/1991, of 6 June, and especially its implementing regulation, Royal Decree 1841/1991, introduced for the first time a more structured regulatory concept of main residence. The three-year continuous residence period was established as the general requirement, and some grounds excusing breach of that period were expressly recognised (work transfer, marriage, death).
This was a significant advance, although the criteria for what constituted "actual residence" remained contested. The AEAT began to develop audit methodologies based on cross-checking padrón registration data and utility consumption.
3.3. Law 40/1998 and Royal Decree 214/1999: consolidation of the model
Law 40/1998, of 9 December, and Royal Decree 214/1999, of 5 February (the IRPF Regulation), consolidated the regulatory definition model of main residence. Article 51 of RD 214/1999 set out the three fundamental elements that still characterise the definition today: actual residence, twelve-month period to take occupation, and three-year continuity. The essential structure of the concept was fixed.
3.4. Law 35/2006 and Royal Decree 439/2007: the current regime
Law 35/2006, of 28 November, on Personal Income Tax, currently in force, and its implementing regulation, Royal Decree 439/2007, of 30 March, first placed the definition in art. 54 RIRPF, linked to the home deduction. Art. 41 bis was added by Royal Decree 960/2013, with effect from 1 January 2013, when arts. 54 to 57 were repealed; it refers expressly to arts. 7.t), 33.4.b) and 38 LIRPF.
Law 16/2012 abolished the deduction for the acquisition of main residence for acquisitions from 1 January 2013, but those who were already applying it may continue to do so under Transitional Provision 18 of Law 35/2006 (introduced by Law 16/2012). That transitional regime applies art. 68.1 LIRPF and its regulations as worded at 31 December 2012 (art. 54 RIRPF).
| Rule | Year | Main novelty |
|---|---|---|
| Law 44/1978 and RD 2384/1981 | 1978–1981 | First main-residence deduction; no precise legal definition |
| Law 18/1991 and RD 1841/1991 | 1991 | First regulatory definition: 3 years, justified grounds |
| Law 40/1998 and RD 214/1999 | 1998–1999 | Consolidation: 3 cumulative conditions, art. 51 RIRPF |
| Law 35/2006 and RD 439/2007 | 2006–2007 | Current regime; art. 41 bis RIRPF; express cross-reference to arts. 7.t), 33.4.b) and 38 LIRPF |
| Law 16/2012 — TP 18 LIRPF | 2012 | Abolition of the acquisition deduction for new purchases; transitional regime |
4. The three cumulative sub-conditions of art. 41 bis
Art. 41 bis RIRPF lays down three conditions that must coexist for a property to qualify as a main residence. They are cumulative: failure to meet any of them strips the property of its main residence character, unless a justified ground of exception applies.
4.1. First condition: actual and permanent occupation
The property must be "inhabited in an actual and permanent manner by the taxpayer in person". This condition has several technical implications:
Actual occupation. Formal ownership is not enough, nor is padrón registration at the property. The taxpayer must physically and materially reside in the property and devote it to their real home. The DGT has clarified in many rulings that padrón registration is a "relevant indication" but not "conclusive proof" of habitual residence. Conversely, lack of basic consumption (water, electricity) is a strong indication against actual occupation.
Permanent nature. The residence must be stable, not sporadic or holiday-related. A property the taxpayer occupies only in summer or at weekends cannot be considered a main residence even if registered there. For the DGT, residence means effective and permanent use by the taxpayer, which temporary absences do not alter (V2347-25).
By the taxpayer in person. Occupation must be carried out by the very holder of the right that seeks to apply the tax benefit. An owner who lets the property to their children and does not personally reside in it cannot treat that property as their main residence even though it is their property.
The DGT also requires full ownership, even if shared: a bare owner cannot claim the exemption even if living there (V1632-25), and after consolidation three more years are needed (V1618-25). See bare ownership and usufruct.
4.2. Second condition: occupation within 12 months of acquisition
The home must start being inhabited in an actual and permanent manner "within a period of twelve months counted from the date of acquisition or completion of the works". This condition operates at the moment of acquisition and especially affects new-build or renovated homes.
The twelve-month period is a deadline to start occupation, not to consolidate it. It means that the taxpayer must have begun to actually reside in the home within that year. The count starts from the date of the purchase deed (or from the completion-of-works date for a home under construction, evidenced by the completion certificate).
Breach of this condition — for example, where the taxpayer took more than twelve months to move into the acquired home — prevents the property from gaining the main residence character, including the tax consequences of that classification. However, art. 41 bis itself foresees exceptions: the deadline is suspended or does not run where the taxpayer enjoys a main residence by reason of office or employment (company housing), in which case the twelve-month period starts on cessation of that office or employment.
The twelve-month period is also understood as not running where the same "circumstances that necessarily require a change of domicile" mentioned in paragraph 1 apply (death, marriage, work transfer, etc.), which makes it possible to treat as habitual a property that was never actually occupied if the cause was external and unavoidable.
4.3. Third condition: continuous residence for at least 3 years
The best-known and most contested condition: the building must "constitute the [taxpayer's] residence for a continuous period of at least three years". Three aspects deserve separate analysis:
The three-year period. These are three calendar years counted from date to date. If the taxpayer acquires the home on 15 March 2021, the property does not gain main residence status (for the purposes of the sale exemption) until 15 March 2024. A sale before that date does not generate the reinvestment exemption, save for a justified cause.
The "continuous" nature. Residence must be uninterrupted. Normal temporary absences (holidays, business trips, brief hospitalisation) do not break continuity. What can break it are prolonged periods of vacating the property or the establishment of habitual residence elsewhere, even temporarily.
Exceptions to the three-year period. Art. 41 bis itself recognises that the temporal requirement is not absolute. If the taxpayer sold the home before three years for justified reasons (death, marriage, separation, work transfer, first job, change of job "or other analogous reasons"), the property is deemed to have had main residence character anyway. This opening clause towards "other analogous circumstances" has been examined by the DGT in many rulings, such as noise (V1628-25), usually leaving the assessment to the Tax Agency. See full discussion in our article on justified causes for selling before 3 years.
5. Transversal application: same definition for all tax benefits
One of the most important features of art. 41 bis RIRPF is that it sets out a common definition for several exemptions linked to the main residence in IRPF. The provision itself says so by expressly referring to "articles 7.t), 33.4.b) and 38 of the Tax Act".
5.1. Reinvestment exemption (art. 38 LIRPF)
Article 38.1 of Law 35/2006 exempts capital gains arising on the transfer of the main residence where the entire amount obtained is reinvested in the acquisition of a new main residence. The art. 41 bis definition applies at two moments: to classify the home sold as habitual and to classify the home acquired as a new main residence (which must be effectively occupied within twelve months of acquisition or, where applicable, completion of the works).
The regulatory development of this exemption is found in article 41 RIRPF (formal conditions and reinvestment period), which must be read together with art. 41 bis (definition of habitual residence). Both provisions are inseparable: art. 41 governs the conditions of the exemption; art. 41 bis defines its object.
5.2. Over-65s exemption (art. 33.4.b LIRPF)
Article 33.4.b) of Law 35/2006 declares exempt the capital gains arising from the transfer of the main residence of people over 65 years of age or in a state of severe or great dependency. For this exemption, the habitual residence character of the property transferred is also determined under art. 41 bis RIRPF.
The difference from the reinvestment exemption is that no reinvestment is needed. Age or dependency must be proved, and that the home sold is the main residence under art. 41 bis.
5.3. Datio in solutum exemption (art. 33.4.d) LIRPF)
The exemption for giving the home to the bank is not in article 7.t) of Law 35/2006 (that letter deals with income from instruments hedging the interest rate of mortgage loans) but in its article 33.4.d), in force since 2014 and also applicable to earlier years not yet time-barred. It exempts the gain arising when the debtor's or guarantor's main residence is given in payment to cancel debts secured by a mortgage on it, and on judicial or notarial mortgage foreclosures, provided the owner has no other assets or rights sufficient to pay the whole debt. Note that art. 41 bis.1 RIRPF refers to articles 7.t), 33.4.b) and 38, but not to letter d) of article 33.4: in practice the property must be the one you actually lived in.
5.4. Deduction for acquisition of main residence — transitional regime (TP 18)
The repealed deduction for investment in the main residence under article 68.1 LIRPF continues to apply to those who were claiming it before 1 January 2013, under Transitional Provision 18 of Law 35/2006. For this transitional regime, main-residence status is determined under art. 68.1.3 LIRPF and former art. 54 RIRPF, very similar in content to art. 41 bis.
This has important practical implications: a taxpayer who is still claiming the transitional deduction must meet the same habitual residence requirements (actual residence, twelve months from acquisition, three-year continuity). If they cease residing in the home before three years without justified cause, it loses its main residence character and they must repay the deductions claimed with late-payment interest.

6. Distinction from "fiscal address" and "habitual domicile" in other tax contexts
The concept of main residence under art. 41 bis RIRPF is often confused with other apparently similar tax concepts. The differences are substantive and have practical consequences.
6.1. Fiscal address (art. 48 LGT)
Fiscal address is the concept regulated by article 48 of Law 58/2003, the General Tax Law (LGT), and serves the relationship between the taxpayer and the tax authorities (notifications, territorial jurisdiction, etc.). For individuals not carrying on business activities, fiscal address normally coincides with the main residence, but they are legally distinct concepts serving different purposes.
A taxpayer may have their fiscal address in one city (because their address registered with the AEAT is there) but the property in which they actually reside, and therefore their main residence under art. 41 bis, may be elsewhere. This creates an audit risk, but does not affect the substance: habitual residence under art. 41 bis is determined by actual residence, not by the registered fiscal-address data.
6.2. Tax residence (art. 9 LIRPF)
Tax residence in Spain is determined by article 9 of Law 35/2006, which establishes two alternative criteria: presence in Spain for more than 183 days during the calendar year, or the principal nucleus or base of activities or economic interests being located in Spain. This concept determines whether the taxpayer is a tax resident in Spain and therefore subject to IRPF.
Tax residence is not the same as main residence under art. 41 bis. A taxpayer may be a tax resident in Spain (because they spend more than 183 days here) without any specific property meeting all the requirements of art. 41 bis (for example, if they live in rented accommodation and move address frequently). Conversely, someone may have a main residence in Spain in the art. 41 bis sense without being a tax resident if they spend less than 183 days here for work reasons, although other criteria of article 9 could still make them resident.
6.3. Municipal padrón
The municipal padrón is the administrative register of residents of a municipality. Registration in the padrón (empadronamiento) is relevant for the purposes of art. 41 bis, but not decisive. The DGT has reiterated that padrón registration is an indication of habitual residence, but that the authorities may rebut that presumption with contrary evidence (low consumption, second property owned with higher consumption, the taxpayer's own fiscal-address declaration at another address).
Likewise, the absence of padrón registration at the property does not necessarily preclude it being considered a main residence if the taxpayer can evidence actual residence by other means. See the full analysis in our article on actual residence vs. padrón registration.
7. Relation to art. 41 RIRPF: conditions of the reinvestment exemption
Art. 41 RIRPF and art. 41 bis RIRPF are complementary but distinct provisions. While art. 41 bis defines what is a main residence, art. 41 RIRPF sets out the substantive and formal conditions of the reinvestment exemption:
- Reinvestment must take place within two years before or after the transfer (art. 41.3 RIRPF).
- If reinvestment is in a home under construction, payments must be made within the two years and, according to the Supreme Court and the DGT, the works must finish within four years of the first payment treated as reinvested (former art. 55; the current art. 41 does not regulate it).
- The taxpayer must report the gain in the return for the year of the sale and, if the reinvestment is not made that year, state the intention to reinvest (art. 41.3).
- If reinvestment does not take place in time, a supplementary return with late-payment interest must be filed (art. 41.5).
Art. 41 RIRPF thus governs the external conditions of the exemption; art. 41 bis defines its central object. Both must be met for the exemption to be valid.
8. Table of legal sources and access to official texts
| Rule | Relevant provision | BOE link |
|---|---|---|
| Law 35/2006 LIRPF | Arts. 7.t), 33.4.b), 38; TP 18 | BOE-A-2006-20764 |
| RD 439/2007 RIRPF | Arts. 41 and 41 bis | BOE-A-2007-6820 |
| Law 58/2003 LGT | Art. 48 (fiscal address) | BOE-A-2003-23186 |
| DGT V2347-25 | Padrón registration as evidence | V2347-25 |
| DGT V1628-25 | Noise and change of home | V1628-25 |
| DGT V1632-25 | Bare ownership and habitual residence | V1632-25 |
9. Relevant case law on art. 41 bis RIRPF
The Spanish Supreme Court and regional High Courts of Justice have delivered numerous judgments interpreting art. 41 bis and its predecessors. The most relevant include:
- Judgment 553/2023, of 5 May (appeal 7851/2021, ROJ STS 2021/2023): on separation, divorce or annulment, the occupation requirement of art. 41 bis.3 is met for the spouse who had to leave when the spouse who stayed meets it.
- DGT V1628-25: noise does not in principle require a change of home by itself; the disorders it causes might be a necessary circumstance in some cases, to be assessed by the Tax Agency.
Have doubts about your home's habitual residence status?
If you are analysing whether your home meets the requirements of art. 41 bis RIRPF to apply the reinvestment exemption or other tax benefits, we will help you assess your specific situation with up-to-date technical criteria.
Tell us your caseJacob Salama · Tax Advisor · Bar member no. 11,294 ICAMálaga
Regulatory references
- Art. 41 bis RD 439/2007, RIRPF — BOE
- Arts. 38 and 33.4.b) Law 35/2006, LIRPF — BOE
- DGT V2347-25 — Padrón registration as evidence of habitual residence
- DGT V1642-25 — Habitual residence criteria
- DGT V1628-25 — Noise and analogous causes
Article 41 bis in plain terms
What does article 41 bis of the Spanish income tax regulation say?
It defines the main residence as the building where you live for a continuous period of at least three years. You must occupy it in an actual and permanent way, in person, within twelve months of buying it or of the works being completed. Certain circumstances excuse the three years.
Which Spanish tax benefits use the article 41 bis definition?
The reinvestment exemption in article 38 and the exemption for sellers over 65 in article 33.4.b), among others. The definition also matters for the transitional regime of the old purchase deduction, which Law 16/2012 abolished for acquisitions from 1 January 2013.
My employer provides housing, so I have not moved into the home I bought. Does the twelve-month period run?
Not until you leave that post. Where you enjoy a main residence because of your office or employment and the acquired home is not being used, the twelve months start on the date your office or employment ends.
Last reviewed: 8 May 2026. General information on Spanish law in force; it does not replace advice on your specific case.
Further reading
