Skip to main content
Practical manual for Income Tax 2023.

Exempt capital gains

Capital gains that arise from the following are exempt from IRPF

A. Donations of goods with the right to deduction in the quota

Regulations: Art. 33.4.a) Law Income Tax

Capital gains that may arise from donations of assets that meet the requirements to entitle the donor to the corresponding deduction in the tax rate are declared exempt for the donor, so they should not be included in the declaration.

See, within Chapter 16, in the section " Deduction for donations ", the requirements and conditions relating to donations of property.

B. Transfer of habitual residence by persons over 65 years of age or by persons in a situation of severe or high dependency

Regulations: Art. 33.4.b) and Additional Provision fifteenth Law IRPF

The gain derived from the transfer, whether onerous or lucrative, of the habitual residence of taxpayers over 65 years of age should not be included in the tax base, whether the habitual residence is transferred in exchange for a capital sum or in exchange for a temporary or lifelong income, provided that the following circumstances occur:

  • That the transferred property has been your habitual residence for a continuous period of at least three years, and

  • That during said period he has held full control of it.

    Therefore, when the full ownership of a home is divided between the bare owner and the usufructuary, neither of them will be eligible for the exemptions provided for in connection with the transfer of the home, even if it is their habitual residence.

Note: This interpretative criterion was established by the Supreme Court in Judgment No. 1858/2018, of December 20, issued in the administrative appeal No. 3392/2017 ( ROJ : STS 4390/2018).

Without prejudice to the above, if the exemption is applied if the above requirements are met, in the event that the owner, over 65 years of age, who has held full ownership of his or her habitual residence for a continuous period of at least three years, transfers the bare ownership of the same, reserving the life usufruct over said residence.

In identical terms, the capital gain derived from the transfer of the habitual residence made by persons in a situation of severe or great dependency is also declared exempt in accordance with the Law on the promotion of personal autonomy and care for persons in a situation of dependency.

Note: For the exclusive purposes of applying this exemption, it will be understood that the taxpayer is transferring his or her habitual residence when it constitutes his or her habitual residence at that time or would have been considered as such until any day of the two years prior to the date of the transfer.

See the concept of habitual residence for the purposes of this exemption contained in the twenty-third Additional Provision of the Personal Income Tax Law .

C. Delivery of assets of the Historical Heritage in payment of IRPF

Regulations: Art. 33.4.c) Law Income Tax

In cases where the payment of the tax debt corresponding to IRPF is made, in accordance with the provisions of article 73 of Law 16/1985, of June 25, on Spanish Historical Heritage, through the delivery of assets that are part of the aforementioned Historical Heritage, the capital gain that may be demonstrated by the difference between the acquisition value of the asset delivered and the amount of the tax debt is exempt from IRPF .

D. Payment in lieu of the habitual residence

Regulations: Art. 33.4.d) Law Income Tax

Capital gains in which the following circumstances occur are declared exempt from IRPF :

  1. When they are established at the time of the transfer of the debtor's or the debtor-guarantor's main residence.

  2. When the transfer of the residence is carried out through a dation in payment, or in a judicial or notarial foreclosure.

  3. When the purpose of such is the cancellation of debts guaranteed with a mortgage pertaining to the main residence, contracted with credit institutions or any other entity that professionally carries out the activity of granting loans or mortgages.

  4. In any case, the owner of the main residence must not have other goods or rights that could satisfy the total amount of the debt and prevent the alienation of the property.

E. Capital gains from the transfer of certain properties

Regulations: Additional Provision Thirty-Seventh Law IRPF

1## Capital gains arising from the transfer of urban properties acquired for valuable consideration between May 12, 2012, and December 31, 2012 will be exempt by 50% ##.

The exemption applies to urban properties regardless of whether they are used in relation to economic activities.

This partial exemption is not applicable when the taxpayer has acquired or transferred the property to his or her spouse, to any person related to him or her by blood or marriage, up to the second degree included, or to an entity in respect of which any of the circumstances established in article 42 of the Commercial Code occur with the taxpayer or any of the aforementioned persons, regardless of residence and the obligation to prepare consolidated annual accounts.

In the case of reinvestment when the property transferred is the taxpayer's habitual residence and the amount reinvested is less than the total amount received in the transfer, the proportional part of the capital gain obtained will be excluded from taxation, once the exemption provided for in this Additional Provision has applied, which corresponds to the amount reinvested in the terms and conditions provided for the exemption for reinvestment of habitual residence in article 38 of the Income Tax Law. That is, the 50% exemption on the profit obtained from the transfer will be applied first. Of the other 50% of the profit, the proportional part corresponding to the reinvested amount will be exempt.

