Spain's sun-drenched coastlines, vibrant cities, and relatively affordable property prices continue to attract investors from around the world. But before you sign on the dotted line, understanding property tax in Spain — and particularly the capital gains tax on property in Spain — is essential to making a sound real estate investment. Whether you're a Spanish resident selling your holiday home or a foreign investor disposing of a rental apartment in Barcelona, the tax implications can significantly affect your net return.

In this comprehensive guide, we break down everything you need to know about real estate investment Spain tax rules for the 2025/2026 tax year, including current rates, available exemptions, how to calculate your liability, and common mistakes to avoid.

What Is Capital Gains Tax on Property in Spain?

Capital gains tax (Impuesto sobre la Ganancia Patrimonial) in Spain is a tax levied on the profit you make when you sell a property for more than you originally paid for it. The "gain" is calculated as the difference between the acquisition cost and the sale price, with certain allowable adjustments.

In simple terms:

Capital Gain = Sale Price − (Purchase Price + Allowable Costs + Improvements)

This tax applies to all types of real estate — apartments, villas, commercial properties, land, and garages — and it applies regardless of whether you are a Spanish tax resident or a non-resident. However, the rates, filing procedures, and available exemptions differ significantly depending on your residency status.

Use our Spain Capital Gains Tax Calculator to get a quick estimate of your potential liability before proceeding.

Capital Gains Tax Rates for 2025/2026

Spain applies different capital gains tax rates depending on whether the seller is a tax resident or a non-resident. Understanding which regime applies to you is the first step in calculating your obligation.

Rates for Spanish Tax Residents

For individuals who are tax residents in Spain (generally, anyone who spends more than 183 days per year in the country or has their center of economic interests there), capital gains from property sales are classified as savings income (renta del ahorro). For the 2025/2026 tax year, the progressive rates are:

Taxable Gain (EUR) Tax Rate
Up to €6,000 19%
€6,001 – €50,000 21%
€50,001 – €200,000 23%
€200,001 – €300,000 27%
Over €300,000 28%

These rates are applied progressively, meaning each portion of the gain is taxed at the corresponding rate — not the entire gain at the highest applicable rate.

Example: If you are a Spanish resident and sell a property for a gain of €80,000, your tax would be calculated as follows:

  • First €6,000 at 19% = €1,140
  • Next €44,000 (€6,001 to €50,000) at 21% = €9,240
  • Remaining €30,000 (€50,001 to €80,000) at 23% = €6,900
  • Total tax = €17,280

Rates for Non-Residents

Non-residents selling property in Spain face a flat capital gains tax rate of 19% if they are residents of an EU/EEA country, or 24% if they are residents of a non-EU/EEA country (with some exceptions based on bilateral tax treaties).

Importantly, when a non-resident sells property in Spain, the buyer is legally required to withhold 3% of the total sale price and pay it directly to the Spanish tax authority (Agencia Tributaria) as an advance payment toward the seller's capital gains tax. If the actual tax liability is less than the 3% retention, the non-resident seller can apply for a refund.

How to Calculate Your Capital Gain on Spanish Property

Accurately calculating your capital gain is crucial, as several adjustments can legally reduce your taxable amount.

Step 1: Determine the Acquisition Value

The acquisition value is not simply the price you paid for the property. It includes:

  • Purchase price as stated in the escritura (title deed)
  • Transfer tax (ITP) or VAT (IVA) paid at the time of purchase
  • Notary fees, registry fees, and legal costs associated with the purchase
  • Estate agent commissions paid by the buyer (if applicable)

Step 2: Add the Cost of Improvements

You can add the cost of permanent structural improvements to the acquisition value, effectively increasing your base and reducing the taxable gain. This includes:

  • Extensions or additional rooms
  • New roofing, plumbing, or electrical systems
  • Installation of central heating, air conditioning, or a swimming pool

Important: Routine maintenance and repairs (painting, fixing leaks, replacing broken appliances) do not qualify as improvements. Keep all invoices and receipts — the Spanish tax authority may request proof.

Step 3: Determine the Sale Value

