‹ Back to the blog

Renting · · 23 min read

Renting a flat with others in Spain in 2026: one contract for everyone, who is liable for what and what happens if one of you leaves (Madrid and Barcelona)

With one contract for everyone, each of you is liable for the whole rent only if the contract says so, although it usually does; there is a single deposit of one month’s rent, and for someone to take the place of a person who leaves, the landlord’s written consent is needed. What the LAU and the Civil Code say, what to agree and an example with three flatmates.

1 monthDeposit for a residential contract, a single one even if several of you sign (LAU, art. 36.1; BOE, 13-11-2026)
2 monthsMaximum additional guarantee in a main home with a contract of up to 5 years, or 7 if the landlord is a company (LAU, art. 36.5; BOE, 13-11-2026)
6 monthsMinimum time before withdrawing from a main-home contract, with 30 days’ notice (LAU, art. 11.1; BOE, 13-11-2026)
1 monthFrom the key handover, to return the deposit before it accrues statutory interest (LAU, art. 36.4; BOE, 13-11-2026)
9 peopleMaximum per online padrón registration application in Madrid (Madrid City Council, online registration guide, consulted 21-11-2026)
1 to 20 working daysTime for a free change of account holder for electricity or gas (CNMC, consulted 21-11-2026)

Renting a whole flat with other people is a very common way to live in Madrid or Barcelona without spending half your salary on rent. Everyone signs the same contract and you split the rent. The questions come later: one person stops paying, another moves to a different city, someone wants to move a friend into their room. Who answers to the landlord? What happens to the deposit? Does the contract carry on with those who stay?

Using the rules published as at 21 November 2026, we explain what the LAU (Spain’s Urban Leases Act) and the Civil Code say when there are several tenants on one contract, what they do not say and what is worth agreeing. Renting a room from the landlord is covered in “Renting a room in Spain in 2026…”; renting out a room in your own rented flat, in “Subletting or assigning your rental contract in Spain in 2026…”; and leaving a contract you hold on your own, in “Leaving a rented flat before the contract ends in Spain in 2026…”.

Before you start. This article is for information only and is not a substitute for advice from a lawyer. It is up to date as at 21 November 2026 and covers the LAU as published in the BOE (Spain’s Official State Gazette; consolidated text last updated 13 November 2026), the Civil Code, the Catalan deposits law (Law 13/1996), Catalan Law 18/2007 as amended by Law 11/2025, and official information from the Community of Madrid, Madrid and Barcelona city councils and the CNMC (Spain’s energy and competition regulator). The LAU has no specific rules for contracts with several tenants: a great deal depends on what you sign.

The essentials in one minute

  • Two ways of sharing: one contract with all of you, for the whole flat and with a single rent, or one contract per room.
  • With one contract for everyone, the Civil Code does not presume that each of you is liable for the whole rent: the contract has to say so (article 1137). It usually does, and then the landlord can claim the full rent from any of you.
  • There is a single fianza (statutory deposit) of one month’s total rent (LAU, article 36.1), returned at the end of the contract, not each time someone leaves.
  • If you all leave, the right of withdrawal applies: after six months, with 30 days’ notice and no compensation (LAU, article 11).
  • If one person leaves and someone else moves in, the landlord’s written consent is needed (LAU, article 8.1). If one leaves and nobody replaces them, the law gives no clear answer: the safe option is an annex to the contract signed by everyone.
  • Each of you registers on the padrón (municipal register) at the flat. In Barcelona, the stressed-area rent cap applies to the whole flat: more people signing does not allow a higher rent.
  • A written agreement between flatmates organises things among you, but it does not bind the landlord.

One contract for everyone or one contract per room

The first step is to know what you have signed. In a joint contract, each person who signs is a tenant of the whole flat: one rent, one deposit and one contract with several signatures. In a contract per room, each tenant rents their room and the use of the shared areas, with their own rent and deposit; the LAU expressly covers this as the “partial letting of a room or space in the home” (article 2.1).

