top of page
лого.png

Selling Property as a Non-Resident in Spain

  • Writer: vissumlex
    vissumlex
  • 2 hours ago
  • 11 min read
Selling Property as a Non-Resident in Spain: 0% Tax

The alienation of property assets within the Kingdom of Spain entails strict fiscal obligations. For individuals over 65 years of age who are changing their tax jurisdiction or optimizing their asset portfolio, the 2026 legislation provides legal instruments to minimize the tax burden. Selling property as a non-resident in Spain, or as a resident planning to lose this status, requires precise qualification of the generated income. The key mechanism for capital protection is the transformation of the obtained profit into a life annuity. This article presents a comprehensive legal analysis of the application of tax exemptions when liquidating luxury real estate, investment properties, and commercial premises.


The Fiscal Impact of Selling Luxury Real Estate


Liquidating assets within the Kingdom triggers an obligation to pay Non-Resident Income Tax (IRNR) or Resident Income Tax (IRPF) on the generated profit. Rates can reach up to 28% for substantial amounts.


The Spanish tax system strictly categorizes taxpayers based on the criterion of fiscal residency. This status is determined by residing in the country for more than 183 days in a calendar year or maintaining the center of economic interests within its borders. When selling property as a non-resident in Spain occurs, the baseline tax applied is the IRNR (Impuesto sobre la Renta de no Residentes). The standard rate for EU and EEA residents is 19%, while for citizens of third countries, it is 24%. However, specifically regarding the capital gains tax derived from real estate transactions, the rate is fixed at 19% regardless of the seller's nationality.


A critical control mechanism is the mandatory 3% withholding tax (retención del 3%) on the transaction value. According to Article 25.2 of the Consolidated Text of the IRNR Law, the buyer is legally obligated to withhold this amount and remit it to the tax authority (Agencia Tributaria) using Modelo 211 within one month of signing the public deed (escritura pública). This withholding serves as an advance payment towards the final capital gains tax liability. If the actual tax owed is less than the withheld amount, the seller has the right to request a refund of the difference via Modelo 210.


The legal landscape changes drastically if the seller is a tax resident of Spain during the year the transaction takes place, but is planning on returning home and subsequently losing their residency status. In this scenario, the transaction falls under the jurisdiction of the IRPF law (Ley 35/2006). It is precisely the status of an IRPF taxpayer at the exact moment of asset transfer that unlocks access to unique tax exemptions, which are otherwise unavailable to strict non-residents (excluding EU residents who have opted for the regime equating them to Spanish residents).


Calculating Ganancia patrimonial (Up to 28%)


Ganancia patrimonial is calculated as the mathematical difference between the transmission value of the asset and its adjusted acquisition value. In 2026, this profit is taxed according to a progressive scale ranging from 19% to 28%.


To determine the exact sum of tax liabilities, it is necessary to correctly calculate the taxable base. The transmission value (valor de transmisión) is not always identical to the nominal price stated in the contract. Documented expenses incurred by the seller must be deducted from the nominal sale price. These deductible expenses include real estate agency commissions, legal fees, and the municipal tax on the increase in value of urban land (Plusvalía municipal - IIVTNU).


The acquisition value (valor de adquisición) is formed from the original purchase price, augmented by the sum of paid taxes (ITP or IVA), notary fees, and registration costs at the Registro de la Propiedad. Furthermore, costs for capital improvements and property expansion (inversiones y mejoras) are added to the acquisition value, provided there are corresponding municipal licenses and valid invoices. If the property was previously leased, the legally deducted depreciation amounts from previous tax periods must be subtracted from the acquisition value.


The resulting difference constitutes the Ganancia patrimonial. Within the IRPF system, this specific amount is integrated into the savings tax base (Base imponible del ahorro). The 2026 tax scale exhibits a highly progressive structure:


  • From 0 to 6,000 euros: 19%

  • From 6,000.01 to 50,000 euros: 21%

  • From 50,000.01 to 200,000 euros: 23%

  • From 200,000.01 to 300,000 euros: 27%

  • Over 300,000 euros: 28%


