The habitability certificate is one of those documents nobody looks at until it's missing — and then it becomes a problem that stops a sale or prevents activating electricity. In Catalonia it's mandatory, unlike regions such as Madrid, so if you buy or sell in Barcelona you'll need to know about it.
What the habitability certificate is
The habitability certificate is an official document that proves a dwelling meets the minimum habitability conditions to be used as a residence: minimum surface area, ventilation, basic equipment (bathroom, kitchen), ceiling height, etc. In Catalonia, those conditions are set by Decret 141/2012 and the certificate is issued by the Agència de l'Habitatge de Catalunya.
It doesn't certify the condition or value of the flat: only that it's fit to live in according to the legal minimums.
When is it mandatory?
In Catalonia the certificate is required to:
- Sell a dwelling (handed over to the buyer at the deed, except by express waiver with conditions).
- Rent out a dwelling.
- Activate utilities: water, electricity and gas. Companies require it for a new contract.
The habitability certificate exists in Catalonia, Valencia, Balearic Islands, Murcia, Asturias, Cantabria, La Rioja, Navarre and Extremadura. In Madrid it doesn't exist as such: its function is fulfilled by the first occupation licence. That's why, when buying in Barcelona, you do need to ask for it.
Types and validity
There are three types of certificate, with different validity:
| Type | For what | Validity |
|---|---|---|
| First occupation | New, recently built dwelling | 25 years |
| First occupation of rehabilitation | Dwelling resulting from a rehabilitation or change of use | 25 years |
| Second occupation | Used / existing dwelling | 15 years |
Most second-hand flat sales in Barcelona involve a second occupation certificate, with 15 years validity. When it expires, it must be renewed with a new inspection.
How to get it and what it costs
The process:
- You hire a technician (architect or quantity surveyor) who visits the dwelling and verifies that it meets the habitability conditions.
- The technician issues a habitability certificate.
- It's submitted to the Agència de l'Habitatge de Catalunya (or partner entities), which issues the certificate.
Indicative cost: the technician's certificate ranges around €80–200 depending on the dwelling, plus an administrative fee. The issuance period is usually from a few days to a few weeks.
What happens if you don't have it
- You can't activate new utilities (electricity, water, gas) in your name.
- A sale can be blocked: the notary usually requires it, and the buyer is entitled to receive it.
- You can't legally rent the dwelling.
If the dwelling doesn't have it because it expired, processing a new second-occupation one is usually enough. If it can't get one because it doesn't meet the minimum conditions (e.g. a commercial space or a flat with serious deficiencies), there's an underlying problem to resolve first.
If the property can't get a habitability certificate, ask yourself why. It may be a commercial space sold "as a dwelling" without legally being one, or a flat with serious deficiencies. It's exactly the kind of thing to detect before the deposit agreement.
Certificate vs first occupation licence vs energy certificate
- Habitability certificate: certifies that the dwelling is fit to live in (Catalonia).
- First occupation licence: municipal permit after a new build; in Madrid it serves the same role as the certificate.
- Energy efficiency certificate: measures consumption (A–G label). Mandatory to sell or rent, but says nothing about habitability.
These are three different documents and, in a Barcelona sale, you may need all three.
What to check when buying
Before signing the deposit agreement for a flat in Barcelona:
- Ask for the current certificate (or a commitment to process it before the deed).
- Check the expiry date: if it's expired, someone will have to renew it.
- If the cadastral use is not residential, be suspicious: it may be a commercial space with no possible certificate. Verify it.
Is the flat listed as a dwelling? Check it free
Our analyzer tells you the cadastral use of the property (dwelling, commercial space, etc.), the year, ITE status and more, from the address. A first filter before requesting the certificate. No registration.
Analyze my flat →Frequently asked questions
How long does the habitability certificate last?
The second occupation one (used dwelling) lasts 15 years; the first occupation and rehabilitation ones, 25 years. When it expires it must be renewed with a new inspection.
Who pays for the certificate when selling?
Usually the seller, who must hand it to the buyer. Something else may be agreed, and the buyer can even waive receipt in writing in specific cases, but the norm is for the seller to provide it.
Can I activate electricity without the certificate?
For a new activation, companies require it in Catalonia. If there's already an active contract that's transferred, it may not be needed at that moment, but for a new or reactivated dwelling, yes.
Does the certificate guarantee the flat is in good condition?
No. It only certifies minimum habitability conditions. The building's condition is evaluated by the ITE, and pathologies such as aluminosis require specific inspection.
I'm buying a commercial space to live in, will it have a certificate?
A commercial space doesn't have a habitability certificate while it's a commercial space. To live in it legally a change of use to dwelling is required, which demands meeting habitability and urban planning requirements. Verify the cadastral use before buying.
Editorial notice. This guide compiles the framework of the habitability certificate in Catalonia (Decret 141/2012 and Agència de l'Habitatge de Catalunya regulations) known on the update date (2026). Validity periods, fees and requirements may change due to later regulation. Listing Barcelona is an editorial, independent platform; this guide is informational and doesn't replace official verification or a qualified technician's opinion.