If only one person signs and they let out the other rooms, that is a sublet, with its own rules. And anyone living in the flat who is not on any contract is not a tenant as far as the landlord is concerned.

AspectOne contract for everyoneOne contract per room
RentOne for the whole flat; how you split it is up to youOne per room; the total cannot exceed the rent for the whole flat (LAU, art. 17.9)
DepositOne month of the total rentOne month of each room’s rent, in each contract
If one person does not payDepends on whether liability is joint and several or several (see below)A matter between that tenant and the landlord
If one person leavesIt affects a contract that belongs to everyone: an agreement with the landlord is advisableThey withdraw from their own contract under article 11 of the LAU
Who chooses the new flatmateYou propose; the landlord has to consentThe landlord

General comparison; what you sign may change some points.

Who pays if someone does not: joint and several or pro rata rent

The big question is whether each person owes only their share or whether anyone may have to pay the lot. The Civil Code distinguishes a mancomunada obligation (several, or pro rata, liability), where each person is liable for their share, and a solidaria obligation (joint and several liability), where each is liable for the whole. And the starting rule is that joint and several liability is not presumed:

This shall only be the case where the obligation expressly so provides, being constituted as joint and several.

Spanish Civil Code, article 1137

“This” means that each debtor must pay the whole amount. If the contract says nothing else, article 1138 provides that the debt is presumed divided “into as many equal parts as there are creditors or debtors”. With three tenants and a rent of €1,500, each would owe €500, unless the contract split it differently.

  • Several (pro rata): the landlord claims each person’s share. If one does not pay, the others do not have to cover them, but, according to Consumer EROSKI, the landlord could seek to terminate the contract for non-payment: those who pay may lose the flat anyway.
  • Joint and several: the landlord can claim the full rent from whoever they choose: “The creditor may proceed against any of the joint and several debtors or against all of them simultaneously” (article 1144).
  • Whoever pays more can get it back: “The one who made the payment may only claim from their co-debtors the share corresponding to each, with interest on the amount advanced” (article 1145).

What does the contract usually say? According to Consumer EROSKI, joint and several liability is the most common in rentals because of the payment guarantee it gives the landlord, and the OCU (Spain’s consumers’ organisation) notes that agreeing that each signatory is liable only for their share is not usual. Look at the scope of the clause: if it refers to “all obligations” under the contract, it is not just the rent; damage or bills you have taken on may also be included.

And if your contract says nothing? The sources disagree. An analysis published in El Derecho (2019) argues, on the basis of articles 1137 and 1138, that without an express agreement there is no joint and several liability; the OCU takes the view that in a single contract with a single rent all tenants are jointly and severally liable unless agreed otherwise. If your contract is silent, do not count on owing only your share, and clarify it in writing with the landlord.

The deposit: a single one for the whole contract

One contract means one deposit: one month’s rent for a residential let (LAU, article 36.1), and that month is the total rent for the flat, not each person’s share. An additional guarantee, in cash or as a bank guarantee, may also be agreed: up to two months in a main home with contracts of up to five years (seven if the landlord is a company) and one month in a temporary let (article 36.5). You cannot be required to take out rent-default insurance.

If each of you pays your share, ask for a receipt that says so or keep the proof of each transfer.

The landlord has to lodge the deposit. In the Community of Madrid, with the Agencia de Vivienda Social (the regional social housing agency) within 30 days of signing; at the end, it is the landlord who recovers it. In Catalonia, with INCASÒL (the Catalan Land Institute) within two months, and within that period the landlord must give the tenant the receipt (Law 13/1996, articles 3.1 and 5). In Madrid, if a tenant changes while the contract remains in force, this has to be reported.

