Housing Law: Everything You Need to Know

July 28, 2026

Few regulations have sparked as much debate in recent years as the Housing Law. Since 2023, landlords, tenants, agencies, and investors have been adapting to a framework that has changed the rules of renting, created new legal entities, and provided administrations with tools that did not previously exist. Furthermore, it has done so through a process of constant evolution: new indices, declarations of stressed areas, and tax surcharges that are already being applied in several cities.

The problem is that much of what is written about this law is outdated or simply incorrect. It conflates expired caps, figures that have changed, and obligations that depend on the location of the property.

¿Quieres libertad financiera? Descarga la guía gratuita del paso a paso

What is the Housing Law

The Housing Law is the national regulation that governs the right to access decent housing and establishes a set of measures to intervene in the rental market, curb prices in the most stressed areas, and protect the most vulnerable groups. Its official name is Law 12/2023 of May 24 on the right to housing, and it is the first national law in the democratic era to address this matter comprehensively.

In practice, it functions as an umbrella: it sets general principles and limits, but leaves significant leeway for autonomous communities and municipalities to decide how and where to apply the strictest measures. Therefore, it is important to understand from the outset that its effects are not uniform across Spain. What applies in Barcelona does not necessarily apply in Madrid or Seville.

Why it was created

The origin of the regulation lies in a problem that had been festering for years: rental prices were rising far above wages, especially in large cities and tourist areas. Many households were already spending more than 30% of their income on rent, a threshold considered an indicator of excessive financial burden.

With that starting point, the legislature set several objectives: to increase the supply of affordable housing, curb excessive rent increases, mobilize vacant apartments into the market, and provide greater protection to young people, families, and individuals in difficult situations. The underlying idea is to intervene in a market that, according to the Government's approach, was not self-regulating.

It should be noted that this approach does not enjoy consensus. Critical sectors, including landlord associations and a large part of the real estate industry, argue that price caps reduce supply and increase rental costs in the medium term. Proponents of the law respond that without caps, the market excludes households with fewer resources. It is an ongoing debate with data that both sides interpret differently.

When it came into force

The law was published in the Official State Gazette on May 25, 2023, and came into force the following day, May 26, 2023. That date has become a key reference point, as it marks a legal boundary: contracts signed before that date are governed by the previous rules, while those signed after are subject to the new conditions, especially regarding rent adjustments.

However, coming into force did not mean that all measures began to function simultaneously. Some required further development. The clearest case is the reference index for updating rents, which was not operational until early 2025. Others, such as the declaration of stressed areas, depend on each autonomous community taking the initiative.

Who it affects

The short answer is: almost everyone involved in housing, although in very different ways.

  • Tenants, who gain protection against rent hikes and eviction situations, but also face a market with less supply in some areas.
  • Private landlords, whose ability to increase rent is limited and who face new obligations, although they also gain access to tax incentives.
  • Large-scale landlords, who are subject to the most stringent restrictions.
  • Real estate agencies, which are no longer permitted to charge fees to the tenant.
  • Investors, who must recalculate the profitability of their operations within this new framework.

Stressed areas

If there is one concept that must be clearly understood to navigate this law, it is the "stressed residential market area." This is the key that triggers the most restrictive measures regarding rental prices. Without the declaration of a stressed area, many of the limits discussed in the media simply do not apply.

Why it changes the rules of renting

When an administration declares an area as stressed, general rules no longer apply in that territory, and specific caps come into play. This is when limitations on the price of new contracts, extraordinary extensions, and many of the tax incentives designed to lower rents are introduced.

Outside these areas, the landlord retains much more leeway. They can set the rent with greater freedom in a new contract and are not subject to the reference price indices that apply within stressed environments. Therefore, determining whether a property is in a stressed area is the first thing to check before signing any contract.

The declaration is not permanent: it is made for an initial period of three years, renewable annually if the situation of stress persists. It is a measure intended to act while the problem lasts, not indefinitely.

Requirements for an area to be considered "stressed"

For an area to be declared stressed, it must meet at least one of these two criteria:

