Selling a property in Spain as a non-resident: the 3% withholding, the capital gain and the plusvalía municipal

Updated on 1 August 2026. Articles, rates and deadlines checked against the consolidated texts published on the BOE, Spain's official gazette: the IRNR Law and its regulation, the IRPF Law and its regulation, the Local Finances Law and the General Tax Law.

Quick answer

When a non-resident sells a property in Spain, three separate things get paid. The buyer withholds 3% of the agreed price and pays it in within one month as a payment on account (article 25.2 of the Ley del IRNR, Spain's non-resident income tax law); then you declare the capital gain yourself at 19% and offset that withholding, within the three months following the end of that month. If the withholding is more than the tax you claim the refund on the return itself, and if it falls short you pay in the difference. The plusvalía municipal, the town hall tax on the increase in urban land value, is paid by the buyer as substitute taxpayer when the seller is a non-resident individual (article 106.2 of the Ley Reguladora de las Haciendas Locales).

Selling the flat is the transaction where a non-resident moves the most money at once, and the one where the most wrong information is in circulation. Almost all the noise comes from mixing up three things that are separate: the 3% the buyer holds back from you, the tax you actually pay on the gain, and the plusvalía municipal charged by the town hall. Here are the three of them, with the article behind each one, the deadline and who pays.

The three things that get paid, and that almost nobody separates

In a sale made by a non-resident there are three different payments, with three different recipients and three different calendars. Mixing them up causes most of the nasty surprises.

What gets paidWho pays it inTo whomWhen
3% withholding on the priceThe buyer, by deducting it from what he pays youThe AEAT (Agencia Estatal de Administración Tributaria, the Spanish tax agency), at the office covering the place where the property is1 month from the date of the transfer (article 14.3 of the IRNR Regulation)
IRNR on the gain, at 19%You, the sellerAEAT3 months counted from the end of that month (article 14.4)
Plusvalía municipalThe buyer, as substitute taxpayer, when the seller is a non-resident individualThe town hall where the property is30 working days from the transfer (article 110.2.a) of the Local Finances Law)

All three are born on the same day, the date of the transfer, and they fall due at very different moments. And there is something less comfortable: the IRNR gain and the increase in value for the plusvalía municipal are worked out with different arithmetic on the very same sale. In the IRNR, costs and taxes reduce the gain (article 35 of the IRPF Law, Spain's resident income tax law); in the plusvalía municipal, to check whether there was an increase at all, costs and taxes are not counted (article 104.5). The two can point in opposite directions without anyone having made a mistake.

The 3% withholding: the buyer applies it, on the price

Article 25.2 of the IRNR Law says it without hedging: in transfers of property located in Spanish territory by taxpayers acting without a permanent establishment, «el adquirente estará obligado a retener e ingresar el 3 por ciento [...] de la contraprestación acordada, en concepto de pago a cuenta del impuesto», the buyer must withhold and pay in 3% of the agreed consideration as a payment on account of the tax. Article 14.1 of the IRNR Regulation repeats the same sentence word for word.

Three practical consequences follow from it:

There are only two situations in which nothing is withheld (article 14.2 of the Regulation): where you prove, with a certificate issued by the tax authorities, that you are taxed under the IRPF or under corporate income tax, and contributions of property to the incorporation or capital increase of companies resident in Spain.

And if the buyer does not withhold, or withholds and does not pay it in? The problem becomes his, and the property's. Article 25.2 provides that the transferred asset is charged with the payment of the lower of that withholding and the tax, and article 14.5 of the Regulation orders the land registrar to record it in a note in the margin of the entry, stating the amount for which the property answers. On top of that, article 31.3 closes the escape route: whoever is obliged to withhold takes on the obligation to pay in, «sin que el incumplimiento de aquella obligación pueda excusarles de ésta», without failing to do the first excusing them from the second.

The capital gain: both values are built, not copied

The gain is the transfer value minus the acquisition value (article 34.1.a) of the IRPF Law, which article 24.4 of the IRNR Law applies to non-residents). Neither of the two is the figure written in the deed.

The gain is taxed at a tipo (rate) of 19%, wherever you live (article 25.1.f).3.º). This is the one place in the whole operation where a British, Swiss, American or Russian owner can relax. The split between 19% and 24% in article 25.1.a), the one that moved residents of the United Kingdom from 19% to 24% when the country stopped being a Member State of the European Union in 2021, is the rate for renta imputada (the income Spain presumes an empty urban property produces) and for rent when you live outside the EU. It is not the rate on the sale. Applying the 24% to a sale inflates the tax by a quarter. And no reduction of any kind fits in a non-resident's base (article 24.1).

