Spanish Property Capital Gains: Calculation, Exemptions & 2025 Guidance
Introduction
When selling a property in Spain, the difference between the purchase price and the resale price often generates a capital gain. This financial gain is taxable and must be rigorously declared to the Spanish tax authorities (Hacienda). In 2025, tax legislation continues to evolve, making a good understanding of the current mechanisms essential.
Whether you are a tax resident or a non-resident, understanding the calculation method, progressive tax rates, and specific exemption cases is crucial to optimize the final profitability of your investment. This article details the key steps for calculating your tax and legal strategies to reduce the tax bill during your transaction.
1. Definition and Calculation of Property Capital Gains
Property capital gains (ganancia patrimonial) represent the profit realized from the sale of a home, land, or commercial premises. Contrary to popular belief, the tax is not simply calculated on the gross difference between the sale price and the purchase price, but on a corrected net basis.
Official calculation formula: Taxable Capital Gain = Net Sale Price – Corrected Acquisition Price
To obtain these "corrected" amounts and reduce the tax base, you can deduct several elements:
- On the sale price: Deduct notary fees, real estate agency fees, and the municipal tax (Plusvalía Municipal) paid by the seller.
- On the purchase price: Add to the initial price acquisition costs (notary, registry, ITP/VAT taxes) as well as the cost of substantial renovation works (upon presentation of valid invoices).
2. 2025 Tax Rates (IRPF and IRNR)
Taxation differs depending on your tax residence. For tax residents in Spain, capital gains tax is added to the IRPF (Personal Income Tax) according to a progressive savings scale. For non-residents, it falls under the IRNR (Non-Resident Income Tax).
| Profit Bracket (Taxable Base) | Rate for Residents (2025) | Rate for Non-Residents (EU + EEA) | Rate for Non-Residents (Outside EU) |
|---|---|---|---|
| Up to 6,000 € | 19 % | 19 % (Fixed Rate) | 24 % (Fixed Rate) |
| From 6,000 € to 50,000 € | 21 % | ||
| From 50,000 € to 200,000 € | 23 % | ||
| Above 200,000 € | 26 % |
It is important to note that for non-residents, the buyer is required to withhold 3% of the sale price at the time of signing at the notary and pay it to the tax authorities as an advance payment on your tax. You will then need to regularize the situation (pay the remainder or request a refund).

3. Practical Calculation Example
Let's take a concrete example of an apartment purchased in 2015 and resold in 2025. This simulation helps visualize the impact of deductible expenses on the taxable base.
| Item | Amount / Calculation | Result |
|---|---|---|
| 1. Purchase (2015) | Deed Price: 200,000 € + Fees/Works (20,000 €) | Purchase Base: 220,000 € |
| 2. Sale (2025) | Deed Price: 300,000 € (Agency/notary fees deducted) | Net Sale Price: 300,000 € |
| 3. Net Capital Gain | 300,000 € - 220,000 € | Gain: 80,000 € |
| 4. Tax (Resident) | 19% on 6,000 € = 1,140 € 21% on 44,000 € = 9,240 € 23% on 30,000 € = 6,900 € | Total Tax Due: 17,280 € |

4. Possible Exemptions
Tax optimization involves knowing the exemption regimes. The Spanish tax authorities provide for several scenarios allowing for the cancellation or reduction of capital gains tax, provided that the criteria are strictly met.
- Reinvestment in principal residence: If you sell your habitual residence (having lived there for a minimum of 3 years) and reinvest the entire amount in a new principal residence (in Spain or the EU) within 2 years, the capital gain is fully exempt.
- Persons over 65 years old: The sale of the principal residence by a taxpayer over 65 years old is totally exempt from tax, with no obligation to reinvest.
- Life annuity: For those over 65 selling a secondary residence, an exemption is possible if the gain is reinvested in a life annuity (capped at 240,000 €).
- Offsetting losses: You can offset your property gains with movable asset losses (stocks, shares) incurred over the last 4 years.
5. Plusvalía Municipal: A Distinct Tax
Be careful not to confuse the state capital gains tax (IRPF/IRNR) with the Plusvalía Municipal (IIVTNU). This local tax is levied by the municipality where the property is located. It does not tax the actual sale profit, but the theoretical increase in the value of the land (cadastral value) during the period of ownership.
Since the recent reform, if you sell at a loss (sale price lower than purchase price), you are no longer liable for this tax. This is a crucial point to check with your lawyer before signing.

