Skip to main content
Non-Resident Taxation Handbook (October 2026)

Asset gains arising from the sale of property

Internal regulations

Regulations: Article 13.1(i) of the IRNR Act

In accordance with internal regulations, asset gains are regarded as income earned in Spanish territory when they derive from immovable property situated in Spanish territory.

Partial exemption:

Regulations: Fourth Additional Provision of the IRNR Act

Asset gains arising from the sale of urban properties situated in Spain that were acquired between 12 May 2012 and 31 December 2012 are exempt from tax at a rate of 50 per cent. This partial exemption does not apply:

  • In the case of individuals, where the property has been acquired from or transferred to their spouse, to any person related to the taxpayer by blood or marriage, in the direct or collateral line, up to and including the second degree, or to an entity in respect of which, with the taxpayer or with any of the aforementioned persons, any of the circumstances set out in Article 42 of the Commercial Code, irrespective of residence and the obligation to prepare consolidated annual accounts.

  • In the case of legal entities, where the property has been acquired or transferred to a person or entity in respect of whom any of the circumstances set out in Article 42 of the Commercial Code apply, irrespective of their place of residence and of any obligation to prepare consolidated annual accounts, or to the spouse of the aforementioned person or to any person related to them by blood or marriage, whether in the direct line or collateral line, up to and including the second degree.

Exemption for reinvestment in a principal residence for taxpayers resident in another EU Member State, Iceland, Norway and, since 11 July 2021, Liechtenstein:

Regulations: Seventh Additional Provision of the IRNR Act