The deposit is returned at the end of the contract, when the keys are handed back; if a month passes without it being returned, the balance accrues statutory interest (LAU, article 36.4). To whom? The contract may set an account or a split; if it says nothing, article 1138 of the Civil Code presumes that a claim held by several creditors is divided into equal parts. As far as the landlord is concerned, the deposit covers whatever is owed at the end, whoever is at fault; who bears each deduction is for you to decide.

If someone leaves mid-contract, the deposit stays lodged; the usual arrangement is that the newcomer pays the person leaving their share. More details in “Rental deposits in Madrid and Barcelona in 2026…”.

If you all leave: withdrawal

If the whole group wants to leave the flat before the contract ends, the right of withdrawal in article 11 of the LAU applies, just as with a single tenant:

The tenant may withdraw from the lease contract once at least six months have elapsed, provided that they notify the landlord at least thirty days in advance.

Urban Leases Act (LAU), article 11.1

Withdrawal made in this way “shall not give rise to any right to compensation for the landlord” (article 11.3, in its current wording). In a temporary let, for someone living away from their usual home for work, studies or another proven reason, you can withdraw after one month from signing with ten days’ notice (article 11.2). Send a single notice signed by everyone, by a method that leaves a record; how to write it is in our article on leaving a flat early.

If one leaves and someone else moves in: the landlord must agree

Most often the others find someone new. In legal terms, the newcomer takes another person’s place in the contract, and that is an assignment:

The tenant may not assign the contract without the landlord’s written consent.

Urban Leases Act (LAU), article 8.1

If the landlord agrees, “the assignee shall be subrogated to the position of the assignor vis-à-vis the landlord”: the newcomer takes on the contract as it stands, with its rent and terms. According to the OCU, landlords usually ask tenants to replace anyone who leaves with another person, and the change is made with an annex to the contract that puts the new tenant in the previous one’s position. The landlord may want to meet the newcomer and can say no.

What you should not do is move someone in without saying so. Article 27.2 of the LAU lists “unauthorised subletting or assignment” among the grounds on which the landlord can terminate the contract, and according to the OCU a tenant leaving without the landlord’s agreement may be treated as an unauthorised assignment. The risk falls on everyone living there.

If one leaves and nobody replaces them

Here the law gives no clear-cut answer: article 11 of the LAU speaks of “the tenant” in the singular and does not say what happens when only one of several leaves. The sources disagree:

  • The analysis published in El Derecho (2019) cites a ruling of the Provincial Court of Seville of 14 June 2013 holding that any co-tenant may leave the lease without prejudice to the landlord’s rights, although “what a co-tenant cannot do is impose the continuation of the lease with themselves alone”. According to that analysis, the contract continues with those who stay, who must tell the landlord they are carrying on.
  • The OCU warns that a tenant cannot simply leave, because the landlord could keep claiming payment from them as a jointly and severally liable party, and that one person leaving may be an unauthorised assignment that brings the lease to an end.
  • Consumer EROSKI explains that if one person leaves, their departure only takes effect if the landlord accepts it and that, without that agreement, they remain bound by the contract.

In practice, it depends on the contract: if it has a clause on one tenant leaving, that clause governs. If not, the safe option is an annex signed by the landlord and by everyone, stating who leaves and from what date, whether they are released from anything owed from then on, whether the contract continues with the others and at what rent, and what happens to their share of the deposit.

Couples have their own rule: if the person leaving is married to the one staying, or they live together “permanently in a relationship of affection analogous to that of spouses”, article 12 of the LAU allows the lease to continue in favour of the one who stays. It does not apply to flatmates.

Table: situation, what the law says and what to agree