Consequently, when selling an investment villa with a net profit of 400,000 euros, the effective tax rate will gravitate towards the maximum brackets, extracting a significant portion of the capital. This exact scenario creates an acute need for the application of legal asset protection mechanisms.


Artículo 38.3 LIRPF: The Tax Nullification Mechanism


Artículo 38.3 LIRPF allows taxpayers over the age of 65 to completely exclude the profit derived from the sale of any property assets from their taxable base. The mandatory condition is the reinvestment of the funds into a life annuity contract.


Spanish tax legislation outlines two primary types of tax exemption upon the sale of real estate for individuals over 65. The first mechanism (Article 33.4.b LIRPF) applies exclusively to the primary residence (vivienda habitual). Upon its sale, the profit is automatically exempt from taxation, without any requirement for reinvestment. However, expat retirees frequently own second residences, holiday homes, or commercial properties, to which this automatic exemption does not apply.


For these specific cases, the legislator introduced the provision codified in Artículo 38.3 LIRPF. This article establishes that the Ganancia patrimonial obtained from the transfer of any patrimonial element (real estate, shares, investment funds, licenses) can be entirely excluded from taxation. The fundamental requirement is the targeted reinvestment of funds. The capital generated from the sale must be directed towards establishing a life annuity in favor of the taxpayer.


This mechanism is perfectly suited for situations involving selling property as a non-resident in Spain (holding EU resident status and applying IRPF rules) or an expat concluding their residency period in the country. The tax exemption in this context is not automatic; it demands proactive legal actions, strict adherence to statutory deadlines, and accurate declaration before the tax authorities.


The Procedure for Establishing a Renta vitalicia asegurada


Creating a Renta vitalicia asegurada requires executing a contract with an insurance company licensed by the Spanish Directorate-General for Insurance and Pension Funds (DGSFP). The process is strictly regulated regarding timelines and capital limits.


A life annuity contract is fundamentally an insurance product. The taxpayer transfers a single premium (the capital acquired from the real estate sale) to the insurance company, and the insurer commits to paying a periodic income (annuity) for the remainder of the taxpayer's life. For the Exención por reinversión to be recognized as legitimate by the tax authorities, the contract must comply with a series of rigid criteria established in Article 42 of the IRPF Regulation (Real Decreto 439/2007).


Firstly, the contract must be formalized with a licensed insurance entity. Secondly, the sole beneficiary of the annuity must be the taxpayer who generated the profit from the asset sale. Thirdly, the annuity payments must commence no later than one year from the date the insurance premium is paid. The frequency of these payments cannot be less than once a year, and the annual payment amount cannot decrease by more than 5% compared to the preceding year.


Special legal attention must be given to the conditions of early termination (rescate). If the Renta vitalicia asegurada contract includes a provision for capital return (surrender right), the surrender value cannot exceed the current mathematical reserve value of the policy. If the taxpayer exercises this surrender right, they are legally obligated to file a complementary tax return (declaración complementaria) for the fiscal year in which the exemption was originally applied, and pay the corresponding capital gains tax along with accrued late payment interest (intereses de demora).


VissumLex Practical Case: In 2025, our firm was retained by a 68-year-old British citizen, a tax resident of Spain. Due to declining health, returning home was imminent. He owned a villa in Alicante, which was not classified as his primary residence. The transmission value (net of deductible expenses) was 240,000 euros. The historical acquisition value was 50,000 euros. The Ganancia patrimonial amounted to 190,000 euros. Without strategic tax planning, the Base imponible del ahorro would have generated a tax liability of 42,580 euros. The VissumLex legal team structured the transaction. Within three months of signing the deed of sale, the entire sale proceeds (240,000 euros) were directed towards purchasing a Renta vitalicia asegurada policy from a Spanish insurance company. In the IRPF declaration (Modelo 100), we applied the provision of Artículo 38.3 LIRPF. The result: 100% tax exemption, saving over 40,000 euros, while the client now receives a stable monthly income in the UK.


