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

A seller who is not tax resident in Spain and disposes of Spanish property faces three obligations that are frequently confused: Non-Resident Income Tax on the gain, the 3 per cent withholding applied by the buyer, and the municipal plusvalía. The starting point is straightforward. What is taxed is the gain, not the price, at 19 per cent whatever the seller’s country of residence; the withholding is no more than a payment on account; and the sale is not closed until the seller files their own return.

Which taxes the sale triggers

Article 13.1.i).3.º of the consolidated Non-Resident Income Tax Act, approved by Royal Legislative Decree 5/2004 (TRLIRNR), treats capital gains deriving from property located in Spain as income obtained in Spain. The sale is therefore subject to Non-Resident Income Tax (IRNR). Alongside it, the buyer must withhold 3 per cent of the price on account of that tax, and the town hall levies the Tax on the Increase in Value of Urban Land, which has its own rules and its own deadline.

How the gain is computed

Article 24.4 TRLIRNR refers to the rules of Personal Income Tax Act 35/2006 (LIRPF). The gain is the difference between the transfer value and the acquisition value (Article 34 LIRPF), each determined under Article 35 LIRPF:

  • Acquisition value: the actual purchase price, plus the cost of investments and improvements and the expenses and taxes inherent in the purchase (transfer tax or VAT, notary, land registry), excluding interest, and less any tax-deductible depreciation, which is relevant where the property has been let.
  • Transfer value: the actual sale price, which may not be lower than normal market value, less the expenses and taxes inherent in the sale borne by the seller, such as the estate agent’s commission or the plusvalía itself.

Where the property was inherited or received as a gift, the acquisition value is the value resulting from the Inheritance and Gift Tax rules, capped at market value (Article 36 LIRPF). Since 2015 Article 35 LIRPF has made no provision for inflation indexation coefficients.

Improvements count only if they are supported by invoices and payments in the seller’s name, and they must not be confused with maintenance and repairs. We cover this in detail in our article on the 3% withholding and the refund.

The rate: 19 per cent for every non-resident

Article 25.1.f).3.º TRLIRNR taxes gains arising on the transfer of assets at 19 per cent, whether the seller lives in Germany, the United Kingdom, Switzerland or the United States. The Directorate General for Taxes (DGT) applied it in exactly that way, for example, to a Swiss resident in binding ruling V1340-26 of 2 June 2026. The distinction drawn by Article 25.1.a) between 19 per cent for European Union residents and 24 per cent for everyone else governs other income, such as imputed income or rent, not the gain on a sale.

Residence in the European Union, or in Iceland, Norway or Liechtenstein as European Economic Area states with an effective exchange of tax information, matters on two other points. It opens the way to the reinvestment exemption discussed below. And Article 24.6, rule 2, applies the Personal Income Tax capital gains rules to these taxpayers without exception, whereas Article 24.4 excludes for everyone else Article 33.2 LIRPF, which deals with the division of jointly owned property and the dissolution of co-ownerships, a point of interest in the dissolution of a co-ownership with a non-resident.

A worked example

A German resident bought a house in Mallorca in 2011 for €300,000, with €24,000 of taxes and costs, and in 2016 carried out documented improvement works for €40,000. The property was never let. In 2026 it is sold for €600,000, with €36,300 of estate agent’s commission, VAT included, and €4,700 of plusvalía.

  • Transfer value: 600,000 − 36,300 − 4,700 = €559,000.
  • Acquisition value: 300,000 + 24,000 + 40,000 = €364,000.
  • Gain: €195,000. Tax at 19 per cent: €37,050.
  • Buyer’s withholding, 3 per cent of 600,000: €18,000.
  • Modelo 210: €19,050 payable.

Had the property sold for €380,000, there would have been a loss, the tax due would have been nil and the seller could have recovered the €11,400 withheld.

The 3 per cent withholding and Modelo 211

Article 25.2 TRLIRNR requires the buyer, whether resident or not, to withhold and pay over 3 per cent of the agreed consideration as a payment on account of the seller’s tax. Under Article 14.3 of the Non-Resident Income Tax Regulations (Royal Decree 1776/2004, RIRNR) and Article 8 of Order EHA/3316/2010, the buyer pays it on Modelo 211 within one month of the transfer and hands the seller their copy, which the seller will need in order to credit the amount withheld.