SituationWhat the law saysWhat to agree
One person does not pay their shareIf liability is joint and several (because the contract says so), the landlord can claim the full rent from anyone, who then claims their share from the others (Civil Code, arts. 1137, 1144 and 1145). If not, it is presumed divided into equal parts (art. 1138)How the rent is split, who pays it in and what happens if someone is late
The deposit at the startOne month of the total rent; additional guarantee of up to two months in a main home (LAU, art. 36)A receipt showing what each person paid and the account it will be returned to
You all leaveWithdrawal after six months, with 30 days’ notice and no compensation (LAU, art. 11)A notice signed by everyone and a common key handover date
One leaves and someone else moves inAssigning the contract needs the landlord’s written consent (LAU, art. 8.1); without it, it may be grounds for termination (art. 27.2)An annex signed by the landlord, the person leaving, the newcomer and those staying
One leaves and nobody moves inThe LAU does not regulate it for several tenants and the sources disagree: it depends on the contractAn exit clause: notice, whether the person leaving is released and the new rent
Return of the depositOne month from the key handover; after that, statutory interest (LAU, art. 36.4). Without an agreement, equal parts (Civil Code, art. 1138)Which account it is returned to and how deductions are shared
Electricity, water, gas and internetMetered services are paid by the tenant (LAU, art. 20.4); the account holder answers to the supplier (CNMC)Whose name each utility is in and how each bill is split
Rent in a stressed area of BarcelonaThe cap applies to the home: the last rent of the previous five years or, in certain cases, the index (LAU, art. 17.6 and 17.7)Nothing: the number of tenants does not change the maximum

Guidance table based on the rules as at 21-11-2026. What you agree governs wherever the law leaves things open.

Illustrative example: three flatmates and one leaves

A made-up example. Ana, Bruno and Carla sign a five-year main-home contract in March 2026 for €1,500 a month, with a joint and several liability clause. They pay the €1,500 deposit in equal shares. In December 2026, more than six months into the contract, Ana moves to another city and gives two months’ notice.

What happensMonthly rentDepositWhat is signed
A. Dani replaces Ana and the landlord agrees€1,500: €500 each (Bruno, Carla and Dani)The same €1,500; Dani pays Ana her €500An annex signed by all five: Dani takes Ana’s position
B. Nobody moves in and the landlord agrees to two staying€1,500: €750 each, unless another rent is agreedThe same; if they agree, Bruno and Carla pay Ana €250 eachAn annex: Ana leaves and is released from a set date; the contract continues with two
C. Ana leaves without any agreementThe landlord can claim the €1,500 from Bruno or Carla, who can claim Ana’s share from her (Civil Code, art. 1145)Stays lodged; Ana remains on the contractNothing. The riskiest option for all three
D. All three leave€1,500 up to the move-out dateReturned within a month of the key handover: €500 each if there are no deductionsA withdrawal notice signed by all three, at least 30 days in advance

Made-up, illustrative example: in your case, your contract and what you sign govern.

On the day Ana leaves, check her room and the shared areas together with dated photos: if there is a deduction at the end for damage from her time, you will have a basis for sharing it. How to record the state of the home is in “Key handover and inventory at the start of a rental in Spain in 2026…”.

The padrón: everyone registers

Everyone who lives in the flat has to register on the padrón there, and the landlord cannot prevent it, as we explain in “Registering on the padrón at a rented flat in 2026…”.

  • In Madrid, according to the City Council’s guide to registering online, a single application can include up to 9 people, and it is not complete until everyone involved has given their consent.
  • In Barcelona, registering is free and the City Council aims to resolve 90% of requests in under 10 days once the necessary documents have been submitted.
  • Whoever leaves should register at their new address; how to deregister someone who no longer lives there is in our padrón article.

Bills and utilities: whose name and how to split them

The LAU allocates costs just as it does with a single tenant. Metered services such as electricity, water or gas “shall in all cases be borne by the tenant” (article 20.4); with several, by all of them. The tenant only pays community fees if this is agreed in writing with the annual amount (article 20.1), and taxes on the property cannot be imposed on the tenant unless they are the person legally liable for them. Details in “Who pays what in a rental in 2026?…”.

