Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

IVA vs. ITP: Spanish Property Tax Explained

Hello! Welcome to Module 9 of our course on real estate investment analysis.

In the previous module, we built a comprehensive toolkit for pre-tax risk analysis, culminating in a Python script to perform scenario and sensitivity analyses. We now have a solid understanding of how to project returns and quantify risk before taxes. However, as any seasoned investor knows, it's the after-tax return that truly matters.

This module, "Taxation of Spanish Real Estate Operations," marks a critical shift in our journey. We will now integrate the specifics of the Spanish tax system into our models. Your goal to achieve a "deep and advanced" level of mastery is impossible without this step.

Today's lesson addresses the very first tax hurdle in any property transaction: the acquisition tax. Our learning outcome is to distinguish between IVA and ITP taxes on property purchases in Spain and calculate their amounts. Understanding this is the foundational block for calculating your true initial investment cost and, subsequently, all your return metrics.

1. The Fork in the Road: IVA or ITP?

When you buy a property in Spain, you will pay one of two mutually exclusive taxes on the purchase: the Impuesto sobre el Valor Añadido (IVA, or Value-Added Tax) or the Impuesto de Transmisiones Patrimoniales (ITP, or Property Transfer Tax). The one you pay depends on the nature of the property and the seller.

Let's get a clear definition of when each tax applies.

¿Cuándo se paga ITP y cuándo IVA al comprar un inmueble ...

This article from the Inviertispro blog provides a very clear and concise explanation of the fundamental difference between IVA and ITP.

Please read the section 'Diferencia entre ITP e IVA en la compraventa'. Focus on the two bullet points that define when each tax is applied and the key sentence that states they are mutually exclusive.

To summarize the key distinction:

  • IVA is paid when you buy a new property directly from the developer or promoter. This is considered the "first transmission" of the property.
  • ITP is paid when you buy a second-hand property. This applies to any property that has been sold at least once before, typically from a private individual or a company reselling it.

You will never pay both. Let's dig into the details of each.

2. Calculating IVA and the "Bonus" Tax: AJD

When your purchase is subject to IVA, the calculation is relatively straightforward, but there's an additional tax to consider.

🏠🤔 Comprar Casa | Impuestos (ITP-IVA) al comprar o vender (IRPF) - Exención por Reinversión Vivienda

The following video from Ruaix Legal TV briefly explains the application of IVA and introduces the concept of AJD. It also touches on a special case for professionals, which is good to be aware of.

Watch from 03:40 to 05:00. Pay attention to the distinction between buying from a developer versus a second-hand purchase, and the mention of IVA rates.

IVA Rates

The IVA rate depends on the type of property. The general rates are:

  • 10%: For standard new residential homes.
  • 4%: For new homes under an official protection scheme (Viviendas de Protección Oficial, VPO).
  • 21%: For commercial properties and plots of land (locales y terrenos).

Note: In the Canary Islands, a different tax called IGIC applies instead of IVA, with a general rate of 6.5% for new homes.

Actos Jurídicos Documentados (AJD)

When a transaction is subject to IVA, you must also pay a separate tax called Impuesto de Actos Jurídicos Documentados (AJD), often referred to as stamp duty. This tax is levied on the notarial documents.

  • Rate: The AJD rate is set by each autonomous community and typically ranges from 0.5% to 1.5% of the purchase price.
  • Calculation: Total tax on a new property = (Purchase Price × IVA rate) + (Purchase Price × AJD rate).

Example 1: Buying a New Property
You buy a new apartment in Madrid from a developer for €400,000.

  • The general ITP rate in Madrid is 6%.
  • The AJD rate in Madrid is 0.75%.
  • The IVA rate is 10%.

Since it's a new property, you pay IVA and AJD.

  • IVA: €400,000 × 10% = €40,000
  • AJD: €400,000 × 0.75% = €3,000
  • Total Acquisition Tax: €40,000 + €3,000 = €43,000

3. Calculating ITP: The Modern Rules

Calculating ITP is more complex than IVA because both the tax base and the tax rate have important nuances.

3.1. The Tax Base: Valor de Referencia

