Renting & housing

Plusvalía Municipal in Spain: How to Calculate It

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

🇪🇸 Read the original in Spanish

Selling a property in Spain is a major financial transaction that, in addition to the excitement of closing a deal, carries a series of tax obligations that you should understand in detail to avoid unpleasant surprises. One of the most controversial taxes that generates the most doubts among sellers—both Spanish nationals and foreign expats—is the Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana (IIVNU, Tax on the Increase in Value of Urban Land), popularly known as the plusvalía municipal (municipal capital gains tax). Following profound legislative reforms in recent years, the method for determining how much you must pay has changed radically, now offering two calculation alternatives so that taxpayers can choose the one that is most favorable to their pocket.

What is the plusvalía municipal and when does it apply?

The plusvalía municipal is a direct, instant-accrual tax levied by local town halls on the increase in value experienced by urban land during the time a person has owned it.

It is fundamental to clarify that this tax only levies the value of the land, not the value of the building or construction itself. Therefore, when you sell an apartment, the local administration calculates the tax based exclusively on the portion of the valor catastral (cadastral value) that corresponds to the land on which the building stands.

The regulatory framework: Why did the plusvalía change?

The legal framework for this tax is regulated under the Texto Refundido de la Ley Reguladora de las Haciendas Locales (TRLRHL, Recast Text of the Local Regulatory Law of Local Treasuries), approved by Real Decreto Legislativo 2/2004 (Royal Legislative Decree 2/2004).

For years, this tax was calculated using an objective system that assumed land always increased in value, regardless of real estate market realities. However, following the historic ruling of the Tribunal Constitucional (Constitutional Court) 182/2021, of October 26, 2021, which declared the previous calculation method unconstitutional for violating the principle of economic capacity (forcing taxpayers to pay even when selling at a loss), the Spanish Government urgently approved Real Decreto-ley 26/2021, of November 8 (Royal Decree-Law 26/2021).

This reform adapted the law to constitutional doctrine, introducing the dual calculation system that governs today and guaranteeing that, if it is proven that the sale of the property was made at a loss (capital loss), the taxpayer is exempt from paying this tax.

Who must pay the plusvalía municipal when selling a property?

As a general rule, the sujeto pasivo (the taxpayer legally obligated to pay the tax) varies depending on the nature of the transfer:

Note for foreign residents: If the seller is a non-resident individual in Spain, the substitute taxpayer (sujeto pasivo sustituto) will be the buyer. However, in standard notary practice, the amount corresponding to the tax is usually withheld from the sale price to ensure its payment to the town hall.

The two calculation methods: Choose the most advantageous one

Since the November 2021 reform, taxpayers have the legal right to choose between two calculation formulas. The town hall will apply the method that is most beneficial (the lowest amount) for the citizen.

Method 1: The Objective System (Objective Estimation)

This method is based on the valor catastral of the land at the time of accrual (the date of sale), to which a multiplying coefficient set by each town hall is applied. This coefficient must be within the maximum limits set annually by the central Government based on the number of years the property has been owned.

The formula is as follows: $$\text{Tax Base} = \text{Cadastral Value of the Land} \times \text{Multiplication Coefficient}$$

The tax rate set by the town hall (which cannot exceed 30%) is then applied to this Tax Base (base imponible).

The maximum coefficients in force are updated periodically. Generally, the shorter the property holding period, the lower the coefficient, fiscally penalizing highly short-term speculative operations (less than one year).

Method 2: The Real Plusvalía System (Direct Estimation)

This method calculates the real increase obtained from the difference between the transfer value (sale) and the acquisition value (purchase).

The formula is as follows:

  1. Gross Capital Gain = Sale Price - Purchase Price.
  2. Land Value Percentage = The percentage that the cadastral value of the land represents out of the total cadastral value of the property in the year of the sale.
  3. Tax Base = Gross Capital Gain $\times$ Land Value Percentage.

Once this real Tax Base is obtained, the municipal tax rate (maximum 30%) is applied to it.

Practical calculation examples

To better understand how these two systems work and how to choose the most convenient one, we will analyze two different scenarios with realistic figures.

Example 1: Sale with a significant capital gain

Let's imagine Juan, who sells an apartment in Madrid in 2024 for €250,000. He acquired this apartment in 2014 (exactly 10 years ago) for €180,000.

#### Option A: Objective Method

#### Option B: Real Plusvalía Method

Result for Juan: In this case, the difference is massive. It is highly beneficial for Juan to choose the Objective Method, paying only €928 instead of the €8,120 calculated under the real method.

Example 2: Sale with minimal gain or stagnant market

Now let's imagine María, who sells an apartment for €155,000 that she bought 5 years ago for €150,000.

#### Option A: Objective Method

#### Option B: Real Plusvalía Method

Result for María: In this situation, it is best for María to apply the Real Plusvalía Method, saving almost two thousand euros by paying only €750.

Step-by-step practical steps to settle the plusvalía

Filing and paying this tax requires following a series of orderly steps before the local administration of the municipality where the property is located.

  1. Gather the necessary documentation: You must have on hand the acquisition deed (previous purchase, inheritance, or donation), the new transfer deed (current sale), and the latest receipt of the Impuesto sobre Bienes Inmuebles (IBI, property tax) to verify the cadastral value of the land.
  2. Identify the town hall's management system: Some town halls operate via a self-assessment system (autoliquidación, where the taxpayer calculates and files the tax themselves), while others use a tax declaration system (declaración tributaria, where the taxpayer submits the data and the town hall calculates the settlement and sends a payment letter).
  3. Perform the comparative calculation: Use the two methods explained above to determine which one benefits you. Many town halls offer online calculators on their electronic portals.
  4. Submit the tax form: Fill out the corresponding form (physically or via the town hall's electronic portal) attaching the deeds that justify the purchase and sale values.
  5. Make the payment: If it is a self-assessment, make the payment at collaborating banks within the legal deadline. If it is a declaration, wait to receive the payment notification from the town hall to proceed with the payment.

Failure to meet the deadlines for this tax can lead to surcharges and late-payment interest from the local tax authority.

Errors you must avoid

Making mistakes when processing the plusvalía municipal can be very costly. Pay close attention to these common errors:

Frequently Asked Questions (FAQ)

What happens if I sell an apartment for the same price I bought it for?

If you sell the apartment for the exact same price as the acquisition price, there is no real increase in value. Since there is no capital gain, you can use the real plusvalía method to declare a tax base of zero euros, exempting you from paying the tax, though you must still file the corresponding declaration providing both deeds.

Can I claim back plusvalía municipal paid in previous years?

It is only possible to claim back municipal plusvalía assessments that have not become final. If it was a self-assessment (autoliquidación), the statute of limitations is 4 years from the end of the filing period. If it was an assessment issued directly by the town hall, the deadline to appeal is 1 month from notification; if this month has already passed, the assessment is final and, except in very exceptional cases of absolute nullity, the money cannot be recovered.

Do home renovation expenses reduce the plusvalía municipal?

Unlike what happens with IRPF, where extension or improvement renovations can be added to the acquisition value, renovation expenses are generally not deductible for the plusvalía municipal. This is because renovations affect the building itself and not the land (the soil), which is the only thing taxed by this municipal tax.

Who pays the plusvalía if the seller is a non-resident in Spain?

If the seller of the property does not reside in Spanish territory, the law establishes that the buyer acts as a substitute taxpayer (sujeto pasivo sustituto). Therefore, the buyer is legally responsible for withholding the estimated amount of the plusvalía from the final sale price and paying it to the town hall to prevent the local administration from claiming the debt against the acquired property itself.

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.