The conditions and requirements for the application of this exemption are discussed in section Profits excluded from taxation in cases of reinvestment , of this same Chapter.

F. Exemption for shares or interests in newly created entities acquired before September 29, 2013

Regulations: Transitional provision twenty-seventh Law IRPF

Taxpayers who obtain capital gains that become evident on the occasion of the transfer of shares or interests in newly or recently created entities acquired from July 7, 2011 to September 29, 2013, and that have remained in the taxpayer's assets for a period of more than three years (counted from date to date) may apply the exemption provided for in the Thirty-fourth Additional Provision of the Personal Income Tax Law in its version in force on December 31, 2012 , provided that the requirements and conditions established in said Additional Provision are met.

G. Income obtained by the debtor in bankruptcy proceedings

Regulations: Additional Provision forty-third Law IRPF

Income obtained by debtors that is disclosed in bankruptcy proceedings under Law 22/2003, of July 9, and since September 1, 2020, under Royal Legislative Decree 1/2020, of May 5, approving the revised text of the Bankruptcy Law, are exempt as a result of:

  1. Debt relief and payment of debts established in :

    • Judicially approved agreement.

    • Judicially approved refinancing agreement referred to in article 71 bis and the fourth Additional Provision of Law 22/2003, of July 9, Bankruptcy and which, since September 1, 2020, is regulated in Title II of the second book, articles 596 to 630, of Royal Legislative Decree 1/2020, of May 5, which approves the revised text of the Bankruptcy Law,

    • Out-of-court payment agreement referred to in Title X of Law 22/2003, of July 9, on Bankruptcy and which, since September 1, 2020, is regulated in Title III of Book Two, articles 631 to 694, of Royal Legislative Decree 1/2020, of May 5, which approves the revised text of the Bankruptcy Law.

  2. Exemptions from unsatisfied liabilities referred to in article 178 bis of Law 22/2003 and which, since September 1, 2020, is regulated in Chapter II of Title XI of the first book, articles 486 to 502, of Royal Legislative Decree 1/2020, of May 5, which approves the revised text of the Bankruptcy Law.

    In all cases, it is a necessary requirement for income to be declared exempt that the debts do not derive from the exercise of economic activities .

    In the case of debts arising from the exercise of economic activities, the regime is provided for in the LIS . See Law 27/2014, of November 27, on Corporate Tax.

    Regarding the imputation criteria in the case of losses arising from overdue and unpaid credits, when a reduction established in a judicially approved refinancing agreement or in an out-of-court payment agreement becomes effective, see article 14.2.k of the Tax Law.

H. Aid to offset costs in buildings affected by the release of the digital dividend

Regulations: Fifth Additional Provision Law IRPF

Aid granted pursuant to the provisions of Royal Decree 920/2014, of October 31, regulating the direct granting of subsidies intended to offset the costs arising from the reception or access to television audiovisual communication services in buildings affected by the release of the digital dividend, will not be included in the tax base of this Tax.

I. Grants and aid for energy rehabilitation actions in buildings

Regulations: Additional Provision 5.4 Law IRPF

Aid granted for energy rehabilitation actions in buildings, under the programs established in the following Royal Decrees, will not be included in the personal income tax base in the 2023 and subsequent years:

  • Royal Decree 691/2021, of August 3, regulating the subsidies to be granted for energy rehabilitation actions in existing buildings, in execution of the Energy rehabilitation program for existing buildings in municipalities with a demographic challenge (PREE 5000 Program), included in the Regeneration and demographic challenge Program of the Urban rehabilitation and regeneration Plan of the Recovery, Transformation and Resilience Plan, as well as its direct granting to the autonomous communities;

  • Royal Decree 737/2020, of August 4, regulating the aid program for energy rehabilitation actions in existing buildings and regulating the direct granting of aid from this program to the autonomous communities and cities of Ceuta and Melilla;

  • Royal Decree 853/2021, of October 5, regulating the assistance programs for residential rehabilitation and social housing of the Recovery, Transformation and Resilience Plan.

  • Royal Decree 477/2021, of June 29, approving the direct granting to the autonomous communities and the cities of Ceuta and Melilla of aid for the execution of various incentive programs linked to self-consumption and storage, with renewable energy sources, as well as the implementation of renewable energy thermal systems in the residential sector, within the framework of the Recovery, Transformation and Resilience Plan.

J. Exempt profits from reinvestment

Regulations: Art. 38 Law Income Tax

See its specific section in this Chapter.