Until 2022, ITP was generally calculated on the purchase price. Now, the tax base is the higher value between the purchase price and the official valor de referencia (reference value) published by the Cadastre (Dirección General del Catastro). This was a major change to prevent tax avoidance through under-declaring sale prices.

This video provides an excellent, practical explanation of this change and shows you exactly how to find the reference value for any property.

Cómo se CALCULA el ITP de una VIVIENDA?

The video 'Cómo se CALCULA el ITP de una VIVIENDA?' from El Banquero del Pueblo is a must-watch. It clearly explains the shift to the 'valor de referencia' and provides a step-by-step walkthrough of looking it up online.

Please watch from 02:23 to 08:33. Focus on: The explanation of how the tax base changed (from purchase price/catastral value to the new reference value). The live demonstration of how to find the reference value on the Cadastre website. The final examples that show how the tax is calculated on the HIGHER of the two values.

As a summary of the video's key point:

  • If Purchase Price > Valor de Referencia: ITP is calculated on the purchase price.
  • If Valor de Referencia > Purchase Price: ITP is calculated on the valor de referencia, even if you paid less for the property.

3.2. The Tax Rate: A Regional Patchwork

The second complexity is that ITP rates are managed by Spain's autonomous communities, and they vary significantly. Furthermore, most communities offer reduced rates for specific circumstances (e.g., buyers under 35, large families, purchasing in rural areas).

ITP Rates by Spanish Autonomous Community
This map illustrates the regional nature of ITP. The rates can differ substantially from one community to another, making it a critical factor in your investment calculations.

To perform an accurate calculation, you must consult the specific rates for the community where the property is located.

Tipos de ITP por comunidades autónomas 2024

The organization OCU provides a comprehensive and updated guide on ITP rates. This is an essential reference for any serious investor in Spain.

You don't need to read this entire document now, but please review it to understand its structure. First, look at the main summary table under the heading 'TIPOS DE ITP Y AJD PARA TRANSMISIÓN DE VIVIENDA EN 2024'. Then, scroll down and browse the detailed section for a few communities, like Andalucía, Cataluña, and Madrid, to see the specific conditions for reduced rates. Bookmark this resource; you will use it often.

Example 2: Calculating ITP (Standard Case)

You buy a second-hand apartment in Valencia for €250,000. The valor de referencia is €220,000.

  • Tax Base: The purchase price is higher, so the base is €250,000.
  • ITP Rate: The general rate in Comunidad Valenciana is 10%.
  • ITP Payable: €250,000 × 10% = €25,000

Example 3: Calculating ITP (Valor de Referencia Applies)

You buy a second-hand house in Andalusia for €180,000. The valor de referencia is €200,000.

  • Tax Base: The valor de referencia is higher, so the base is €200,000.
  • ITP Rate: The general rate in Andalusia is 7%.
  • ITP Payable: €200,000 × 7% = €14,000
Test your understanding!

You are considering buying a second-hand apartment in Barcelona (Cataluña) for €300,000 to be your primary residence. You are 30 years old, and your annual income is €35,000. The valor de referencia is €280,000. Using the OCU resource (LINK), how much ITP would you pay?

Show answer
  1. Determine the Tax Base: The purchase price (€300,000) is higher than the valor de referencia (€280,000), so the tax base is €300,000.
  2. Check for Reduced Rates: According to the OCU resource for Cataluña, there is a reduced rate of 5% for buyers aged 32 or younger acquiring their primary residence, provided their income tax base does not exceed €36,000. You meet these conditions.
  3. Calculate ITP: €300,000 × 5% = €15,000.

(Without the reduced rate, you would have paid the general rate of 10%, which is €30,000. This highlights the importance of checking for special conditions!)

4. A Simple Python Model

Given your background, we can translate this logic into a simple Python function. This will be the first component of our comprehensive Spanish tax model. This function determines which tax applies and calculates the amount based on the rules we've discussed.

# We'll use the detailed ITP rates from the OCU guide for this model.
# This is a simplified version for demonstration. A real model would have all rates.
ITP_RATES = {
    'Andalucía': {'general': 0.07, 'reduced_vivienda_habitual': 0.06},
    'Cataluña': {'general': 0.10, 'reduced_young': 0.05},
    'Madrid': {'general': 0.06, 'reduced_familia_numerosa': 0.04},
    'Comunidad Valenciana': {'general': 0.10, 'reduced_young': 0.08}
}