Criterio Qué mide
Esfuerzo económico El coste del alquiler o de la hipoteca, más los gastos y suministros básicos, supera el 30% de la renta media de los hogares de la zona.
Subida de precios El precio de compra o alquiler ha crecido, en los cinco años anteriores, más de tres puntos porcentuales por encima del IPC de la comunidad autónoma.

Meeting just one of these is sufficient for the competent administration to initiate the procedure. The declaration is the responsibility of the autonomous communities, which must justify it with a report and follow the steps established in the law itself. It is not automatic, nor is it decided by the State: it depends on the political will of each territory, which explains why the map is so uneven.

Large-scale landlord

The definition of a large-scale landlord is probably the most discussed aspect of the entire regulation, and also one of the most misunderstood. It is a category that imposes additional obligations on those who own a high number of properties.

Generally, a large property owner is defined as any individual or legal entity that owns more than ten urban residential properties, or a constructed area exceeding 1,500 square meters for residential use, excluding garages and storage units from the calculation. It is important to note that the law does not distinguish between primary residences and other properties: all are included in the total.

Large property owners in stressed vs. non-stressed areas

This is where many people become confused. The ten-property threshold is the general rule applied throughout the country. However, within a stressed area, the situation changes.

Situación Umbral para ser gran tenedor
Territorio general (no tensionado) Más de 10 inmuebles residenciales o más de 1.500 m² construidos.
Zona tensionada (si la CCAA lo motiva) 5 o más inmuebles residenciales situados en esa misma zona.

The difference is significant. In a stressed area, an owner with five apartments may be classified as a large property owner, with all the associated obligations, whereas outside those areas, one would need to exceed ten. It is also important to note a detail that often goes unnoticed: the five properties must be located within the same stressed area, rather than spread across different parts of the country.

The controversial threshold reduction

The possibility of lowering the threshold from ten to five properties has been one of the most debated aspects of the law. Proponents argue it is a necessary tool to regulate those who concentrate significant housing stock in areas under the most pressure. Critics argue that it unfairly and disproportionately groups small investors who own five apartments with investment funds holding hundreds of properties.

A common mistake is assuming that the reduction applies automatically in any stressed area. This is not the case: the autonomous community must explicitly justify the reduction in the supporting report that accompanies the declaration. If it fails to do so, the general threshold of ten remains in effect.

Rent price caps

This brings us to one of the most critical sections for both tenants and landlords: how much rent can be increased and what the limits are. The answer depends on three factors: the type of landlord, whether the property is in a stressed area, and the date the contract was signed.

What you can and cannot increase

It is helpful to distinguish between two different scenarios: signing a new contract and the annual update of an existing contract.

For new contracts within stressed areas, the rules are stricter. If the landlord is a small-scale owner, the rent for the new contract generally cannot exceed the updated rent of the previous contract. If the landlord is a large property owner, or if the property has not been rented in the last five years, the rent is subject to the reference price index system, which sets a maximum based on the characteristics of the property and the building.

For the annual update of an existing contract, the limit applies to the percentage increase. This is where the major change of recent years comes into play.

Goodbye to the CPI

For decades, annual rent increases were linked to the Consumer Price Index (CPI). This benchmark worked well when inflation was low, but it became problematic during the price surges of 2022 and 2023, which threatened to cause rents to skyrocket.

As a transitional measure, caps were implemented: a 2% limit during 2023 and 3% during 2024, affecting small property owners and large holders alike. These caps had an expiration date and ended at the close of 2024. As of 2025, the CPI is no longer the default reference index for contracts signed after the law came into effect. It continues to be published and may still be agreed upon, but it is no longer applied automatically.

The new reference index

In its place, the IRAV—the Housing Rental Reference Index—was introduced. It is prepared by the National Statistics Institute and published monthly. It serves as the maximum update limit for primary residence rental contracts signed after May 26, 2023, that include an annual review clause.

Its primary advantage for the tenant lies in how it is calculated. The IRAV is defined as the lowest value among three metrics: the annual variation of the CPI, the underlying CPI, and an adjusted average rate that smooths out peaks. By always selecting the lowest figure, it remains below the CPI during periods of high inflation, preventing the full impact of price increases from being passed on to the rent.