No withholding applies if the seller proves, by a certificate from the tax authorities, that they are subject to Personal Income Tax or Corporate Income Tax, nor where property is contributed on the incorporation or capital increase of a Spanish resident company (Article 14.2 RIRNR).

If the withholding is not paid over, the property stands charged with payment of the lower of two amounts, the withholding or the tax, and the land registrar records this by a marginal note (Articles 25.2 TRLIRNR and 14.5 RIRNR). The obligation is above all a risk for the buyer, which is why the deed should record the withholding and its amount should be deducted from the price on completion.

The seller’s Modelo 210: deadline and refund

The withholding does not take the place of a return. The seller declares the final tax on Modelo 210, crediting the amount withheld, within the three months following the end of the one-month period the buyer has to pay over the withholding (Article 14.4 RIRNR and Article 5.a) of Order EHA/3316/2010). In practice that is about four months from completion, whether the return shows tax payable or a refund. Order HAC/623/2026, which changed the deadlines for imputed income and rental income, has left this one unchanged.

Where the withholding exceeds the tax, the excess is claimed in the Modelo 210 itself, attaching the copy of Modelo 211 (Article 7.2 of the Order). The tax authorities have six months from the end of the filing period, or from filing if the return was late, to issue a provisional assessment; if within that period they have not ordered payment of the refund for reasons not attributable to the taxpayer, late payment interest accrues on the outstanding amount. This follows from Article 103, paragraphs 1 and 4, of Act 35/2006, to which the reference in Article 16.2 RIRNR to the former consolidated Personal Income Tax Act is to be read (binding ruling V2448-24 of 4 December 2024). The purchase deed and evidence of costs and improvements are commonly requested before any refund is paid, so the file should be complete from the outset.

A sale is also the moment at which undeclared imputed income from earlier years comes to light, and it is advisable to regularise it beforehand.

The municipal plusvalía

The tax falls on the increase in the value of urban land that becomes apparent on the transfer (Article 104.1 of the consolidated Local Finance Act, Royal Legislative Decree 2/2004, TRLRHL). On a sale the taxpayer is the seller, but where the seller is a non-resident individual the buyer acts as substitute taxpayer (Article 106.2 TRLRHL) and is answerable for payment. Hence the practice of retaining the estimated amount in the deed.

Following Constitutional Court judgment 182/2021 of 26 October, Royal Decree-law 26/2021 of 8 November left two methods of calculation:

  • Objective method: the cadastral value of the land at the date of sale, which the town hall may reduce by up to 15 per cent, multiplied by the coefficient for the number of years of ownership, up to a maximum of twenty, within the statutory limits (Article 107.1 to 4 TRLRHL).
  • Actual method: if the taxpayer proves that the actual increase is lower, that figure is taken as the base (Article 107.5 TRLRHL).

The maximum coefficients in Article 107.4 are updated by a provision with the force of law, and each town hall approves its own in its by-law without exceeding them; if any coefficient exceeds the maximum, the statutory maximum applies directly. Those in force from 1 December 2026 are the coefficients in Article 10 of Royal Decree-law 29/2026 of 6 October, validated by the Congress of Deputies (Resolution of 12 November 2026). Until that date the coefficients set by Royal Decree-law 8/2023 apply, because Congress repealed the later updates made by Royal Decree-laws 9/2024, 16/2025 and 26/2026.

The rate is set by each town hall, up to a maximum of 30 per cent (Article 108.1 TRLRHL).

No gain, no tax. The transfer is not taxable if it is shown that the value of the land has not increased, comparing on sale and on purchase the higher of the value in the deed and the value established by the authorities, without taking costs into account and applying the proportion that the cadastral value of the land bears to the total (Article 104.5 TRLRHL). The return must be filed within thirty working days (Article 110.2.a) TRLRHL). On the time limits for claims, see our article on refund claims following the declaration of unconstitutionality.