The practical problem is that the supply contract is held by one person, and according to the CNMC the account holder is liable for the debt if bills go unpaid. Some ideas:

  • Spread the accounts: electricity in one name, gas in another, internet in a third.
  • Use a shared account or a fixed date each month to pay each account holder their share.
  • When someone leaves, note the meter readings that day to close their share.
  • If the account holder leaves, change it. According to the CNMC, a change of account holder for electricity or gas is requested by the new holder, is free and takes between 1 and 20 working days.

Rent in Barcelona: the cap is for the whole flat

Barcelona is on the list of stressed residential market areas published in the BOE on 15 March 2024, together with other Catalan municipalities making 140 in total, valid for three years from the day after publication. In these areas, the starting rent of a new residential contract “may not exceed the last rent of a residential lease in force in the last five years”, updated (LAU, article 17.6), except for an increase of up to 10% in specific cases. If the landlord is a gran tenedor (large-scale landlord), which in Catalonia means owning five or more urban residential properties in the area, or if the flat has had no residential contract in the last five years, the cap is the reference index (article 17.7).

What matters for a group: the cap is per home, not per person, and three or four of you signing does not change the maximum rent. Renting by the room does not allow a higher rent either: article 66 ter of Catalan Law 18/2007 provides that in a stressed area the total rent of room contracts in force at the same time in one home “cannot exceed the maximum rent applicable to letting the home as a whole”, and the LAU has a similar rule for all of Spain (article 17.9). How to check the index, in “Renting a flat in Barcelona in 2026…”.

These caps only apply in declared municipalities: before signing, in Madrid or Barcelona, check the Ministry of Housing’s list to see whether yours is declared on the contract date.

An agreement between flatmates (which does not bind the landlord)

An internal agreement is advisable, with one limitation: according to the OCU, agreements between tenants on splitting the rent do not affect the landlord. If the contract is joint and several, the landlord can claim from anyone even if your agreement says each pays a third. What it does do is make clear what you owe one another:

  1. Who has each room and whether any room pays more for being bigger or having its own bathroom.
  2. How much each person contributes to the rent and deposit, into which account and on what date.
  3. How utilities are split and whose name each one is in.
  4. How much notice someone who wants to leave gives (for example, two months) and whether they pay their share until someone else moves in.
  5. How the newcomer is chosen: with everyone’s agreement and always with the landlord’s written consent.
  6. What happens to the leaver’s share of the deposit: whether the newcomer pays it or it is returned at the end of the contract.
  7. How the leaver’s room is checked and who bears each item of damage.

Everyone signs and dates it. If it clashes with the rental contract, the contract prevails as far as the landlord is concerned.

If you are a landlord letting to a group

  • If you want each tenant to be liable for the whole rent, say so expressly in the contract: the Civil Code does not presume joint and several liability (article 1137).
  • Put everyone who will live in the flat and pay rent on the contract, as the OCU recommends, and include a replacement clause: notice, the candidate’s details and a signed annex.
  • Ask for a single deposit of one month’s total rent and lodge it on time; in Madrid, also report any change of tenant.

How we do it at Llavely

At Llavely renting works in reverse. If you are looking for a flat, you do not write to anyone: you create your verified profile once (our team checks your identity and income, and the documents are deleted afterwards) and it is landlords and agencies who invite you to view their home. If you are going to share, each flatmate has their own verified profile: each of you proves who you are just once, without resending papers for every listing.

If you have a flat to let, you list it for free, see verified candidates ranked by affinity and choose whom to invite; the contract is signed on the website and includes the inventory. Llavely does not handle payments or splits between flatmates: rent and deposit are paid directly to the landlord. Renting is open and free in the provinces of Madrid and Barcelona. If you are looking for a flat, create your free profile; if you have a home, list it for free. And if you are thinking of selling it in the Community of Madrid, you can also do that with us for 2.5% + VAT, all included, and request your free valuation.

Frequently asked questions

If we share a flat on one contract, do I only pay my share of the rent?

