Civil law & contracts

Buying property in Spain as a foreigner: the legal steps

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

Purchasing a home in Spain is a dream for thousands of expats, retirees, and international investors every year. The country’s exceptional climate, rich culture, and diverse real estate market make it one of the most attractive destinations in Europe. However, navigating the Spanish property market can feel like walking through a bureaucratic labyrinth if you are unfamiliar with the local legal framework. In Spain, the legal system relies heavily on written contracts, notary intervention, and public registries, meaning that a single oversight can lead to costly delays or financial loss. This comprehensive guide, prepared by AbogadoAI, breaks down the entire legal process of buying property in Spain as a foreigner, ensuring your investment is secure and fully compliant with Spanish law.

To buy property safely in Spain, you must understand the legal rules that govern transactions. Property acquisitions are primarily regulated by the Spanish Civil Code (Código Civil), which dictates how contracts are formed, the obligations of buyers and sellers, and the transfer of ownership.

Under Article 1,258 of the Civil Code, contracts are binding from the moment consent is given, obliging both parties not only to fulfill what is expressly agreed upon but also to accept all consequences that, by their nature, conform to good faith, custom, and the law. This means that even preliminary agreements can carry heavy legal weight.

Furthermore, Article 1,462 of the Civil Code establishes that the execution of a public deed (escritura pública) before a Spanish notary is equivalent to the delivery of the property (known as traditio), officially transferring ownership from the seller to the buyer.

While the Civil Code governs the substantive contract law, the Civil Procedure Act (Ley de Enjuiciamiento Civil - Ley 1/2000) provides the judicial framework if disputes arise, such as breach of contract, eviction of illegal occupants, or enforcement of mortgage guarantees. Additionally, the Mortgage Law (Ley Hipotecaria) regulates the Land Registry (Registro de la Propiedad), which is the ultimate authority on who owns a property and whether it is free of debts.

Buying a property in Spain involves a series of structured administrative and legal steps. Skipping any of these steps can jeopardize your deposit or leave you liable for the seller’s outstanding debts.

Step 1: Obtain your NIE (Número de Identidad de Extranjero)

The Foreigner Identification Number (NIE) is your personal, unique, and exclusive tax identification number. It is legally mandatory for any financial transaction in Spain, including buying property, opening a bank account, or arranging utilities.

Step 2: Open a Spanish Bank Account

While not strictly a legal requirement to own property, opening a local bank account is practically essential. You will need it to transfer the purchase funds, pay the notary fees, and set up direct debits for local taxes and utility bills.

Before signing any contract or paying a deposit, you must verify the legal status of the property. This is the most critical phase of the purchase.

Step 4: Sign the Reservation Agreement (Documento de Reserva)

Once you find a property you like, the estate agent will ask you to sign a reservation agreement. This takes the property off the market for a limited time.

Step 5: Sign the Arras Agreement (Contrato de Arras)

The contrato de arras is a private, legally binding contract between the buyer and the seller. It outlines the final purchase price, the deadline for completion, and the consequences if either party backs out.

Step 6: Sign the Public Deed of Sale (Escritura Pública)

The final transfer of ownership takes place before a Spanish notary (notario). The notary does not represent either party; their job is to verify that the transaction complies with Spanish law, confirm the identities of the buyers and sellers, read the deed aloud, and witness the payment.

Step 7: Pay Taxes and Register the Property

After signing the deed, you have a strict deadline of 30 business days to pay the relevant purchase taxes and submit the deed to the Land Registry.

Taxes and Costs: A Concrete Example

Buying a property in Spain involves significant transaction costs. As a general rule, you should budget between 10% and 15% of the purchase price on top of the property cost to cover taxes, notary fees, registry fees, and legal expenses.

The taxes you pay depend on whether the property is brand new or resale:

Concrete Example: Sophia Buys a Resale Apartment in Valencia

To illustrate how these costs accumulate, let us look at a realistic scenario.

Sophia, a British expat, decides to buy a resale apartment in the city of Valencia for €200,000. She does not require a mortgage.

