CAPITAL GAINS TAX FOR NON-RESIDENTS WHEN SELLING A PROPERTY IN SPAIN

CAPITAL GAINS TAX FOR NON-RESIDENTS WHEN SELLING A PROPERTY IN SPAIN

WHAT YOU NEED TO KNOW WHEN SELLING A VILLA OR APARTAMENT IN THE COSTA BLANCA

Selling a property in Spain, particularly in sought-after areas such as Altea and the Costa Blanca, can be a highly rewarding transaction. However, for non-resident owners, one key aspect must be carefully considered from the outset: capital gains tax.

 Understanding how capital gains tax for non-residents in Spain works is essential not only to comply with legal obligations, but also to avoid costly mistakes or unexpected liabilities.

 At ALTEAINVEST — Strategic Property Advisory, we combine real estate expertise with in-depth legal and tax  knowledge to ensure that every transaction is handled with precision, security and full compliance.

Let's outline the basics of capital gains tax applicable to non-residents, when selling a property in Spain including calculation methods, tax rates, and filing requirements.

DEFINITION AND SCOPE OF CAPITAL GAINS TAX

Capital gains tax is applied to the profit obtained from the sale of assets in Spain. For non-residents, this primarily concerns residential property sales, but it can also apply to other asset categories, including:

·         Other types of property such as commercial spaces, plots and rustic land.

·         Financial Instruments such as shares, stocks and bonds.

·         Cryptocurrencies such as Bitcoin and Ethereum.

·         Collectibles such as Art, antiques or other valuable goods.

NON-RESIDENT TAX OBLIGATIONS

Non-residents must comply with Spanish tax rules by correctly declaring taxable transactions and ensuring accurate reporting of gains and allowable deductions.

This tax is governed by Spanish tax legislation and applies regardless of the seller’s country of residence.

HOW CAPITAL GAINS TAX IS CALCULATED

Establishing the taxable gain requires careful calculation of the net profit from the sale of the property. The difference between the purchase price and the sale price, adjusted for certain costs and expenses, will determine the taxable gain.

The calculation of capital gains tax for non-residents in Spain typically involves:

1. Acquisition Value

This includes the price stated in the deed plus purchase-related expenses such as:

  • Notary fees

  • Registration fees

  • Lawyer’s fees

  • Taxes paid on acquisition:  Property Transfers and Documented Legal Acts Tax, VAT or Inheritance or Gift Tax if the acquisition was made free of charge

  • Certain improvement works

2. Transfer Value

This is the actual price received  when selling the property minus certain transaction-related costs such as real estate agent commissions, legal fees or the ‘plusvalía’ municipal tax.

3. Taxable Gain

The difference between acquisition and transfer value

When calculating the taxable capital gain, certain costs can be deducted, provided they are well documented with invoices, payments, and legal permits when necessary.

These include property improvements that increase value or habitability, such as:

-          Building a pool, garage or tennis court

-          Extending built surface with permits

-          Installing solar panels

-          A full renovation of a property in ruin.

Note: Standard repairs, routine manintenance or replacements of existing features such as painting, changing flooring, or replacing windows, do not count as deductible improvements. Even if these works make the property more attractive and increase the eventual sale price, the Spanish Tax Authority will not allow them as deductions. Only improvements that create something new or substantially enhance the property’s usability/efficiency are valid.

IMPACT OF RENTAL USE AND DEPRECIATION

If the property was rented out, depreciation applied in rental tax returns reduces the purchase value for capital gains purposes. This increases the taxable gain, rather than reducing it.

CAPITAL GAINS TAX RATE FOR NON-RESIDENTS

Non-residents selling property in Spain are subject to a flat tax rate of 19% on the net profit if EU/EEA citizens or a flat rate of 24% if Non-EU/EEA citizens.

NOTE! These rates apply only to the capital gain regardless of amount, not on the full sale price.

Quick example: €500,000 sale price – €300,000 purchase price = €200,000 gain. A 19% flat rate would produce €38,000 Spanish Capital Gains Tax.

Residency status is key: living in Spain 183+ days/year makes you a resident subject to progressive rates.