AJD_RATES = {
    'Andalucía': 0.012,
    'Cataluña': 0.015,
    'Madrid': 0.0075,
    'Comunidad Valenciana': 0.015
}

IVA_RATE_GENERAL = 0.10

def calculate_acquisition_tax(
    property_type: str,
    purchase_price: float,
    community: str,
    valor_referencia: float = 0.0,
    is_new_build: bool = False,
    use_reduced_rate: str = None
    ):
    """
    Calculates the acquisition tax (IVA+AJD or ITP) for a property in Spain.
    
    :param property_type: 'residential' or 'commercial'
    :param purchase_price: The agreed sale price.
    :param community: The autonomous community (e.g., 'Madrid').
    :param valor_referencia: The official reference value from the Cadastre.
    :param is_new_build: True if it's a first transmission from a developer.
    :param use_reduced_rate: Key for a specific reduced rate (e.g., 'reduced_young').
    """
    if is_new_build:
        print("Calculating IVA and AJD for a new build.")
        iva = purchase_price * IVA_RATE_GENERAL # Assuming residential
        ajd = purchase_price * AJD_RATES.get(community, 0.015) # Default to 1.5% if not found
        total_tax = iva + ajd
        print(f"IVA: {iva:,.2f}€ | AJD: {ajd:,.2f}€")
        return total_tax
    else:
        print("Calculating ITP for a second-hand property.")
        tax_base = max(purchase_price, valor_referencia)
        print(f"Tax Base (Higher of Price/Reference): {tax_base:,.2f}€")
        
        rate_key = 'general'
        if use_reduced_rate and use_reduced_rate in ITP_RATES[community]:
            rate_key = use_reduced_rate
            
        itp_rate = ITP_RATES[community][rate_key]
        itp = tax_base * itp_rate
        print(f"ITP Rate ({rate_key}): {itp_rate:.2%}")
        return itp

# --- Let's run the examples from the lesson ---

print("--- Example 1: New Build in Madrid ---")
tax1 = calculate_acquisition_tax(
    property_type='residential', 
    purchase_price=400000, 
    community='Madrid', 
    is_new_build=True
)
print(f"Total Acquisition Tax: {tax1:,.2f}€\n")


print("--- Example 3: Second Hand in Andalusia (Reference > Price) ---")
tax3 = calculate_acquisition_tax(
    property_type='residential',
    purchase_price=180000,
    community='Andalucía',
    valor_referencia=200000,
    is_new_build=False
)
print(f"Total Acquisition Tax: {tax3:,.2f}€\n")


print("--- Test Your Understanding Example: Young Buyer in Cataluña ---")
tax4 = calculate_acquisition_tax(
    property_type='residential',
    purchase_price=300000,
    community='Cataluña',
    valor_referencia=280000,
    is_new_build=False,
    use_reduced_rate='reduced_young'
)
print(f"Total Acquisition Tax: {tax4:,.2f}€\n")

Conclusion

In this lesson, we took the first and most fundamental step in modeling the taxation of Spanish real estate investments. You can now determine the correct acquisition tax and calculate its cost, which is essential for establishing your true initial investment basis.

Key Takeaways:

  • Property purchases in Spain are taxed with either IVA (for new builds) or ITP (for second-hand properties), but never both.
  • IVA transactions also require payment of AJD (stamp duty), with rates varying by region.
  • ITP is calculated on the higher of the purchase price or the official valor de referencia.
  • ITP rates are set by the autonomous communities and vary significantly. Always check for general and reduced rates applicable to your specific situation.

Preview of the Next Lesson:

Now that we've accounted for the upfront tax cost of acquisition, we need to address the ongoing taxation of the investment's income. In the next lesson, we will focus on "Identify[ing] deductible expenses for rental properties under Spanish IRPF regulations." This will be our next step in building a complete after-tax cash flow model.

Can't find a good explanation? Sign up and we'll make it for you

Sign up