| Cost Item | Percentage / Calculation | Amount | | :--- | :--- | :--- | | Purchase Price | Agreed price of the property | €200,000 | | Property Transfer Tax (ITP) | 10% (Valencia's regional rate for resale) | €20,000 | | Notary Fees | Fixed by law scale (approx. 0.1% to 0.5%) | €850 | | Land Registry Fees | Fixed by law scale (approx. 60% of notary fee) | €500 | | Legal Fees | Independent lawyer (typically 1% + VAT) | €2,420 | | Gestoría Fees | Administrative agency to handle tax filings | €350 | | Total Additional Costs | Approximately 12.06% of purchase price | €24,120 | | Total Capital Required | Purchase price + transaction costs | €224,120 |

In this example, Sophia must ensure she has €224,120 available in her Spanish bank account before the day of completion to cover both the property and the associated legal and tax obligations.

Common Mistakes to Avoid

  1. Signing a Reservation Agreement without Legal Advice: Many buyers sign a reservation document at an agency office under pressure, thinking it is just a formality. If the property has hidden structural issues or illegal extensions, you may struggle to get your deposit back unless the contract was drafted with protective escape clauses.
  2. Assuming the Estate Agent is Your Legal Representative: In Spain, estate agents represent the seller or the transaction itself. They are motivated to close the deal. They do not perform deep legal due diligence and are not qualified to offer independent legal advice. You must hire an independent lawyer (abogado).
  3. Ignoring the "Valor de Referencia" (Reference Value): Since 2022, the tax authority (Hacienda) calculates ITP based on the Cadastre’s "Reference Value" (valor de referencia) rather than the actual price you paid, if the reference value is higher. If you buy a run-down flat for €150,000, but its official reference value is €180,000, you must pay tax on €180,000. Failing to check this beforehand can result in an unexpected tax bill months after purchase.
  4. Overlooking Community Fees and Local Debts: Under Article 9.1.e of the Horizontal Property Act (Ley de Propiedad Horizontal), outstanding community fees (gastos de comunidad) for the current and previous three calendar years are tied to the property itself, not the previous owner. If you do not verify this, you will inherit the seller's debts.

Frequently Asked Questions (FAQs)

Can I buy property in Spain if I am a non-EU citizen?

Yes. There are no restrictions on non-EU citizens buying property in Spain. The legal process, taxes, and ownership rights are exactly the same as for Spanish or EU citizens. However, owning property does not automatically grant you residency rights, unless you qualify for the "Golden Visa" program by investing a minimum of €500,000 in real estate without a mortgage (note that this program is subject to ongoing legislative reviews).

What is a "Nota Simple" and why is it so important?

A Nota Simple is an official extract from the Land Registry. It provides a legal snapshot of the property, including the names of the current owners, the exact boundaries, and any active encumbrances, such as mortgages, tax debts, or court-ordered embargos. It must be pulled no more than a few days before signing any contract to ensure no new charges have been registered.

Do I need to be physically present in Spain to buy a property?

No. You can complete the entire purchase process remotely by granting a Power of Attorney (Poder Notarial) to your lawyer in Spain. This document can be signed before a notary in Spain, at a Spanish embassy or consulate abroad, or before a local notary in your home country (provided it is legalized with the Apostille of the Hague and translated into Spanish by an official sworn translator).

What happens if the seller has unpaid property taxes (IBI)?

By law, the local property tax (IBI) is tied to the property. If the seller has unpaid IBI bills, the local tax authority can seize the property to recover the debt, even after you become the owner. Your lawyer must request an IBI certificate from the local town hall showing a zero balance before completion. At the signing, the notary will also require proof of the most recent IBI payment.

How long does the entire buying process take?

On average, the process takes between 6 to 12 weeks. If you do not require a mortgage and your paperwork (NIE and bank account) is ready, it can be completed in as little as 4 weeks. If you require a Spanish mortgage, the process usually takes 8 to 12 weeks due to bank valuation (tasación) procedures and mandatory cooling-off periods under Spanish mortgage law.

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.