The sale value is typically the price stated in the deed of sale, minus certain allowable deductions:

  • Estate agent commissions paid by the seller
  • Legal and notary fees associated with the sale
  • Plusvalía tax (municipal capital gains tax — more on this below)
  • Energy performance certificate costs

Step 4: Apply the Inflation Coefficient (If Applicable)

Historically, Spain allowed sellers to apply inflation coefficients (coeficientes de actualización) to adjust the acquisition cost for inflation on properties purchased before certain dates. However, these coefficients were eliminated in the 2015 tax reform and remain abolished for the 2025/2026 tax year. This means the acquisition cost is not adjusted for inflation.

Step 5: Calculate and Apply the Tax Rate

Once you have your net capital gain (Sale Value − Adjusted Acquisition Value), apply the appropriate tax rate based on your residency status using the tables above.

For a quick and accurate estimate, try our Spain Capital Gains Tax Calculator.

Key Exemptions and Reliefs for Property Sellers in Spain

Spain offers several important exemptions that can significantly reduce — or even eliminate — your capital gains tax liability. However, most of these are available only to tax residents.

Principal Residence Exemption (Residents Only)

If you sell your principal residence (vivienda habitual) and reinvest the full proceeds into a new principal residence within two years (before or after the sale), the capital gain is fully exempt from tax.

Key conditions:

  • The property must have been your habitual residence for at least three years (exceptions apply for job transfers, marriage, or similar circumstances)
  • The reinvestment must be in another principal residence within Spain or the EU/EEA
  • If you only reinvest part of the proceeds, the exemption applies proportionally
  • You must declare the reinvestment in your tax return

Example: You sell your Madrid apartment for €350,000 (purchased for €250,000) and buy a new home for €400,000. Since you reinvested more than the sale price in a new principal residence, the entire €100,000 gain is exempt from capital gains tax.

Exemption for Sellers Over 65 Years Old

Spanish tax residents aged 65 or older benefit from two generous exemptions:

  1. Full exemption on the sale of a principal residence — no reinvestment requirement
  2. Full exemption on any asset sale (including property) if the proceeds are reinvested in a renta vitalicia (life annuity) within six months, up to a maximum of €240,000

No Exemptions for Non-Residents

Unfortunately, non-residents cannot claim the principal residence exemption or the over-65 exemption in Spain. However, they may be able to offset the Spanish tax against their home country tax liability under a double taxation agreement (DTA). Spain has DTAs with over 90 countries, including the UK, USA, Germany, France, and the Netherlands.

Always check whether your home country's DTA with Spain provides a tax credit or exemption to avoid being taxed twice on the same gain.

Plusvalía Tax: The Municipal Capital Gains Tax

In addition to the state-level capital gains tax, sellers in Spain must also pay the Plusvalía Municipal (Impuesto sobre el Incremento del Valor de los Terrenos de Naturaleza Urbana), a municipal tax on the increase in land value.

Following a landmark Constitutional Court ruling in 2021 and subsequent legislative reform, the Plusvalía now offers two calculation methods, and you can choose the one that results in a lower tax bill:

  1. Real gain method: Based on the actual difference between acquisition and sale prices, applied to the land value (cadastral value of the land)
  2. Objective method: Based on the cadastral land value multiplied by coefficients set annually by each municipality

Key points about Plusvalía:

  • You are not liable if you sell at a loss (the real gain method yields zero or negative)
  • The tax must be paid within 30 days of the sale
  • Rates vary by municipality but are capped at 30%
  • This tax is deductible when calculating your state-level capital gains tax

Filing Requirements and Deadlines

Proper compliance with Spanish tax filing requirements is critical to avoid penalties and interest charges.

For Spanish Tax Residents

  • Capital gains from property sales are reported in your annual income tax return (Declaración de la Renta, Modelo 100)
  • The filing period typically runs from April to June of the year following the sale
  • If you sold a property in 2025, you would report it in your 2025 tax return filed in spring 2026
  • The capital gain is included under the savings income section

You can estimate your overall tax position, including any property gains, with our Spain Income Tax Calculator.

