Call +34 617 91 75 48 Contact via WhatsApp

Capital Gains Tax and Plusvalía When Selling Property in Spain

Guide to Spanish capital gains tax, 3% retention tax, and municipal plusvalía calculations

Selling a property on the Costa del Sol is an exciting venture, but for non-resident owners, the transaction involves navigating a specific set of Spanish tax obligations. Unlike tax residents, non-residents are subject to an immediate 3% withholding tax on the sale price, alongside capital gains liabilities and local municipal land taxes. Understanding how these taxes are calculated, what expenses are legally deductible, and how to reclaim withheld funds if you sell at a loss is critical to protecting your investment returns.

The Non-Resident Withholding Tax (La Retención del 3%)

When a non-resident sells a property in Spain, the buyer is legally required to withhold 3% of the total purchase price and pay it directly to the Spanish tax office (Agencia Tributaria) using Modelo 211 within 30 days of the sale. This withholding acts as an advance payment toward any Capital Gains Tax you may owe.

If you fail to arrange this, the Spanish tax authority can place a lien against the property, which is why the buyer's lawyer will always enforce this deduction at the notary signing. After the transaction, the buyer will provide you with a stamped copy of Modelo 211 as proof of the withholding.

Spanish Capital Gains Tax (Impuesto sobre la Ganancia Patrimonial)

Non-resident sellers are subject to a flat Capital Gains Tax rate of 19% on the net profit of the sale. This rate applies equally to both EU and non-EU citizens (such as British and American sellers).

Your taxable gain is not the sale price, but the net profit, calculated as:

Net Profit = (Sale Price - Deductible Selling Costs) - (Purchase Price + Deductible Purchase Costs)

Deductible Expenses: Lowering Your Taxable Profit

You can significantly lower your capital gains tax liability by deducting legitimate transaction expenses, provided you hold official invoices (facturas) for all of them:

  • Notary and Property Registration fees paid at purchase and sale.
  • Transfer Tax (ITP) or VAT paid when you originally bought the property.
  • Legal fees (fees paid to your lawyer during both purchase and sale).
  • Real estate agent commissions paid to sell the property.
  • The cost of structural home improvements (such as extensions, structural renovations, or installing air conditioning systems), provided they are backed by official building licenses and VAT invoices. General maintenance or painting costs are not deductible.

Plusvalía Municipal (IIVTNU): The Local Land Tax

In addition to state-level capital gains tax, sellers must pay a local tax called the Plusvalía Municipal (officially IIVTNU) to the local town hall (Ayuntamiento) within 30 days of the sale. This tax is based on the increase in the rateable value of the land during your years of ownership.

Following legal reforms under Royal Decree-Law 26/2021, sellers can choose between two methods to calculate this tax, and the town hall will apply the cheaper option:

  • The Objective Method: Calculated using the cadastral value of the land multiplied by municipal coefficients based on the number of years you owned the property.
  • The Real Gain Method: Calculated by applying the municipal tax rate to the actual profit made from the increase in the land value (derived from the difference between purchase and sale prices).

Crucially, if you sell the property at a loss, no Plusvalía tax is due. However, you must still file a tax declaration with the town hall proving the loss to claim the exemption.

How to Reclaim the 3% Withholding Tax if You Sold at a Loss

If you sold your property at a loss or if your total capital gains tax liability (19% of profit) is less than the 3% withheld at the notary, you are entitled to a refund of the difference from the Spanish tax authority.

To claim this refund, you must file a tax return using Modelo 210 within 3 months plus 30 days from the date of the notary signing. The tax office will review your deductible invoices and, if approved, wire the refund to your bank account. Note that this process can take between 6 and 18 months, and you must ensure your tax filings for previous years (such as annual non-resident property taxes) are fully up to date before they will issue the refund. For more general details, check our Spanish mortgage FAQ.

Buying property in Spain and need help with your mortgage? Request a free, no-obligation study — we respond within 24 hours in English.