Throughout 2026, the IRAV has remained within a contained range, around 2.4%–2.5% monthly, compared to a CPI that has been significantly higher. Since the value changes every month, the correct reference is always the one corresponding to the month of the contract anniversary, which can be consulted on the INE website.

For contracts signed before May 26, 2023, the situation is different: they continue to be updated using the CPI or the index originally agreed upon, unless both parties agree otherwise.

Practical example of how much your rent can increase

Let’s look at the numbers, as that is the clearest way to understand it. Imagine a rent of 1,000 euros per month:

  • Contract signed after May 26, 2023. The IRAV applies. With an index of 2.4%, the rent increases to 1,024 euros, which is approximately 288 euros more per year.
  • Contract signed before May 26, 2023. The CPI applies. If that CPI were 3.2%, the rent would increase to 1,032 euros, approximately 384 euros more per year.

The difference between both cases, nearly 100 euros annually in this example, clearly demonstrates the cushioning effect of the new index. Furthermore, there is a rule that is sometimes overlooked: if the contract does not expressly include an update clause, the rent cannot be increased during its term, neither by the IRAV nor the CPI.

Who pays the real estate agency now?

This change is one of the most welcome for tenants and, curiously, one that generated the least media attention. Since the law came into effect, real estate management and contract formalization expenses are borne by the landlord. In other words, the agency commission is paid by the owner, not the tenant.

Previously, it was common for the tenant to pay the equivalent of one month's rent in agency fees upon signing. That practice is no longer legal for primary residence rentals. Furthermore, anyone who has paid those fees for a contract signed after May 2023 can claim a refund, as this is an inalienable right: any clause that shifts this cost to the tenant is void, even if it has been signed.

For the owner, this represents an additional expense that should be factored into profitability calculations. For the tenant, it is a significant saving at the start of the contract.

Tax benefits for property owners

It is not all about limitations. The law includes a range of tax incentives designed to make renting worthwhile for property owners, especially when done at more affordable prices. These benefits are structured as reductions in net rental income for personal income tax purposes and are focused on contracts for properties located in high-demand areas.

  • 90% reduction when a new contract is signed in a high-demand area and the rent is reduced by at least 5% compared to the previous contract. This is the most significant incentive and directly rewards those who lower their prices.
  • 70% reduction for the first rental of a property in a high-demand area when the tenant is between 18 and 35 years old, or when it is rented to a public administration or a non-profit entity for social purposes.
  • 60% reduction if the property has undergone renovation in the two years prior to signing the contract.
  • 50% reduction in all other cases. This is the general default reduction and replaces the previous 60% reduction that existed before the law.

It is worth running the numbers before ruling out affordable renting: in many cases, a 90% reduction in the taxable base more than compensates for a 5% reduction in rent. This is a calculation that every property owner should make with their advisor, as the result depends on the marginal tax rate and their specific situation.

¿Quieres libertad financiera? Descarga la guía gratuita del paso a paso

Property tax surcharge

Another key tool of the law seeks to bring vacant properties onto the market through fiscal measures: by allowing municipalities to apply a surcharge on the property tax (IBI) for unoccupied homes.

What is considered a "vacant property"

The regulation defines a residential property as permanently unoccupied if it has been unused for more than two years without a justified reason. The nuance regarding a justified reason is important, as the law provides for numerous exceptions. For example, properties left vacant due to work or educational relocation, health or dependency issues, seasonal second homes, or those in the process of being sold, rented, renovated, or involved in litigation are not penalized.

Who is subject to this surcharge

The surcharge is not intended for the occasional owner of a vacant apartment due to specific circumstances, but rather for those who accumulate multiple unoccupied properties. In fact, the highest bracket is reserved for owners with a large number of properties in the same municipality. The philosophy is clear: to pressure banks, investment funds, and large property owners to mobilize their idle real estate assets.

One detail worth remembering: this is not an automatically applied national measure. Each municipality decides whether to incorporate it into its tax ordinances. Without such a municipal decision, the surcharge does not exist in that territory.

How much can property tax (IBI) increase

The surcharge is applied on a sliding scale, based on how long the property has been vacant and the number of unoccupied properties held by the owner:

Situación Recargo sobre la cuota del IBI
Vivienda desocupada más de 2 años Hasta el 50%
Vivienda desocupada más de 3 años Hasta el 100%
Propietario con cuatro o más viviendas y varias desocupadas en el mismo municipio Hasta el 150%

Before the law, the maximum margin available to municipalities was 50%. The new regulation significantly raises this ceiling to 150%, which can substantially increase the tax bill.

Which municipalities are already applying it

Since the decision is municipal, the landscape is uneven and changes as local governments update their ordinances. Cities such as Barcelona, Valencia, and San Sebastián are among those that already apply it or have studied it in greater detail. In many other municipalities, especially smaller ones, the surcharge has not yet been adopted. It is best to consult the relevant municipal tax ordinance directly, as this is where it is specified whether the surcharge exists and under what terms.

How to avoid it

The most direct way to avoid the surcharge is also the one the law intends: putting the property to use. Renting it out, including long-term leases or through affordable housing programs, removes the property from the unoccupied category. It is also possible to provide documentation proving a justified reason for the vacancy. And, of course, one should check whether the municipality applies the surcharge, as it remains inactive in a large part of the country.

Protections for vulnerable tenants

One of the core pillars of the law is to strengthen the protection of individuals and families in vulnerable situations against the loss of their homes. The goal is not to prevent evictions entirely, but to introduce safeguards and timeframes that prevent anyone from being left on the street without an alternative.

Suspension periods

When an eviction proceeding affects a vulnerable household, the law strengthens communication between the court and social services. The latter must be informed so they can assess the case and seek a housing solution. While that alternative is being arranged, the law provides for the extension of eviction suspension periods, ensuring that the process does not occur immediately when minors, the elderly, or individuals in particularly difficult circumstances are involved.

Mandatory conciliation

The most significant development in this area concerns large property holders. When the party seeking eviction is a large property holder and the proceeding affects vulnerable individuals, it must be proven that a prior conciliation or mediation process has been attempted. Without this step, the lawsuit cannot proceed. This is a way to ensure that all avenues for an agreement are exhausted before an eviction takes place, marking a clear distinction from small property owners, to whom this requirement does not apply.

Contract extensions

The duration of rental contracts is another area where the law provides stability for the tenant, in line with reforms initiated in previous years.

How long you can stay

The tenant has the right to remain in the property for a guaranteed minimum period, even if the contract is signed for a shorter duration:

  • Mandatory extension: up to 5 years if the landlord is an individual, or up to 7 years if the landlord is a legal entity (a company).
  • Tacit renewal: once this period has expired, the contract is automatically extended for up to 3 more years, unless the landlord provides four months' notice (or the tenant provides two months' notice).
  • Extraordinary extension for vulnerability: upon the expiration of the contract, a tenant in a verified situation of vulnerability may request a one-year extension. When the landlord is a large property holder, accepting this is mandatory.
  • Extraordinary extension in stressed areas: in these areas, the law allows for additional extensions of up to three years under certain circumstances.

All these rights are non-waivable. If a contract includes a clause requiring the tenant to waive them, that clause is void, even if it has been signed.

Housing Law in 2026

Three years after its approval, the law has transitioned from a text on paper to a reality with concrete effects, although these vary significantly by region.

What has changed

The most established change is the update index. The IRAV has become the standard reference for adjusting rents for primary residences signed after the law, effectively replacing the CPI in almost all such contracts. In parallel, property tax (IBI) surcharges on vacant homes have moved from being a theoretical possibility to being implemented in several cities.

Regarding stressed areas, the map remains very limited. Catalonia has been the most active region in designating these areas, with hundreds of municipalities affected, while other regions have chosen not to apply this measure within their territories. This disparity means that, in practice, whether one lives under the strictest regime of the law or almost outside of it depends largely on one's postal code.

Projections

Looking ahead to the coming years, all signs point to the IRAV remaining the central reference for rents, with values dependent on inflation trends. The debate over whether to expand stressed areas will remain closely tied to the political leanings of each autonomous community, making it likely that the map will continue to be heterogeneous. Furthermore, the pressure to mobilize vacant housing, along with the push for protected and affordable housing, will continue to drive the agenda. As with any developing regulation, it is advisable to periodically review its status, as details may change from one year to the next.