For Non-Residents

  • Non-residents must file Modelo 210 within four months from the date of sale
  • Remember that the buyer will have already withheld 3% of the sale price at completion
  • If your actual tax liability is less than the 3% withholding, you can claim a refund (also via Modelo 210), though refunds can take 6-12 months or longer
  • You will need a NIE (tax identification number for foreigners) and may need to appoint a fiscal representative in Spain

Penalties for Late Filing

Late filing can result in surcharges of 5% to 20% of the tax due (depending on how late), plus interest. Deliberate non-compliance can lead to even steeper penalties.

Common Mistakes and Misconceptions

When it comes to real estate investment Spain tax obligations, several pitfalls catch investors off guard:

1. Underestimating the Tax Burden

Many foreign investors focus on rental yields and property price appreciation without accounting for the combined impact of capital gains tax, Plusvalía, and non-resident income tax on rental income. Always model the full tax cost before investing.

2. Failing to Keep Receipts for Improvements

Without proper documentation, you cannot deduct the cost of improvements from your capital gain. Keep all invoices from contractors, architects, and materials suppliers for the entire period of ownership.

3. Confusing Tax Residency Rules

Some people assume that owning property in Spain makes them a tax resident. It does not — tax residency depends primarily on physical presence (183+ days) or center of vital/economic interests. Conversely, spending significant time in Spain without realizing you've become tax resident can lead to unexpected obligations on your worldwide income.

4. Ignoring Double Taxation Treaties

Non-residents who pay capital gains tax in Spain can often claim a credit against their home country tax. Failing to claim this credit means you effectively pay tax twice. Consult a tax advisor who specializes in cross-border taxation.

5. Not Applying for the 3% Withholding Refund

If you're a non-resident and the 3% buyer retention exceeds your actual capital gains tax liability — or if you sold at a loss — you are entitled to a refund. Many sellers forget or don't know they can reclaim this amount.

Frequently Asked Questions

Do I pay capital gains tax if I sell my Spanish property at a loss?

No. If the sale price (minus allowable costs) is lower than your adjusted acquisition value, there is no capital gain and therefore no capital gains tax. However, you should still file the appropriate tax form to document the loss. For residents, losses can be offset against other capital gains within the same tax year or carried forward for up to four years.

Can I deduct mortgage interest from my capital gain?

No. Mortgage interest payments are not deductible when calculating your capital gain. Only costs directly related to the acquisition, improvement, and sale of the property can be deducted.

How are inherited properties taxed when sold?

If you inherited a property in Spain, the acquisition value for capital gains purposes is the declared value at the time of inheritance (as stated in the inheritance tax declaration), plus any inheritance tax and costs paid. The gain is the difference between this value and the eventual sale price.

Are there any changes expected for 2026?

As of early 2025, no major reforms to the capital gains tax structure have been formally announced. However, Spain has progressively increased rates on higher gains in recent years, and further adjustments remain possible. Always verify the current rates before filing.

Is capital gains tax different for companies selling property?

Yes. Companies selling Spanish property are subject to corporate income tax on the gain, typically at the general rate of 25% for resident companies. Non-resident companies pay the applicable non-resident rate. The rules are substantially different, and professional advice is strongly recommended for corporate transactions.

Conclusion: Plan Ahead and Maximize Your Returns

Investing in Spanish property can be extremely rewarding, but the capital gains tax on property in Spain can take a significant bite out of your profits if you're not prepared. Here are the key takeaways:

  • Residents pay progressive rates from 19% to 28% on property gains in 2025/2026, while non-residents face a flat 19% (EU/EEA) or 24% rate
  • The principal residence exemption can eliminate your tax bill entirely if you reinvest in a new home — but it's only for residents
  • Plusvalía municipal tax is an additional cost that sellers must budget for
  • Accurate record-keeping of purchase costs, improvement invoices, and sale expenses is essential to minimize your taxable gain
  • Double taxation treaties can prevent you from being taxed twice — make sure you claim any available credit in your home country
  • Non-residents should always follow up on the 3% retention to claim any refund owed

Before making any decisions, use our Spain Capital Gains Tax Calculator to model different scenarios, and consider our Spain Income Tax Calculator to understand your broader Spanish tax obligations.


This article is for informational purposes only and does not constitute tax advice. Tax laws change frequently; consult a qualified tax professional for advice specific to your situation.