When buying to a non-resident, the buyer is required to withhold 3% of the sale price and pay it directly to the Spanish Tax Authority as an advance payment toward the seller’s capital gains tax liability. The seller therefore receives 97% of the agreed sale price.

If the final tax due is less than the 3% withheld, the seller may claim a refund.

If the tax due is higher, the seller must pay the difference when filing their return.

FILING THE NON-RESIDENT INCOME TAX RETURN (MODELO 210)

When the seller of a property in Spain is a non-resident, the person who acquires the property, whether resident or not, is obliged to retain and pay into the Spanish Public Treasury 3% of the sale price. This withholding is an advance payment toward the seller’s capital gains tax liability. The seller therefore receives 97% of the agreed sale price.

If the final tax due is less than the 3% withheld, the seller may claim a refund. If the tax due is higher, the seller must pay the difference when filing their return.

The buyer will pay the withholding using Form 211, within one month from the date of transfer, and will provide the non-resident seller with a copy of Form 211, so that the latter can deduct the withholding from the tax rate resulting from the capital gain  declaration.

Required Documentation: Deed of sale, purchase deed, invoices for deductible expenses, proof of improvements, and evidence of payments.

Reporting: Sellers must declare the sale price, deduct allowable costs, and provide supporting documentation. Failure to comply may result in penalties, fines, or interest charges.

ARE THERE ANY REDUCTIONS OR EXEMPTIONS FOR NON-RESIDENTS?

The answer is yes. But only non-residents can enjoy a capital gains tax exemption as long as they are legally living in EU country or in any other European Economic Area country with effective exchange of tax information such as Iceland, Norway and Liechtenstein. If that condition is met, they can also enjoy the various exemptions that are available to residents in Spain.

In Spain, a significant tax advantage is extended to individuals when they sell their primary residence. Specifically, capital gains tax is not applicable in such instances, provided that the money from the sale is reinvested into another property designated as your main home. However, certain criteria must be met for both properties to avoid the standard capital gains tax liability.

EXEMPTION FOR REINVESTMENT IN HABITUAL RESIDENCE

For taxpayers residing in another Member State of the EU Member State of the European Union, or the European Economic Area with effective exchange of tax information such as Iceland, Norway and Liechtenstein, capital gains obtained from the transfer of what was your habitual residence in Spain may be excluded from taxation, provided that the total amount obtained from the transfer is reinvested in the acquisition of a new habitual residence.

One notable feature of the main home exemption is that the newly acquired property need not be situated within Spain; it can be located in any European Union (EU) or European Economic Area (EEA) country to be eligible. 

The new home must be purchased within 2 years (before or after the sale).

Exemption applies to the entire gain if reinvesting the full amount. When the reinvested amount is lower than the total of the amount received in the transfer, only the proportional part of the capital gain obtained corresponding to the reinvested amount will be excluded from taxation.

Notwithstanding the above, the obligation to withhold tax by the purchaser of the property (through form 211) will apply, as well as the obligation to submit the declaration (form 210)

PENALTIES AND COMPLIANCE WITH SPANISH TAX AUTHORITIES

TheSpanish Tax Agency enforces strict compliance rules. Late submissions, inaccurate declarations, or missing documentation can trigger:

- Financial penalties

- Interest on unpaid amounts

- Audits or further investigations

Timely, accurate, and well-documented filing is therefore essential to avoid complications.

LET US OPTIMIZE YOUR TAXES (LEGALLY)!

Now you know the rules. Nevertheless, you may still find it difficult to solve the puzzle. 

There are several rules and exemptions regarding the taxes you need to pay in Spain as a non-resident, and knowing them all can be nearly impossible. Our in-house lawyers are specialized on non-resident taxes and will help you to analyze your situation, answer all your doubts and manage all your taxes so you can pay just what you should. 

This tax information is provided for general information and should be not considered 100 % correct for all cases. While ALTEAINVEST takes care to make sure that information is accurate on the date of publication, some content may change over time, so for precise tax advice on your particular circumstances you must always seek for professional advice. Contact us!

Latest news
© 2026 AlteaInvest - All Rights Reserved
Manage consent

We use our own and third-party cookies to personalize the web, analyze our services and show you advertising based on your browsing habits and preferences. For more information visit our Cookies Policy

Accept cookies Configuration Reject cookies