The municipal capital gains tax is probably the property tax that has generated the most confusion among the public since the Constitutional Court struck down its calculation method in October 2021. From that date, the Spanish tax system accumulated three layers that need to be unpicked: the previous regime (declared unconstitutional), the November 2021 reform (in force today), and disputed assessments that courts are still resolving in 2026. This guide analyses the tax in its current state, explains how to calculate the liability under the two methods in force, and provides guidance on the possibilities for reclaiming amounts incorrectly collected.
What is the Municipal Capital Gains Tax (IIVTNU)
The Tax on the Increase in Value of Urban Land (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana, IIVTNU), commonly known as the municipal capital gains tax (plusvalía municipal), is governed by Articles 104 to 110 of the Consolidated Text of the Law on Local Revenue, approved by Legislative Royal Decree 2/2004 of 5 March (hereafter, RDLeg 2/2004).
The tax is charged on the increase in value experienced by urban land when it is transferred — whether by sale, donation, inheritance or any other form of transfer — or when a limited real property right is created or transferred over that land. The tax base is the increase in the value of the land during the period of ownership, with a maximum of twenty years.
Taxable event. The IIVTNU taxable event arises in three situations: the transfer of ownership of urban land, the creation or transfer of limited real property rights over that land (usufruct, use, habitation, emphyteusis), and the extinction of those real rights. Bare ownership is not taxed on the creation of the usufruct; it will be taxed when full ownership is consolidated.
Taxpayer. In onerous transfers (sale), the taxpayer is the transferor (the seller). In gratuitous transfers (inheritance, bequest, donation) it is the acquirer (heir, legatee, donee). The parties may agree in a private sale that the buyer pays the tax, but that agreement is not enforceable against the municipal tax authority: the local authority may always demand payment from the seller if the buyer fails to remit it.
Municipal management. IIVTNU is a tax that municipalities with an approved municipal ordinance are required to levy. Each local authority sets its own coefficients and rates within the statutory limits. This means the economic impact of the tax can vary significantly between municipalities for the same property.
The Constitutional Court Ruling of 26 October 2021 (STC 182/2021)
Constitutional Court Judgment 182/2021 of 26 October (BOE No. 282 of 25 November 2021) constitutes the regulatory turning point that explains the current regime of the tax. Understanding it requires knowing the prior case-law trajectory.
Background: STC 59/2017 and STC 126/2019. STC 59/2017 of 11 May had already declared Articles 107.1 and 107.2(a) of the then-applicable Consolidated Local Revenue Law unconstitutional to the extent that they subjected to taxation situations involving no increase in value (loss-making transfers). Two years later, STC 126/2019 of 31 October extended the unconstitutionality to situations where the tax liability absorbed the entire gain or exceeded it. Both rulings, however, left intact the general calculation mechanism for cases in which there was a gain and the tax was not confiscatory.
The sweeping declaration in STC 182/2021. STC 182/2021 was far more radical. It declared unconstitutional and absolutely void Articles 107.1 (second paragraph), 107.2(a) and 107.4 of RDLeg 2/2004, which governed the objective calculation method — multiplying the cadastral land value by coefficients determined by the period of ownership. The basis was the violation of the ability-to-pay principle enshrined in Article 31.1 of the Spanish Constitution, since the objective method did not allow for the actual gain to be taken into account, subjecting fictitious increases in value — or at least increases not grounded in the taxpayer’s economic reality — to taxation.
Temporal scope: consolidated situations. The Constitutional Court expressly limited the effects of the ruling in Legal Ground Six: “those situations which, at the date of this judgment, have acquired finality by having been definitively resolved by a judgment with the force of res judicata or by a final administrative act, may not be reviewed on the basis of this judgment.” This limitation is crucial for determining the possibilities of claiming refunds analysed below.
Immediate effect. During the approximately fifteen days between publication of the ruling (26 October 2021) and the entry into force of RD-Ley 26/2021 (10 November 2021), IIVTNU was effectively unenforceable, since its calculation method had been annulled and no legal alternative existed. Local authorities could neither assess nor allow self-assessment of the tax.
Current Regime: RD-Ley 26/2021
Royal Decree-Law 26/2021 of 8 November, adapting the Consolidated Local Revenue Law to the recent Constitutional Court case-law on the Tax on the Increase in Value of Urban Land, entered into force on 10 November 2021 and rewrote the provisions declared unconstitutional, restoring the tax with a dual calculation system.
The dual calculation option. The new Article 107 of RDLeg 2/2004 (as amended by RD-Ley 26/2021) establishes that the taxpayer may choose between two alternative methods to calculate the IIVTNU tax base:
-
Objective method. The tax base is the result of multiplying the cadastral land value at the date of the taxable event by the coefficients approved by each local authority for the relevant period of ownership. The maximum coefficients are set annually by statute (Budget Law or equivalent) according to the years of ownership (from 0 to 20).
-
Real method. The tax base is the positive difference between the transfer value of the land and the acquisition value of the land. To calculate the land value at each moment, if it is not separately stated in the deed, the proportion of the cadastral land value relative to the total cadastral value of the property at the date of each transfer is applied.
The taxpayer chooses the more favourable method. The legislation allows the taxpayer to notify the local authority that they are opting for the real method when this produces a lower tax base than the objective method. If the taxpayer does not indicate otherwise, the local authority applies the objective method. In practice, it is essential to run the comparative calculation before filing the self-assessment.
Non-taxation for absence of increase. The new Article 104.5 of RDLeg 2/2004 expressly provides that where the taxpayer demonstrates that the amount of the increase in land value is lower than the tax base calculated under the objective method, or that no increase has occurred, they may opt for the tax base derived from the real value, or directly declare non-taxation if the absence of any increase (loss-making transfer) is demonstrated.
How to Calculate: Objective Method and Real Method
The following explains the calculation mechanism for each method with practical examples reflecting 2026 market conditions.
Objective Method
Formula: Tax base = Cadastral land value × Coefficient for the ownership period
The maximum coefficients applicable for 2025 and 2026 (set by the Budget Law or equivalent for each year) are, by way of guidance:
| Generation period | Maximum coefficient |
|---|---|
| Less than 1 year | 0.14 |
| 1 year | 0.13 |
| 2 years | 0.15 |
| 3 years | 0.16 |
| 4 years | 0.17 |
| 5 years | 0.17 |
| 6 years | 0.16 |
| 7 to 9 years | 0.12 |
| 10 to 14 years | 0.10 |
| 15 to 19 years | 0.09 |
| 20 or more years | 0.08 |
Each local authority sets its own coefficients within those statutory maxima, so it is essential to consult the municipal ordinance for the specific municipality.
Example — Objective Method. Property in Madrid with a total cadastral value of €200,000. Land/total cadastral ratio: 40% → Cadastral land value: €80,000. Ownership period: 8 years. Coefficient applied by the local authority for 8 years: 0.10. Tax base: €80,000 × 0.10 = €8,000. Municipal tax rate: 30%. Tax liability: €8,000 × 30% = €2,400.
Real Method
Formula: Tax base = (Total transfer value × % land cadastral) − (Total acquisition value × % land cadastral)
Example — Real Method. Same property. Purchase price in 2016: €220,000. Sale price in 2024: €310,000. Cadastral land percentage: 40%. Land value at acquisition: €220,000 × 40% = €88,000. Land value at transfer: €310,000 × 40% = €124,000. Real tax base: €124,000 − €88,000 = €36,000. Real tax liability: €36,000 × 30% = €10,800.
Comparison and choice. In this example, the objective method produces a liability of €2,400 against €10,800 under the real method. The taxpayer will opt for the objective method. However, where a property was acquired many years ago at a very low price and is now sold at a high price (large real gain), the real method may produce a similar or even higher figure than the objective method. The prior analysis is mandatory.
Loss scenario. If the same property had been acquired in 2007 for €380,000 and is sold in 2024 for €310,000: land value at acquisition €380,000 × 40% = €152,000; land value at transfer €310,000 × 40% = €124,000. Result: −€28,000 (loss). The transaction is not subject to IIVTNU. No municipal capital gains tax is payable.
Exemptions and Non-Taxable Situations
RDLeg 2/2004 and its reform set out a range of situations in which IIVTNU is not payable.
Non-taxable situations (absence of taxable event):
- Transfers of rural land (the tax applies only to urban land).
- Transfers of land where the cadastral value does not distinguish between land and construction and the land value cannot be determined (rare but possible for properties with certain cadastral characteristics).
- Transfers in which the taxpayer demonstrates the absence of any increase in value (losses, under the new Art. 104.5 RDLeg 2/2004).
- Contributions of real estate to the matrimonial community and assignments arising from dissolution of the matrimonial property regime, where no increase in assets arises for either party (position consistently upheld by the TEAC and administrative doctrine).
- Transfers in dación en pago to discharge the mortgage over the debtor’s principal residence, in good faith cases as provided for by Law 1/2013.
Specific exemptions (Art. 105 RDLeg 2/2004 and related legislation):
- Transfers by individuals arising from dación en pago of their principal residence in cases contemplated by second-chance insolvency legislation.
- Transfers between spouses or in favour of children as a result of separation, divorce or annulment of marriage.
- Transfers between spouses during marriage, though these are technically non-taxable for absence of a patrimonial transfer between third parties, rather than exempt in the strict sense.
- Business restructuring transactions covered by the special tax regime of the Corporate Income Tax Law (mergers, demergers, asset contributions) where the local legislation expressly exempts them.
Inheritances between spouses. It is a common mistake to believe that inheritances between spouses are exempt from municipal capital gains tax. They are not. When the surviving spouse inherits an urban property, the IIVTNU taxable event arises. What may happen is that, if the land has not increased in cadastral value during the deceased spouse’s ownership period, the objective method produces a low liability, or the real method reveals an absence of increase. But the exemption is not automatic.
Self-Assessment Deadlines
Compliance with filing deadlines is essential to avoid surcharges and penalties. The deadline regime is governed by Article 110.6 of RDLeg 2/2004.
Inter vivos transfers (sale, donation, exchange): The taxpayer has 30 business days from the date of the transfer (notarial deed or, failing that, a private contract with a certified date) to file the self-assessment or declaration with the local authority. The period is counted in business days according to the official municipal calendar.
Mortis causa transfers (inheritance, bequest): The deadline is 6 months from the date of the testator’s death. An extension of a further 6 months may be requested by written application to the local authority, on reasoned grounds, before the initial deadline expires. If the deadline passes without filing, the administration may initiate an ex-officio assessment with a surcharge.
Consequences of non-compliance: Voluntary late filing (without a prior request) triggers surcharges of 1% per complete month of delay up to 12 months, and 15% after 12 months (plus default interest). If there has been a prior administrative request, the general penalty regime of Article 191 of the General Taxation Law applies.
Practice in municipalities with self-assessment vs. declaration systems. Some local authorities (such as Madrid or Barcelona) operate a self-assessment system: the taxpayer calculates and pays the tax directly. Others maintain a declaration system: the taxpayer files a declaration and the local authority issues the assessment. In the self-assessment system, a taxpayer who concludes that nothing is owed (loss-making transfer) must still file a non-taxation notice to prevent the local authority from raising an ex-officio assessment.
Refunds of Amounts Incorrectly Collected
After STC 182/2021, the most frequent question is whether it is possible to recover amounts paid in previous years. The answer depends on whether the assessment had become final before 26 October 2021.
Non-reviewable situations (final as of 26 October 2021):
- Assessments notified and not appealed within the deadline.
- Self-assessments filed without a rectification request within the four-year limitation period.
- Contentious-administrative judgments with the force of res judicata.
- TEAR or TEAC resolutions that had become final.
The Constitutional Court was unequivocal on this point: legal certainty (Art. 9.3 of the Constitution) prevents consolidated situations from being reopened. Local authorities and contentious-administrative courts have been applying this limitation rigorously.
Reviewable situations (pending as of 26 October 2021):
- Reconsideration appeals or administrative challenges filed before 26 October 2021 and not yet finally resolved.
- Self-assessments with a rectification request filed before 26 October 2021 without an express resolution.
- Assessments raised by the local authority and appealed before 26 October 2021, even if the resolution of the appeal comes later.
- Contentious-administrative proceedings initiated before that date and still awaiting a final judgment.
How to proceed if your situation may be reviewable. If you believe you had pending or non-final proceedings in October 2021 and have not received notification of their resolution, you should check the status of the file with the competent authority. The four-year limitation period for the right to a refund of undue payments means that situations arising before October 2017 would already be time-barred even if they had been reviewable.
Ongoing judicial proceedings in 2026. In 2026, numerous matters relating to the application of STC 182/2021 and to assessments raised under the former method in loss-making or confiscatory situations (STC 59/2017 and STC 126/2019) are still being resolved in the contentious-administrative courts. If you have an open case on this matter, it is advisable to consult a tax adviser to evaluate the most appropriate procedural strategy.
Practical Cases
Case 1: Seller with a Loss
Situation. Doña Carmen acquired an apartment in Valencia in 2008 for €280,000 (stated in the deed). She sells it in 2026 for €240,000. The total cadastral value of the property is €150,000, of which 35% corresponds to land (€52,500).
Calculation. Real method: land value at acquisition €280,000 × 35% = €98,000; land value at transfer €240,000 × 35% = €84,000. Difference: −€14,000 (loss). The transaction is not subject to IIVTNU.
Action. Doña Carmen must file a non-taxation notice with the Valencia local authority, within 30 business days of the deed, supported by documentary evidence (acquisition and transfer deeds). If the local authority disputes the land value used, it may initiate a valuation review.
Case 2: Heir of a Principal Residence
Situation. Don Miguel inherits from his mother, who died on 15 January 2026, an apartment in Málaga. His mother acquired it in 1998. The total cadastral value is €120,000 (land 50%, i.e. €60,000). The tax rate applied by the Málaga local authority is 28%.
Calculation — Objective Method. Ownership period: more than 20 years → local authority coefficient 0.08 (statutory maximum). Objective tax base: €60,000 × 0.08 = €4,800. Tax liability: €4,800 × 28% = €1,344.
Calculation — Real Method. Acquisition price in 1998: €80,000 (stated in the deed). Inheritance value in 2026 per the inheritance declaration: €180,000. Land value at acquisition: €80,000 × 50% = €40,000. Land value at transfer: €180,000 × 50% = €90,000. Real tax base: €50,000. Tax liability: €50,000 × 28% = €14,000.
Choice. Don Miguel opts for the objective method (€1,344 vs. €14,000). The deadline to self-assess or declare is 6 months from 15 January 2026, i.e. by 15 July 2026.
Case 3: Non-Resident Selling an Apartment in Spain
Situation. Mr Johnson, a British national resident in the United Kingdom, sells an apartment in Marbella (Málaga) in March 2026. He acquired it in 2015 for €400,000. He sells it for €600,000. Total cadastral value: €250,000; land proportion: 45% (€112,500). Marbella local authority rate: 30%.
Calculation — Objective Method. Ownership period: 11 years → statutory maximum coefficient: 0.10. Tax base: €112,500 × 0.10 = €11,250. Tax liability: €11,250 × 30% = €3,375.
Calculation — Real Method. Land value at acquisition: €400,000 × 45% = €180,000. Land value at transfer: €600,000 × 45% = €270,000. Tax base: €90,000. Tax liability: €90,000 × 30% = €27,000.
Choice. Mr Johnson opts for the objective method: €3,375. Simultaneously, the buyer must retain 3% of the sale price (€18,000) on account of Mr Johnson’s IRNR and remit it to the AEAT via Modelo 211. Both obligations (municipal capital gains tax and IRNR) are independent of each other.
Recommendation. Non-resident sellers should be aware that the buyer’s conveyancer may not handle the IIVTNU. It is advisable to appoint a fiscal representative in Spain to manage both the IRNR retention and the municipal capital gains tax self-assessment within the 30-business-day deadline.
Common Mistakes
Mistake 1: Filing nothing because “there is nothing to pay”. When the taxpayer concludes that the transaction is not subject to tax (loss-making transfer), some local authorities nonetheless require formal submission of a non-taxation notice. Failing to file within the deadline can lead the local authority to raise an ex-officio assessment under the objective method, requiring a subsequent appeal.
Mistake 2: Confusing the 30-business-day deadline with 30 calendar days. Article 110.6 of RDLeg 2/2004 refers to business days. The difference can amount to 10 to 15 days depending on the municipal holiday calendar. An incorrect computation can result in late submission and a surcharge.
Mistake 3: Ignoring the cadastral land percentage. For the real method, if the deed does not break down the price between land and construction — which is typical — the cadastral proportion of land relative to the total cadastral value is used. That percentage is not fixed: it varies according to the year of the municipal cadastral review and may have been updated. Using an outdated percentage can distort the calculation.
Mistake 4: Applying the real method without verifying that the local authority accepts it correctly. Although RD-Ley 26/2021 recognises the real method, some local authorities have not yet adapted their self-assessment forms to the dual option. If the online form only permits the objective calculation, the self-assessment must be filed via the official register with a manual calculation and documentary evidence of the acquisition and transfer values.
Mistake 5: Claiming refunds for consolidated situations. After STC 182/2021, numerous law firms circulated communications offering to challenge all capital gains tax paid in the last four years. The limitation of effects of the ruling means that the vast majority of such claims are unfounded if the assessment was final in October 2021. Initiating a groundless claim can generate costs and expose the taxpayer to a costs award in judicial proceedings.
Mistake 6: Failing to retain the acquisition deed. To apply the real method, the acquisition price must be evidenced. Where the property was acquired many years ago and the deed has been lost, one may resort to the notarial authentic copy, the Land Registry (which does not retain the purchase price) or, as a last resort, the value declared in the IRPF for the year of acquisition. Lack of documentation may require the taxpayer to use the objective method, which can be more costly.
If you need to analyse the municipal capital gains tax applicable to a specific transfer — whether by sale, inheritance or donation — BMC can calculate both methods and manage the self-assessment with the local authority. Our real estate and tax planning department advises both residents and non-residents with properties in Spain.