Cédula de Habitabilidad in Spain: What It Is and When You Need It
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.
¿What is the cédula de habitabilidad and what is its 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:
- *The Ley de Arrendamientos Urbanos (LAU - Urban Leases Act - Law 29/1994): Article 21.1 of the LAU imposes on the landlord the obligation to carry out all repairs necessary to keep the property in "habitable conditions to serve the agreed use." A property that lacks a cédula de habitabilidad*, or cannot obtain one due to serious deficiencies, cannot legally be considered a "dwelling" subject to an urban lease contract.
- *The Código Civil (Civil Code): In Article 1258, it establishes that contracts bind the parties not only to the performance of what has been expressly agreed, but also to all the consequences which, according to their nature, are in accordance with good faith, usage, and the law. Renting or selling a property as a "dwelling" without it having the legal capacity to be one (proven by the certificate) can lead to the termination of the contract due to breach of performance by the seller or landlord (the doctrine of aliud pro alio*, meaning delivering a different thing than what was agreed).
- *The Ley 12/2023, de 24 de mayo, por el derecho a la vivienda (Law 12/2023, of May 24, on the Right to Housing):* This recent state law emphasizes the need to ensure a decent and adequate housing stock, reinforcing protection for consumers and tenants, who have the right to demand that the property involved in the transaction strictly complies with all administrative habitability conditions.
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:
- Cédula de primera ocupación (First occupancy certificate): Applies to newly built properties or those that have undergone a comprehensive rehabilitation that alters their habitability conditions. It is issued by the town hall after the works are completed (Licencia de Primera Ocupación).
- Cédula de segunda ocupación (Second occupancy certificate): Refers to properties that already exist and have been previously inhabited. This is the one requested when the original certificate has expired and a new sale or rental needs to be carried out.
- Cédula de primera ocupación de rehabilitación (First occupancy certificate for rehabilitation): Specific to cases where a deep renovation intervention has been carried out on a pre-existing building, modifying its interior layout or its structure.
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:
- The Certificado de Habitabilidad signed by the technician.
- A copy of the applicant's DNI/NIE.
- The title deed of the property (escritura de propiedad) or a recent property registry filing (nota simple).
- Proof of payment of the fees.
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:
- Validity period: The cédula de habitabilidad does not last forever. Generally, second occupancy certificates are valid for 15 years (in some communities like Catalonia, those issued from 2013 onwards last for 25 years). Once this period has elapsed, the document expires and must be renewed.
- Total cost of the process: The total cost consists of the technician's fees (open market) and administrative fees. The average price for the technician's certificate ranges between 80 € and 150 €, to which you must add the public fees of between 10 € and 50 €. Therefore, the estimated total cost is between 90 € and 200 €.
- Timeframe to obtain it: From the moment the technician visits the property until the administration issues the final document, the process usually takes 2 to 6 weeks. We advise you to start the process at least 2 months before signing any deposit agreement (contrato de arras) or rental contract.
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
- *Confusing the cédula de habitabilidad with the Certificado de Eficiencia Energética (CEE - Energy Performance Certificate): These are completely different documents. The CEE measures the energy consumption and CO2 emissions of the property, while the cédula de habitabilidad* certifies the health, safety, and minimum dimension conditions required to live in it. Both are mandatory for renting or selling, but they have different purposes.
- *Signing a deposit agreement (contrato de arras) without checking the validity of the certificate: Many buyers sign deposit agreements and hand over large sums of money (usually 10%* of the purchase price) without verifying if the certificate is valid or if the property has structural problems that prevent its renewal. If the certificate is subsequently denied, the transaction can fall through, leading to serious disputes over the return of the money.
- Assuming that all Autonomous Communities require the certificate: Regulations are regional. For example, in the Community of Madrid, the cédula de habitabilidad as such was abolished for second occupancy homes in 2018 (being replaced by other urban planning mechanisms and municipal first occupancy licenses), whereas in Catalonia, the Balearic Islands, or the Valencian Community, it is a very strict control requirement and absolutely mandatory for any transaction. Always find out about the specific rules of your region.
- Renting out a commercial premises fitted out as a "loft" without performing the change of use: A commercial premises renovated with a spectacular design is not legally a dwelling until the Town Hall approves the change of use project and the corresponding cédula de primera ocupación de rehabilitación is issued. Renting it out as a home without this procedure is a serious urban planning infraction.
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
- The cédula de habitabilidad is the official document that certifies that a property meets the minimum technical and hygienic requirements to be used as a home in Spain.
- It is mandatory for buying or selling a property, signing a legal rental contract, and requesting new basic utility connections (electricity, water, and gas).
- Its regulation depends directly on the Autonomous Communities, meaning that validity periods, fees, and the actual requirement of the document vary depending on the location of the property.
- The cost of the procedure usually ranges between 90 € and 200 € (including the technician's fees and public taxes), and the timeframe to obtain it is around 2 to 6 weeks.
- Not having this document in force can lead to the invalidation of contracts, the inability to sign deeds before a notary, and significant administrative sanctions.
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.