Skip to content

Draft: copy pending approval and native review.

Menu

Municipal capital gains tax when a non-resident sells a flat in Spain: tax guide

Tributame teamLast reviewed:

In short

Municipal capital gains tax is a council tax on the increase in the value of urban land, and living outside Spain does not exempt you from it. If the seller is a non-resident individual, the buyer declares or self-assesses it and pays it as a substitute, and can ask the seller for what they paid. In sales, the deadline is 30 working days.

It is one of the procedures that causes the most headaches when you sell a home from abroad, because it mixes local and state rules with an unforgiving calendar of deadlines. If you have just sold your flat in Madrid or on the coast and live in Berlin or Buenos Aires, and a letter arrives from the council about a tax you did not expect, do not worry: we explain it without jargon and with examples.

Diagram of a house, euro coin and municipal tax document

What this capital gains tax is

Municipal capital gains tax (officially, the Tax on the Increase in Value of Urban Land, IIVTNU, known in Spanish as “plusvalía municipal”) is a local tax that taxes the increase in value of urban land from when you bought the property until you sell or transfer it. It is collected by the council of the municipality where the flat is located, not by the Tax Agency.

And here comes the surprise that catches many people out: being a tax non-resident in Spain (in Spanish) does not exempt you from this tax. The tax obligation arises from transferring a property located in Spanish territory, regardless of where you live, your nationality or whether you have a NIE. If the flat is in Spain, the IIVTNU accrues. It is a different tax from the one paid to the tax authorities on the gain with the Modelo 210, which we explain in the guide to the Modelo 210 for the sale of a property.

In practice, think of Juan, a German based in Munich who inherited a small flat in Málaga from his grandfather and sells it. The tax accrues just as if the seller were a neighbour born in the same building. The difference: as Juan is a non-resident individual, the person who declares or self-assesses it and pays it is the buyer, as a substitute, under each council’s ordinance. The buyer can ask Juan for what they paid: in practice it is deducted from the sale price and it is wise to have it written into the contract. If a non-resident company sells, it pays it. If several co-owners sell, each transfers their share: the buyer is a substitute for the share of those who are non-resident individuals, and the other sellers pay it themselves. What is agreed in the contract about who bears it holds between buyer and seller, but does not change who is obliged towards the council.

What changes with the 2021 reform is that the IIVTNU is no longer always calculated on the cadastral value of the land. There are now two systems: the objective one (the usual one, based on the cadastral value) and the real-increase one (on the real increase in value, which can come out much cheaper). We detail it in the next section.

How it is calculated

Since the Constitutional Court ruling of 2021 and the later legal reform, there are two methods to calculate the tax due:

Method 1: objective system (the traditional one). The cadastral value of the land at the time of the sale (the one on the IBI receipt) is multiplied by the coefficient the council’s ordinance sets for the years you have held the property, up to a maximum of 20 years. The law caps each coefficient and those caps are often changed by law: the latest, with effect from 1 December 2026. If the ordinance has a coefficient above the cap in force, the cap applies. To that base the rate set by each council is applied, with a maximum of 30 %.

Method 2: direct estimate of the increase (real system). If the real increase in the value of the land is lower than the base of method 1, you can ask for that lower figure to be used. And if there is no increase, the sale is not subject to the tax. The real increase is calculated as follows:

  • The sale value and the purchase value shown in the deeds are compared (or the one checked by the authorities, if higher), without adding or deducting expenses or taxes: no notary, no IBI, not even the capital gains tax itself.
  • As the flat has land and construction, both values are multiplied by the proportion the cadastral value of the land represents of the total cadastral value on the date of the sale.
  • If the flat was inherited or received as a gift, the acquisition value is the one declared in the Inheritance and Gift Tax.

