Legal Aspects of Buying Property in Spain
Buying or selling a property in Spain

Legal Aspects of Buying Property in Spain

← Back to blog

Essential Legal Prerequisites

This article provides general information about the legal aspects of buying property in Spain. It is not legal advice. Always engage a qualified Spanish property lawyer before signing any contracts or making payments.

NIE — your tax identification number

Every foreign buyer needs an NIE (Número de Identificación de Extranjero) before they can sign the purchase deed, pay taxes, or register utility contracts. Apply in person at a Spanish police station (1–3 weeks processing) or through a Spanish consulate abroad (4–8 weeks). A lawyer or gestoría can handle the application for around €100–150.

Hiring a lawyer

While not legally mandatory, hiring an independent property lawyer is strongly recommended — especially for foreign buyers unfamiliar with Spanish property law. Your lawyer should be independent from both the seller and the estate agent to avoid conflicts of interest.

A property lawyer will handle due diligence, contract review, tax calculations, and can represent you at the notary if you grant them power of attorney. Fees typically range from 1% of the purchase price or €1,500–3,000 fixed.


Due Diligence: What Your Lawyer Should Check

DocumentWhat It RevealsWhere to Obtain It
Nota SimpleLegal owner, boundaries, mortgages, charges, and encumbrances on the propertyRegistro de la Propiedad (Land Registry) — available online
Catastral CertificateOfficial property size, plot boundaries, and cadastral reference numberSede Electrónica del Catastro (online)
Energy Efficiency Certificate (CEE)Energy rating (A to G) — mandatory for all salesCertified energy assessor
Licencia de primera ocupación / Cédula de habitabilidadConfirms the property meets habitability standards and was built with proper permitsLocal town hall (ayuntamiento)
IBI receiptConfirms annual property tax is paid; shows cadastral valueLocal town hall
Community fee certificateConfirms no outstanding community charges (debts transfer to new owner)Building administrator
Urban planning certificate (cédula urbanística)Confirms the property's planning classification and complianceLocal town hall planning department

In Andalusia, be aware of AFO properties (Asimilado Fuera de Ordenación) — buildings constructed without full planning permission that have been retrospectively regularised. While they can be bought and sold, they may have restrictions on extensions or renovations. Your lawyer should explain the implications before you commit.


Property Ownership Types

Spain recognises several ownership structures. The right one depends on your circumstances:

  • Sole ownership (propiedad individual) — the property belongs entirely to one person. Simplest structure.
  • Joint ownership (propiedad en común / copropiedad) — two or more owners each hold a defined percentage share. Common for couples buying together.
  • Community property (gananciales) — for married couples under Spain's default matrimonial regime, property acquired during marriage belongs to both spouses equally.
  • Company ownership (through an SL) — some investors buy through a Spanish limited company. This can offer tax advantages in certain situations but adds administrative costs and complexity. Worth considering only for higher-value portfolios — discuss with a tax advisor.

The Legal Process Step by Step

  1. Reservation contract — a small deposit (€3,000–6,000) takes the property off the market while your lawyer conducts due diligence.
  2. Contrato de Arras (private purchase agreement) — the binding contract with a 10% deposit. Your lawyer must review this before signing. The penalty clauses are important: buyer withdraws = loses deposit; seller withdraws = returns double the deposit.
  3. Escritura Pública (public deed at the notary) — the final signing, where ownership officially transfers. The notary is a neutral public official who verifies identities, reads the deed aloud, and ensures all legal requirements are met.
  4. Land Registry registration — your lawyer or gestoría registers the property in your name at the Registro de la Propiedad. This typically takes 2–4 weeks and is essential for full legal protection.

Power of Attorney for Remote Buyers

If you cannot be present in Spain for the notary signing, you can grant a poder notarial (power of attorney) to your lawyer, authorising them to sign on your behalf. This must be notarised — either at a Spanish notary or at a Spanish consulate in your home country.

The power of attorney can be general (covering all aspects of the purchase) or specific (limited to signing the deed for a particular property). Most lawyers recommend a specific power of attorney to limit risk.


Taxes and Costs Overview

Budget approximately 10–13% of the purchase price for taxes and fees on top of the property price. The exact amount depends on whether you're buying resale (ITP at 6–10%) or new-build (IVA at 10% plus AJD).

For a complete breakdown, see our detailed article on taxes and fees when buying property in Spain. For expenses that often catch buyers off guard, see hidden costs when buying.


Common Legal Pitfalls

  • Not checking the nota simple — buying a property with an undisclosed mortgage, embargo, or legal charge is more common than you'd expect
  • Property debts transferring to you — unpaid IBI, community fees, and utility debts can become your liability
  • Illegal construction — extensions, pools, or entire buildings constructed without permits. Particularly common in rural Andalusia and older coastal developments
  • Relying on the seller's lawyer — their obligation is to the seller, not to you
  • Not checking rental regulations — if you plan to rent, verify that a tourist licence is available before committing

For a broader list of pitfalls specific to foreign buyers, see our article on common mistakes.

Have questions about Costa del Sol?

Or send us a message

Preferred contact method