Renting & housing

Hidden Defects When Buying a Property in Spain: How to Claim

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

🇪🇸 Read the original in Spanish

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.

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:

  1. 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.
  2. The defect must be truly hidden: The defect must not be perceptible to the naked eye of an average buyer conducting a diligent inspection.
  3. 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.
  4. 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:

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:

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).

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.

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.

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:

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.

Mistakes you must avoid

Making a procedural error can completely invalidate your right to receive compensation. Avoid the following mistakes at all costs:

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

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.