Capital gains tax in Madrid:
the two taxes you actually pay.
Tax guide · Madrid 2026
Selling a property in Spain triggers two separate taxes on the same sale: national capital gains tax on your profit, and the municipal plusvalía on the land's increase in value. Most guides only cover one. This page explains the municipal one in full — how it's calculated in Madrid, when you're exempt, with a calculator and the 2026 coefficient table — and points you to the calculator for the national one.
Jump straight to the calculator →Summary: capital gains tax in Madrid, 2026
- Two taxes, one sale: national capital gains tax (IRPF if you're resident, IRNR if not) on your profit, plus the municipal plusvalía on the land. They're separate and both are due
- This page covers: the municipal plusvalía (IIVTNU). For the national one, use the property sale tax calculator
- Who pays the plusvalía: the seller in a sale. The heir in an inheritance. The recipient in a gift.
- How much: depends on the cadastral land value and years of ownership. Indicatively €2,000–€15,000 for most flats in Madrid
- Two legal methods since 2021: objective method (coefficient on cadastral land value, VCS) or real-gain method (actual gain on the land). Whichever is more favourable applies
- Payment deadline: 30 business days for a sale · 6 months for an inheritance (extendable)
- When it's not payable: if you sold at a loss — proven to the City Council
- Deductible from national capital gains tax: yes — the plusvalía you paid is subtracted from the sale price when calculating your taxable gain
- Inheritance rebate: up to 95% if it was the deceased's primary home and the cadastral land value is ≤€60,000
- Rest of Spain: the law is national, so the method is the same everywhere — but the tax rate and coefficients are set by each town hall. Madrid charges 29%
- This page's calculator: indicative, not official — it doesn't replace the City Council's self-assessment
Two taxes, one sale.
Don't confuse them.
English-speaking sellers often arrive looking for "capital gains tax in Spain" and find only half the picture. When you sell a property here, two different taxes fall due on the same transaction, collected by two different authorities:
The two interact: the plusvalía you pay is deductible when calculating the gain for the national tax, so working out the municipal one first actually lowers the other. That's the order we'd recommend.
This page calculates the municipal plusvalía. To work out the national capital gains tax and see what you'd actually take home after both taxes and the agency fee, use our property sale tax calculator.
What the plusvalía municipal is,
and who pays it.
Madrid's plusvalía municipal tax — officially the Tax on the Increase in Value of Urban Land (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana, IIVTNU) — is a municipal tax on the rise in the urban land's value between when you bought the property and when you transfer it.
What matters is that it taxes the land, not the building on it. Madrid City Council assumes the land always gains value over time. Until 2021 this was payable even if you sold at a loss — a situation Spain's Constitutional Court ruled unconstitutional. Since November 2021 (Royal Decree-Law 26/2021), if you can show you sold for less than you paid, you owe no plusvalía.
The plusvalía municipal is a deductible expense for Spanish income tax (IRPF): when working out your capital gain on the tax return for the year of the sale, you can subtract the plusvalía you paid from the transfer price. Always keep the payment receipt.
How the plusvalía municipal is calculated
in Madrid in 2026.
Since Royal Decree-Law 26/2021 there have been two calculation methods. Madrid City Council automatically applies whichever is more favourable to the taxpayer.
Before the table: what the VCS and the coefficient are
To follow the calculation you need two key concepts first. Without them, the table below won't make sense.
VCS = Valor Catastral del Suelo (cadastral land value). Your flat has a "valor catastral" — an official value the State assigns it, which shows up on your IBI (property tax) bill every year. That value splits into two parts: what the land itself is worth, and what the building on it is worth. The VCS is only the land's share. In Madrid it's typically 30–50% of the total cadastral value. You'll find it on your IBI bill, under "valor catastral del suelo".
Example: if your total cadastral value is €200,000 and the land accounts for 40%, your VCS is €80,000. That's the figure you need to calculate the plusvalía.
The coefficient is a multiplier the State sets every year. It depends on how many years you've owned the property. The logic is simple: the longer you've held the flat, the more the land has supposedly gone up, so the more you pay. But it's not linear — the coefficient rises up to 7–10 years, dips slightly, then jumps sharply at 20 years or more. That jump is the trap long-term owners rarely see coming.
Example with a VCS of €80,000 and 8 years of ownership:
Objective method — 2026 coefficient table
This is the full table. Find your bracket by years of ownership, multiply by your VCS and apply 29%. The City Council always applies whichever method comes out cheaper for you — but it's worth working it out yourself before you sign the sale, so there are no surprises.
Formula: Amount due = VCS × Coefficient × 29%
| Years of ownership | 2026 coefficient | Example, VCS €60,000 | Indicative plusvalía |
|---|---|---|---|
| Under 1 year | 0.15 | 60,000 × 0.15 = €9,000 | €2,610 |
| 1 year | 0.15 | 60,000 × 0.15 = €9,000 | €2,610 |
| 2 years | 0.15 | 60,000 × 0.15 = €9,000 | €2,610 |
| 3 years | 0.16 | 60,000 × 0.16 = €9,600 | €2,784 |
| 4 years | 0.17 | 60,000 × 0.17 = €10,200 | €2,958 |
| 5 years | 0.17 | 60,000 × 0.17 = €10,200 | €2,958 |
| 6 years | 0.18 | 60,000 × 0.18 = €10,800 | €3,132 |
| 7 years | 0.19 | 60,000 × 0.19 = €11,400 | €3,306 |
| 8 years | 0.20 | 60,000 × 0.20 = €12,000 | €3,480 |
| 9 years | 0.20 | 60,000 × 0.20 = €12,000 | €3,480 |
| 10 years | 0.20 | 60,000 × 0.20 = €12,000 | €3,480 |
| 11 to 14 years | 0.19 | 60,000 × 0.19 = €11,400 | €3,306 |
| 15 to 19 years | 0.15 | 60,000 × 0.15 = €9,000 | €2,610 |
| 20 years or more | 0.40 | 60,000 × 0.40 = €24,000 | €6,960 |
* Coefficients from Royal Decree-Law 8/2023, in force in Madrid since 28 January 2026. The coefficients approved for 2025 (RD-ley 9/2024) and 2026 (RD-ley 16/2025) were struck down by Spain's Congress of Deputies. Tax rate for Madrid city: 29% (art. 17 of the current tax ordinance). The VCS appears on your IBI bill. This is an indicative calculation — use the Madrid City Council's official calculator for the exact amount.
Real-gain method — if you gained little, you pay less
The real-gain method works the other way round: instead of using the VCS and a fixed coefficient, it looks at how much you actually gained on the sale and taxes only that.
The idea is simple: if you bought for €200,000 and sell for €220,000, you gained €20,000. Of that €20,000, the City Council works out the share attributable to the land (using the VCS's proportion of the total cadastral value) and taxes only that share.
Formula: Amount due = (Sale price − Purchase price) × (VCS ÷ Total cadastral value) × 29%
This method works in your favour when you've owned the property for a short time and the real gain is small, or when the sale price is close to the purchase price. If you sold at a loss, the amount due is zero — but you have to prove it with the deeds.
Madrid City Council automatically applies whichever method comes out to a lower amount for the taxpayer. You don't have to choose — but it's worth understanding both so you can anticipate the amount before you close the sale. With the cadastral land value from your IBI bill, you can do that below in under a minute.
Calculate your plusvalía municipal
in Madrid.
Enter the cadastral land value and how many years you've owned the property. If you also have the purchase price, sale price and total cadastral value, we'll compare it with the real-gain method too.
Choose whether it's a sale or an inheritance, and fill in what you have — the more fields, the more accurate the result.
The VCS is on your latest IBI bill, under "valor catastral del suelo" — not the total cadastral value.
Land + building, also on your IBI bill. Needed for the real-gain method: the law only taxes the share of the gain attributable to the land, and that share comes from dividing the VCS by the total cadastral value.
This calculator is indicative, not official. It doesn't replace the self-assessment filed with Madrid City Council or advice from a professional.
* Coefficients from Royal Decree-Law 8/2023 (2024 table), in force in Madrid in 2026 following the repeal of RD-ley 16/2025. Tax rate for Madrid city: 29%. For the exact amount, use the Madrid City Council's official calculator.
How much plusvalía municipal you pay
in Madrid. Two real cases.
The cadastral land value (VCS) is the key figure. You'll find it on your IBI bill, under "valor catastral del suelo". In Madrid city it typically runs 30–50% of the property's total cadastral value.
Case 1 — Flat in Chamberí sold after 5 years
Case 2 — Flat in Salamanca sold after 15 years
* Indicative examples. Your property's actual VCS may differ. Check your IBI bill or the Cadastre's Electronic Office (Sede Electrónica del Catastro) for the exact value. The real plusvalía may vary if the real-gain method applies instead of the objective one.
When the plusvalía municipal isn't payable
in Madrid.
1. Sale at a loss
If you sell for less than you paid when you bought, there's no plusvalía municipal. You have to prove it to Madrid City Council by providing the purchase and sale deeds. Since Royal Decree-Law 26/2021, if the real gain is zero or negative, the tax simply doesn't arise.
2. No increase in the land's value
If the land's value hasn't risen since you acquired it, it's not payable either. This is proven by comparing the purchase and sale values against the land's share of the cadastral value.
3. Handing over a primary home to settle a mortgage debt (dación en pago)
If an individual hands their primary home to the bank to settle a mortgage debt they can't pay, they're exempt from the plusvalía municipal.
4. Transfer between spouses ordered by a court
When one spouse transfers the property to the other as part of dividing assets for the children's benefit, by court order, no plusvalía is payable.
5. Properties listed as cultural heritage
If the property is listed as a cultural heritage asset and the owner has proven they've carried out the required conservation work, the transfer is exempt.
6. Transfers by public and charitable bodies
Transfers by the State, Spain's regional governments (Comunidades Autónomas), Social Security and bodies such as the Red Cross are exempt. So is rustic land, as classified for IBI purposes.
7. Dissolving joint ownership
When several co-owners of the same property dissolve their joint ownership (extinción de proindiviso), it isn't treated as a transfer and no plusvalía municipal or IIVTNU arises.
Inheritance rebates (mortis causa)
Inheritance plusvalía has a special regime in Madrid. If the property was the deceased's primary home and the heir is a direct family member (spouse, child, parent or registered partner), the following rebates apply:
| Cadastral land value | Rebate applied | What you pay |
|---|---|---|
| Up to €60,000 | 95% | Just 5% of the amount due |
| €60,001 to €100,000 | 85% | Just 15% of the amount due |
| €100,001 to €138,000 | 70% | Just 30% of the amount due |
| Over €138,000 | 40% | Just 60% of the amount due |
How and where the plusvalía
is paid in Madrid.
Madrid's plusvalía municipal tax is self-assessed — you calculate and pay it yourself, rather than waiting for the City Council to bill you. The process:
On a sale
You have 30 business days from signing at the notary to file the self-assessment and pay Madrid City Council. You can do this in person at a Taxpayer Assistance Office (Oficina de Atención al Contribuyente) or online through Madrid City Council's Electronic Office (Sede Electrónica).
On an inheritance
You have 6 months from the date of death. If you need more time, you can request a further 6-month extension, but the request has to be made within the initial 6 months. Miss the deadline and you face late-payment interest and lose any rebate.
Documentation you'll need
For the self-assessment you'll need: the purchase deed (or inheritance deed), the property's cadastral reference, the cadastral land value from your latest IBI bill, and Madrid City Council's self-assessment form (modelo 902-N or similar).
The plusvalía municipal is just one more cost of selling that's worth planning for before you set your asking price. Add it to the national capital gains tax, the agency commission and the notary fees to know the real net amount you'll walk away with. You can work it all out with our property sale tax calculator.
How it works in the rest
of Spain.
The plusvalía is a national tax collected locally. The rules for calculating it are the same everywhere in Spain — what changes is the rate and the coefficients each town hall applies. So most of this page travels; a couple of numbers don't.
The same anywhere in Spain
The tax itself (IIVTNU) and what it taxes: the increase in urban land value between acquisition and transfer. The two calculation methods — objective and real-gain — both come from national law, as does the rule that whichever produces the lower amount is the one applied. And the exemption when there's no gain: if you sell at a loss and can prove it, the plusvalía is €0 anywhere in the country.
What each town hall sets itself
The tax rate. National law caps it at 30%; each municipality picks its own figure up to that ceiling. Madrid applies 29% — near the maximum, so a Madrid result is close to the worst case rather than typical.
The coefficients. National law sets the maximum coefficient per year of ownership, but each town hall publishes its own within those limits. The 2026 table above is Madrid's.
The filing route. Madrid has its own official calculator and online self-assessment. Smaller municipalities may have neither, and some still work by assessment rather than self-assessment.
What people ask most about
capital gains tax in Madrid.
Is capital gains tax the same as the plusvalía municipal?
No — and this is the most common confusion for foreign sellers. They're two separate taxes on the same sale. Capital gains tax is national: you pay it to the Spanish Tax Agency on your profit, through IRPF if you're a Spanish tax resident or IRNR (a flat 19%) if you're not. The plusvalía municipal is local: you pay it to your town hall on the increase in the land's value, whether or not you made a profit overall. Both fall due on the same sale. The plusvalía is deductible when calculating the gain for the national tax, so it's worth working it out first.
How much is the plusvalía municipal tax in Madrid?
Madrid's plusvalía municipal depends on your property's cadastral land value (VCS) and how many years you've owned it. With a VCS of €60,000 and 5 years of ownership, the indicative amount is around €2,958. At 15 years it drops to around €2,610, because the coefficient is lower. The tax rate in Madrid city is 29%. Check the VCS on your latest IBI bill and calculate it above.
How does this page's plusvalía municipal calculator work?
It's an indicative, non-official calculator. It applies the objective method: it multiplies the cadastral land value by the coefficient for your years of ownership and applies Madrid's 29% rate. If you also enter the purchase price, sale price and total cadastral value, it also calculates the real-gain method using the land's share of that value, and shows you which of the two comes out cheaper — the one Madrid City Council would actually apply. It doesn't replace the official self-assessment.
Who pays the plusvalía municipal tax when selling a flat in Madrid?
In a sale, the plusvalía municipal is always paid by the seller — it's their tax obligation to Madrid City Council. In an inheritance, the heir pays it. In a gift, whoever receives the property pays it. Buyer and seller can agree that the buyer covers this cost instead, but that's not the norm, and it doesn't change the formal obligation to the City Council — the seller remains the party liable for the tax.
When is the plusvalía municipal tax not payable in Madrid?
You don't pay plusvalía municipal when you sell for less than you paid (a loss, proven with the deeds). Nor when a primary home is handed to the bank to settle a mortgage debt (dación en pago). On inheritances, rebates can reach 95% if it was the deceased's primary home, the heir is a direct family member, and the cadastral land value doesn't exceed €60,000.
What are the two methods for calculating the plusvalía municipal?
Since Royal Decree-Law 26/2021 there have been two legal methods: the objective method and the real-gain method. The objective method multiplies the cadastral land value by the coefficient for your years of ownership. The real-gain method works out the land's actual gain in proportion to the sale's total gain. The City Council automatically applies whichever is more favourable to the taxpayer.
When do you have to pay the plusvalía municipal tax in Madrid?
On a sale: 30 business days from signing the deed. On an inheritance: 6 months from the death, extendable by another 6 if requested within the initial period. Paying late means late-payment interest and, on inheritances, losing the rebate.
Can the plusvalía municipal tax be deducted from Spanish income tax (IRPF)?
Yes — the plusvalía municipal you paid is a deductible expense for Spanish income tax (IRPF) when calculating the capital gain. It's subtracted from the transfer price to work out the real gain that's taxed. Keep the payment receipt to include with the tax return for the year you sold.
Does the plusvalía work the same way in the rest of Spain?
The calculation method is identical nationwide — the IIVTNU is set by national law, including both the objective and real-gain methods and the rule that the lower of the two applies. What changes from town to town is the tax rate (capped at 30% nationally; Madrid charges 29%) and the coefficients per year of ownership, which each town hall publishes within the national limits. The calculator on this page uses Madrid's figures, so for a sale elsewhere in Spain treat the result as a ballpark and substitute your own municipality's rate and coefficient table.
flat worth?
Before you work out the taxes, you need the real market price of your property. Our assistant gives you an instant commercial valuation using comparable market data. Free, no obligation.
Valuation by area
Real data for your part of Madrid
Estimated net after tax
Income tax (IRPF) + plusvalía + commission
In 2 minutes
No sign-up, no waiting