It depends on the contract. The Civil Code does not presume joint and several liability: it has to be agreed expressly (article 1137), and if not, the debt is presumed divided into equal parts (article 1138). But contracts usually include it, and then the landlord can claim the full rent from anyone, who then claims their share from the others.

Can one tenant leave and the contract continue with the others?

The LAU does not regulate this for several tenants and the sources disagree: one court ruling allows it, while some analyses warn it may be treated as an unauthorised assignment. The safe option is an annex signed by the landlord and everyone stating who leaves, from when, whether they are released and whether the contract continues with the others.

Can I move a new flatmate in without telling the landlord?

No. Someone taking a tenant’s place is an assignment, and the LAU requires the landlord’s written consent (article 8.1). Without it, the landlord can terminate the contract (article 27.2), and the risk falls on everyone.

How is the deposit returned if there were several tenants?

There is a single deposit of one month’s total rent, returned at the end, within a month of the key handover. The contract can say into which account or in what proportion; if it says nothing, equal parts are presumed. If someone leaves earlier, the usual arrangement is for the newcomer to pay them their share.

Which is better, one contract for everyone or one per room?

With one contract for everyone, the group decides who it lives with, but you will usually be liable together for the full rent. With one per room, each person is liable for their own and leaves under article 11 of the LAU, but the landlord chooses who moves in.

In Barcelona, can the landlord charge more if there are more of us?

Not for that reason. In a stressed area the cap applies to the home: the last rent of the previous five years, updated, or the index in certain cases. The number of signatories does not change the maximum, and with rooms the total cannot exceed the maximum rent for the whole flat.

Whose name should the electricity, water and internet be in?

Whoever you like, but according to the CNMC the account holder answers to the supplier for unpaid bills. It is best to spread the accounts and, if the holder leaves, change it: the new holder requests it, it is free and takes 1 to 20 working days.

Is an agreement signed between flatmates any use?

Yes, among yourselves: how much each pays, how bills are split, how much notice a leaver gives and what happens to their deposit. But it does not bind the landlord: if the contract is joint and several, they can claim from anyone.

Sources

  1. Law 29/1994 of 24 November on Urban Leases (LAU), consolidated text: articles 2, 8, 11, 12, 17, 20, 27 and 36 (BOE, last updated 13 November 2026)
  2. Spanish Civil Code, consolidated text: articles 1137 to 1148, on several (pro rata) and joint and several obligations (BOE)
  3. Law 13/1996 of 29 July on the Register and Deposit of Rental Deposits for Urban Properties (Catalonia), consolidated text: articles 3 and 5 (BOE, last amended 13 July 2026)
  4. Law 11/2025 of 29 December on housing and urban planning measures (Catalonia): article 66 ter of Law 18/2007, renting rooms (BOE no. 61, 10 March 2026)
  5. Resolution of 14 March 2024 of the Secretary of State for Housing and Urban Agenda publishing the list of stressed residential market areas declared in the first quarter of 2024 (BOE, 15 March 2024)
  6. Rental deposits: lodging, changes to the contract and return (Community of Madrid, updated 28 October 2026)
  7. Guide to registering on the Padrón through the online office, for residents (Madrid City Council)
  8. Population Services Charter: registering on the municipal register of inhabitants (Barcelona City Council, updated 11 February 2025)
  9. How to change the terms of your electricity or gas contract: change of account holder (CNMC, consumer guide)
  10. Who pays the rent when there are several tenants (OCU, 17 November 2023)
  11. One co-tenant leaving as grounds for terminating the lease (OCU, 27 March 2023)
  12. Consequences of one of the co-signatory tenants leaving the rented property (El Derecho, article published in Revista de Jurisprudencia, 13 August 2019)
  13. Sharing a flat: one person leaves, who pays their share? (Consumer EROSKI, 15 January 2023, revised 25 February 2025)

Your next home is looking for you.

Create your free profile in 5 minutes.