Skip to content
Taxes & Fees8 min readBy SpainUnveiled Editorial Team

Capital Gains Tax When Selling Spanish Property as a Non-Resident: 19% vs 24% Explained

Non-residents selling Spanish property face a 19% or 24% CGT rate, a 3% buyer withholding, and plusvalía municipal. Here's how it really works.

Capital Gains Tax When Selling Spanish Property as a Non-Resident: 19% vs 24% Explained - Spain Unveiled

This article is general information, not legal, tax, or immigration advice. Rules and figures change — verify with an official source or a licensed professional before acting.

Capital Gains Tax When Selling Spanish Property as a Non-Resident: 19% vs 24% Explained

If you own property in Spain and don't live there full-time, selling it triggers a specific set of tax obligations that catch many foreign owners off guard. The headline number you'll hear most often is a 19% capital gains rate for EU/EEA residents — but the picture is more nuanced, and getting it wrong can cost you thousands of euros in overpaid tax, missed refunds, or unexpected withholdings.

This guide walks you through how capital gains tax (CGT) works when a non-resident sells Spanish real estate, the difference between the 19% and 24% rates, the mandatory 3% buyer withholding, and the deductions and pitfalls that matter most. Because tax rules and thresholds are updated regularly by the Agencia Tributaria (AEAT), always confirm current figures with the tax office or a licensed Spanish asesor fiscal before signing anything.

Who Counts as a Non-Resident?

For Spanish tax purposes, you are a non-resident if you spend fewer than 183 days per calendar year in Spain and your main economic interests are not located there. Non-residents pay the Impuesto sobre la Renta de No Residentes (IRNR) — Non-Resident Income Tax — rather than the resident income tax (IRPF).

Your residency status on the date of the sale determines which regime applies. If you've become a Spanish tax resident (for example, through the Beckham Law or by simply spending more time in Spain), the calculation and rates are different, and you should get personalised advice.

The 19% vs 24% Rates: What Actually Differs

This is where most confusion starts. Non-residents in Spain face two possible IRNR rates depending on where they are tax-resident:

  • 19% rate — applies if you are tax-resident in an EU member state, Iceland, Norway, or Liechtenstein (the EEA). Post-Brexit, UK residents no longer qualify for the 19% rate on general income streams, though the 19% rate specifically applies to capital gains for all non-residents in most current guidance — verify with AEAT.
  • 24% rate — applies to non-EU/EEA residents (for example, US, Canadian, or UK residents) on most other Spanish-source income such as rental income without the EU deduction regime.

Here's the key point that trips people up: the capital gain on the sale of Spanish property is generally taxed at 19% for all non-residents, regardless of country of residence, under current IRNR rules. The 19% vs 24% distinction bites hardest on rental income and deductibility of expenses — EU/EEA residents can deduct expenses against rental income, while non-EU residents historically could not (this is an area of active litigation and reform, so confirm current treatment).

Because these rules are refined frequently, and because tax treaties between Spain and your home country may override the default, do not rely on rate tables alone — check with an asesor fiscal or the AEAT before filing.

How the Taxable Gain Is Calculated

The taxable capital gain is broadly:

Sale price − Acquisition value = Gross gain

Both sides can be adjusted. On the acquisition side, you can typically add:

  • The original purchase price paid
  • Transfer tax (ITP) or VAT paid at purchase
  • Notary and Land Registry fees from the original purchase
  • Legal fees (abogado) documented at purchase
  • Capital improvements — not routine maintenance, but structural works, extensions, or major renovations with proper invoices and, where required, building permits

On the sale side, you can typically deduct:

  • Estate agent commission (with a proper invoice showing Spanish VAT/IVA)
  • Legal and administrative fees related to the sale
  • Plusvalía municipal paid to the town hall (if borne by the seller)
  • Energy Performance Certificate and other mandatory documents

Keep every invoice, ideally with your NIE on it. Without documentation, deductions are disallowed and your gain — and tax bill — will be larger than it should be.