One relic of the past survives: the coeficientes de abatimiento, the tapering coefficients of the ninth transitional provision of the IRPF Law, which the first transitional provision of the IRNR Law extends to non-resident individuals. If you bought before 31 December 1994, the gain is reduced by 11.11% for each year of ownership at 31 December 1996 beyond the first two, and it falls out of charge altogether if that ownership period is over ten years. With two cutbacks: it only reaches the part generated before 20 January 2006, apportioned by days, and it lapses once the transfer value accumulated with tapering since 1 January 2015 reaches €400,000.

How the circle closes: a refund, or the difference to pay

Article 14.4 of the IRNR Regulation closes the loop: the non-resident taxpayer «deberá declarar, e ingresar en su caso, el impuesto definitivo, compensando en la cuota el importe retenido», must declare and, where applicable, pay in the definitive tax, offsetting the amount withheld against it, within three months counted from the end of the period the buyer had for paying the withholding in. One month for him and three more months for you: about four months from the signing. Your deadline does not run from the deed, and getting that wrong by one month turns a refund into a recargo (the surcharge for filing late). The sale is declared on the modelo 210 itself, with the income type code for transfers that applies (28, 33 or 34), and not with the one for imputed income.

The same flat, with two different sale prices, produces the two possible endings:

StepYou sell for €300,000You sell for €260,000
Price paid when buying in 2010€200,000€200,000
Plus ITP (Impuesto sobre Transmisiones Patrimoniales, the transfer tax on second-hand property), notary and land registry on the purchase€22,000€22,000
Plus refurbishment with invoices€18,000€18,000
Acquisition value€240,000€240,000
Sale price€300,000€260,000
Less selling costs paid by you€10,000€10,000
Transfer value€290,000€250,000
Capital gain€50,000€10,000
Tax at 19%€9,500€1,900
3% withholding already paid in by the buyer€9,000€7,800
Result of your returnYou pay €500You are refunded €5,900

The right-hand column is the more frequent case and the worst handled: because the 3% is worked out on the price and the tax on the gain, the less you make the more of the withholding is left over. That refund does not arrive on its own: you ask for it by filing the self-assessment (article 16.1 of the Regulation) and the Administration pays out the excess «previas las comprobaciones que sean necesarias», after whatever checks are necessary. If you never ask, the right lapses after four years (article 66 of the General Tax Law). And if you file late without a prior demand, the surcharge in article 27.2 is 1% plus another 1% for each full month of delay, and 15% once twelve months have passed.

The reinvestment relief on a main home, EU and EEA only

It is the only exemption with real reach, and it has strict borders. The seventh additional provision of the IRNR Law allows the gain on the transfer of what was your main home in Spain to be left out of charge, provided you reinvest the full amount obtained in acquiring a new main home. If you reinvest less, only the proportional part of the gain matching what you reinvested is exempt.

The point that surprises everyone is in paragraph 3: the exemption does not remove the 3% withholding, nor the obligation to file. If the reinvestment has already taken place before the date on which you have to file, it is taken into account in working out the debt; if you do it afterwards, you file first and claim the refund later, within the three-month period set by the second additional provision of the IRNR Regulation.

There is a second exemption, far narrower: the fourth additional provision of the IRNR Law leaves 50% of the gain exempt on urban property acquired between the entry into force of Royal Decree-Law 18/2012 and 31 December 2012. It is a closed historical window. And one mirage worth ruling out early: the exemption in article 14.1.c) for residents in the EU covers gains on movable property, and it expressly excludes real property and entities whose assets are mainly Spanish real estate.

Plusvalía municipal: the buyer pays it if you are a non-resident individual

The tax on the increase in the value of urban land sits in articles 104 to 110 of the Local Finances Law. It taxes the increase in the value of the land, not of the flat: in a block of flats the land is isolated by applying the proportion that the valor catastral of the land (the valor catastral is the value the Catastro, Spain's official property register for tax purposes, assigns to each property) represents within the total valor catastral (article 104.5), and that proportion is applied to both figures, purchase and sale. Comparing the full prices in the two deeds is the most repeated calculation error there is.

Taxable base systemHow it is worked outRule
ObjectiveThe valor catastral of the land at the accrual date, times the coefficient for the period over which the increase built up, counted in whole years and capped at twentyarticles 107.1, 107.2.a) and 107.4
RealThe increase in value actually obtained, where it comes out lower than the objective base. It operates «a instancia del sujeto pasivo», at the taxpayer's requestarticle 107.5

If there was no increase in value there is no charge, but that does not operate by itself: you have to declare the transfer and produce the deeds of acquisition and of transfer (article 104.5), taking the higher of the value in the deed and the value checked by the Administration. The coefficients in article 107.4 are legal maximums updated every year; what actually applies is the one in your municipality's ordenanza (the town hall's own by-law), and the tax rate cannot exceed 30% (article 108.1).

