Renting & housing

Room Rental in Spain: Which Law Applies and Your Rights

By the AbogadoAI editorial team · Updated 18 July 2026 · 12 min read

🇪🇸 Read the original in Spanish

Finding housing in Spain has become one of the greatest economic and social challenges of the last decade, pushing thousands of students, young professionals, and expats to opt for renting a room. However, this dynamic and constantly growing market often operates in a worrying legal grey area, where landlords and tenants alike are unaware of which rules actually govern their relationship. There is a false belief that renting a room grants the same rights as renting an entire flat, or conversely, that the owner can terminate the contract from one day to the next without consequences. In this reference article from AbogadoAI, we analyze the Spanish regulatory framework in depth, reveal exactly which law applies, and outline your real rights and obligations so that you can rent with complete legal certainty.

The LAU Void: Which Law Actually Applies to Room Rentals?

The answer to this question is the fundamental starting point for understanding your rights. Contrary to what happens with the lease of an entire property, *the rental of an individual room is not regulated by the Ley de Arrendamientos Urbanos (LAU) (Urban Leasing Act)*.

The majority jurisprudence of our courts determines that renting a room does not satisfy the tenant's need for permanent housing under the terms of Article 2 of the LAU, since the use of common areas (kitchen, bathroom, living room) is shared and there is no independent habitable building.

Therefore, the reference regulatory framework is as follows:

Fundamental Rights of a Room Tenant

Even if you are not protected by the mandatory 5-year extension of the LAU, the Civil Code and the Spanish Constitution grant you rights that no contract can violate:

1. Right to the Inviolability of the Home

This is one of the most frequently violated rights in practice. Article 18.2 of the Spanish Constitution guarantees the inviolability of the home. Once you rent a room, it legally becomes your "home". The landlord cannot enter your room without your express consent, not even to "inspect" its condition, unless there is a judicial authorization or a flagrant emergency. If they do, they could be committing the crime of allanamiento de morada (trespassing/breaking and entering).

2. Right to Use Common Areas

Unless the contract specifies otherwise in a very restrictive manner, the tenant has the right to the shared and peaceful use of the common areas of the property (kitchen, bathrooms, living room, hallways, and terraces) necessary to guarantee decent habitability.

3. Right to the Return of the Security Deposit

Upon termination of the contract, and after verifying that the room does not show damage caused by misuse, the tenant has the right to recover the fianza (security deposit) paid. The standard period for its return, by analogy and civil practice, is 30 days from the handover of the keys.

4. Right to Demand Habitability Repairs

Under Article 1554.2 of the Civil Code, the landlord is obliged to make "all necessary repairs on the property in order to preserve it in a condition to serve the use for which it has been destined." If the boiler breaks down or there is a general water leak, the owner must pay for it.

Obligations of the Tenant and Rights of the Landlord

Contractual balance requires the tenant to strictly comply with their duties:

Practical Step-by-Step Procedures to Rent a Room Safely

To avoid misunderstandings and lack of legal protection, follow this step-by-step protocol:

  1. Drafting and signing a written contract: Never accept a purely verbal agreement. The contract must clearly identify the parties, the specific room being rented, the price, the payment method, the duration, and the distribution of utility expenses (electricity, water, internet).
  2. Detailed inventory with photographs: Before moving in, make a written inventory of the furniture and appliances in the room and common areas. Attach dated photographs to the contract to prevent them from claiming pre-existing damages when you leave.
  3. *Payment and deposit of the fianza: Hand over the security deposit (usually equivalent to 1 month* of rent) and demand a signed receipt or proof of bank transfer clearly stating the concept "Room rental security deposit".
  4. Empadronamiento: You have the right to complete your empadronamiento (town-hall registration) at the property if it is your habitual residence. The Town Hall will require the signed rental contract and, occasionally, an authorization from the landlord or a utility bill in your name. The landlord cannot contractually forbid your right to register, as it is a civic administrative obligation.

Key Deadlines, Amounts, and Figures You Must Know

In room rentals under the Civil Code, freedom of contract is the rule, but there are standard figures and deadlines in the Spanish market that you should know in order to negotiate:

Practical Real-Life Examples

To understand how these rules apply, let's analyze two common scenarios in the Spanish market:

Example 1: Carlos's temporary contract and security deposit

Carlos, a master's student, rents a room in a shared flat in Madrid. He signs a contract under the Civil Code for a duration of 10 months (from September to June) for a rent of 450 € per month, handing over 450 € as a security deposit. In February, Carlos decides to leave the flat to move in with his partner. Upon reviewing the contract, he notices that no early termination clause was included. The landlord, relying on the Civil Code, has the right to demand the payment of the remaining monthly rents until the end of the contract (1,800 € corresponding to the remaining 4 months), or to keep the security deposit as compensation if they reach an amicable agreement. If they had agreed on a termination clause with 30 days' notice, Carlos would have left without penalty, paying only for the days enjoyed.

Example 2: Marta's landlord's unjustified access

Marta rents a room in Barcelona for 500 € per month. The flat owner, who does not live in the property, comes every week without warning to "clean the common areas" and, during one of those visits, enters Marta's room to check if she has the heating on. Marta, protected by the constitutional right to the inviolability of the home (Article 18.2 CE), can formally demand that the landlord cease her unconsented entries into her private space. If the landlord persists in entering the room without Marta's permission, Marta can file a complaint with the National Police or the Mossos d'Esquadra (Catalan regional police) for an alleged crime of trespassing, regardless of what the rental contract stipulates.

Mistakes You Must Avoid

Frequently Asked Questions (FAQ)

Can the landlord kick me out of the room from one day to the next?

No. Even if the contract is not under the LAU and its duration has ended, the landlord cannot evict you by force, change the lock, or cut off your utilities (which would constitute a crime of coercion under the Criminal Code). To legally evict you if you refuse to leave, the landlord must file a lawsuit for eviction due to precario (occupation without title) or due to expiration of the contract before the civil courts, following the channels of the Ley de Enjuiciamiento Civil (LEC) (Civil Procedure Act).

Who pays the electricity, water, and internet bills in a shared flat?

It depends strictly on what has been agreed in the contract. There are two common methods: a closed rental price that includes all expenses, or the payment of the monthly rent plus a proportional share of the utility bills (which is usually divided equally among the number of occupied rooms). Always demand to see the original bills before transferring your share of the expenses.

Can I terminate the room contract early if there are problems with flatmates?

Bad coexistence with other tenants is not, by law, a ground for contract termination without penalty, unless the landlord is the direct cause of the situation or a specific clause has been included in the contract. If you decide to leave unilaterally for this reason, you risk losing your security deposit or being claimed for the outstanding rents.

Am I entitled to a tax deduction for renting a room on my tax return?

Yes, in many Autonomous Communities in Spain, it is possible to deduct room rental in the regional section of the IRPF (Personal Income Tax), provided that the age, taxable base requirements are met, and the contract is duly formalized in writing, stating the landlord's NIF and having deposited the security deposit in the corresponding regional body if the regulations of that region so require for this modality.

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.