Hidden Defects When Buying a Property in Spain: How to Claim
Buying a home is probably the largest financial investment you will make in your lifetime. It is a process full of excitement that can turn into a real nightmare if, after receiving the keys, you discover serious defects that were not visible to the naked eye. In the Spanish real estate market, these imperceptible defects at the time of signing are legally referred to as vicios ocultos (hidden defects), and the law protects the buyer so that they do not have to bear the cost of their repair. As legal experts at AbogadoAI, we have prepared this comprehensive and practical guide so that you know your rights in detail, the legal deadlines to act, and the exact procedure to successfully claim under Spanish law.
What exactly are hidden defects? Definition and legal framework
To be able to claim with full guarantees of success, the first step is to understand what requirements the law demands for a defect to be legally considered a vicio oculto. Not just any imperfection or wear and tear over time falls into this category.
The reference regulatory framework is found in the *Spanish Código Civil (Civil Code), specifically in its Article 1484, which establishes the seller's obligation to answer for the hidden defects of the item sold. For a court to admit the existence of a vicio oculto*, four fundamental requirements must be met simultaneously:
- The damage must predate the sale: It must be proven that the defect already existed in the structure, installations, or elements of the property before the signing of the escritura pública de compraventa (public deed of sale), even if it manifested itself later.
- The defect must be truly hidden: The defect must not be perceptible to the naked eye of an average buyer conducting a diligent inspection.
- It must be serious: The damage must make the property unfit for its intended use (for example, making it uninhabitable) or diminish this use to such an extent that, had the buyer known about it, they would not have acquired it, or would have paid a significantly lower price for it.
- The professional capacity of the buyer: *Article 1484 of the Código Civil*** itself introduces a crucial nuance: if the buyer is an expert or a professional who, by reason of their trade (such as an architect or a builder), should have easily known about the defects, the seller will not be held liable.
The key difference: Second-hand property vs. New build
It is essential to distinguish the type of property acquired, as the applicable legislation and deadlines vary substantially:
- Second-hand properties (between private individuals): These are strictly governed by the Código Civil (warranty for hidden defects).
- New build properties (from developers): These are governed by **Ley 38/1999, de 5 de noviembre, de Ordenación de la Edificación (LOE) (Building Regulation Act). This law establishes much broader warranty periods (1 year for finishing defects, 3 years for habitability defects, and 10 years** for structural defects that compromise the stability of the building).
Legal deadlines: The most critical factor to avoid losing your rights
In Spanish civil law, time is an unforgiving factor. If you detect a vicio oculto in a second-hand property, you must act with extreme speed, as the deadline to initiate legal action is extraordinarily short.
According to *Article 1490 of the Código Civil**, the deadline to file a lawsuit for vicios ocultos* is 6 months.
This deadline has the following specific characteristics that you must keep in mind:
- The 6-month countdown begins from the delivery of the sold item (which generally coincides with the signing of the public deed before a notary and the handover of the keys), and not from when the defect is discovered.
- This is a deadline of caducidad (expiration/forfeiture), not prescripción (statute of limitations). This means that, in principle, it cannot be interrupted by sending letters or a burofax (certified registered mail), so the lawsuit must be filed within that 6-month period to avoid losing the right to action. Nevertheless, Supreme Court jurisprudence allows for interruption in certain cases if a very clear, reliable out-of-court claim is made, but to avoid procedural risks, the golden rule is to file the lawsuit before the 180 days expire.
Avenues for claiming: What can I demand from the seller?
If the existence of the vicio oculto is established within the legal timeframe, *Article 1486 of the Código Civil** grants the buyer the option to choose between two different legal actions (known in legal doctrine as acciones edilicias*):
1. The Acción Estimatoria or "Quanti Minoris"
This consists of requesting a proportional reduction in the purchase price of the property, equivalent to the estimated cost of repairing the damage. This is the most common option when the defect is serious but the buyer wishes to keep the property once repaired.
2. The Acción Redhibitoria
This consists of the termination of the purchase contract. The buyer returns the property to the seller, and the seller is obliged to return the full price paid for it, in addition to the expenses of the contract (notary, land registry, taxes).
- Compensation for damages: If it is proven that the seller acted in mala fe (bad faith)—meaning they were fully aware of the existence of the vicio oculto and deliberately concealed it from the buyer—the buyer may demand, in addition to the termination or price reduction, compensation for damages caused.
Practical examples with real figures
To understand how these actions operate in practice, we will analyze two common scenarios in the Spanish real estate market.
Example 1: The case of structural dampness (Acción Estimatoria)
Let us imagine that Carlos buys a second-hand apartment in Valencia for a price of €180,000. Three months after signing the deed, following the first autumn rains, severe dampness appears on the living room walls, causing the plaster to peel off and mold to grow. Carlos hires a perito judicial (court-appointed expert/technical architect) whose report determines that the origin is water filtration from the subsoil due to a lack of waterproofing in the foundation—a pre-existing defect that the seller covered up with plastic paint before the sales viewings. The repair budget for waterproofing and restoration amounts to €12,500.
- Solution: Carlos files a lawsuit exercising the acción estimatoria within the 6-month deadline. The judge orders the seller to pay Carlos the sum of €12,500 as a reduction in the price so that he can undertake the repair works, while Carlos retains ownership of the property.
Example 2: Aluminosis and risk of collapse (Acción Redhibitoria with Bad Faith)
Sofía acquires a detached villa on the outskirts of Madrid for €320,000. When attempting to carry out a small partition wall renovation, the project architect detects that the floor joists suffer from severe aluminosis (loss of concrete strength), compromising the structural stability of the house and requiring emergency shoring. The cost of structural rehabilitation amounts to €95,000. Furthermore, it is proven through previous emails that the seller had already requested a repair estimate a year earlier, which they rejected due to its high cost, deciding to put the house up for sale without disclosing this pathology.
- Solution: Given the severity of the defect (which makes the house uninhabitable) and the manifest bad faith of the seller, Sofía files an acción redhibitoria combined with a claim for damages. The court declares the termination of the purchase contract: Sofía returns ownership of the house, and the seller is ordered to refund the €320,000 purchase price, the €25,000 that Sofía paid in Impuesto de Transmisiones Patrimoniales (ITP - Property Transfer Tax), notary and registry fees, plus compensation of €6,000 for the costs of emergency rental accommodation that Sofía had to arrange upon having to vacate the property immediately.
Step-by-step guide to claiming for hidden defects
If you find yourself in this situation, you must follow a rigorous protocol to ensure your claim succeeds before the courts of law in accordance with the **Ley de Enjuiciamiento Civil (LEC)** (Civil Procedure Act).
Step 1: Document the damage immediately
The moment you detect the anomaly (leak, crack, electrical failure, etc.), take high-resolution photographs and videos. Do not attempt to repair the damage on your own immediately, as you could destroy the evidence of the defect's origin.
Step 2: Hire a technical expert
This is the most crucial step. You must hire an architect, technical architect, or qualified engineer to draft an informe pericial (expert report). This technical document must certify:
- The exact description of the damage.
- That the origin of the defect predates the date of the sale.
- The detailed and quantified budget for the necessary repair.
Step 3: Send an out-of-court demand (Burofax)
Before resorting to legal action, it is mandatory to attempt an amicable solution. Your lawyer will draft and send a **Burofax con acuse de recibo y certificación de texto (certified registered mail with acknowledgment of receipt and content certification) to the seller. This will detail the defects found, attach a copy of the expert report, and grant a reasonable timeframe (usually 15 days**) for them to propose a solution (taking charge of the repair or reducing the price).
Step 4: File a lawsuit
If the seller ignores the burofax or rejects their liability, a civil lawsuit must be filed before the Juzgados de Primera Instancia (Courts of First Instance) of the place where the property is located.
- If the claim is for an amount exceeding €15,000 (according to the value-based rules of the LEC), the procedure will be conducted through the channels of the Juicio Ordinario (Ordinary Trial).
- The intervention of an Abogado (lawyer) and a Procurador (court representative) is mandatory.
Mistakes you must avoid
Making a procedural error can completely invalidate your right to receive compensation. Avoid the following mistakes at all costs:
- Letting the 6-month deadline pass thinking that out-of-court negotiations "freeze" time: As mentioned, the 6-month deadline is one of caducidad (expiration). If you negotiate for 5 and a half months without success and do not file the lawsuit in time, you will lose your right to claim in court.
- Repairing the defect before the court-appointed expert or the opposing party's expert can examine it: If you fix the dampness or the pipes before a record is made or the expert report is completed, the seller will argue a violation of their right to defense, as they were unable to verify the existence and real severity of the original damage.
- Not having a robust expert report: A renovation quote from a bricklayer or plumber is not an informe pericial. Without the signature of a registered technician (architect or surveyor) determining the pre-existence of the defect, the judge will dismiss the lawsuit.
- Ignoring waiver clauses in the purchase contract: Carefully review your title deed. Sometimes clauses are included where the buyer accepts that the property is acquired "como cuerpo cierto" (as a defined, seen object) or expressly waives the warranty for vicios ocultos. Although these clauses can be void if there is bad faith on the part of the seller, they significantly complicate the judicial process.
Frequently Asked Questions (FAQ)
What happens if the seller claims they did not know the hidden defect existed either?
The seller's ignorance does not exempt them from liability. *Article 1485 of the Código Civil*** is very clear on this matter: the seller is liable to the buyer for the warranty of hidden defects or flaws in the item sold, even if they were unaware of them. The only difference is that, if they were unaware, they will not have to pay additional compensation for damages, but they will still be obliged to reduce the price or terminate the contract.
Can you claim for hidden defects in an inherited or gifted property?
No. The warranty for vicios ocultos is an obligation inherent to contracts of an onerous nature (where there is a payment, such as a sale). In acquisitions by gratuitous title (inheritances or donations), the acquirer cannot claim for hidden defects from the donor or the deceased, unless otherwise agreed or in cases of extreme bad faith bordering on fraud, which is legally very difficult to establish.
Who pays the court costs if I win the claim?
According to the principle of objective defeat regulated in the **Ley de Enjuiciamiento Civil (LEC)**, the party whose claims are entirely rejected in the trial will be ordered to pay the procedural costs. This means that, if the judge fully upholds your lawsuit, the seller must reimburse you for the expenses of your lawyer, court representative, and the fees of the technical expert you hired.
Does the 2023 Housing Law affect claims for hidden defects?
The Ley 12/2023 por el derecho a la vivienda (Housing Right Act) focuses mainly on regulating the rental market, stressed areas, and protection against evictions. It does not modify the vicios ocultos regime of the Civil Code for sales between private individuals. However, it reinforces the duties of information and transparency in real estate transactions, which makes it easier to prove bad faith on the part of the seller if they omitted information that was mandatory to provide during the offering phase of the property.
In summary
- Non-extendable deadline: You have a strict deadline of 6 months from the delivery of the keys to legally claim for hidden defects in second-hand properties.
- Defect requirements: The damage must predate the signing of the sale, be serious (preventing normal use or reducing its value), and must not have been visible during viewings.
- Key evidence: It is absolutely mandatory to hire an architect or qualified technician to draft an informe pericial that proves the origin and cost of the damage.
- Legal options: You can demand a reduction in the price of the property (acción estimatoria) or the return of the house and the refund of all the money invested (acción redhibitoria).
- Seller's bad faith: If it is proven that the seller knew about the defect and hid it, in addition to the repair or termination, you will be entitled to compensation for damages.
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.