Renting & housing

Cédula de Habitabilidad in Spain: What It Is and When You Need It

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

🇪🇸 Read the original in Spanish

Are you thinking about buying, selling, or renting a property in Spain and have heard about the cédula de habitabilidad (occupancy certificate), but are not quite sure what it is or if you actually need it? This administrative document, often ignored until an unexpected issue arises, is the cornerstone that guarantees a property meets the minimum technical, hygienic, and sanitary conditions to be inhabited by people in a dignified and safe manner. Operating in the Spanish real estate market without this valid certificate can not only freeze a sale or prevent you from setting up electricity and water utilities, but it can also lead to severe financial penalties and the invalidation of lease agreements. In this guide prepared by the legal experts at AbogadoAI, we analyze in depth everything you need to know about the cédula de habitabilidad under the current Spanish legal framework.

The cédula de habitabilidad is an official document issued by the competent regional or local administration certifying that a property meets the minimum requirements for habitability. These requirements cover fundamental technical aspects such as minimum usable floor area, ceiling height, layout of spaces (kitchen, bathroom, rooms), ventilation conditions, natural light, and structural soundness.

How habitability fits into Spanish legislation

Although the direct competence to regulate and issue cédulas de habitabilidad has been transferred to the Comunidades Autónomas (Autonomous Communities)—which creates notable geographical differences—this document has a direct impact on state-level legislation:

When is it strictly mandatory to have the cédula de habitabilidad?

You do not always need the certificate in your day-to-day life, but there are three key milestones in the life of a property where its presentation is mandatory by law:

1. Buying or selling a property

When transferring ownership of a residential property, the notary will require the presentation of a valid cédula de habitabilidad to incorporate it into the public deed of sale (escritura pública de compraventa). Although in some Autonomous Communities the parties can expressly agree to waive its presentation (for example, if the buyer is going to carry out a comprehensive renovation of the flat for which a new license will be requested), the general rule is that it is mandatory to ensure buyer protection.

2. Rental contracts

For a lease contract under the LAU to be fully valid and secure, the landlord must provide a copy of the cédula de habitabilidad to the tenant. Furthermore, this document is indispensable for the tenant to complete their empadronamiento (town-hall registration) in many Spanish municipalities.

3. Setting up basic utility connections

Water, electricity, gas, and telecommunications supply companies are prohibited by sector regulations from setting up new supply contracts if the property does not have a valid cédula de habitabilidad. This aims to prevent commercial premises, garages, or industrial warehouses that do not meet the necessary sanitary conditions from being used as homes.

Types of cédula de habitabilidad

Depending on the age and situation of the property, we find three types of this certificate:

The practical step-by-step process to obtain the certificate

If you need to apply for or renew the cédula de habitabilidad of your property, you must follow this administrative procedure:

Step 1: Hire a competent technician

The first step is to contact a qualified professional (architect, technical architect, or building surveyor) who is registered with their professional association (colegiado). This technician is the only person authorized to perform the visual inspection of the property and certify that it complies with regional habitability regulations.

Step 2: The technical inspection of the property

The technician will visit the property and take precise measurements. They will check the usable floor area (which usually must be at least 36 square meters for a one-bedroom home, depending on the region), the clear height of the ceilings (generally a minimum of 2.50 meters), the existence of direct ventilation to the exterior in main rooms, and that bathrooms and kitchens have the mandatory smoke and gas evacuation systems.

Step 3: Drafting and official approval of the Certificado de Habitabilidad

If the property meets the requirements, the technician will draft the Certificado de Habitabilidad (Habitability Certificate). In some regions or professional associations, this document must be officially approved (visado) by the corresponding professional association, which guarantees the technician's authorization.

Step 4: Payment of administrative fees

You must pay the fees corresponding to the autonomous community or the town hall (depending on who holds the authority to issue it). The public fee usually ranges between 10 € and 50 €, depending on the geographic location.

Step 5: Submission of the application

