Capital Gains Tax in Spain

Nora
CEO

Capital Gains Tax in Spain – Taxation on the Sale of Property

Understanding capital gains tax in Spain is crucial when selling a home or other asset. Incorrect handling can lead to unnecessary taxation or subsequent problems, especially if you have ties to both Spain and Sweden.

We help you calculate, plan, and declare capital gains correctly based on your tax situation.

How does capital gains tax work in Spain?

A capital gain occurs when an asset is sold at a higher price than its acquisition value. When selling a property, the gain is calculated in simplified form as:

  • Selling price
  • minus purchase price
  • minus deductible expenses

In practice, a more detailed calculation is performed where both the acquisition value and the sale value are adjusted according to Spanish tax regulations.

The acquisition value can normally include the purchase price as well as certain associated costs, such as taxes and fees at the time of purchase and investments in improvements (not ongoing maintenance).

The sale value can be reduced by costs directly linked to the sale, such as real estate agent fees.

The final taxation depends on whether you are a tax resident or non-resident in Spain, as well as which tax rates and rules are applicable in your case.

What affects the calculation?

The following items can normally affect the calculation of the capital gain according to Spanish tax rules:

  • Costs at the time of acquisition, such as transfer tax (ITP) or VAT (IVA), notary and registration fees
  • Investments in improvements (mejoras) that permanently increase the property’s value or standard
  • Selling costs, such as real estate agent fees and other directly attributable costs
  • Any tax adjustments according to current regulations

It is important to distinguish between improvement expenses (mejoras) and ongoing maintenance or repairs, as only improvements are normally allowed to be added to the acquisition value when calculating capital gains.

Documentation of all costs is crucial for them to be taken into account for tax purposes.

How we help you

We offer advice and practical assistance in:

  • Calculation of capital gains upon sale
  • Review of deductible expenses
  • Handling of the 3% withholding tax for non-residents
  • Declaration of capital gains in Spain
  • Coordination with taxation in Sweden
  • Handling of double taxation issues
  • Tax planning prior to sale
  • Contact with Spanish authorities

How much tax do you pay?

The taxation of capital gains in Spain depends on whether you are a tax resident or non-resident.

Residents

For individuals who are tax residents in Spain, capital gains are taxed within the framework of income tax (IRPF) at progressive tax rates. These currently range from approximately 19–28% depending on the size of the gain and may be affected by current tax regulations.

Non-residents

For individuals who are not tax residents in Spain, the capital gain is taxed according to Impuesto sobre la Renta de No Residentes (IRNR), normally at a flat tax rate (currently 19% for residents within the EU/EEA).

3% retention – what does it mean?

When selling a property where the seller is a non-resident, the buyer is legally obliged to withhold 3% of the purchase price and pay this to the Spanish tax authority (Agencia Tributaria).

This means:

  • The amount constitutes an advance payment of tax according to Impuesto sobre la Renta de No Residentes (IRNR)
  • The buyer is responsible for the payment and reporting (usually via Modelo 211)
  • The seller must then declare the sale (via Modelo 210) to determine the final tax
  • If the withheld amount exceeds the actual tax, a refund can be requested
  • If the final tax is higher, the difference must be paid

Correct handling of this part is crucial to avoid capital being tied up unnecessarily.

The process

1. Analysis of the sale

We review the property, acquisition value, and relevant costs.

2. Tax calculation

We calculate the capital gain and estimate the tax effect.

3. Planning

We identify possible deductions and ensure that the calculation is performed correctly according to current rules.

4. Declaration and management

We handle the declaration and contact with authorities, as well as any potential refunds.

Common situations

The service is particularly relevant for you if you:

  • Are a Swede selling a property in Spain
  • Live in Sweden but own property in Spain
  • Want to understand the tax consequences before a sale
  • Have made investments in the property
  • Want to ensure a correct declaration

Common mistakes to avoid

  • Not including all deductible expenses
  • Incorrect classification of improvements
  • Missing or incorrect declaration
  • Not requesting a refund for excess withholding tax
  • Incorrect handling in relation to Swedish taxation

These errors can affect both tax levels and processing times.

Why choose us?

  • Experience in capital gains taxation in Spain
  • Knowledge of the interaction between Spanish and Swedish taxation
  • Advice from calculation to declaration
  • Structured and clear process

Take the next step

Do you want to get an accurate calculation of capital gains tax for a sale in Spain?

Contact us for a review of your situation and the applicable tax effects.

Get in touch with Global Accounting

Nora

Nora

CEO

Contact us – we're here to help

Do you have questions, want to know more about our services, or are you considering becoming a client? Get in touch and we will assist you further. You are always welcome to contact us for advice, inquiries, or general information.





    How can we help you?





    Frequently Asked Questions

    Here you will find answers to the questions we are most frequently asked. No question is too small – please contact us if you have any questions beyond this.

    The capital gain is calculated as the difference between the selling price and the acquisition value after adjustment for allowable costs. The exact tax depends on your tax status.

    It is an obligation for the buyer to withhold 3 percent of the purchase price when buying from a non-resident seller. The amount acts as a preliminary tax.

    Yes, the sale of property in Spain must be declared even if you are not a resident there.

    It depends on your tax residency. In some cases, the sale must also be declared in Sweden, but double taxation is normally handled through a foreign tax credit.

    Deductions can in many cases be made for costs at the time of purchase, improvement expenses, and selling costs, but the assessment depends on the type of cost.

    If the withheld tax exceeds the final tax, a refund can be requested from the Spanish tax authority after the declaration has been filed.