Frequently asked questions

Do you have to declare the sale of a property on your tax return?

Yes, in almost all cases you must include the sale on your personal income tax (IRPF) return for the corresponding year, as a capital gain or loss resulting from the transfer of the property. Paying municipal capital gains tax (plusvalía municipal) or local taxes is not enough: the national tax authority (AEAT) looks at the difference between the transfer value and the acquisition value (with legal adjustments). Even if there was no gain, it is usually reported to keep a formal record of the transaction.

Which part of your income tax return is affected

In general terms, capital gains from selling property form part of the savings tax base, which is taxed under specific IRPF tax bands for that financial year. This is separate from the Municipal Capital Gains Tax (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana or plusvalía municipal), which taxes land at town hall level under a different logic.

Confusing these two taxes when calculating how much profit you have left is a common mistake. Model local IIVTNU and state IRPF separately with the assistance of an administrative agency or tax advisor.

How capital gains are calculated (a simplified overview)

Broadly speaking, you compare the amount received for the sale (transfer value) with the original cost of purchasing the property (acquisition value), plus legally allowable expenses and improvements, applying coefficients or update rules based on purchase and sale dates. A positive result is subject to tax, whereas a negative result can be offset against other capital gains within legal limits.

The precise calculation depends on Royal Legislative Decree 3/2004 (LIRPF) and its implementing regulations, which are updated periodically. Do not rely on generic calculators without verifying acquisition dates, main residence reinvestments or prior property transfers.

Main residence and reinvestment

There are exemptions or deferrals available when you sell your main residence and reinvest the proceeds into another property that meets the criteria for a main residence within statutory deadlines and conditions (Article 41 bis and implementing rules). Not all sales qualify: tax residence status, months of occupancy, reinvested amount and proof provided all matter.

If you sell before meeting certain ownership duration requirements for a main residence, you could lose tax benefits claimed in previous years; it is best to plan ahead before putting the property on the market.

Over-65s and other special cases

Tax regulations establish specific treatment for taxpayers of a certain age when they reinvest in annuities or under statutory scenarios, subject to caps and formal requirements. There are also distinct rules for non-residents, corporate entities or transfers originating from an inheritance. Every tax situation is unique.

Do not assume a relative's outcome applies to you: verify your situation directly with the AEAT or your advisor using actual deeds and dates.

Comparison of IRPF exemptions for main residences

Main statutory scenarios for capital gains exemption under IRPF regulations.

  • Exemption regime

    Main residence reinvestment exemption

    Age requirement

    Any age

    Use of proceeds requirement

    Full or partial reinvestment in a new main residence within statutory deadlines

    Legal basis

    Ley 35/2006, art. 38.1

  • Exemption regime

    Exemption for over-65s

    Age requirement

    65 or older

    Use of proceeds requirement

    Reinvestment not required if the transferred property is a main residence

    Legal basis

    Ley 35/2006, art. 33.4.b

Regulated under the consolidated text of the Personal Income Tax Law.

Fuente: BOE: Ley 35/2006, arts. 33.4.b y 38.1

What documentation you should gather

  • Title deeds or official documents for purchase and sale.
  • Proof of allowable deductible expenses (commissions, certain acquisition or improvement costs subject to tax criteria).
  • Details of any cancelled mortgage if they affect the net proceeds received.
  • Information regarding other property sales in the same tax year for gain/loss offsets.

Keep copies at least until statutory tax inspection limitation periods expire.

When to declare

The sale is recorded on the annual IRPF return for the tax year in which the transfer takes place (unless special mechanics apply that require professional handling). If you are already required to submit a tax return for other reasons, the sale is included there; if you were not previously required to file, the sale may create an obligation to declare due to exceeding income or gain thresholds. Consult a tax advisor or administrative agency with the exact title deed date.

Capital loss on sale

Selling below your tax acquisition cost can create a capital loss, which can be offset against gains in the same tax year or subsequent years within legal limits. This does not automatically eliminate municipal capital gains tax if the land itself increased in value under local assessment methods: again, these are distinct taxes.

In-depth guide and supported selling

To clarify concepts, common tax boxes and frequent mistakes, consult IRPF on the sale of a property. For all other selling expenses, the guide how much it costs to sell a property in Spain completes the overall picture.

Next step

Before setting a minimum sale price, request an indicative tax estimate. After signing the title deed, provide your documentation to your tax advisor promptly so as not to miss tax return or reinvestment deadlines. If you sell and buy within the same tax year, coordinate dates with your advisor so you do not lose tax deferral options.

At Sky Real Estate, we coordinate the commercial sales process; your income tax return must be prepared by your tax professional. Service for property sales and developments.

Guidance content only, not tax advice. Verify with the AEAT and current regulations for the relevant tax year.

Frequently asked questions

How is a capital gain or loss determined for the sale of a property under IRPF?
A capital gain or loss is calculated as the difference between the transfer value and the acquisition value. The acquisition value comprises the actual purchase price plus inherent expenses and taxes, whilst the transfer value is the sale price reduced by associated expenses and taxes.

Fuente: BOE, Ley 35/2006, arts. 34, 35 y 36

When does the exemption for reinvestment in a main residence apply?
Capital gains obtained from transferring the taxpayer's main residence may be exempt from tax if the full amount received is reinvested in acquiring or refurbishing a new main residence under statutory conditions.

Fuente: BOE, Ley 35/2006, art. 38.1

What tax exemption applies to over-65s when selling their main residence?
Capital gains arising from the transfer of a main residence by taxpayers over 65 years of age or by individuals in a situation of severe or major dependency are exempt from IRPF taxation.

Fuente: BOE, Ley 35/2006, art. 33.4.b

In which tax year must the property transfer be declared?
Capital gains and losses are attributed to the tax period in which the alteration in assets corresponding to the transfer of the real estate asset takes place.

Fuente: BOE, Ley 35/2006, art. 14.1.c