The formal application for the cédula de habitabilidad is submitted to the competent body (usually online or in person at the housing offices of the Autonomous Community or the Town Hall). Along with the application, you must provide:

Step 6: Receiving the certificate

Once the documentation has been reviewed by the administration, the official cédula de habitabilidad will be issued. The resolution period usually varies between 15 and 45 business days.

Deadlines, costs, and key figures you should know

To avoid financial surprises or delays in your real estate transactions, keep these reference figures in Spain very much in mind:

Practical and real-life examples

Example 1: Renting a flat in Barcelona

María owns a flat in Barcelona and decides to rent it to a foreign student for a price of 1,100 € per month. When preparing the documentation, María realizes that the property's cédula de habitabilidad expired two years ago.

If María decides to go ahead and sign the lease agreement without renewing the certificate, she risks the tenant being unable to set up internet or water utilities in their name. Furthermore, if the tenant discovers this situation, they could sue María requesting the termination of the contract due to the unsuitability of the contract's object, forcing María to return the security deposits (fianzas) and, potentially, to compensate them for damages. To avoid this, María invests 130 € in hiring a surveyor and paying the Catalan regional government (Generalitat de Catalunya) fees, obtaining her renewed certificate in 20 days and ensuring the absolute legality of the lease.

Example 2: Buying a penthouse in Madrid

Juan wants to buy a beautiful renovated penthouse in the center of Madrid for 280,000 €. The seller assures him that the flat is "ready to move into." However, during the preliminary due diligence phase, Juan's lawyer requests the cédula de habitabilidad and discovers that the property is administratively registered as a "storage room" (trastero) and has never obtained a change of use to residential, nor does it have a cédula de habitabilidad.

If Juan had signed the purchase agreement without this check, he would have found himself with a premises where the law prohibits living, with the impossibility of setting up residential utility connections, and with a drastic loss in the value of his investment (a storage room is worth up to 60% less than a home in the same area). Thanks to detecting this in time, Juan demands that the seller obtain the change of use and the cédula de habitabilidad before going to the notary, conditioning the signing of the deed on obtaining it.

Mistakes you should avoid

Frequently Asked Questions (FAQ)

Can I complete my empadronamiento in a property that does not have a cédula de habitabilidad?

The possibility of registering on the municipal register (empadronarse) depends exclusively on the ordinances of each Town Hall and the local registry (padrón). Although the local government basic law establishes that the registry must reflect the real address of citizens (even if they live in substandard housing or caves), many town halls require the presentation of the cédula de habitabilidad or a valid rental contract (which in turn requires the certificate) to authorize registration. Not having it can enormously complicate this basic step needed to access local public healthcare or education.

What happens if the technician detects deficiencies in my property during the inspection?

If the architect or surveyor detects that the property does not meet the minimum requirements (for example, lack of ventilation in a bedroom or insufficient ceiling height), they will not be able to issue a favorable Certificado de Habitabilidad. In that case, they will provide you with a deficiency report indicating what renovations or modifications you must carry out to adapt the property to the regulations. Once the issues are resolved, the technician will make a new visit to issue the favorable certificate.

Who must pay the costs of obtaining the certificate, the owner or the tenant/buyer?

In the case of a lease, the cost of obtaining or renewing the cédula de habitabilidad corresponds entirely to the owner (landlord), as it is their legal obligation to deliver the property in habitable conditions. In the case of a sale, unless the parties expressly agree otherwise in the deposit agreement, the cost is also borne by the seller, who must deliver the property free of charges and with all administrative documentation in order for residential use.

Does the cédula de habitabilidad of a newly built property expire?

Yes. Even if it is a brand-new property, the first occupancy license (which serves as the first occupancy certificate) has a limited validity period, which is usually 15 or 20 years depending on the regulations of the corresponding Autonomous Community. Once that period has expired, if you wish to sell or rent the property again, it will be necessary to process the renewal to obtain the second occupancy certificate.

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.