Practical Tips to Reduce Taxation
A property sale requires preparation in advance. Here's a checklist to secure your transaction:
- Documentation: Carefully keep all invoices for renovation work (kitchen, windows, extensions). Simple receipts for materials are not sufficient; invoices with VAT are required.
- Negotiation: Although the law stipulates that the Plusvalía Municipal is the responsibility of the seller, it is sometimes possible to negotiate its distribution, although this is rare in practice.
- Tax Residence: Clarify your residency status before the sale. A tax resident benefits from allowances that non-residents do not (and vice versa for fixed rates).
Conclusion
Property capital gains in Spain is a complex mechanism that can heavily impact the return on your sale if not anticipated. Between the IRPF/IRNR and the municipal tax, the levies can reach significant amounts. However, rigorous application of expense deductions and the use of exemption mechanisms (reinvestment, age) can alleviate this burden. Engaging a gestor or a tax lawyer remains the best option to ensure a compliant and optimized declaration.
A question about your capital gains?
Take advantage of market opportunities. Let's discuss your project.
FAQ: Navigating Property Capital Gains Tax in Spain (2025)
Investing in Spanish real estate offers unique opportunities. Understanding property capital gains tax is crucial for optimizing the profitability of your sale, whether you are a resident or non-resident in 2025.
Property capital gain, or ganancia patrimonial in Spanish, represents the profit made from the sale of a property (home, land, commercial premises). It is not simply calculated on the gross difference between the sale price and the purchase price, but on a corrected net basis. The official formula is:
Taxable Capital Gain = Net Sale Price – Corrected Acquisition Price
This correction allows for the deduction of certain expenses and the addition of other elements to reduce the tax base.
To obtain the 'Net Sale Price', you can deduct several costs directly related to the sale:
- Notary fees related to the sale.
- Real estate agency fees.
- The Plusvalía Municipal (Tax on the Increase in Value of Urban Land or IIVTNU) if paid by the seller, in accordance with the law or negotiation.
The 'Corrected Acquisition Price' includes the initial purchase price, to which significant costs can be added:
- Initial acquisition costs: notary fees, Land Registry fees, as well as taxes paid during the purchase (such as ITP, Impuesto sobre Transmisiones Patrimoniales, which is Spain's Property Transfer Tax, or VAT, Value Added Tax).
- The cost of substantial renovation works that increased the property's value (e.g., extensions, elevator installation). These expenses must be justified by valid invoices with VAT.
For tax residents in Spain, property capital gain is integrated into the savings portion of their IRPF (Impuesto sobre la Renta de las Personas Físicas – Spain's Personal Income Tax) and is subject to a progressive tax scale. The applicable rates for 2025 are:
| Profit Bracket (Taxable Base) | Resident Rates (2025) |
|---|---|
| Up to €6,000 | 19 % |
| From €6,000 to €50,000 | 21 % |
| From €50,000 to €200,000 | 23 % |
| Beyond €200,000 | 26 % |
Non-tax residents are subject to IRNR (Impuesto sobre la Renta de No Residentes – Spain's Non-Resident Income Tax), with fixed rates. It is important to note that the buyer is required to withhold a portion of the sale amount as an advance payment on your behalf.
| Profit Bracket (Taxable Base) | Non-Resident Rates (EU + EEA) | Non-Resident Rates (Outside EU) |
|---|---|---|
| Up to €6,000 | 19 % (Fixed rate) | 24 % (Fixed rate) |
| From €6,000 to €50,000 | ||
| From €50,000 to €200,000 | ||
| Beyond €200,000 |
For non-tax residents, a major tax peculiarity is the withholding tax: the buyer is required to withhold 3% of the sale price at the time of signing the escritura (notarized deed of sale). This amount is then paid directly to the Spanish tax authorities (Hacienda) as an advance payment on the seller's capital gains tax. The seller will then need to settle their tax position, either by paying the remaining balance if the tax due is higher, or by requesting a refund if there is an overpayment.
Here is a concrete example to illustrate the capital gain calculation:
- Acquisition (2015): Assume a purchase price of €200,000 to which €20,000 in acquisition costs and renovation works are added. The Corrected Acquisition Price is therefore €220,000.
- Sale (2025): The property is sold for €300,000. After deducting selling expenses (agency, notary), the Net Sale Price is €300,000.
- Net Capital Gain: The difference is €300,000 - €220,000 = €80,000.
- Tax (for a tax resident):
- 19% on the first €6,000 = €1,140
- 21% on the next €44,000 = €9,240
- 23% on the remaining €30,000 = €6,900
- The Total Tax Due would be €1,140 + €9,240 + €6,900 = €17,280.
The Spanish tax authorities provide several exemption regimes that can cancel or reduce this tax:
- Reinvestment in Main Residence: If you sell your main residence (where you have lived for at least 3 years) and reinvest the entire sale amount into a new main residence (in Spain or an EU/EEA country) within 2 years, the capital gain can be fully exempt from tax.
- Over 65s: The sale of a main residence by a taxpayer over 65 years old is fully exempt from tax, with no reinvestment obligation.
- Life Annuity: For those over 65 selling a second home, an exemption is possible if the gain is reinvested into a life annuity (with a cap of €240,000).
- Offsetting Losses: You can offset your property gains with capital losses from movable assets (shares, etc.) incurred over the last 4 years.
To benefit from this exemption, it is imperative to meet strict criteria:
- The property sold must have been your main residence for a continuous period of at least three years preceding the sale.
- The total sale amount must be reinvested in the acquisition of a new main residence.
- The reinvestment must be made within two years from the date of the sale.
- The new main residence must be located in Spain or an EU (European Union) or EEA (European Economic Area) member state.
The Plusvalía Municipal (or IIVTNU) is a local tax distinct from the national capital gains tax (IRPF or IRNR, Spain's national capital gains taxes). It is levied by the local council where the property is located. Unlike the national capital gains tax, which taxes the actual profit from the sale, the Plusvalía Municipal taxes the theoretical increase in the value of the land (cadastral value) during the period of ownership. It is an additional cost that must be considered when selling.
No, this point is crucial. Since the recent reform, if you sell your property at a loss – meaning the sale price is lower than the purchase price – you are no longer liable for the Plusvalía Municipal. It is essential to verify this situation with your solicitor or gestor before signing the deed of sale to avoid any undue payment.
Anticipating and preparing well can significantly lighten your tax bill:
- Rigorous Documentation: Carefully keep all invoices for renovation works (kitchen, windows, extensions, etc.) that have added value to the property. Note that simple material receipts are not sufficient; official invoices with VAT are essential.
- Negotiation of Plusvalía Municipal: Although the law generally attributes the Plusvalía Municipal to the seller, it is sometimes possible to negotiate its distribution with the buyer, even if this remains rare in practice.
- Clarity on Tax Residency: Before any transaction, clarify your tax residency status in Spain. Residents and non-residents benefit from distinct tax regimes, particularly in terms of allowances and tax rates.
Keeping invoices for substantial renovation works is fundamental because it allows you to increase the 'Corrected Acquisition Price' of your property. By including these duly justified expenses, you reduce the difference between the purchase price and the sale price, and consequently, the taxable base of your capital gain. Without these documents, the tax authorities (Hacienda) will not be able to recognize these costs, thereby increasing your tax liability.
Your tax residency status (resident or non-resident in Spain) is a determining factor for calculating your property capital gain. It influences:
- Tax Rates: Residents are subject to a progressive scale under IRPF, while non-residents benefit from fixed rates under IRNR (which differ depending on EU/EEA membership).
- Possible Exemptions: Certain exemptions, such as reinvestment in a main residence or the exemption for those over 65, are specifically conditioned on residency status and the type of property sold (main residence).
- Payment Methods: Non-residents are subject to the 3% withholding tax by the buyer, a procedure that does not apply to residents.
Property taxation in Spain is complex, with nuances between residents and non-residents, specific calculations for deductible expenses, and conditional exemption regimes. Consulting a gestor or a tax lawyer/solicitor is highly recommended for:
- Ensure Compliance: Guarantee that all declarations are made correctly, thus avoiding fines and complications with the Agencia Tributaria (the Spanish Tax Agency).
- Optimize Taxation: Ensure that all deductible expenses are taken into account and that applicable exemption mechanisms are used, thereby minimizing the tax burden.
- Obtain Personalized Advice: Each situation is unique. An expert can analyze your profile (resident/non-resident, age, type of property) to offer you the best tax strategy.