Civil law & contracts

Taxes when buying property in Spain

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

Buying a property in the sunny plains of Andalusia, the bustling streets of Madrid, or along the Mediterranean coast is a dream for thousands of expats every year. However, navigating the Spanish real estate market can quickly become overwhelming due to the country's complex, decentralized tax system. Failing to account for transaction taxes can derail your budget, as these costs are paid on top of the agreed purchase price. This comprehensive guide breaks down every tax, fee, and administrative step involved in buying Spanish property, ensuring your investment is secure and fully compliant with Spanish law.

To safely buy property in Spain, you must understand the legal foundation governing these transactions. The primary legislation is the Spanish Civil Code (Código Civil), which regulates contracts, obligations, and the transfer of real estate.

Specifically, Article 1450 of the Civil Code establishes that a sale is perfected and binding as soon as the buyer and seller agree on the property and the price, even if neither has been delivered yet. This is why signing a preliminary contract is legally binding. Furthermore, Article 1280 of the Civil Code dictates that acts and contracts aiming to create, transmit, modify, or extinguish real rights over real estate must appear in a public document. This is why executing a public deed of sale (escritura pública) before a Spanish Notary Public (Notario) is practically mandatory to register your ownership in the Land Registry (Registro de la Propiedad).

While the Civil Procedure Act (Ley de Enjuiciamiento Civil - Ley 1/2000) governs potential litigation or foreclosures, the tax obligations themselves are governed by specific state and regional tax laws. Because Spain is divided into 17 Autonomous Communities (Comunidades Autónomas), tax rates vary significantly depending on where the property is located.

1. Taxes on Brand New Properties (New Builds)

If you are buying a newly built property directly from a developer or promoter, you will face two primary taxes.

Value Added Tax (VAT)

In Spain, Value Added Tax is known as Impuesto sobre el Valor Añadido (VAT). For residential properties (including up to two garage spaces and annexes bought together with the home), the national VAT rate is a flat 10% of the purchase price.

Note: In the Canary Islands, a different tax regime applies, and you will pay the Canary Islands Indirect General Tax (IGIC) at a rate of 6.5% instead of VAT.

Stamp Duty (AJD)

In addition to VAT, new build purchases are subject to Documented Legal Acts tax (Impuesto sobre Actos Jurídicos Documentados or AJD), commonly referred to as Stamp Duty. This tax covers the formalization of the public deed before the notary.

Because AJD is managed by the Autonomous Communities, the rate varies between 0.5% and 1.5% of the purchase price, depending on the region. For example, Madrid offers lower rates around 0.75%, while Catalonia and Valencia charge 1.5%.

2. Taxes on Resale Properties (Pre-owned)

If you are buying a property from a private individual (a resale), you do not pay VAT or AJD. Instead, you pay a transfer tax.

Property Transfer Tax (ITP)

The Property Transfer Tax (Impuesto sobre Transmisiones Patrimoniales or ITP) is the largest tax expense for resale buyers. Like AJD, ITP is devolved to the regional governments.

The standard ITP rate ranges between 6% and 10% of the purchase price (or the reference value, as explained below).

Many regions offer reduced ITP rates (often down to 3% to 5%) for specific demographics, such as buyers under 35 years old, disabled buyers, or those purchasing their primary residence (vivienda habitual) under a certain price threshold.

Crucial Concept: The Reference Value (Valor de Referencia)

Since January 2022, the tax base for ITP is no longer automatically the price you pay for the property. Instead, it is calculated based on the "Reference Value" (Valor de Referencia de Catastro) determined by the Land Registry Office (Catastro).

If you buy a flat for €200,000, but the Catastro states its Reference Value is €230,000, you must pay ITP on €230,000. If you pay tax on the lower purchase price, the regional tax agency (Hacienda) will likely audit you and demand the difference plus interest.

3. Additional Transaction Costs to Budget For