Example (illustrative figures): Marta, resident in Mexico, sold in 2024 for 195,000 euros a flat in Valencia she had bought in 2018 for 180,000 euros. On her IBI receipt, the land is 40 % of the total cadastral value. The real increase of the land is (195,000 − 180,000) × 40 % = 6,000 euros. If with the objective method the base comes out, for example, at 8,000 euros, she can ask for the 6,000 to be used. With a 30 % rate, the tax falls from 2,400 to 1,800 euros. Had she sold for less than she paid, there would be no capital gains tax to pay.

To apply the real method you have to declare the sale and provide the purchase and sale deeds. The law does not say it is lost if requested late, but the prudent course is to do it within the deadline for the declaration or self-assessment: outside it there are surcharges, and each ordinance regulates how it is proved. If you already self-assessed with the objective method and the real one gave you less, you can ask the council to correct your self-assessment.

Deadlines for the municipal capital gains tax

The general deadline to declare municipal capital gains tax on a sale is 30 working days from the signing of the sale deed. That means a little over a month. If the seller lives abroad, that period still runs: it is not extended. In an inheritance, by contrast, the deadline is six months from the death, extendable to a year if requested.

Step 1: the deed and the notary’s notice. At signing, the notary warns about the deadline to declare the tax and then notifies the sale to the council. That notification does not replace the declaration: the tax is declared or self-assessed with each council’s own form (not with Modelo 600, which is the one for Transfer Tax).

Step 2: identify the assessing office. Each council has a tax management office. Many allow the procedure on their electronic office; others require it in person. If you live abroad, you can appoint a representative to handle everything.

Step 3: file the declaration or the self-assessment. With the completed form, the deed and the evidence for the real method (if you use it). It is paid at a collaborating bank or by transfer if the council allows it.

Step 4: keep the receipt. You will be asked for it if the buyer (or their bank) wants to check that everything is in order before completing the transaction.

Frequently asked questions

As a non-resident, how can I pay the municipal capital gains tax from outside Spain?

If you are a non-resident individual, the buyer pays it as a substitute and deducts it from you. If it falls to you (for example, because a company is selling), it takes a little more effort. The most common options are: appoint a representative in Spain (a relative or a professional), pay by international transfer following the council’s instructions (some accept it, others do not), or settle it in person on a visit.

What if the buyer pays the municipal capital gains tax and deducts it from my price?

That is what the law provides when the seller is a non-resident individual: the buyer pays as a substitute and can claim from you what they paid. It is wise to have it written into the sale contract: for example, that the buyer pays the municipal capital gains tax and deducts it from the price the seller receives.

What happens if I do not settle the municipal capital gains tax on time?

If you file late on your own initiative, before the council asks you for anything, you pay a surcharge of 1 % plus another 1 % for each full month of delay, and 15 % with late-payment interest after 12 months. If the council gets there first, it assesses ex officio with late-payment interest and may penalise. In addition, the council can start enforcement proceedings if the debt is not paid.

Can the municipal capital gains tax be appealed?

Yes. The first route is the appeal for reconsideration before the council itself (free, within one month of the notification). In most municipalities, after that the only route left is an appeal to the administrative courts (with a lawyer and a court representative, within two months). In large municipalities there is also a body of their own for economic-administrative claims, which is free: there the reconsideration is optional and you can claim before that body before going to court. The 2021 Constitutional Court ruling and the 2021 reform already greatly reduced litigation, but appeals are still useful in cases where the objective method gives exorbitant amounts.

Conclusion on the municipal capital gains tax

Municipal capital gains tax when a non-resident sells a flat in Spain is a procedure that, done well, with the real-increase method and the deadlines well planned, can save hundreds or even thousands of euros. The important thing is not to leave it to the end, not to sign the deed without first working out who pays it and how much, and, if you live abroad, to have someone you trust in Spain to handle the paperwork. What the seller pays for the capital gains tax counts as an expense of the sale when calculating the gain in the Modelo 210.

Sources

This guide is for information only. If an owner's case is out of the ordinary, get a professional review.