Tax reliefs available to non-residents

Reinvestment in a main home. The seventh additional provision TRLIRNR allows residents of the European Union or of the European Economic Area with an effective exchange of tax information to exclude the gain on the sale of what was their main home in Spain if they reinvest the proceeds in a new main home, proportionately where the reinvestment is partial, on the conditions laid down in Article 38 LIRPF. The withholding is applied nonetheless. The relief does not extend to residents of the United Kingdom, Switzerland or the United States.

The over-65 exemption does not extend to non-residents. Article 33.4.b) LIRPF exempts the gain made by taxpayers over 65 on the sale of their main home, but it is a Personal Income Tax exemption. If the seller is no longer tax resident in Spain in the year of the sale, the gain is taxed under IRNR without any exemption (binding ruling V1340-26 of 2 June 2026, concerning a Swiss resident), and the only way to exclude it is the reinvestment relief in the seventh additional provision, where its conditions are met (binding ruling V2530-25 of 18 December 2025, concerning a French resident who did not intend to reinvest). Because Personal Income Tax is charged by full calendar years, a seller who sells in the year of departure and remains tax resident in Spain for that year under Article 9 LIRPF is still a Personal Income Tax payer and may claim the exemption if its conditions are met (the same ruling V1340-26). The order of the sale and the move should therefore be decided before signing.

Property acquired before 31 December 1994. The ninth transitional provision LIRPF reduces the part of the gain accrued up to 19 January 2006 by 11.11 per cent for each year of ownership up to 31 December 1996, rounded up, in excess of two. The limit is cumulative: the transfer value of the property, added to the transfer values of the assets sold since 1 January 2015 under this regime, must not exceed €400,000; if the sale goes beyond it, the reduction applies only to the proportional part that falls below the limit, and there is no reduction at all if the limit was already exhausted. The regime applies to non-resident individuals because the first transitional provision TRLIRNR declares the ninth transitional provision of the former consolidated Personal Income Tax Act applicable to individual taxpayers without a permanent establishment, and the seventeenth additional provision LIRPF reads references to that text as references to Act 35/2006. The DGT confirmed this, together with the €400,000 limit, for a United States resident selling a property partly inherited in 1988 (binding ruling V3321-16 of 14 July 2016). It does not extend to companies.

Property bought in 2012. The fourth additional provision TRLIRNR exempts 50 per cent of the gain on urban property acquired between 12 May 2012, the date on which Royal Decree-law 18/2012 came into force, and 31 December 2012, except for acquisitions from close relatives or related entities.

When the seller is a non-resident company

A foreign company without a permanent establishment in Spain is taxed on the gain under IRNR, also at 19 per cent, under the same rules and with the same withholding. The TEAC decision of 24 September 2026 (RG 00/07794/2023) makes clear that only what the company itself paid and can evidence counts as cost, that the tax authorities must prove any depreciation based on the property having been made available to others, and that allocating part of the price to furniture requires independent evidence. We discuss it in our article on the sale by a non-resident company. An entity resident in a tax haven also bears a special levy on its Spanish property (Article 40 TRLIRNR).

The tax treaty and the country of residence

Spain’s double taxation treaties generally give the state in which the property is located the right to tax the gain. The sale must also be reported in the country of residence, which will relieve double taxation by exemption or by credit for the Spanish tax, depending on the applicable treaty; Modelo 210 and the proof of payment are usually required for that purpose.

Under Article 13.1 of the treaty with Germany of 3 February 2011, Spain may tax the gain, and Germany does not exempt it: it credits the Spanish tax against German tax in accordance with its rules on the credit of foreign taxes, provided the property is not connected with a permanent establishment in Spain (Article 22.2.b).vii of the treaty). Under Article 13.1 of the treaty with the United Kingdom of 14 March 2013, the right to tax likewise lies with Spain, and the United Kingdom allows the Spanish tax as a credit against UK tax computed on the same gain (Article 22.2.a) of the treaty). Switzerland, by contrast, generally exempts income that may be taxed in Spain, although it may take it into account in setting the rate applicable to the remaining income (Article 23.2.a) of the treaty between Spain and Switzerland, as transcribed in ruling V1340-26).

