Taxes

Spain — Capital Gains Tax

For Spanish tax residents, capital gains from selling property or investments fall into the "base imponible del ahorro" (savings income tax base) and are taxed under a separate, progressive scale that runs from 19% to 30%, distinct from the general IRPF income scale. Sellers of a primary residence may exclude the gain entirely if they reinvest the proceeds in a new primary residence, or if they are over 65. Selling Spanish real estate also triggers a separate municipal tax (Plusvalía Municipal) on the increase in land value, and non-resident sellers face a mandatory 3% withholding retained by the buyer at completion.

Agencia Tributaria (AEAT) — Manual Práctico Renta 2025 · Last verified 2026-07-11

Why This Matters

Newcomers selling property or liquidating investments in Spain need to budget for two potentially separate tax bills — the national savings-income tax on the actual gain, and the municipal Plusvalía tax on land-value appreciation — plus, for non-residents, an upfront 3% withholding that reduces cash received at closing until reconciled against the final tax bill. Understanding the primary-residence reinvestment exclusion can also produce significant savings for anyone selling a home to buy another in Spain.

Key Facts

  • Capital gains, along with dividends and interest, form the "base del ahorro" and are taxed (for 2025) on a scale of: 19% up to €6,000; 21% from €6,000–€50,000; 23% from €50,000–€200,000; 27% from €200,000–€300,000; and 30% above €300,000 (this combines the state and equivalent regional savings scales; the top savings rate rose from 28% to 30% effective 1 January 2025) (Source: Agencia Tributaria, Manual Práctico Renta 2025, "Gravamen de la base liquidable del ahorro").
  • A gain from selling your primary residence (vivienda habitual) is exempt from tax if you reinvest the full transfer value into buying or rehabilitating a new primary residence within 2 years (before or after the sale) (Source: Agencia Tributaria, "Exención por reinversión en vivienda habitual").
  • Sellers aged 65 or over are exempt on the sale of their primary residence regardless of reinvestment, and can also exempt gains from selling other assets if they reinvest up to €240,000 into a qualifying life annuity (renta vitalicia) within 6 months (Source: Agencia Tributaria, "Transmisión de la vivienda habitual por mayores de 65 años").
  • Plusvalía Municipal (IIVTNU — Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana) is a separate, local tax charged by the municipality on the increase in value of urban land at the time of transfer (sale, inheritance, or gift); it is regulated nationally by Real Decreto Legislativo 2/2004 but set and collected locally, with a legal maximum effective rate of 30%, and does not apply to rustic (rural) land (Source: BOE, Real Decreto Legislativo 2/2004).
  • Plusvalía Municipal filing/self-assessment deadlines are short: 30 business days for a sale (inter vivos transfer), or 6 months (extendable to 1 year on request) for a transfer due to inheritance.
  • When a non-resident (without a permanent establishment in Spain) sells Spanish real estate, the buyer is legally required to withhold 3% of the agreed price and pay it to the Agencia Tributaria on the seller's behalf using Modelo 211, within one month of the transfer, as an advance/guarantee payment against the non-resident's eventual Impuesto sobre la Renta de no Residentes (IRNR) liability on the gain (Source: Agencia Tributaria, "Retención del adquirente de un inmueble").
  • If the 3% withholding exceeds the non-resident seller's actual tax liability on the gain, the seller can claim a refund of the difference by filing the corresponding non-resident capital gains return.

Steps

  1. Calculate the taxable gain — The gain is generally the transfer value minus the acquisition value (purchase price plus qualifying acquisition costs and improvements), adjusted per Agencia Tributaria rules; report it as part of the savings-income base in the annual Renta declaration.
  2. Check reinvestment exemption eligibility (property sales) — If selling a primary residence, confirm whether reinvesting in a new primary residence within 2 years, or (for those 65+) reinvesting other asset proceeds into a life annuity within 6 months, would exempt the gain.
  3. Settle Plusvalía Municipal with the local ayuntamiento — File the municipal self-assessment (or await municipal assessment, depending on the town) within 30 business days of a sale, separately from the national IRPF/IRNR return.
  4. Non-resident sellers: confirm the 3% withholding and reconcile — Ensure the buyer files Modelo 211 for the 3% withholding within one month of sale, then file the non-resident capital gains return to settle final IRNR liability and claim any refund of over-withheld amounts.

Timelines

  • Plusvalía Municipal filing deadline (sale/inter vivos): 30 business days from transfer
  • Plusvalía Municipal filing deadline (inheritance): 6 months, extendable to 1 year on request
  • Modelo 211 (3% non-resident withholding) filing deadline: 1 month from the transfer date
  • Primary-residence reinvestment window for exemption: within 2 years of the sale (before or after)

Required Documents

  • Property deed (escritura) showing acquisition and transfer values
  • Proof of reinvestment (new property purchase deed, or life-annuity contract for the 65+ exemption)
  • Modelo 211 receipt (non-resident sellers, showing the 3% withholding paid by the buyer)
  • Municipal Plusvalía self-assessment/receipt

Common Mistakes

  • Forgetting that Plusvalía Municipal is a separate municipal tax owed in addition to national capital gains tax — it is not automatically included in the IRPF/IRNR settlement.
  • Non-resident sellers not confirming that the buyer actually filed and paid the 3% withholding via Modelo 211, which can create complications when reconciling final tax liability.
  • Assuming any home sale is automatically tax-free — the reinvestment exemption requires actively reinvesting in a new primary residence within the statutory time window, not simply being of a certain age or owning one home.
  • Confusing the savings-income scale (used for capital gains) with the general income scale (used for salary), which have different brackets and rates.

Related Topics

propertytaxesresidencyofficial-resources
← Back to Spain guides