In the case of taxpayers resident in a Member State of the European Union or the European Economic Area with an effective exchange of tax information (with effect from 11 July 2021, references in the legislation to States with which there is an effective exchange of tax information shall be deemed to refer to States with which there is legislation on mutual assistance in the exchange of tax information in accordance with the provisions of Law 58/2003 of 17 December, the General Tax Law, as applicable. (See Annex V), asset gains arising from the sale of what was previously their main residence in Spain may be exempt from tax burden, provided that the total proceeds from the sale are reinvested in the purchase of a new main residence. Where the amount reinvested is less than the total proceeds received from the transfer, only the proportion of the asset gain corresponding to the amount reinvested shall be exempt from tax.

Where the reinvestment has taken place prior to the date on which the tax return is due to be filed, the reinvestment, whether in full or in part, may be taken into account when determining the corresponding tax debt.

Notwithstanding the above, the purchaser of the property will be required to perform withholding of tax (using Form 211), as well as to submit the tax return (Form 210, subsection H) and pay the corresponding tax debt.

On self-assessment form 210, code 33 should be entered as the type of income tax if the reinvestment took place before the transfer, or code 34 if the reinvestment took place after the transfer.

If the reinvestment took place after the deadline for submitting the tax return, a full or partial refund of the tax debt paid in respect of the asset gain realised may be requested by submitting the application form approved by Order HAP/2474/2015 of 19 November (BOE of 24 November).

Agreement

In accordance with the treaties signed by Spain, gains arising from the disposal of immovable property situated in Spanish territory may be subject to taxation in Spain.

Taxation

Regulations: Articles 24, 25 and 26 of the IRNR Act

Income received without the involvement of EP must be taxed separately for each full or partial accrual of the taxable income.

The taxable base for asset gains shall be determined, as a general rule, by applying the personal income tax rules to each change in assets. Gains will be calculated as the difference between the transfer value and the acquisition value.

In the case of onerous transmissions, the acquisition value shall consist of the actual amount for which the property was acquired, plus the cost of any investments and improvements (1) made, (excluding, for these purposes, maintenance and repair costs), to which shall be added the amount of the expenses (commissions, notary fees, Land Registry fees, etc.) and taxes relating to the acquisition (Property Transfer Tax and Stamp Duty, VAT, or Inheritance and Donation Tax if the acquisition was made free of charge), excluding interest, paid by the current transferor. The amount thus determined shall be reduced, where applicable, by the amount of amortization calculated in accordance with the regulations, whilst the minimum amortization shall be taken into account in all cases (2)

(1) In the case of assets to which improvements have been made in a year other than that of their acquisition, it will be necessary to distinguish between the portion of the transfer value corresponding to the asset itself and that corresponding to the improvement or improvements made, in order to determine, separately and independently, both the asset gains or losses arising from the asset and from the improvements, and any reduction that may apply. For these purposes, the values and dates of acquisition to be used shall be those corresponding, respectively, to the asset and to each of the improvements carried out. (Back)

(2) ‘Tax-deductible’ amortization applies to property used for business purposes, to property that is on a lease or sublease, and to rights in rem relating to the use and enjoyment of immovable property. In such cases, the minimum amortization shall be calculated, irrespective of whether it is actually treated as an expense.

For leased properties, the minimum amortization amount is determined by applying a rate of 3 per cent to the higher of the following values: the purchase price paid or the cadastral value, excluding the value of the land. Where the value of the land is unknown, it shall be calculated by apportioning the purchase price paid between the cadastral values of the land and the building for each year. In the case of immovable property acquired for profit, the acquisition cost is the value of the property as determined in accordance with the rules governing Inheritance and Donation Tax or its value as established for the purposes of these taxes, excluding the value of the land, and the amount of tax paid plus the costs associated with the acquisition and, where applicable, the full amount of any investments and improvements made. (Interpretative criteria established by the Supreme Court in judgment number 1130/2021, of 15 September). (Back)

For transfers taking place on or after 1 January 2015, the update coefficients have been abolished.

The transfer value shall be the actual amount for which the disposal took place, less the amount of the expenses and taxes relating to the transfer that were borne by the seller.

Where the acquisition or transfer has been for consideration or free of charge ( inheritance, bequest or donation), the above rules shall apply, with the actual value of the respective assets being taken as the value resulting from the application of the rules governing Inheritance and Gift Tax, provided that this does not exceed the market value.

The difference between the transfer value and the acquisition value determined in this way will be the gain subject to tax.

Transitional arrangements:

Regulations: Sole Transitional Provision of the IRNR Act

However, in the case of individuals, if the property was acquired before 31 December 1994, the capital gain previously calculated may be reduced as a transitional regime applies .

In such cases, the following rules must be taken into account:

Only that part of the asset gain realised prior to 20 January 2006 would be eligible for a reduction.

  • Rule 1. Calculation of the portion of the asset gain realised before 20 January 2006

    The portion of the asset gain eligible for reduction is determined on the basis of the proportion of the days elapsed from the date of acquisition up to 19 January 2006 in relation to the total number of days elapsed from the date of acquisition up to the date of disposal.

  • Rule 2. Calculating the reduction (see example at)

    The portion of the profit generated prior to 20 January 2006 shall be reduced, where applicable, as follows:

    1. The number of years between the date of acquisition of the asset and 31 December 1996 shall be calculated and rounded up.

    2. The transfer value shall be calculated for all assets in respect of which this same transitional regime would have applied to the asset gain, and which were transferred between 1 January 2015 and the date of transfer of the asset. (Where this figure exceeds 400,000 euros, no reduction shall be made.)

    3. Where the sum of the transfer value of the asset and the amount referred to in point (b) above is less than 400,000 euros, the portion of the asset gain generated prior to 20 January 2006 shall be reduced by the amount resulting from applying 11.11 per cent for each year of ownership of the assets referred to in subparagraph (a) above that exceeds two.

    4. Where the sum of the transfer value of the asset and the amount referred to in sub-paragraph (b) above exceeds 400,000 euros, but the result of the provisions of sub-paragraph (b) above is less than 400,000 euros, the reduction shall be applied to that part of the asset gain generated prior to 20 January 2006 which, on a pro rata basis, corresponds to the portion of the transfer value which, when added to the amount referred to in point (b) above, does not exceed 400,000 euros.

    If the taxpayer has acquired the property on two different dates or the property has undergone improvements, the calculations must be carried out as if there were two asset gains, with different holding periods for the application of the reduction coefficients and different update coefficients.

The applicable tax rate is 19 per cent

Deductions: the following may be deducted from the tax quota:

  • Charitable donations tax deductions, in accordance with the provisions of the Personal Income Tax Act and the Act on the Tax Regime for Non-Profit Organisations and tax incentives for philanthropy.

  • The withholding made by the purchaser of the property.

Withholding on account

Regulations: Article 25.2 of the IRNR Act; Article 14 of the IRNR Regulations and Article 8 of Order EHA/3316/2010 of 17 December, approving IRNR self-assessment forms 210, 211 and 213.

The person purchasing the property, whether a resident or a non-resident, is obliged to withhold 3 per cent of the agreed purchase price and pay it to the Treasury. For the seller, this withholding constitutes a payment on account of the tax due on the capital gain arising from the transfer.

The purchaser shall pay the withholding using Form 211 within one month of the date of transfer, and shall provide the non-resident vendor with a copy of Form 211, so that the latter may deduct the withholding tax from the tax quota arising from the capital gains tax return. If the amount withheld exceeds the tax quota, a refund of the excess may be claimed.

Example: Property transfer on 31 December 2019 for 300,000 euros, which was acquired on 1 January 1991 for the equivalent of 100,000 euros. The taxpayer had previously transferred, on 1 February 2015, another asset (with a transfer value of 200,000 euros), to the asset gain on which the transitional regime was applied.

Determination of taxable profit:

  • Asset gain (difference): 300,000 – 100,000 = 200,000

  • Profit generated up to 19 January 2006: €103,824 (1)

  • Profit subject to reduction: €69,216 (2)

  • Reduction: €30,759.6 (3)

Taxable asset gain: €169,240.4 (4)

Notes on the example:

(1)

  • Number of days elapsed between the purchase and sale dates: 10,591
  • Number of days elapsed between the purchase dates and 19 January 2006: 5,498

Calculation: (200,000 × 5,498) / 10,591 = 103,824 (Back)

(2)

  • Transfer value limit: €400,000

  • Total transfer value of other assets transferred from 1 January 2015 up to the date of the current transfer: €200,000

  • Although the current transfer value is €300,000, as €200,000 of the €400,000 limit was already used in the previous transfer, only €200,000 remains to be used in the current transfer.

The portion of the profit generated up to 19 January 2006 that corresponds proportionally to a transfer value of €200,000 is eligible for a reduction.

Calculation: (103,824 × 200,000) / 300,000 = 69,216 (Back)

(3)

  • Period of ownership prior to 31 December 1996 (between the date of acquisition and 31 December 1996, rounded up): 6

  • No. of years exceeding 2: 6–2 = 4

  • Percentage reduction: 4 × 11.11% = 44.44%

Calculation: (69,216 × 44.44) / 100 = 30,759.6 (Back)

(4) Calculation: Difference – Reduction = 200,000 – 30,759.6 = 169,240.4 € (Back)

(return on investment)