Saltar para o conteúdo
    Grupo Your - Abertura de Empresa em Portugal
    Back to blog
    IRSmais-valias imobiliárias IRS 2026reinvestimento habitação própria permanente

    Capital Gains on Selling a House: How IRS is Calculated and How to Reinvest Without Paying (2026)

    Pedro Flores
    ·6 min read
    Capital Gains on Selling a House: How IRS is Calculated and How to Reinvest Without Paying (2026) por Pedro Flores - Grupo Your Contabilidade

    Quick answer: the capital gain on the sale of a property corresponds to the difference between the realisation value (sale price) and the acquisition value adjusted by the monetary devaluation coefficient, minus property enhancement costs incurred in the last 12 years and purchase and sale expenses. For residents, only 50% of this net gain is taxed, being aggregated with total income. Full or partial exemption applies when reinvested in a primary residence.

    This is one of the areas of IRS (Imposto sobre o Rendimento das Pessoas Singulares – personal income tax) where the most money is lost through lack of knowledge. Not due to tax evasion, but due to failing to keep invoices.

    In summary

    • Formula: Realisation value − (Acquisition value × coefficient) − enhancement costs − purchase and sale expenses
    • Only 50% of the net positive balance is taxed in the case of tax residents.
    • The taxable amount is aggregated with total income and subject to progressive IRS tax rates.
    • It must be declared in Anexo G (Annex G for capital gains) of the Modelo 3 (annual tax return) declaration.
    • Exemption regimes exist for a primary residence (habitação própria e permanente) and for properties acquired before 1 January 1989.

    The calculation, step by step

    Step 1: realisation value

    This is the sale value stated in the deed. If the Valor Patrimonial Tributário (VPT – rateable asset value) is higher than the declared price, the VPT prevails for tax purposes.

    Step 2: adjusted acquisition value

    The price you paid for the property is updated using the monetary devaluation coefficient published annually by government order, whenever more than 24 months have elapsed between acquisition and sale.

    If you inherited the property, the acquisition value is the amount considered for Imposto do Selo (Stamp Duty) purposes. A similar rule applies if you received it as a donation.

    Step 3: enhancement costs

    Costs incurred in enhancing the property over the last 12 years are deductible, provided they can be proven. This includes refurbishment work, roof replacements, installation of climate control systems, structural alterations, and new kitchens or bathrooms.

    Two conditions are non-negotiable: an invoice showing the owner's NIF (tax identification number) and a clear description of the work carried out on the property. A generic receipt for "miscellaneous services" is not valid.

    Step 4: purchase and sale expenses

    These include, among others:

    • IMT (Imposto Municipal sobre as Transmissões Onerosas de Imóveis – property transfer tax) and Imposto do Selo paid on acquisition.
    • Deeds, registry fees and notary costs.
    • Real estate agency commission on the sale.
    • Energy performance certificate.

    Practical example

    Purchase in 2012 for 150,000 euros, sale in 2026 for 300,000 euros.

    Item Amount
    Realisation value 300,000 €
    Adjusted acquisition value (illustrative coefficient of 1.26) 189,000 €
    Documented work in the last 12 years 35,000 €
    IMT and deed fees on purchase 11,000 €
    Real estate commission on sale 15,000 €
    Capital gain 50,000 €
    Subject to IRS (50%) 25,000 €

    This 25,000 euros is added to the household's remaining income and taxed at progressive rates. Without the invoices for the building works, the capital gain would be 85,000 euros and the taxable amount 42,500 euros. The difference in tax can easily exceed 6,000 euros.

    The coefficient used in this example is purely illustrative. The applicable figure depends on the year of purchase and the executive order in force.

    Reinvestment in a primary residence

    This is the most relevant exemption and the one that raises the most questions.

    Essential requirements:

    1. The property sold must have been designated as the primary residence of the taxpayer or their household.
    2. The realisation value, minus the repayment of any mortgage taken out to purchase the sold property, must be reinvested in the acquisition, construction, extension or improvement of another property intended for the same purpose.
    3. Reinvestment must occur within the period between 24 months before and 36 months after the date of sale.
    4. The intention to reinvest must be declared in the IRS return for the year of disposal.
    5. The new property must be allocated as the primary residence within the statutory timeframe.

    If reinvestment is partial, the tax relief is proportional. Reinvesting 70% of the eligible amount exempts 70% of the capital gain.

    Classic reinvestment mistakes

    • Failing to declare the intention in the year of sale. Without this declaration, you lose the benefit, even if the reinvestment later takes place.
    • Forgetting the mortgage deduction. What counts is the realisation value net of the outstanding mortgage principal repaid, not the total sale price.
    • Buying a buy-to-let property. The intended destination must be a primary residence.
    • Missing the 36-month deadline. This is calculated from the date of the sale deed.

    Other exemptions and special regimes

    Properties acquired before 1 January 1989: capital gains resulting from the sale of properties acquired before this date are exempt from IRS tax.

    Reinvestment in retirement savings products: a specific exemption regime exists for taxpayers of a certain age or who are already retired who reinvest the sale proceeds into insurance contracts, open pension funds or the public capitalisation scheme, subject to specific conditions.

    Housing support schemes: temporary exemption regimes have been created linked to mortgage repayments and the sale of properties to the State or local councils for affordable housing. These measures have specific timeframes and should be checked on a case-by-case basis.

    Non-residents

    Non-tax residents in Portugal are also taxed on property capital gains obtained in Portuguese territory. Following European case law and subsequent legislative amendments, only 50% of the gain is subject to tax, aggregated with tax rates applied progressively.

    For those living abroad, this is an area where interaction with the double taxation treaty of their country of residence is decisive.

    Checklist before selling

    • [ ] Locate the purchase deed and proof of IMT and Imposto do Selo paid.
    • [ ] Gather all invoices for building works over the last 12 years, showing your NIF and a detailed description.
    • [ ] Confirm the outstanding mortgage balance at the date of sale.
    • [ ] Keep proof of the agency commission and energy certificate.
    • [ ] Decide before signing the deed whether you will reinvest and within what timeframe.
    • [ ] Check that the property was registered as your fiscal domicile.

    Frequently asked questions

    Is the entire capital gain taxed?

    No. For residents, only 50% of the net positive balance between capital gains and capital losses is considered for IRS purposes.

    What works can I deduct?

    Costs incurred in enhancing the property over the last 12 years, properly supported by an invoice in the owner's name.

    What is the timeframe to reinvest?

    Between 24 months before and 36 months after the date of sale.

    What if I only reinvest part of the amount?

    The exemption is proportional to the amount actually reinvested.

    Where do I declare the sale?

    In Anexo G of the Modelo 3 IRS tax return, in the year following the sale.

    Are you selling or buying a property?

    The time to save tax on a capital gain is before the deed is signed, not in April of the following year. At Grupo Your, we simulate the tax impact and help organise the necessary documentation. Speak to us.

    Related articles:


    ```json

    {

    "@context": "https://schema.org",

    "@type": "FAQPage",

    "mainEntity": [

    {"@type":"Question","name":"How is the capital gain on the sale of a house calculated?","acceptedAnswer":{"@type":"Answer","text":"The adjusted acquisition value (corrected by the currency devaluation coefficient), property enhancement costs incurred in the last 12 years, and purchase and sale expenses are subtracted from the realisation value."}},

    {"@type":"Question","name":"How much of the capital gain is taxed under IRS?","acceptedAnswer":{"@type":"Answer","text":"For tax residents, only 50% of the net gain is considered, which is aggregated with other income and subject to progressive IRS tax rates."}},

    {"@type":"Question","name":"What is the timeframe to reinvest and avoid paying capital gains tax?","acceptedAnswer":{"@type":"Answer","text":"Reinvestment in a primary residence must take place between 24 months before and 36 months after the sale date, with the intention declared in the IRS tax return for the year of disposal."}},

    {"@type":"Question","name":"What building works can I offset against capital gains?","acceptedAnswer":{"@type":"Answer","text":"Property enhancement costs incurred in the last 12 years, supported by an invoice in the owner's name detailing the work carried out."}}

    ]

    }

    ```

    Get the latest tax news

    Subscribe to our newsletter and receive articles, tax alerts and tips directly in your inbox.

    Need help with your company?

    Talk to us and receive a proposal tailored to your business.

    Company FormationAccountingPayrollTax Consulting

    More on IRS

    View all

    Recent articles

    View blog

    Explore by topic

    Grupo Your

    What can we do for you?

    Open Company

    Set up your company in 48h

    Accounting

    Dedicated support

    Payroll Services

    Complete HR management

    Administrative Services

    Document management & compliance

    Tax Consulting

    Security and tax optimization

    Grupo Your in the Press

    PME Magazine20 Jul 2026

    Pedro Flores, CEO of Grupo Your, joins panel on SME financing

    PME Magazine22 Apr 2026

    Grupo Your launches network to integrate accounting firms without acquisitions

    ECO22 Apr 2026

    Grupo Your creates network with accounting firms as an alternative to acquisitions

    ECO23 Mar 2026

    "The limitation of accounting is the difficulty of providing services outside Portugal"

    ECO23 Mar 2026

    Grupo Your to launch revenue-sharing model with accounting firms

    Grupo Your18 Mar 2026

    Grupo Your Launches an AI Agent. And I Still Believe in People.

    Authors

    Meet Our Authors

    See all
    Bruno Rodrigues

    Bruno Rodrigues

    Chief Operating Officer

    14 articles
    Hélder Costa

    Hélder Costa

    Chief Financial Officer

    19 articles
    Mónica Matos

    Mónica Matos

    Partner

    21 articles
    Pedro Flores

    Pedro Flores

    CEO of Grupo Your

    152 articles
    Sandra Lourenço

    Sandra Lourenço

    Chief Human Capital, Marketing & Sales Officer

    5 articles
    See all authors

    By browsing this site you agree to our Terms and Conditions. Please also see our Privacy and Data Protection Policy and Cookie Policy.