The Strict 6-Month Deadline


The legislation establishes a preclusive deadline of six months from the moment of asset transfer to execute the reinvestment of the acquired capital. Violating this deadline completely nullifies the right to the tax benefit.


The six-month period is calculated from the date of asset transmission, which, in the case of real estate, coincides exactly with the date of signing the public deed of sale (escritura de compraventa). This timeframe is continuous and cannot be extended under any circumstances. If the reinvestment of funds occurs on the 181st day, the tax agency will automatically reject the application of the exemption.


There are specific scenarios that require specialized legal oversight. For instance, installment sales (operaciones a plazos). If the sales contract stipulates deferred payments, the six-month period applies individually to each received financial tranche. Therefore, the taxpayer is obligated to purchase Renta vitalicia asegurada policies (or top up an existing one) progressively as the funds are received from the buyer.


If the six-month deadline crosses the boundary of a fiscal year (e.g., the property is sold in November 2025, and the reinvestment is planned for March 2026), the taxpayer must explicitly state their intention to reinvest in their 2025 IRPF declaration. If this declared intention is subsequently not fulfilled within the statutory timeframe, the obligation to file a complementary declaration immediately arises.


Reinvestment Limits and Preferential Coefficients


The maximum capital amount that qualifies for the exemption is 240,000 euros. If the transmission value exceeds this statutory limit, the tax exemption is applied proportionally to the reinvested fraction.


The legislator has capped the volume of capital that can be shielded from taxation through this specific mechanism. The Límite 240.000 euros is an absolute lifetime maximum per individual taxpayer. This means the limit can be utilized in fractions across the sale of multiple properties, but the aggregate reinvestment amount granting the right to the exemption will never exceed 240,000 euros.


If the transmission value of the real estate surpasses the Límite 240.000 euros, the Exención por reinversión is applied on a proportional basis. The calculation formula is as follows: the reinvested amount is divided by the total transmission value, and the resulting coefficient is multiplied by the total capital gain.


Example: Expat retirees (spouses owning a property in 50/50 shares) sell an investment property for 600,000 euros. Each spouse's share of the transmission value is 300,000 euros. The profit for each is 100,000 euros. Each spouse reinvests the maximum allowable 240,000 euros. Reinvestment coefficient: 240,000 / 300,000 = 0.8 (80%). Exempt profit: 100,000 * 0.8 = 80,000 euros. The remaining 20,000 euros of profit for each spouse will be subject to taxation at the standard progressive rates.


Taxation of the Annuity Based on Age


Payments received from a life annuity policy are classified as income from movable capital. However, only a minor fraction of the annuity is taxed; this percentage is fixed at the time the contract is signed and depends entirely on the beneficiary's age.


Once selling property as a non-resident in Spain is finalized and the policy is formalized, the taxpayer begins receiving regular disbursements. These payments are treated by the tax agency as income from movable capital (rendimientos del capital mobiliario). The primary fiscal advantage of the Renta vitalicia asegurada is that the tax is not levied on the entire payment amount, but only on a fixed statutory percentage of it.


This percentage is determined exclusively by the annuitant's age at the exact moment the insurance premium is paid (contract inception) and remains immutable for the entire duration of the recipient's life. The savings base rate (19% for amounts up to 6,000 euros) is then applied to this taxable portion.


Beneficiary's Age at Contract Inception

Percentage of Annuity Subject to Taxation

Effective Tax Rate (assuming a 19% base rate)

Under 40 years

40%

7.60%

From 40 to 49 years

35%

6.65%

From 50 to 59 years

28%

5.32%

From 60 to 65 years

24%

4.56%

From 66 to 69 years

