Back to list

Taxes on selling a house

Find out what taxes you need to pay when selling a house in Spain and which tax aspects to consider to avoid surprises during the transaction.
Taxes on selling a house

Selling a house in Spain doesn't just involve finding a buyer and closing the deal; it also entails a series of taxes that must be paid. In this article, we explain which taxes may apply when selling a house, and which aspects should be taken into account to avoid surprises at the end of the transaction.

When you decide to sell a property in Spain, you must consider not only the sale price but also the taxes you must pay for selling a house. These taxes vary depending on various factors, such as the profit obtained from the sale, the location of the property, and local legislation. Below, we review the main taxes that may apply when selling a house.

Taxes to be paid when selling a house

There are several types of taxes to keep in mind when selling a property. The most common are the Personal Income Tax (IRPF) and the Tax on the Increase in Value of Urban Land (Municipal Plusvalía).

Personal Income Tax (IRPF / Capital Gains Tax)

One of the most important taxes for selling a house is the IRPF. This tax levies the profit obtained from the sale of the property. The gain is calculated as the difference between the sale price and the acquisition price, adjusted for expenses associated with the sale (notary, registry, management fees, etc.).

How is IRPF calculated for selling a house?

  • Sale price: The value for which the house is sold.
  • Acquisition price: The value for which the house was bought plus related expenses (notary, registry, etc.).
  • Capital gain: This is the difference between the sale price and the acquisition price.

This tax levies the profit obtained from the sale. If a gain is made, it is taxed at a progressive tax rate ranging between 19% and 30%, depending on the amount of said gain.

IRPF brackets for the savings base in Spain

Capital gain / savings base

Applicable 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%

More than €300,000

30%

Additionally, it should be clarified that the applicable rates described in the table are applied progressively by brackets. That is, it is not a single percentage applied to the entire gain.

Expenses that can be taken into account to calculate the capital gain when selling a house

When calculating the capital gain on which IRPF is applied, the purchase price is not compared directly with the sale price. Regulations allow for certain expenses and investments to be taken into account which can reduce the capital gain and, therefore, the tax to be paid.

Deductible expenses from the acquisition price (added to the original purchase value):

  • ITP or VAT paid at the time of purchasing the home.
  • Notary and registry fees for the sale deed.
  • Management fees (Gestoría) linked to the acquisition.
  • Investments and improvements made to the property (extensions, structural reforms, installation of new elements). It is important to differentiate them from repairs and maintenance, which are not deductible.
  • Inheritance and Gift Tax, in the case of homes acquired through inheritance or donation.

In this section, it is worth clarifying that if the property has been rented out, the calculation of the capital gain may change. During the years of rental, tax regulations allow for a depreciation deduction for the wear and tear of the building. When selling, the Tax Agency requires reducing the acquisition value by the tax-deductible depreciation, even if the owner did not correctly deduct them in their tax return. This can increase the capital gain and, therefore, the tax to be paid. For this reason, for properties that have been rented out, it is advisable to review the calculation with a tax advisor.

Deductible expenses from the sale price (subtracted from the transmission value):

  • Real estate agency commission.
  • Energy efficiency certificate expenses and habitability certificate.
  • Municipal Plusvalía, if assumed by the seller.
  • Registry cancellation of the mortgage, if applicable.

Keeping all invoices and receipts is essential: in the event of an inspection, the Tax Agency will demand documentation proving each deducted expense.

Exemptions and reductions in IRPF for the sale of a home

In Spain, there are cases where you may be exempt from paying IRPF for the sale of a home, or at least benefit from tax exemptions:

  • Over 65s: The gain obtained from the sale of the primary residence is exempt from IRPF, without the need to reinvest the money in another home. This exemption does not generally apply to the sale of second homes.
  • Reinvestment in primary residence (under 65s): If you sell your main home and reinvest the amount obtained in the purchase or renovation of another primary residence, the capital gain may be totally or partially exempt. The reinvestment must generally be made within the two years before or after the sale. If only part of the amount is reinvested, the exemption will be proportional. If the home sold had a pending mortgage, for these purposes, the amount obtained is considered the transmission value minus the principal remaining to be amortized.
  • Severe dependency or great dependency: The gain obtained from the transfer of the primary residence may also be exempt when the transferor is in a situation of severe or great dependency, in accordance with applicable regulations.
  • Sale due to special situations: There are other specific cases of exemption or special tax treatment, such as certain cases of dation in payment or mortgage foreclosure of the primary residence, provided that legal requirements are met. These should be analyzed case by case with a tax advisor.

In any case, it is important to consult a tax expert to know all the details and benefits available according to your situation.

Abatement coefficients for homes acquired before 1994

If you acquired your home before December 31, 1994, you may be able to benefit from so-called abatement coefficients, which reduce the taxable capital gain. This peculiarity is especially relevant in areas like the Costa Brava, where family properties acquired or built decades ago abound.

The reduction coefficient applies to the part of the gain generated up to and including January 19, 2006, and entails a reduction of 11.11% for each year of ownership prior to December 31, 1994 (not counting the first two years). In certain cases, homes acquired very long ago can benefit from a very significant reduction in the part of the gain generated up to January 19, 2006, although the calculation must be done case by case.