Consistency between the two returns matters: in the decision cited above, the TEAC weighed against the taxpayer the failure to produce the return filed in its state of residence.

Checklist before signing

  • Tax residence: a certificate from the country of residence issued within the last year, required if the reinvestment exemption is claimed (Article 7.1 of Order EHA/3316/2010).
  • Acquisition cost: the purchase deed, the tax assessment paid at the time and, for inherited property, the inheritance tax return.
  • Improvements: invoices and proof of payment in the seller’s name.
  • Costs of sale: the agency invoice, notary fees and an estimate of the plusvalía.
  • Advance calculation: gain, tax due and comparison with the withholding, to set funds aside or anticipate a refund.
  • Deed: the 3 per cent withholding and the plusvalía deducted from the price, and a copy of Modelo 211 for the seller.
  • Past compliance: Modelo 210 returns up to date for all years not yet time-barred.
  • Representation: a tax representative where the authorities require one or the seller lives in a country without an effective exchange of tax information (Article 10 TRLIRNR), and an address for information requests and the refund.
  • Country of residence: reporting of the sale and application of the treaty.

Conclusion

A non-resident’s sale of Spanish property is taxed at 19 per cent on the gain, and the outcome is settled before completion, while it is still possible to gather evidence of the actual cost. The 3 per cent withholding rarely matches the final tax: if it falls short, the difference must be paid, and if it exceeds the tax, the refund must be claimed in a Modelo 210 filed on time and properly documented. The municipal plusvalía, borne by the seller but secured by the buyer, completes the picture.

At Lex·on we advise non-resident sellers from the advance calculation of the gain through to the filing of Modelo 210 and the refund claim, working alongside our real estate and international tax practices, from Palma de Mallorca and Manacor. If you are preparing the sale of a property in the islands, we can review it before the deed is signed.

If you are a non-resident preparing to sell a home in Mallorca, Tramuntana Tax, the international desk run by the same partners, explains the 3% withholding, the municipal tax and the refund on the sale of a Mallorca home.

About the author

Juan Pedro Vidal López

Partner at Lex·on. Member of the Bar Association of the Balearic Islands (ICAIB), no. 6948, and of the Spanish Association of Tax Advisors (AEDAF). He specialises in international taxation, tax proceedings and corporate and estate tax planning.

Source: Articles 10, 13.1.i).3.º, 24.4, 24.6, 25.1, 25.2 and 40, the fourth and seventh additional provisions and the first transitional provision of the consolidated Non-Resident Income Tax Act (Royal Legislative Decree 5/2004); Articles 14 and 16 of the Non-Resident Income Tax Regulations (Royal Decree 1776/2004); Articles 9, 33 to 36, 38 and 103, the seventeenth additional provision and the ninth transitional provision of Personal Income Tax Act 35/2006; Articles 5, 7 and 8 of Order EHA/3316/2010, as worded by Order HAC/623/2026; Articles 104, 106, 107, 108 and 110 of the consolidated Local Finance Act (Royal Legislative Decree 2/2004), as amended by Royal Decree-law 26/2021, and Article 10 of Royal Decree-law 29/2026 of 6 October; Articles 13 and 22 of the tax treaties with Germany of 3 February 2011 and with the United Kingdom of 14 March 2013; binding rulings of the Directorate General for Taxes V3321-16 of 14 July 2016, V2448-24 of 4 December 2024, V2530-25 of 18 December 2025 and V1340-26 of 2 June 2026; Constitutional Court judgment 182/2021 of 26 October; decision of the Central Economic-Administrative Court (TEAC) of 24 September 2026 (RG 00/07794/2023).
© Lexon Advisory, S.L.U. All rights reserved. The total or partial reproduction of this content, by any means or procedure, without the express written authorisation of its owner is prohibited. Any unauthorised use will constitute an infringement of intellectual property rights under applicable law.
This article is for information purposes only and reflects the administrative position in force on the date of publication. It does not constitute legal or tax advice and does not replace an individual analysis of each case.