Room Rental in Spain: Which Law Applies and Your Rights
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:
- *The Código Civil (CC) (Civil Code): Specifically, Articles 1542 to 1582 which regulate the contract for the lease of things. The Civil Code gives enormous primacy to the autonomy of the will of the parties. This means that whatever is signed in the room rental contract will have the force of law between the parties (Article 1091* of the Civil Code).
- *The Ley de Arrendamientos Urbanos (LAU):* This will only apply by analogy or supplementarily in those aspects that the parties have expressly agreed upon in the contract, or in very specific cases where a judge determines that, due to the characteristics of the use of the property, its application is appropriate.
- *The Ley 12/2023 por el Derecho a la Vivienda (Housing Right Act): This recent law introduces important limits on rental prices and mandatory extensions, but it does not apply to room rentals* regulated by the Civil Code. This has led many landlords to resort to room rentals to "bypass" the price controls of the Housing Act, a practice that courts are beginning to monitor closely if a fraud of law is detected.
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:
- Punctual payment of rent: This is the primary obligation. It must be carried out within the agreed terms (usually within the first 5 to 7 days of each month).
- Diligent use of the property: The tenant must keep the room and common areas in good condition, taking responsibility for any deterioration caused by their fault or negligence (Article 1563 of the Civil Code).
- Respect for rules of coexistence: Annoying, unhealthy, harmful, or illegal activities cannot be carried out in the property. Failure to comply with the rules of the comunidad de propietarios (community of property owners) can be grounds for terminating the contract.
- Prohibition of subletting: Unless the landlord expressly authorizes it in writing, the tenant of a room cannot, in turn, sublet it to a third party.
Practical Step-by-Step Procedures to Rent a Room Safely
To avoid misunderstandings and lack of legal protection, follow this step-by-step protocol:
- 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).
- 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.
- *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".
- 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:
- Legal security deposit: Unlike the LAU (which mandatorily requires 1 month for housing), under the Civil Code, the deposit is whatever the parties agree upon. The standard and accepted amount is 1 month's rent. Do not agree to hand over more than 2 months as an additional guarantee without a compelling reason.
- Contract duration: There is no mandatory legal extension. If you sign for 6 months, the contract expires exactly at 6 months without the need for prior notice, unless the contract states otherwise or tácita reconducción (tacit renewal) occurs (if you remain for 15 days enjoying the room with the landlord's consent, the contract is understood to be extended for the period agreed for rent payment, for example, month-to-month).
- Notice period for withdrawal: If you want to leave before the contract ends, you must check what was agreed. If nothing is indicated, the Civil Code does not allow you to unilaterally withdraw without compensating the landlord. The standard practice in well-drafted contracts is to set a notice period of 30 days.
- Deadline for returning the deposit: The landlord has a maximum period of 30 days (1 month) from the handover of keys to inspect the room, settle outstanding electricity/water bills, and return the money. After this period, the returned amount accrues late payment interest.
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
- Accepting verbal contracts: A "verbal agreement" is legally valid in Spain, but it is an endless source of problems. Before a court or a security deposit claim, if there is no signed paper, it is impossible to prove the conditions of duration, price, or the distribution of expenses.
- Not demanding a receipt for rent payment: If you pay rent in cash, always demand a receipt signed by the landlord indicating the month paid, the amount, and the date. If you pay by bank transfer, make sure the concept is unambiguous (e.g., "Alquiler habitación 2 - Calle Mayor 15 - Mes de Mayo").
- Believing you have the right to stay for 5 years: Do not confuse renting an entire flat with renting a room. If your room contract indicates that it ends on June 30, you must leave the property on that day. You do not have the right to the mandatory extension that the LAU grants to entire primary residences.
- Allowing "right of free entry" clauses for the landlord: Some landlords include abusive clauses that allow them to enter the room whenever they want "to check its state of preservation." These clauses are null and void as they violate a fundamental constitutional right. Do not accept them.
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
- Room rentals are mainly governed by the Civil Code and the will of the parties reflected in the contract, not by the Ley de Arrendamientos Urbanos (LAU).
- You do not have the right to the mandatory extension of 5 or 7 years that tenants of entire properties have; the contract ends on the exact agreed date.
- Your room is your constitutionally protected home: the landlord is strictly prohibited from entering without your explicit permission.
- Always demand a written contract, a photographic inventory, and signed receipts for every payment (rent and security deposit).
- The security deposit is usually 1 month's rent and must be returned within a maximum of 30 days after handing over the keys if there is no damage to the room.
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 freeThis is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.