20%

3.80%

70 years and older

8%

1.52%


As demonstrated in the table, for individuals over 70 years of age, the tax burden on the generated income becomes microscopic. If the monthly annuity payment is 1,000 euros, only 80 euros are subject to tax. The actual tax amount will be a mere 15.20 euros per month. This mathematical reality makes this instrument an unparalleled solution for long-term capital preservation.


Selling Property as a Non-Resident in Spain: Frequently Asked Questions


This section compiles expert legal answers to the most complex inquiries regarding the application of Article 38.3 LIRPF when alienating Spanish assets.


How is selling property as a non-resident in Spain taxed?


If the seller is a strict non-resident (not an IRPF taxpayer), the transaction is subject to IRNR at a flat rate of 19% on the generated profit. The buyer is legally mandated to withhold 3% of the transaction price and remit it to the tax authority. However, if selling property as a non-resident in Spain is executed by an individual who is a resident of another EU or EEA member state, they may, under specific conditions, elect to be taxed under IRPF rules. To fully utilize the annuity reinvestment exemption, the seller must be a tax resident of Spain (an IRPF taxpayer) during the fiscal year the transaction occurs.


Is it mandatory to sell a primary residence for the exemption?


No. The provision of Artículo 38.3 LIRPF was drafted specifically for any patrimonial elements that do not constitute a primary residence. This encompasses second homes, commercial premises, land plots, corporate shares, or mutual fund units. If an individual over 65 sells their actual primary residence (vivienda habitual), the tax exemption is applied automatically based on Article 33.4.b LIRPF, and no reinvestment of funds is legally required.


What happens if the 6-month deadline to purchase the policy is missed?


Missing the six-month statutory deadline results in the absolute forfeiture of the right to the Exención por reinversión. If the taxpayer has already filed a declaration stating their intent to reinvest and consequently did not pay the capital gains tax, they are legally bound to file a complementary declaration (declaración complementaria). In this filing, they must report the full profit amount, pay the tax according to the Base imponible del ahorro rates, and additionally pay late payment interest (intereses de demora), which accrues for every single day of delay starting from the end of the standard voluntary filing period.


What is the maximum amount exempt from tax?


The law does not cap the amount of exempt profit; rather, it caps the amount of reinvested capital. The maximum reinvestment limit is 240,000 euros per individual taxpayer. If the transmission value of the asset is equal to or less than 240,000 euros, and the entire sum is reinvested, 100% of the profit is exempt. If the transmission value exceeds 240,000 euros, the profit is exempted proportionally. For example, upon a sale for 480,000 euros and a reinvestment of the maximum 240,000 euros (50% of the transmission value), exactly 50% of the generated Ganancia patrimonial will be shielded from taxation.


What percentage of the annuity is taxed after 70 years of age?


According to Article 25.3.a) 1º LIRPF, if the beneficiary has reached the age of 70 or older at the exact moment the life annuity contract is executed, only 8% of the amount of each periodic payment is subject to taxation. The standard capital yields tax rate (19% for the first 6,000 euros of annual income) is then applied to this 8%. Consequently, the effective tax rate on the actual money received is a mere 1.52%.


Can the exemption be applied when relocating outside the EU?


The application of the exemption is contingent upon the taxpayer's residency status during the year of the sale. If, in the year of asset alienation, the individual was a tax resident of Spain (residing for more than 183 days), they file an IRPF declaration and possess the full legal right to apply the exemption, even if relocation to a non-EU country is planned for the subsequent year. However, if the annuity contract is later surrendered (rescate) after the loss of Spanish residency status, the fiscal consequences will be governed by the Double Taxation Agreements (CDI) between Spain and the new country of residence. Generally, Spain retains the sovereign right to tax an improperly maintained exemption.



Optimizing the sale of luxury real estate for individuals over 65. Book the tax planning of your transaction with VissumLex.


 
 
bottom of page