Taxation can substantially change the real cost and the return of a property transaction.
Before buying, selling or renting out a home in Spain, it is worth looking not only at the price of the transaction, but also at the taxes, deductible expenses, reductions and possible exemptions that apply.
The same transaction can have different consequences depending on factors such as:
- Whether the home is new or second-hand.
- The autonomous community where it is located.
- Whether it is the main residence.
- The owner’s age and tax residence.
- The date of the rental agreement.
- Whether the property is used as a home, for tourist lets or for business.
- Whether there is a capital gain or loss.
- The possible reinvestment of the proceeds.
In addition, the tax measures approved in October 2026 have introduced significant changes to the taxation of residential lettings. Each transaction therefore needs to be reviewed under the rules currently in force rather than relying on general rules alone.
What taxes are paid when buying a home in Spain?
The taxes depend mainly on whether the home is new or second-hand.
Buying a new home
The first sale of a home by the developer is, as a general rule, subject to Value Added Tax (IVA).
The usual rates are:
- The reduced rate of 10% on homes.
- The 4% rate in certain cases of special-regime or publicly developed social housing.
- The standard rate of 21% on certain properties or elements that are not treated as a home for tax purposes.
In addition to VAT, the deed of sale may be subject to Stamp Duty (Actos Jurídicos Documentados, AJD).
The AJD rate depends on the autonomous community where the property is located and on any applicable rebates.
Buying a second-hand home
The purchase of a used home is not normally subject to VAT, but to Property Transfer Tax (Impuesto sobre Transmisiones Patrimoniales, ITP).
The buyer is responsible for filing the self-assessment and paying the tax.
The applicable rate varies depending on:
- The autonomous community.
- The value of the property.
- The buyer’s age.
- Any disability.
- Large-family or single-parent family status.
- Whether the property will be the main residence.
- Other regional tax benefits.
Before signing the sale, it is advisable to calculate the ITP under the regional rules and check the cadastral reference value, as this may determine the minimum taxable base of the transaction.
Other costs and taxes linked to the purchase
Alongside VAT, AJD or ITP, the buyer should take into account:
- Notary fees.
- Registration at the Land Registry.
- The agency handling the paperwork, where applicable.
- The property valuation.
- Financing costs.
- Necessary renovations.
- Any outstanding owners’ association fees.
- The status of the property tax (IBI).
- The taxation of a future sale or rental.
The purchase price, certain taxes and some costs inherent to the purchase may form part of the acquisition value later used to calculate the capital gain when the property is sold.
It is therefore important to keep the deeds, invoices and proof of payment.
Does the deduction for buying a main residence still exist?
The state deduction for investment in a main residence was abolished with general effect from 1 January 2013.
However, a transitional regime remains for certain taxpayers who bought their main residence before that date and were already applying the deduction.
When the requirements are met, the maximum annual deduction base is 9,040 euros. As a general rule, a total rate of 15% can be applied to this base, giving a usual maximum deduction of 1,356 euros a year.
It is not enough, however, for the home to have been bought before 2013. It must also be checked that the taxpayer meets the requirements of the transitional regime.
In addition, some autonomous communities maintain their own deductions for buying, renovating or renting a main residence.
How is the sale of a home taxed?
When an individual who is tax resident in Spain sells a property, they must calculate the difference between:
- The transfer value.
- The acquisition value that can be taken into account for tax purposes.
If the result is positive, a capital gain arises that is included in the savings tax base of Personal Income Tax (IRPF).
If the result is negative, there may be a capital loss that can be offset under the rules of the tax.
How is the capital gain calculated?
In simplified terms:
Capital gain = transfer value – acquisition value
The acquisition value may include:
- The price paid for the home.
- The taxes paid on the purchase.
- Notary and registry fees.
- Documented investments and improvements.
- Other costs inherent to the acquisition.
Improvements should not be confused with ordinary maintenance or repair costs. The former may increase the acquisition value, while the latter are treated differently for tax purposes.
Certain costs and taxes paid by the seller and directly linked to the transaction may be deducted from the transfer value.
IRPF rates on the sale of a home
The gain is included in the savings base and taxed in bands.
Since 2025, the combined state and regional scale that generally applies is:
| Gain included in the savings base | Applicable rate |
|---|---|
| Up to 6,000 euros | 19% |
| From 6,000 to 50,000 euros | 21% |
| From 50,000 to 200,000 euros | 23% |
| From 200,000 to 300,000 euros | 27% |
| Over 300,000 euros | 30% |
The rates are applied progressively by band, not to the whole gain at the highest rate.
Exemption for reinvestment in a main residence
The gain from selling a main residence may be fully or partly exempt when the proceeds are reinvested in another main residence.
As a general rule, the reinvestment must take place within the two years before or after the sale.
To apply the exemption, the following requirements, among others, must be met:
- The home sold must qualify as the main residence.
- The new home must also become the main residence.
- The proceeds of the sale must be reinvested.
- The reinvestment must be made within the legal deadline.
- The exemption must be correctly reported in the IRPF return.
If only part of the proceeds is reinvested, the exemption applies proportionally.
Where there is an outstanding mortgage, calculating the amount to be reinvested requires analysing the debt repaid on the sale.
Sale of the main residence by people over 65
The capital gain obtained by a person over 65 on the sale of their main residence may be exempt from IRPF.
This exemption does not require the proceeds to be reinvested in another home.
For these purposes, a main residence is one that has that status at the time of the sale or had it at any time in the previous two years.
The exemption can also apply to the sale of the bare ownership when the owner over 65 keeps a lifetime usufruct. However, there may be limitations when ownership was already split between a bare owner and a usufructuary.
Municipal capital gains tax on the sale of a property
In addition to IRPF, the sale may be subject to the Tax on the Increase in Value of Urban Land, known as the municipal capital gains tax (plusvalía municipal).
This tax applies to the increase in value of urban land and is managed by the relevant town council.
As a general rule, in a sale the seller is liable to pay it. However, the following should be analysed:
- How long the property has been owned.
- The cadastral value of the land.
- The coefficients approved by the town council.
- Whether there has actually been an increase in value.
- The most favourable calculation method.
- Municipal rebates and exemptions.
IRPF and the municipal capital gains tax are different taxes and may both apply to the same transaction.
How is the rental of a home taxed?
Income received by the owner of a rented home is, as a general rule, classified as income from real estate capital.
Net income is calculated by deducting tax-deductible expenses from gross income.
Expenses that may be deductible include:
- Interest and financing costs.
- Property tax (IBI) and certain charges.
- Owners’ association fees.
- Insurance.
- Management and legal defence costs.
- Repairs and maintenance.
- Utilities paid by the owner.
- Tax depreciation of the property and certain assets.
Each expense must be linked to the letting, properly documented and allocated to the correct period.
Not all outlays are deductible in the same way. Extensions or improvements to the property, for example, are not usually deducted as ordinary repairs, but are added to the depreciable or acquisition value.
IRPF reductions for letting a main residence
The reductions applicable to positive net income depend on the date of the agreement and the circumstances of the letting.
For agreements signed before 26 May 2023, the 60% reduction under the previous regime generally continues to apply.
For later agreements, the general reduction had been 50%, with higher rates in certain cases of letting in stressed housing areas, letting to young people, social housing or recent renovation.
However, Royal Decree-law 29/2026 of 6 October has once again changed these reductions for certain agreements, linking the applicable rate to factors such as:
- A reduction or increase in rent compared with the previous agreement.
- Whether the same tenant continues.
- Large-landlord status.
- Location in a stressed residential market area.
- The applicable reference index.
- The age of the new tenant.
- Whether the letting is for social purposes.
- Recent renovation of the home.
The new rules provide for different rates depending on the terms of the agreement. Before signing or renewing a lease, it is therefore advisable to simulate its tax impact and check which reduction will apply.
Rent deduction for the tenant
In addition to regional deductions, Royal Decree-law 29/2026 has introduced a state deduction for renting a main residence for taxpayers whose taxable base is below certain limits.
The state deduction is 10% of the amounts paid, with a maximum base that decreases progressively when the taxable base exceeds the lower threshold set by law.
Whether it can actually be applied will depend on meeting all the requirements and must be coordinated with any applicable regional deductions.
Empty homes and deemed property income
A home that is not the owner’s main residence and is not rented out may give rise to deemed property income in IRPF.
The deemed income is calculated by applying the relevant percentage to the cadastral value, in proportion to the days the property has been available to the owner.
The October 2026 reform also introduces changes in this area, some of which will take effect from 1 January 2027.
Keeping a home empty can therefore give rise to tax even if the owner receives no actual income.
Tourist lettings: a different tax treatment
Tourist lettings may have different consequences from lettings as a main residence.
Depending on the services provided and the characteristics of the stay, there may be:
- IRPF taxation as real estate capital or as a business activity.
- An obligation to charge VAT.
- Registration with the tax authorities and invoicing obligations.
- Regional or municipal tourist taxes.
- Reporting obligations.
- Administrative requirements and specific licences.
From 1 December 2026, the new VAT rules also change the treatment of certain short-term lettings when the conditions set by law are met.
Taxation can change the return on the transaction
Two homes with the same price can produce very different tax results.
The date of acquisition, the use of the property, the autonomous community, the owner’s age, renovations carried out, the rental agreement or the reinvestment of the proceeds can substantially change the final tax bill.
Before carrying out a property transaction, it is worth analysing:
- The taxes on the acquisition.
- The tax value of the property.
- The costs and investments that must be documented.
- The taxation of a future sale.
- The applicable exemptions.
- The net return after tax.
- The reductions available if the property is let.
- The consequences for your assets and estate.
At Abansa we advise individuals, investors and companies on the taxation of property transactions, sales, lettings, asset restructuring and planning the transfer of homes.