Important limitation: this tax benefit only applies to the first €400,000 of transmission value accumulated by a taxpayer throughout their life. Once that threshold is exceeded, the rest is taxed without reduction.

Tax on the Increase in Value of Urban Land (Municipal Plusvalía)

The municipal plusvalía tax is another of the taxes to pay when selling a house in Spain. This tax is local and applies to the increase in the value of urban land from the time it was acquired until it is sold. The taxable base is calculated based on the cadastral value of the land and the number of years it has been owned.

Currently, if the seller proves that there has been no increase in the value of the land between acquisition and transfer, the operation is not subject to municipal plusvalía. Furthermore, if the real increase is lower than the result of the municipal objective calculation, it can be requested that the real increase be taken as the taxable base.

How is municipal plusvalía calculated?

  • Cadastral value of the land: This is the value assigned by the Cadastre to the land of the property.
  • Years of possession: The time during which the seller has owned the property.

The tax rate varies by municipality, though it cannot exceed 30%, so it is important to consult local regulations to know the exact percentage.

Who has to pay these taxes?

In a sale, the IRPF or IRNR corresponds to the seller. The municipal plusvalía also generally corresponds to the seller in a sale transaction. In free transfers, such as inheritances or donations, the taxpayer may be different. The parties can internally agree on another distribution of expenses, but that agreement does not change who the taxpayer is before the Administration.

3% Retention for Non-Residents: the case of non-tax resident sellers

If the seller of the home is not a tax resident in Spain, the transaction is taxed via the Non-Resident Income Tax (IRNR) and not IRPF. This is common in the Costa Brava, where a significant portion of owners are non-residents with a second home.

How the 3% retention works

In transactions with a non-resident seller, the buyer is obliged to retain 3% of the sale price and pay it to the Tax Agency using Form 211 within one month of signing the deed. This 3% acts as a payment on account of the IRNR that the seller will have to settle.

Subsequent settlement by the seller

Once the retention has been applied, the non-resident seller must file Form 210 to settle the final tax. On the sale of a property located in Spain, the capital gain is generally taxed under IRNR at 19%. The 3% retention made by the buyer is deducted from the final fee. If the retention exceeds the final tax, the seller can request a refund of the excess.

Exemptions for non-residents

Generally, non-resident sellers cannot apply the exemption provided in IRPF for those over 65 for the sale of the primary residence, as they are taxed under IRNR and not IRPF. However, they can apply for the reinvestment exemption for primary residence if the new home is acquired in an EU or EEA member state with effective exchange of tax information.

How much do you pay for selling a house?

The total amount to be paid in taxes depends on several factors, such as the profit obtained in the sale, the cadastral value of the land, and the location of the property. Here is a general idea:

  • IRPF: If you obtain a capital gain of €50,000, it will be taxed in brackets: the first €6,000 at 19% and the rest up to €50,000 at 21%, without prejudice to possible applicable exemptions, reductions, or compensations.
  • Municipal Plusvalía: This tax can vary enormously depending on the cadastral value of the land and the years of ownership.

To obtain an exact calculation, it is recommended to consult a tax advisor or the local town hall.

Deadlines for filing and paying taxes for selling a house

Meeting deadlines is essential to avoid surcharges, late payment interest, and penalties. These are the main deadlines to keep in mind:

IRPF (residents in Spain): capital gains are declared in the income tax return for the year following the sale, within the ordinary period (usually between April and June).

Municipal plusvalía: the seller has 30 business days from the signing of the deed to self-assess the tax at the corresponding town hall. In inheritances, the period is extended to 6 months, extendable up to one year if requested within the period.

Form 211 (3% retention for purchase from a non-resident): the buyer must pay the retention within one month of the date of the transaction.

Form 210 (IRNR for non-residents): the non-resident seller must file the settlement within three months once the one-month period from the transmission date has passed. In practice, this is approximately four months after the sale.

FAQ

What taxes are paid when selling a house in Spain?

When selling a house in Spain, the main taxes are Personal Income Tax (IRPF), if the seller is a tax resident in Spain, or Non-Resident Income Tax (IRNR), if they are a non-resident. Additionally, Municipal Plusvalía may apply, unless it is proven that there has been no increase in the value of the land.

How is Capital Gains Tax (IRPF) calculated when selling a house?

IRPF is calculated as the difference between the sale price of the property and the acquisition price adjusted for expenses. A progressive tax rate ranging from 19% to 30% is applied to this gain.

What is the Municipal Plusvalía tax?

Municipal Plusvalía is a local tax levied on the increase in the value of the land from the time it was acquired until the property is sold. It is calculated based on the cadastral value of the land and the number of years of ownership.

Who pays the taxes when selling a house?

In principle, the seller is responsible for IRPF or IRNR and, in a sale transaction, also for the Municipal Plusvalía. The parties may internally agree on a different distribution of expenses, but such an agreement does not change who the liable taxpayer is before the Tax Agency or the Town Hall.

How much do I have to pay for the Municipal Plusvalía?

The amount of the Municipal Plusvalía varies according to the cadastral value of the land, the years of ownership, and the local tax ordinance. However, if it is proven that there has been no increase in the value of the land, the transaction is not subject to the tax.