
Spain's housing law, the Ley de Vivienda, has applied since 26 May 2023: rent caps, stressed areas, tax breaks for landlords and stronger tenant rights.
After many months of negotiation with the radical left party Podemos, Spain's new housing law (the Ley de Vivienda), drawn up by Pedro Sánchez's government (Spanish Socialist Workers' Party), was finally approved by the Senate on Wednesday 17 May 2023. It came into force on 26 May 2023, the day after its publication in the Boletín Oficial del Estado (BOE).
Its aim? To restore fairness between tenants and landlords and make affordable housing easier to find, by expanding social housing, taxing empty homes, setting up stressed areas and, above all, capping rents.
Note that, despite what many people said at the time, the law is not designed to punish landlords. They do face new constraints, but they also get significant tax advantages.
Some saw it as a disaster. At Alveo Search, we see it as a regulation of the market. The Ley de Vivienda also takes up many rules that already apply to property in other European countries, so it is hardly revolutionary.
Here is what it changes.

The Ley de Vivienda is a law with national scope. It aims to regulate the rental market and help all Spaniards access housing, wherever they live. However, each autonomous community decides whether to apply its measures.
Catalonia was the first region to declare stressed areas, in March 2024, starting with some 140 municipalities including Barcelona. The Basque Country, Navarre, Galicia and Asturias have since done the same for some towns. By July 2026, the Madrid region, Andalusia and the Valencian Community had declared none.
So keep an eye on the news for the city or region where you want to invest or rent. The rules keep changing: two decree-laws of 6 October 2026 (28/2026 and 29/2026) amend several of them and were still awaiting a vote in Congress on 24 October 2026.
Our team of professionals can give you the information you need when you start your property project in Spain. You can contact them directly.
In Spain, the new housing law has applied since 26 May 2023.
The first finding behind the bill: Spain's social housing stock is in a worrying state. “It currently makes up only 1.6% of the total housing stock, or 290,000 homes”, Thomas Rouer, founder of Alveo Search, told us. “That is very little compared with many of its neighbours in Europe”.
So what does the law do to expand the public housing stock?
Another striking point, which also showed the need for a new law: the average age at which young people leave home in Spain is much higher than in the rest of the European Union.
“While most young Europeans leave the family home at around 24.6, young Spaniards have to wait until they are 30”, Thomas Rouer continues.
So the law includes measures to help young people leave the parental home. Expanding social housing is one of them; rent controls, taxes on empty homes and tax cuts for landlords who rent to young people complete the range. We look at them below.
Spain's housing law also defines the share of their income that households should have to spend on decent housing and its running costs.
The law sets an affordability benchmark: the mortgage or rent, plus basic bills, should not as a general rule exceed 30% of household income.
Up to this level, housing counts as affordable. The figure guides public housing policy and the declaration of stressed areas. It sets no legal limit on what a household can spend or borrow.
Banks still apply their own limits when you apply for a mortgage, so check them early if you plan to buy.

To understand the Ley de Vivienda and its impact, you need to look at a distinction it introduced. The law divides landlords into 3 categories:
Under the Ley de Vivienda, Spain's new housing law, each category of landlord has new obligations.
The law's second aim is to limit the cost of housing. To do this, Pedro Sánchez's government capped rent increases across the country and introduced the concept of stressed areas, a concept already used in other European countries, such as France and Germany.
As we have said, the law is national, but each autonomous community decides how to apply it. So declaring a neighbourhood or municipality a stressed area is up to each of the 17 autonomous communities.
However, there are of course criteria to meet:
To declare an area a stressed rental market, at least one of these two conditions must be met:
Good to know: stressed-area status is not permanent. “It is reviewed every 3 years”, says Thomas Rouer, founder of Alveo Search. A declaration lasts 3 years and can then be extended year by year. It is also possible to challenge it. In short, being classed as a stressed area is not set in stone.
If you have questions about stressed areas or any other aspect of Spain's new housing law, our team can answer them in a call.
Since March 2022, to contain the impact of the war in Ukraine, the consumer price index (CPI) has no longer been the benchmark for updating rents. The housing law kept this approach.
Annual rent updates, based on the rent in force, could not exceed 2% in 2023 and 3% in 2024. Since 2025, they must follow the new rent update index (IRAV) published monthly by the INE, Spain's National Statistics Institute, to avoid disproportionate rises.
“Take this example, says Thomas Rouer, a specialist in Spanish property: if a rent was set at €1,000 a month, the updated rent could not exceed €1,030 in 2024.”
Landlords also cannot raise the rent by adding new charges (community fees, rubbish collection tax, etc.)
The rent cap is THE most controversial measure of Spain's new housing law. Landlords call it unfair, and the property sector fears a slowdown in the market.
In stressed areas, rents are controlled more strictly than elsewhere. You could even call it a rent freeze, with some exceptions.
The rent of a new contract cannot exceed the last rent of the previous contract on the same home, after its annual update. Large landlords are also capped by the State reference rent index.
Note that an exceptional increase of up to 10% of the rent can be applied in certain cases, such as:

The “Ley de Vivienda” also includes measures to encourage longer rental contracts, but most landlords are not affected by them.
The main aim here is to protect tenants who are considered “vulnerable”.
The law did not change the following contract terms (a decree-law of October 2026, still awaiting a vote in Congress, would change some of them from 15 November 2026):
The real change concerns tenants in a vulnerable situation:
“Tax incentives”, according to Thomas Rouer, are “the most important point for landlords and potential buyers” in this new housing law.
Major measures were introduced to encourage lower rents or better quality and accessibility of homes.
These measures only apply to landlords who are tax resident in Spain. Non-residents pay non-resident income tax, which does not include these reductions.
Here is what you need to know about the tax side of the Ley de Vivienda:
From 1 January 2024, for contracts signed since 26 May 2023:
Thomas Rouer gives us a telling example:
“If I rent out my property for €1,000 a month and earn €12,000 a year from it, I have two options: either I do not lower the rent, so I declare €6,000 (50% of my income), or I lower the rent by just 5%, earn €600 less over the year, but only have to declare 10% of my earnings, or €1,140.”
Interesting, isn't it? Note that the law requires a cut of more than 5%, and the 90% rate only applies in stressed areas.
If you are looking for information on property tax for non-residents, read our special report on the 5 taxes every non-resident owner must know.
Companies whose main activity is renting out housing and that own more than 8 properties rented out or available for rent for more than 3 years get a 40% tax reduction.
Ever since the bill for the Ley de Vivienda was first tabled, it has caused a lot of debate. The law worries landlords and unsettles property market specialists, who fear it will slow down a market that was already somewhat fragile.
When the law was passed, there were signs of a slowdown, according to the latest data from the INE (Spain's National Statistics Institute). Property sales fell by 6% in March 2023 compared with March 2022.
Here too, Spain follows other European countries, and landlords are not happy about it.
Empty homes can be taxed more heavily to encourage owners to rent them out. Town councils can penalise owners by raising the IBI (Impuesto sobre Bienes Inmuebles, the annual property tax) by up to 150%!
Another part of Spain's 2023 housing law was particularly controversial for months: evictions.
In short: evictions are harder and must be scheduled in advance. Longer procedures delay the process.
It is now mandatory to:
Article 20 of the Tenancy Act (LAU), as amended by the housing law, states that “property management and contract formalisation costs are paid by the landlord”. The aim is to protect tenants, but the measure is seen as another penalty for landlords.
With this law, agencies must convince landlords to entrust them with their property while paying the fees once charged to tenants!
Squatting, known as the okupas phenomenon, is a hot topic in Spain. An estimated 100,000 homes are illegally occupied, and it is true that the new housing law sidesteps the issue. This gap adds to landlords' sense of injustice.
Our advice: if you plan to buy in Spain, work with a professional. They can explain Spain's 2023 housing law and the points that concern you.
You can book a call directly with one of our team's specialists.
If you plan to buy in Catalonia, the Madrid region, the Valencian Community, the Canary Islands, the Balearic Islands or Andalusia, contact our specialist property advisers directly. Our English-speaking advisers know each of these regions inside out.

Thomas Rouer is the founder of Alveo Search and the CEO of the Alveo group. Based in Spain for almost ten years, he develops property services designed for the specific needs of foreign buyers.
His expertise covers every aspect of buying property in Spain: understanding the market, searching for and selecting properties, negotiation, financing, paperwork, tax and securing the purchase process.