Capital gains tax is a crucial consideration for non-residents selling property in Spain. Understanding its implications is essential to comply with tax obligations and avoid potential pitfalls.
This article outlines the basics of capital gains tax applicable to non-residents, including calculation methods, tax rates, and filing requirements, providing a clear framework for navigating these legal responsibilities.
Capital Gains Tax Basics for Non-Residents in Spain
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 property sales, but it can also apply to other asset categories.
Types of Assets Subject to Tax
- Real Estate: Residential properties, commercial spaces, and land.
- Financial Instruments: Shares, stocks, and bonds.
- Cryptocurrencies: Digital assets such as Bitcoin and Ethereum.
- Collectibles: 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.

Get a free tax guide for property owners in Spain!
Determining the Taxable Capital Gain
Establishing the taxable gain requires careful calculation of the net profit from the sale of the property.
Final Sale Price and Deductions
The final sale price is the amount received, minus transaction-related costs such as notary fees, registry costs, and real estate agent commissions.
Purchase Price and Associated Costs
The original purchase price includes the cost stated in the deed plus all purchase-related expenses (notary, registry, legal fees, applicable taxes, etc.).
Allowable Expenses and Improvements
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:
- Notary and land registry fees.
- Legal fees.
- Real estate agent commissions.
- Taxes paid on acquisition (such as VAT on new properties).
- Documented property improvements that increase value or habitability.
Examples: building a pool, garage, or retaining wall; extending built surface with permits; installing solar panels; or a full renovation of a property in ruin.
⚠️ Important distinction:
Repairs or replacements of existing features (painting, changing flooring, or replacing windows with similar ones) 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 on Capital Gains
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.

Do you have problems with your tax return?
We will answer any questions you may have
Rates, Payments, and Filing Requirements
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 from the sale, regardless of nationality.
Withholding Tax by the Buyer (3% Retention)
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)
- Deadline: Four months from the date of sale.
- 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.

Municipal Capital Gains Tax (Plusvalía)
In addition to capital gains tax, the seller must also pay the municipal “Plusvalía” tax, which is calculated by the local Town Hall based on the increase in land value.
- Deadline: 1 month from the sale date.
- Deduction: This tax can be included as an expense of acquisition when calculating the taxable gain.
Penalties and Compliance with Spanish Tax Authorities
The Spanish 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.
This tax information is provided for general information and should be not considered 100 % correct for all cases, so for precise tax advice on your particular circumstances you must seek for professional advice
Contact us:

Author: Fernanda Rodríguez
Paralegal – Malaga Solicitors Group
Specialising in taxation, appeals to Hacienda, time limits and tax executions.
Languages: Spanish and English.





