Is there a legal limit on how many people can live in a Barcelona flat?

Yes. Catalonia caps occupancy by bedroom, not by the flat as a whole. Article 4.1 of Decree 141/2012, the regulation on minimum habitability conditions, sets the number of people a home can hold according to how many bedrooms it has and how big each one is. That figure is the overcrowding threshold the Catalan housing law relies on.

Maximum occupants per bedroom in Catalonia (Decree 141/2012, art 4.1)
Bedroom size (usable floor area)People who can sleep there
At least 5 m²1
At least 8 m²2
At least 12 m²3
Studio with no separate bedroom, only shared living space2

The rule applies across Catalonia, so it covers Barcelona, L'Hospitalet, Badalona and every other town in the province. It's the same whether you rent the whole flat with your family or share it with friends.

Article 4 of Decret 141/2012, de 30 d'octubre, on minimum habitability conditions and the cèdula d'habitabilitat.

How do you work out the maximum for a specific flat?

Measure each bedroom, apply the table, then add the results. Living rooms, kitchens and hallways don't count towards the total, even if someone sleeps on the sofa.

Take a typical Eixample three-bedroom: one bedroom of 13 m², one of 9 m² and a small one of 6 m². That's 3 + 2 + 1, so six people at most. Swap the 13 m² room for one of 11 m² and the total falls to five, because 11 m² is still in the two-person band.

Where do the measurements come from? Ask the agent for the floor plan and the cèdula d'habitabilitat, the habitability certificate every rented home in Catalonia needs. The cèdula records the usable floor area, and some older certificates also print a number of occupants. If the room sizes aren't on paper, bring a tape measure to the viewing. Our guide to the cèdula d'habitabilitat explains how to check that a flat has one.

What counts as overcrowding (sobreocupació) under Catalan law?

A flat is overcrowded when more people live there than its services and the Catalan space standards allow. That's the definition in article 3.e of Llei 18/2007, the Catalan right-to-housing law, and the standard it points to is the bedroom table above.

The law treats overcrowding as an "anomalous use" of a home (article 41), alongside flats left permanently empty. Article 43 tells the Generalitat and town halls to run inspection programmes and to act on whoever is responsible for the situation. Article 43.6 adds that, as far as their resources allow, councils should plan how to house the people affected.

The fines are aimed at the people who profit from it, not at a family that ends up in a cramped flat. Promoting overcrowding is a serious infringement under article 124.1.h, with a fine of €9,001 to €90,000 (article 118.2). If whoever promotes it also puts people's safety at risk, article 123.1.i makes it very serious, and the fine rises to between €90,001 and €900,000 (article 118.1).

Overcrowding isn't rare. Eurostat counted 16.9% of people in the EU living in overcrowded homes in 2024, although its definition counts rooms per household rather than Catalonia's bedroom sizes.

Arts 3.e, 41, 43, 118, 123 and 124 of Llei 18/2007 del dret a l'habitatge (BOE, consolidated). EU figure: Eurostat, Living conditions in Europe: housing.

Does the limit apply to families?

Not in the same way. Article 3.e of Llei 18/2007 excludes households linked by family ties from the definition of overcrowding, as long as the extra occupancy doesn't cause obvious breaches of health and hygiene conditions or serious problems with the neighbours. Article 4.1 of Decree 141/2012 repeats the same exception.

So a couple who have a baby in a one-bedroom flat aren't breaking the law, and nor is a family that takes in a grandparent. The exception has limits, though. It covers relatives living together, not a group of unrelated flatmates. And it disappears if the flat becomes unhygienic or the building starts complaining about noise and wear. Your contract can still matter, which is the next question.

Can your landlord limit who lives in the flat?

Partly. Article 4.2 of Spain's rental law (LAU) lets landlord and tenant agree the terms of a residential lease within the limits of the law, so many Barcelona contracts name the people who'll live there or set a maximum number of occupants. Read that clause before you sign, and if you already know someone else will move in later, ask for it to be written in.

What the landlord can enforce depends on what's actually happening:

  • Subletting or handing over the contract. Article 8 of the LAU only allows partial subletting, and only with the landlord's prior written consent. Unauthorised subletting or assignment is a ground for ending the contract under article 27.2.c. If your new flatmate pays you rent, that can look like subletting.
  • A partner or relative moving in. Living with family or a partner who doesn't pay you rent isn't the same as subletting, but if the contract has an occupancy clause and you ignore it, you could end up in a dispute. If you're in that position, check with a professional before relying on any general rule.
  • Nuisance. Article 27.2.e lets the landlord end the lease if the home is used for activities that are a nuisance, unhealthy, harmful, dangerous or unlawful. Ten people in a two-bedroom flat with neighbours complaining is the kind of case where that comes up.

The simplest protection is to tell the agent at the start how many people will live in the flat and who they are. A household the landlord agreed to in writing is much harder to challenge later. Our guide to subletting rules in Barcelona covers the rent-paying flatmate case in more detail.

Arts 4.2, 8 and 27.2 of the Ley de Arrendamientos Urbanos (BOE).

Can everyone in the flat register on the padrón?

Everyone who actually lives there should be on the padró, the town hall register of residents, and you need it for healthcare, schools and most residency paperwork. Registering doesn't grant permission to live in a flat, though, and the register is one of the ways overcrowding gets spotted.

Article 4.2 of Decree 141/2012 lets town halls ask the Catalan Housing Agency for a home's cèdula data when new registrations suggest it may be overcrowded. Article 43.4 of Llei 18/2007 also lets an owner who suspects overcrowding ask the authorities for help, and in that check the administration can see who's registered at the address. Barcelona's town hall has also been removing people from the register when they can't show they really live at the address they gave.

In practice: register everyone who lives with you, and make sure the number fits the flat. Our guide to empadronamiento for renters walks through the appointment and the documents.

What about renting a room in a shared flat?

The same bedroom sizes apply. A room of 6 m² is for one person, even if the advert says it's fine for a couple. If you're offered a "double room" that measures 7 m², the flat is over the threshold the moment two of you move in, and you're the ones living with the consequences.

Warning signs of a pis pastera, the local name for a flat packed far beyond its capacity: bunk beds in the living room, rent charged per bed, more names on the letterbox than bedrooms, and a landlord who won't give you a written contract or let you register. The person organising it is the one the law fines, but the tenants are the ones who lose their home when the council steps in. Our room rental contract guide explains which law covers renting a single room.

What should you check before you sign?

  • The cèdula d'habitabilitat. Ask for it. No cèdula means you can't be sure of the floor area, and it's a warning sign in its own right.
  • Room sizes. Get the floor plan or measure each bedroom, then add up the maximum using the table above.
  • Your full household. Count everyone who'll live there, including anyone arriving in the next year: a partner, a baby, a parent.
  • The occupancy clause. If the contract names occupants or caps the number, make sure it matches your plans. Ask for any change in writing before you sign.
  • Padrón. Confirm that everyone will be able to register at the address.

If the numbers don't fit, keep looking for a flat with another bedroom rather than hoping nobody checks. You can set up a Llavai search with your real bedroom count from the start.

How Llavai helps

Llavai watches the main Barcelona rental portals, scores every new agency listing against your brief (budget, neighbourhoods, bedrooms) and puts the best ones first, with the agent's number one tap away, so you can call before the queue forms. Set the bedroom count your household actually needs and flats that are too small won't make the cut. When you call, ask for the floor plan and the cèdula, and say how many people will live there. Set up your search in a couple of minutes. If you'd rather not make the call yourself, Julia can make it in Spanish on the Pro plan.