How it affects you depending on who you are

The same law is experienced very differently depending on your role in the market.

Property owner

If you own one or a few properties, the law limits rent increases via the IRAV, shifts agency costs to you, and, if your property is in a stressed area, restricts the rent you can set. In return, you gain access to significant tax deductions if you rent at capped prices. The key is to run the numbers: in many cases, the incentives outweigh the restrictions.

Tenant

You are, to a large extent, the beneficiary of these protections: more controlled rent increases, no agency fees, greater stability in contract duration, and additional guarantees if you are in a vulnerable situation. The downside is that, in some areas, the rental supply has decreased, which can make finding a home more difficult despite the price caps.

Investor or agency

For investors, the law requires a recalculation of profitability: less room to raise rents, the potential classification as a large property holder, and new costs and obligations. For agencies, a historically significant source of income—the commission charged to the tenant—has disappeared, pushing the sector to rethink its business model toward property management services for owners.

Frequently Asked Questions (FAQs)

When did the Housing Law come into effect in Spain?

Law 12/2023 of May 24 was published in the Official State Gazette (BOE) on May 25, 2023, and came into effect the following day, May 26, 2023. This date marks the boundary between contracts subject to the old rules and those falling under the new framework.

How is a stressed residential market area declared?

The declaration is the responsibility of the competent autonomous community, which must justify that the territory meets at least one of two legal criteria: that the cost of rent or mortgage exceeds 30% of the average household income, or that prices have risen more than three percentage points above the regional CPI over the last five years. The declaration is made for three years and is renewable.

How many properties must one own to be considered a "large property holder"?

Generally, more than ten residential properties or a built area of more than 1,500 square meters for residential use. In stressed areas, when justified by the autonomous community, this threshold may be lowered to five or more properties located within that same area.

How much can rent increase in 2026 under the new law?

For primary residence contracts signed after the law, the annual increase is limited by the IRAV published monthly by the INE. Throughout 2026, it has hovered around 2.4%–2.5%. Contracts signed before May 2023 continue to be updated using the CPI or the agreed-upon index. If the contract does not contain an update clause, the rent cannot be increased.

Does the Housing Law provide protection against evictions?

It does not prohibit them, but it introduces safeguards. It requires notifying social services of proceedings, allows for the extension of eviction suspension periods when vulnerable households are involved, and, if the plaintiff is a large property holder, requires proof of a prior attempt at conciliation or mediation before proceeding.

Investing in real estate

With Domoblock, you can invest in real estate starting from just €200, without banks or complicated paperwork, and without the need to manage tenants, contracts, or evictions. We digitize real properties in strategic areas, allowing you to participate in their appreciation through tokens in a 100% online process backed by blockchain technology. Our team of specialists analyzes every investment to ensure its profitability potential before it reaches you. Investing with vision, technology, and professional support is that simple.

Conclusion

The Housing Law has reshaped the rental market in Spain with a clear objective: to curb prices and protect tenants, especially the most vulnerable. Along the way, it has introduced concepts such as "stressed areas" and "large property holders," replaced the CPI with the IRAV, and provided municipalities with tax tools to mobilize vacant housing.

Its actual impact, however, depends heavily on the region and individual circumstances. What represents greater stability and savings for a tenant implies more limitations for a landlord to offset with incentives, and forces investors to recalculate their figures. In such a regulated and changing environment, understanding the rules of the game and regularly reviewing their evolution is the best tool for making sound decisions, whether you are looking for a home or seeking to make your assets profitable.

¿Quieres libertad financiera? Descarga la guía gratuita del paso a paso

Sergio Navarro

Expert in blockchain, investments, and personal finance

Share on your social media

Do you like what you're reading?

Subscribe to our Newsletter

Do you like what you're reading?

Subscribe to our newsletter!

En curso

Madrid | Tres cantos

Calera, 3

DOMO-TCA-1
Flipping building

Funded

100%

598.506,15 €

Target

598.506,15 €

Rentabilidad estimada:
14,03%
Duración estimada
8 meses
Chat with other investors and ask your questions in our Telegram group

Related articles