And here is the point that changes the negotiation of the sale. In a sale for consideration the taxpayer is the transferor (article 106.1.b)), but where the transferor is a non-resident individual the buyer becomes the sujeto pasivo sustituto del contribuyente, the substitute taxpayer (article 106.2): the buyer pays, and it is the buyer who has to report the transaction to the town hall within thirty working days (articles 110.2.a) and 110.6.b)). The notario, for his part, expressly warns of that deadline at the signing (article 110.7). One knock-on effect in your IRNR: the plusvalía municipal only reduces your gain if you were the one who paid it (article 35.2 of the IRPF Law), so who actually pays it changes the base of your own tax.

The paperwork you need ready before you sign

Everything that reduces your gain has to be documented on the day the tax office asks for it, and the time to gather it is before the signing, not four months later.

Keep all of it for at least four years: that is the limitation period in article 66 of the General Tax Law and it runs in both directions, the tax office's to review you and yours to claim the refund. And if you live outside the European Union, bear in mind that the Administration can require you to appoint a representante fiscal (a fiscal representative) in Spain simply because you own a property here (article 10.1 of the IRNR Law).

The four mistakes that cost the most money

One warning in the interest of honesty: the sale is not covered by kontora's service today. What we do cover is the renta imputada of a property that is not let out, which is the mass case and the one with a closed calculation. A sale drags in the withholding, the plusvalía municipal, values that have to be rebuilt from old paperwork and, sometimes, a treaty as well: for that, the sensible thing is to sit down with a gestor (a Spanish tax agent) before you sign, not afterwards.

File your own modelo 210 for €19.95 + IVA. kontora works out the tax and prepares the completed form; you do the filing. How it works · tell me when it opens.

Frequently asked questions

Can I get back the 3% that was withheld from me?
Yes, if the withholding is more than the tax due. Article 16.1 of the IRNR Regulation lets you claim the excess back, and you do it by filing the self-assessment on the gain itself. Nobody refunds it automatically: if you do not file the return, the money stays where it is.
How long does the 3% refund take?
The rules set no fixed period. Article 14.4 of the IRNR Regulation says the Administration will refund the excess «previas las comprobaciones que sean necesarias», after whatever checks are necessary, and those checks set the pace. What does have a date is your side of it: four years to claim it, under article 66 of the General Tax Law.
I am selling at a loss. Do I still have to file?
Yes, and it is in your interest. The buyer withholds 3% of the price even if you lose money, and article 14.4 of the Regulation requires you to declare the definitive tax. The exemption from filing in article 28.3 of the IRNR Law refers to the withholdings of article 31, not to this one. With no return there is no refund. The same happens with the plusvalía municipal: where there is no increase in value, the fact that no charge arises has to be claimed and proved with the purchase and sale deeds (article 104.5 of the Local Finances Law).
Who pays the plusvalía municipal if I am a non-resident?
The buyer. The taxpayer is still the seller, but article 106.2 of the Ley Reguladora de las Haciendas Locales turns the buyer into the substitute taxpayer where the transferor is an individual not resident in Spain. It only works with individuals: if the seller is a non-resident company, the taxpayer remains the transferor under article 106.1.b).
I bought the flat before 1994. Do I pay less?
Possibly, but less than is usually promised. The ninth transitional provision of the IRPF Law reduces the gain by 11.11% for each year of ownership at 31 December 1996 beyond the first two, and with more than ten years of ownership that part falls out of charge. But the reduction only reaches the gain generated before 20 January 2006, apportioned by days, and it disappears once the transfer value of this sale plus the earlier ones with tapering since 1 January 2015 reaches €400,000. That limit is cumulative and per taxpayer, not per transaction.
What if the buyer did not withhold the 3%?
You are still obliged to declare the gain, and you will have nothing to offset against the tax: you pay the full 19%. For him it is worse: article 25.2 of the IRNR Law leaves the property charged with the payment of the lower of the withholding and the tax, the land registrar records it in a note in the margin (article 14.5 of the Regulation) and article 31.3 obliges him to pay in even though he did not withhold.
Do I have to pay in my country of residence as well?
Spain taxes the sale in every case: the gain on a property located here counts as obtained in Spanish territory (article 13.1.i).3.º of the IRNR Law) and the double taxation treaties recognise that, with wordings that run from «may be taxed in that other State» to «shall be taxable only in the State in which the property is situated». The treaty is there so that your own country removes the double taxation on its side, not to exempt you in Spain. To invoke it you will have to attach your tax residence certificate (article 7.1 of the IRNR Regulation). Read the treaty your country has with Spain, because each one is worded differently.

Keep reading

Modelo 210: the Spanish non-resident tax, explained in full

Are you a Spanish tax resident? The 183-day rule, and the other two almost nobody looks at

Renting out a property in Spain as a non-resident: what you pay and when you declare it

Rather have this calculated for you?

kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.

Pricing · Calculators