Tax rules for real estate sales in Spain differ depending on whether the seller is a Spanish tax resident or not. In fact, the applicable tax regime, tax rates, reporting requirements, and even the timing of when the tax authorities collect the tax—all of these differ between the two statuses.
However, for a seller based in Spain or in France, Belgium, the Netherlands, the United Kingdom, the United States, or elsewhere, confusing the two tax regimes can be costly. In other words, you’ll either pay more tax than necessary or risk a tax assessment. That’s why the experts at Terreta Spain explain the two tax regimes in detail here.
Taxes on Real Estate Sales in Spain: What You Need to Know
Key Takeaways
- Spanish tax resident: Capital gains are taxed under the IRPF, with a progressive tax rate ranging from 19% to 30%.
- Non-resident: Capital gains are taxed under the IRNR system at a flat rate of 19% (EU/EEA) or 24% (other countries).
- For a nonresident, the buyer withholds 3 percent of the sale price and pays it to the tax authorities as an advance payment.
- The seller then settles this withholding through the web Modelo 210, within approximately 4 months: either a refund or an additional payment.
- In both cases, the municipal capital gains tax is added; it is calculated by the city government based on the value of the land.
Taxes on Real Estate Sales in Spain: Calculating Capital Gains
First of all, before discussing tax rates, keep in mind one thing that both systems have in common: the taxable capital gain. In practical terms, this is the difference between the sale price and the purchase price. Added to this are purchase costs (notary fees, registration fees, property transfer tax, or VAT) as well as improvement costs supported by invoices. Similarly, selling costs (real estate agency fees, plusvalía municipal) reduce the sale price used for calculation.
Example: A property purchased for €300,000 with €24,000 in closing costs, then resold for €400,000, results in a taxable capital gain of €76,000, not €100,000.
It is on this basis that the two tax systems differ, both in the tax rate applied and in the method of tax collection.
Planning a sale in Spain?
The Terreta Spain team will assist you in preparing your sales documentation, whether in Madrid or Valencia, in collaboration with our partner tax specialists.
Contact Terreta SpainTaxes on Real Estate Sales in Spain for Residents: IRPF
A Spanish tax resident—that is, a person who lives in Spain for more than 183 days a year or whose center of economic interests is located there—reports capital gains on their annual income tax return. These gains are therefore subject topersonal income tax (IRPF) under the savings tax bracket, using the following tax rates:
Income Tax Brackets on Real Estate Capital Gains
Applicable to Spanish tax residents beginning in the 2025 tax year (Law 7/2024)
| Capital gains bracket | Rate |
|---|---|
| Up to 6,000 € | 19 % |
| From €6,000 to €50,000 | 21 % |
| From €50,000 to €200,000 | 23 % |
| From €200,000 to €300,000 | 27 % |
| Over €300,000 | 30 % |
The top tax bracket has been raised from 28% to 30% since 2025. Please confirm the tax schedule with a tax advisor, as the law may change.
Under certain conditions, a resident may be fully or partially exempt from this tax: by reinvesting the proceeds from the sale of their primary residence in a new home, or if they are over 65 years of age at the time of the sale. We explain this mechanism in detail in our article onthe primary residence reinvestment exemption.
Taxation of Real Estate Sales in Spain for Non-Residents: IRNR
A non-resident for tax purposes—that is, a person who owns property in Spain but is not a tax resident there—paysthe Non-Resident Income Tax (IRNR) at a flat rate:
- 19% for residents of a country in the European Union or the European Economic Area;
- 24%, however, for residents of any other country.
The 3% withholding tax paid by the buyer
In fact, this is the aspect that surprises foreign sellers the most. The buyer is legally required to withhold 3% of the sale price and pay it to the Spanish tax authority (Agencia Tributaria) within one month of signing the contract, via the Modelo 211.
Please note: This withholding is therefore not the final tax. It is an advance payment calculated based on the sale price, not on the actual capital gain.
Regularization through the Modelo 210
Subsequently, the seller files his or her own declaration, the Modelo 210, within 3 months of the end of the one-month period granted to the buyer. This is therefore approximately 4 months after the sale. Consequently, there are two possible scenarios. Specifically:
- On the one hand, if the 3% exceeds the tax actually owed (due to a small capital gain or even a capital loss), the seller is reimbursed for the difference.
- On the other hand, if the 3% does not cover the tax due (significant capital gain), the seller pays the difference.
⚠️ The withholding tax protects the Spanish tax authorities against the risk that a seller might leave the country without paying. However, it does not in any way exempt the seller from filing a tax return ( Modelo 210 )—a common mistake among sellers who mistakenly believe that the withholding tax settles their tax obligations.
Taxes on Real Estate Sales in Spain: Can a Non-Resident Avoid Paying Taxes?
Yes, but only in one specific case. A non-resident of the EU or the EEA who sells their former habitual residence in Spain may qualify for the reinvestment exemption if they purchase a new habitual residence within two years. However, the exemption for individuals over 65 without reinvestment is reserved for Spanish residents. We provide further details on the conditions in our dedicated article.
plusvalía municipal : a local tax that applies under both systems
Whether or not the seller is a resident, the plusvalía municipal (tax on the increase in value of urban land) is in addition to income tax. The seller owes this tax to the city hall where the property is located. However, it is based not on the sale price, but on the increase in the land’s value since the seller’s acquisition.
In addition, since the 2021 reform, taxpayers can choose between a flat-rate calculation—based on the land’s assessed value—and a calculation based on the actual capital gain. The more favorable of the two applies. And in the event of a capital loss, the seller owes no tax. Finally, tax rates vary from one municipality to another, within a 30% range.
Finally, in the case of a non-resident seller, the buyer is generally required to pay this tax on the seller’s behalf, and usually deducts it from the purchase price. For more information, read our article on capital gains and visit plusvalía municipal.
Comparison of Residents and Non-Residents
Resident (IRPF) vs. Non-Resident (IRNR)
Comparison of Real Estate Sale Taxes in Spain
| Criterion | Resident (IRPF) | Nonresident (IRNR) |
|---|---|---|
| Rate | 19% to 30% (progressive scale) | 19% (EU/EEA) or 24% (other countries), flat rate |
| Withholding tax | None | 3% of the sale price, retained by the buyer |
| Statement | Annual Income Tax Return | Modelo 210, about 4 months after the sale |
| Reinvestment in a Primary Residence | Possible Exemption | Available only to EU/EEA residents |
| Sale After Age 65 | Tax Exemption Without Reinvestment | No exemption |
Rates and terms should be confirmed with a partner tax specialist before making any decision to sell, as the rates are subject to change.
Plan for the Tax Implications of Your Sale
Whether you're a resident or a non-resident, Terreta Spain determines your tax status at the start of the project and connects you with partner tax specialists at Modelo 210.
Contact Terreta SpainHow Terreta Spain supports this step
For each seller—whether a resident or non-resident—Terreta Spain identifies the applicable tax regime at the outset of the project. Next, our partner tax specialists prepare Form 210 if necessary and verify eligibility for an exemption. This proactive approach helps avoid two common pitfalls:
- discovering the 3% withholding at the time of signing, without having budgeted for it;
- failing to submit the Modelo 210 on time, which could result in penalties.
In addition, when it comes to paperwork, check out our checklist of required documents for selling property in Spain.
FAQ: Taxation of Real Estate Sales in Spain
Does the 3% withholding tax also apply to Spanish tax residents?
No. In fact, it applies only to nonresident sellers who are subject to the IRNR tax. A resident, on the other hand, reports the capital gain on their annual tax return, with no withholding at the time of sale.
What happens if the 3% withholding exceeds the actual tax owed?
In this case, the seller receives a refund for the difference after filing Form 210, which is approximately 4 months after the sale. This is particularly true if the capital gain is small, or even if there is a capital loss.
Can a nonresident qualify for an exemption on capital gains?
Yes, but only through reinvestment: an EU or EEA resident who sells their former primary residence in Spain and purchases a new primary residence within two years may be exempt from the tax. However, the exemption for those over 65 without reinvestment is reserved for residents.
Who pays the municipal capital gains tax—the seller or the buyer?
In principle, the seller is responsible for paying it. However, when the seller is a nonresident, the law designates the buyer as the liable party in the seller’s place: the buyer pays the tax to the city hall and generally deducts it from the purchase price.
Conclusion
Two plans, one rule: think it through before signing
In short, whether you’re a resident or a non-resident, the tax implications of selling real estate in Spain aren’t something you discover on the day of signing. The personal income tax schedule, the 3% withholding tax, Modelo 210, plusvalía municipal : you need to plan for every detail in advance. Terreta Spain works with its clients, regardless of where they’re from, to identify the appropriate tax regime—in collaboration with partner tax specialists—even before the property is listed for sale.
Contact Terreta SpainFor more information:
- Selling Your Property in Spain: A Practical Guide
- Selling Your Primary Residence in Spain: The Reinvestment Exemption
- Required Documents for Selling Real Estate in Spain
- Understanding the IRNR for Non-Residents
- Capital gains on real estate in Spain: ganancia patrimonial and plusvalía municipal
Sources: Agencia Tributaria (savings tax schedule updated by Law 7/2024, IRNR withholding via Modelo 211, deadlines from Modelo 210, Additional Provision 7 of the IRNR Law) and the consolidated text of the Local Finance Law (Royal Legislative Decree 2/2004) for plusvalía municipal. This information is provided for general guidance only: have each situation reviewed by a tax professional.


