{"id":8781,"date":"2026-02-04T16:47:20","date_gmt":"2026-02-04T15:47:20","guid":{"rendered":"https:\/\/www.wachandwach.es\/blog\/"},"modified":"2026-02-04T16:47:20","modified_gmt":"2026-02-04T15:47:20","slug":"irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual","status":"publish","type":"post","link":"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/","title":{"rendered":"IRPF tax exemption on the sale of property in Spain &#8211; tax relief for reinvestment in a new residential property (vivienda habitual)"},"content":{"rendered":"<p>Selling a flat at a profit is always great news. However, after the initial joy of achieving a satisfactory price, there comes a moment of reflection when the obligation arises to pay tax on the capital gains derived from the sale of real estate. For Spanish residents, capital gains from the sale of property are subject to personal income tax (IRPF), which can be a significant tax burden.<\/p>\n<p>However, the Spanish Personal Income Tax Act (Ley 35\/2006) provides for the possibility of total exemption from this tax, if certain criteria are met. One of the most important solutions enabling the use of the exemption is the so-called <em>exenci\u00f3n por reinversi\u00f3n en vivienda habitual<\/em>, that is, an exemption from IRPF when the proceeds are reinvested in a new property used as the taxpayer\u2019s permanent residence.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<div class=\"ez-toc-title\" style=\"cursor:inherit\">Spis tre\u015bci<\/div>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_is_the_IRPF_exemption_for_reinvestment_in_new_residential_property\" >What is the IRPF exemption for reinvestment in new residential property?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Conditions_for_claiming_the_tax_relief_%E2%80%93_three_basic_requirements\" >Conditions for claiming the tax relief \u2013 three basic requirements<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Notification_of_intention_to_reinvest\" >Notification of intention to reinvest<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#The_property_sold_must_be_the_permanent_place_of_residence\" >The property sold must be the permanent place of residence.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#The_proceeds_from_the_sale_must_be_used_to_purchase_a_new_property_that_will_serve_as_the_primary_residence\" >The proceeds from the sale must be used to purchase a new property that will serve as the primary residence.<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Partial_reinvestment_%E2%80%93_proportional_exemption\" >Partial reinvestment \u2013 proportional exemption<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Mortgage_and_the_right_to_relief\" >Mortgage and the right to relief<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Can_you_claim_the_relief_if_you_no_longer_lived_in_the_property_you_sold\" >Can you claim the relief if you no longer lived in the property you sold?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_if_I_exceed_the_two-year_reinvestment_period\" >What if I exceed the two-year reinvestment period?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Obligation_to_physically_reside_in_the_new_property\" >Obligation to physically reside in the new property<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Different_fiscal_years_%E2%80%93_how_to_report_reinvestment\" >Different fiscal years \u2013 how to report reinvestment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Consequences_of_incorrect_settlement\" >Consequences of incorrect settlement<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Automatic_exemptions_%E2%80%93_seniors_and_dependents\" >Automatic exemptions \u2013 seniors and dependents<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Recommendation\" >Recommendation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_is_the_IRPF_reinvestment_exemption\" >What is the IRPF reinvestment exemption?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Who_can_benefit_from_the_IRPF_reinvestment_exemption\" >Who can benefit from the IRPF reinvestment exemption?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_qualifies_as_a_vivienda_habitual\" >What qualifies as a vivienda habitual?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Is_it_mandatory_to_declare_the_intention_to_reinvest\" >Is it mandatory to declare the intention to reinvest?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_is_the_time_limit_for_reinvestment\" >What is the time limit for reinvestment?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Can_renovation_costs_qualify_as_reinvestment\" >Can renovation costs qualify as reinvestment?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_happens_in_the_case_of_partial_reinvestment\" >What happens in the case of partial reinvestment?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Does_having_a_mortgage_affect_the_exemption\" >Does having a mortgage affect the exemption?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Do_I_need_to_live_in_the_new_property_after_reinvestment\" >Do I need to live in the new property after reinvestment?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#What_happens_if_the_reinvestment_deadline_is_exceeded\" >What happens if the reinvestment deadline is exceeded?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.staging.wachandwach.pl\/en\/blog\/irpf-tax-exemption-on-the-sale-of-property-in-spain-tax-relief-for-reinvestment-in-a-new-residential-property-vivienda-habitual\/#Are_there_automatic_exemptions_without_reinvestment\" >Are there automatic exemptions without reinvestment?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_IRPF_exemption_for_reinvestment_in_new_residential_property\"><\/span><strong>What is the IRPF exemption for reinvestment in new residential property?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It is a type of tax relief that enables individuals who sell their main residence (<em>vivienda habitual<\/em>) and allocate the proceeds to purchase or renovate a new property in which they will live to avoid paying tax on the profit from the sale. However, it is not enough to simply invest the funds in a new purchase \u2013 this must be done within a specified period and duly reported to the Spanish tax office (<em>Hacienda<\/em>). This mechanism is intended to facilitate a change of residence without additional tax burdens. However, it requires careful planning and proper documentation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conditions_for_claiming_the_tax_relief_%E2%80%93_three_basic_requirements\"><\/span><strong>Conditions for claiming the tax relief \u2013 three basic requirements<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In accordance with Article 38.1 of the Personal Income Tax Act (LIRPF) and Article 41 of the implementing regulation, in order to benefit from the IRPF exemption for reinvestment, the <img decoding=\"async\" class=\"wp-image-8482 alignright\" src=\"https:\/\/www.wachandwach.com\/wp-content\/uploads\/2025\/10\/checklist-300x300.png\" alt=\"IRPF reinvestment exemption,capital gains tax Spain property,reinvestment vivienda habitual,IRPF exemption Spain,selling main residence Spain tax,how to avoid capital gains tax in Spain,IRPF exemption reinvestment property,reinvestment exemption vivienda habitual Spain\" width=\"123\" height=\"123\" srcset=\"https:\/\/www.staging.wachandwach.pl\/wp-content\/uploads\/2025\/10\/checklist-300x300.png 300w, https:\/\/www.staging.wachandwach.pl\/wp-content\/uploads\/2025\/10\/checklist-150x150.png 150w, https:\/\/www.staging.wachandwach.pl\/wp-content\/uploads\/2025\/10\/checklist-140x140.png 140w, https:\/\/www.staging.wachandwach.pl\/wp-content\/uploads\/2025\/10\/checklist.png 512w\" sizes=\"(max-width: 123px) 100vw, 123px\" \/>following conditions must be met:<\/p>\n<ol>\n<li>\n<h3><span class=\"ez-toc-section\" id=\"Notification_of_intention_to_reinvest\"><\/span>Notification of intention to reinvest<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<\/li>\n<\/ol>\n<p>The taxpayer must declare their intention to take advantage of the relief in their tax return. Failure to do so will result in the tax office (<em>Hacienda<\/em>) not applying the exemption automatically.<\/p>\n<ol start=\"2\">\n<li>\n<h3><span class=\"ez-toc-section\" id=\"The_property_sold_must_be_the_permanent_place_of_residence\"><\/span>The property sold must be the permanent place of residence.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<\/li>\n<\/ol>\n<p>The condition is that the property sold must have been the taxpayer&#8217;s place (<em>vivienda habitual<\/em>) of actual and permanent residence for at least <strong>three consecutive years<\/strong>. If the period of residence was shorter, it is necessary to demonstrate justified reasons for changing residence, such as marriage, divorce, secondment or health problems.<\/p>\n<ol start=\"3\">\n<li>\n<h3><span class=\"ez-toc-section\" id=\"The_proceeds_from_the_sale_must_be_used_to_purchase_a_new_property_that_will_serve_as_the_primary_residence\"><\/span>The proceeds from the sale must be used to purchase a new property that will serve as the primary residence.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<\/li>\n<\/ol>\n<p>Reinvestment may consist of purchasing a new property that will become the main place of residence or renovating an existing property. For the renovation to be considered eligible for the relief, its cost should be <strong>at least 25% of the purchase price<\/strong> of the property (excluding the value of the land).<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Partial_reinvestment_%E2%80%93_proportional_exemption\"><\/span><strong>Partial reinvestment \u2013 proportional exemption<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If the taxpayer reinvests only part of the amount obtained from the sale, then the IRPF exemption applies proportionally \u2013 only to the part of the profit that corresponds to the amount reinvested. The remaining part of the profit is taxable. This situation often occurs when the new property is cheaper than the one sold.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Mortgage_and_the_right_to_relief\"><\/span><strong>Mortgage and the right to relief<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Having a mortgage does not exclude the possibility of benefiting from the relief. The \u201camount obtained from the sale\u201d is considered to be the sale value decreased by the unpaid mortgage capital at the time of the transaction. In addition, both the initial payment at the time of purchase and subsequent early repayments of the mortgage loan are considered reinvestments. All bank confirmations documenting these transactions should be preserved. The tax office may request these documents in order to verify the operation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Can_you_claim_the_relief_if_you_no_longer_lived_in_the_property_you_sold\"><\/span><strong>Can you claim the relief if you no longer lived in the property you sold?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Yes, provided that at the time of sale the property still had the status of vivienda habitual, i.e. it had been inhabited for at least three years without interruption. If the taxpayer stopped living there earlier, the Spanish tax authorities may refuse to grant the relief, unless there are documented reasons justifying the earlier change of residence.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_if_I_exceed_the_two-year_reinvestment_period\"><\/span><strong>What if I exceed the two-year reinvestment period?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this case, the taxpayer loses the right to the exemption. The two-year period for reinvestment cannot be extended. If the purchase of the new property or the start of the works takes place after this period, the entire capital gain will be subject to IRPF taxation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Obligation_to_physically_reside_in_the_new_property\"><\/span><strong>Obligation to physically reside in the new property<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The new property for which the funds were allocated must actually become the place of permanent residence. You must move in within 12 months of the date of purchase or completion of renovation work and remain there for at least three years. Failure to comply with this obligation will result in the loss of the exemption. Documents such as registration, utility bills, energy or internet supply contracts help prove this obligation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Different_fiscal_years_%E2%80%93_how_to_report_reinvestment\"><\/span><strong>Different fiscal years \u2013 how to report reinvestment<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If the sale and purchase take place in different fiscal years, the relief may still be applied, provided that the two years is observed. In this case, the tax return for the year in which the sale took place must clearly indicate the intention to reinvest in the following two years.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Consequences_of_incorrect_settlement\"><\/span><strong>Consequences of incorrect settlement<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Incorrect reporting or failure to provide information about reinvestment may have serious consequences: loss of the right to exemption, the need to pay additional tax along with interest, and even penalties for withholding information. Therefore, it is recommended that before making a sale or purchase, you <a href=\"mailto:office@wachandwach.com\"><strong>consult a solicitor or tax advisor<\/strong> <\/a>who will help you prepare all the documentation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Automatic_exemptions_%E2%80%93_seniors_and_dependents\"><\/span><strong>Automatic exemptions \u2013 seniors and dependents<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Article 33.4.b of the LIRPF provides for cases in which the taxpayer does not have to reinvest funds in order to benefit from the exemption. This applies to persons over 65 years of age and persons recognised as being in a state of serious or total dependence. In such situations, the exemption applies automatically, without the need to submit additional applications.<\/p>\n<blockquote>\n<h2><span class=\"ez-toc-section\" id=\"Recommendation\"><\/span><strong>Recommendation<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The tax relief for reinvesting in new residential property is one of the most advantageous solutions offered by Spanish tax law. However, in order to take full advantage of it, it is necessary to properly plan the entire process, meet the required deadlines and document the actions undertaken.<\/p>\n<p>Each case is unique; therefore, before selling a property for reinvestment, it is advisable to consult a solicitor or tax adviser who will help you choose the safest and most effective solution.<\/p>\n<p>This will ensure that the sale of the property is not only financially beneficial but also completely safe from a tax perspective.<\/p><\/blockquote>\n<h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"What_is_the_IRPF_reinvestment_exemption\"><\/span>What is the IRPF reinvestment exemption?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>It allows taxpayers to avoid capital gains tax when selling their main residence in Spain, provided the proceeds are reinvested in a new permanent residence within two years.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Who_can_benefit_from_the_IRPF_reinvestment_exemption\"><\/span>Who can benefit from the IRPF reinvestment exemption?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Any individual who sells their vivienda habitual in Spain and reinvests the proceeds in another property that becomes their main residence.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_qualifies_as_a_vivienda_habitual\"><\/span>What qualifies as a vivienda habitual?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>A property that was the taxpayer\u2019s permanent residence for at least three consecutive years, unless a justified reason explains a shorter period.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_it_mandatory_to_declare_the_intention_to_reinvest\"><\/span>Is it mandatory to declare the intention to reinvest?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes. The intention to reinvest must be declared in the personal income tax return for the year of sale.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_the_time_limit_for_reinvestment\"><\/span>What is the time limit for reinvestment?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The reinvestment must be completed within two years from the date of sale. This deadline cannot be extended.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_renovation_costs_qualify_as_reinvestment\"><\/span>Can renovation costs qualify as reinvestment?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, provided the renovation costs represent at least 25% of the purchase price of the property, excluding the land value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_happens_in_the_case_of_partial_reinvestment\"><\/span>What happens in the case of partial reinvestment?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The exemption applies proportionally. Only the part of the capital gain corresponding to the reinvested amount is exempt.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Does_having_a_mortgage_affect_the_exemption\"><\/span>Does having a mortgage affect the exemption?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. The sale proceeds are calculated after deducting the outstanding mortgage, and mortgage repayments may qualify as reinvestment.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Do_I_need_to_live_in_the_new_property_after_reinvestment\"><\/span>Do I need to live in the new property after reinvestment?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes. You must move in within 12 months and live in the property for at least three years.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_happens_if_the_reinvestment_deadline_is_exceeded\"><\/span>What happens if the reinvestment deadline is exceeded?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The right to the exemption is lost, and the entire capital gain becomes subject to IRPF.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Are_there_automatic_exemptions_without_reinvestment\"><\/span>Are there automatic exemptions without reinvestment?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes. Taxpayers over 65 and persons with severe or total dependency may benefit from the exemption without reinvesting the proceeds.<\/p>\n<p>If you are planning to buy a new property in Spain, <a href=\"mailto:office@wachandwach.com\"><strong>contact an experienced real estate lawyer<\/strong><\/a> who will guide you through the entire legal and tax process.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"mailto:office@wachandwach.com\"><img decoding=\"async\" class=\"size-full wp-image-7367 aligncenter\" src=\"https:\/\/www.wachandwach.com\/wp-content\/uploads\/2025\/01\/koperta.png\" alt=\"znajdz adwokata w hiszpanii\" width=\"119\" height=\"119\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Selling a flat at a profit is always great news. However, after the initial joy of achieving a satisfactory price, there comes a moment of reflection when the obligation arises&#8230;<\/p>\n","protected":false},"author":3,"featured_media":8785,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_titles_title":"IRPF tax exemption on the sale of property in Spain - tax relief for reinvestment in a new residential property (vivienda habitual)","_seopress_titles_desc":"IRPF reinvestment exemption in Spain: avoid capital gains tax when selling your main residence by reinvesting in a new permanent home.","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"none","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"both","_seopress_redirections_param":"","_seopress_redirections_type":301,"_seopress_analysis_target_kw":"IRPF reinvestment exemption,capital gains tax Spain property,reinvestment vivienda habitual,IRPF exemption Spain,selling main residence Spain tax,how to avoid capital gains tax in Spain,IRPF exemption reinvestment property,reinvestment exemption vivienda habitual Spain","inline_featured_image":false,"footnotes":""},"categories":[58,130,123],"tags":[],"class_list":["post-8781","post","type-post","status-publish","format-standard","has-post-thumbnail","category-real-estate-law","category-real-estate-market","category-tax-law"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/posts\/8781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/comments?post=8781"}],"version-history":[{"count":2,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/posts\/8781\/revisions"}],"predecessor-version":[{"id":8788,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/posts\/8781\/revisions\/8788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/media\/8785"}],"wp:attachment":[{"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/media?parent=8781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/categories?post=8781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.staging.wachandwach.pl\/en\/wp-json\/wp\/v2\/tags?post=8781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}