Beyond taxes, you must budget an additional 2% to 4% of the purchase price for professional and administrative fees:

Concrete Worked Examples

To visualize how these taxes apply in practice, let us look at two different purchasing scenarios.

Example A: John buys a resale apartment in Valencia

John, a British expat, buys a pre-owned apartment in the city of Valencia for €250,000. The Catastro Reference Value is €240,000. Because the purchase price is higher than the Reference Value, John must pay tax on the actual purchase price of €250,000.

Example B: Sarah buys a new build villa in Marbella (Andalusia)

Sarah, a Swedish investor, buys a brand-new villa off-plan in Marbella for €600,000.

Step-by-Step Practical Guide to Buying and Paying Taxes

To ensure you do not miss deadlines or face penalties, follow this structured timeline when buying property in Spain.

``` [1. Get NIE & Bank Account] ──> [2. Due Diligence] ──> [3. Arras Contract] │ [6. Register Property] <── [5. Pay Taxes (30 Days)] <── [4. Sign Public Deed] ```

Step 1: Obtain your NIE and Open a Spanish Bank Account

Before you can sign any contract or pay any tax, you must obtain a Foreigner Identification Number (Número de Identidad de Extranjero or NIE). You can apply for this at a Spanish Consulate in your home country or at a National Police station (Comisaría de Policía) in Spain. Simultaneously, open a Spanish bank account, as you will need it to issue bank-guaranteed drafts for the purchase.

Step 2: Conduct Due Diligence

Your lawyer must request a land registry certificate (nota simple) from the Land Registry (Registro de la Propiedad). This document confirms who the legal owner is and whether the property has outstanding mortgages, debts, or embargos.

Step 3: Sign the Earnest Money Agreement (Contrato de Arras)

This is a private contract under Article 1454 of the Civil Code. You typically pay a 10% deposit. If you back out, you lose this deposit. If the seller backs out, they must return double the amount to you.

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

Both parties meet at the Notary's office. The Notary verifies the identities, reads the deed, and witnesses the payment. Once signed, the Notary sends an electronic copy of the deed to the Land Registry to block any other transactions on the property.

Step 5: Pay the Taxes (Strict 30-Day Deadline)

You have exactly 30 business days (or calendar days, depending on the region—safest to assume 30 calendar days) from the date of signing the notary deed to pay ITP or VAT and AJD.

Step 6: Register the Property

Once the taxes are paid and stamped by the tax office, your deeds must be physically presented to the local Land Registry to update the ownership records. This process takes between 15 and 90 days.

Common Mistakes to Avoid

Frequently Asked Questions (FAQs)

Do non-residents pay more tax when buying property in Spain?

No. The transaction taxes (VAT, ITP, AJD) and notary fees are exactly the same for Spanish citizens, resident expats, and non-residents. However, non-residents face different tax obligations after the purchase, such as the Non-Resident Income Tax (Impuesto sobre la Renta de no Residentes or IRNR) on imputed rental income.

What happens if I disagree with the Catastro Reference Value?

If the Reference Value is higher than what you paid and you believe it is unfair (e.g., the property is in poor condition), you must first pay the tax based on the higher Reference Value. Afterward, you can file a formal rectification claim (solicitud de rectificación de autoliquidación) with the regional tax authority, providing an official appraisal report (tasación) as evidence.

Can I pay my property taxes in my home currency?

No. All tax transactions in Spain must be settled in Euros (€). If you are transferring funds from a non-Euro account (such as GBP or USD), use a specialized currency broker rather than a traditional bank to avoid high exchange rates and transfer fees.

Are there any annual taxes I need to pay after buying?

Yes. Every property owner in Spain, resident or not, must pay the annual Council Tax (Impuesto sobre Bienes Inmuebles or IBI) to the local town hall (Ayuntamiento). Additionally, non-residents must file an annual tax return for Non-Resident Income Tax (IRNR), even if they do not rent out 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.