Note that Spain no longer applies inflation-indexation coefficients (coeficientes de actualización) to real estate acquired by individuals — those were removed years ago. Your acquisition cost is essentially nominal, adjusted only for documented improvements.

The 3% Retention: Your Buyer Withholds Tax at Closing

This is the mechanism most non-residents find surprising. When you sell as a non-resident, the buyer is legally required to withhold 3% of the sale price and pay it directly to the AEAT within one month of the sale using Form 211. The buyer then gives you a stamped copy as proof.

That 3% is not the final tax — it's a payment on account against your eventual CGT liability. What happens next:

  • If your actual CGT is more than the 3% retention, you pay the difference.
  • If your actual CGT is less than the 3% retention (or you sold at a loss), you can claim a refund.

You (or your representative) must file Form 210 within four months of the sale date to declare the gain and either settle the balance or request the refund. Refunds are notoriously slow — plan for six months to two years, sometimes longer — and the AEAT may open a review before releasing funds.

Plusvalía Municipal: The Other Tax You Owe

Separate from national CGT, the municipality where the property sits charges Plusvalía Municipal — a tax on the increase in the cadastral land value during your ownership. Following the Constitutional Court's 2021 reform, you can now choose between two calculation methods (objective or real gain), and if you sold at a loss on the land value, you owe nothing — but you must prove it.

Plusvalía is typically paid by the seller unless the contract says otherwise, and is due within 30 days of the sale. Rates and coefficients vary by municipality — check with the local ayuntamiento.

Selling at a Loss

If your sale price (net of costs) is lower than your adjusted acquisition value, you have a capital loss. You still must:

  • File Form 210 to declare the loss
  • Claim back the full 3% retention
  • File plusvalía with the real-loss method to avoid municipal tax

Losses of non-residents generally cannot be carried forward against future Spanish gains unless you're EU/EEA resident under specific conditions — confirm with your adviser.

Reinvestment Relief: Usually Not Available to Non-Residents

Spanish residents over 65, or those reinvesting in a new main home, can claim CGT exemptions. Non-residents generally cannot access the main-home reinvestment exemption because the property being sold is, by definition, not their habitual residence in Spain. A limited EU/EEA exception exists where the property was your habitual residence in Spain immediately before you moved to another EU/EEA state — narrow, but worth checking.

Common Pitfalls

  • Missing the 4-month Form 210 deadline — interest and penalties apply.
  • Losing purchase-era invoices — without them, deductions vanish and your taxable gain balloons.
  • Assuming the 3% is your total tax — it rarely is, in either direction.
  • Forgetting plusvalía — the notary won't always chase it, but the town hall will.
  • Not appointing a fiscal representative — required for non-EU residents in many situations.
  • Double taxation confusion — your home country (US, Canada, UK) will also want to see the gain. Use the Spain–home country tax treaty and foreign tax credit to avoid paying twice, but coordinate filings.

Short FAQ

Do US sellers pay 19% or 24%? Capital gains on Spanish property are generally taxed at 19% for all non-residents under current IRNR rules, but US sellers cannot use the EU expense-deduction regime for other income. Confirm with AEAT.

Can I offset Spanish CGT against US or Canadian tax? Yes, generally via the foreign tax credit under your home tax treaty with Spain. Timing mismatches are common — coordinate with a cross-border accountant.

Who pays the 3% retention if the buyer forgets? The buyer is legally liable, but in practice the notary won't complete the deed without arrangements. Your abogado should confirm the Form 211 filing before you release keys.

How long until I get a refund? Realistically 6–24 months. Provide a Spanish or SEPA bank account; foreign account refunds take longer.

Tax law and thresholds in Spain change frequently, and tax-treaty interpretation is fact-specific. Before you sign a sale contract, confirm current rates, deadlines, and deductibility with the Agencia Tributaria (AEAT) or a licensed Spanish asesor fiscal — the cost of an hour of professional advice is trivial compared to a mishandled filing.

More guides in Taxes & Fees