Taxes

Portugal — Capital Gains Tax

Capital gains (mais-valias) in Portugal are taxed under IRS Categoria G and cover gains from selling real estate, shares and other securities, cryptocurrency, and certain intellectual property rights. Property gains on a primary residence can be excluded from tax if the proceeds are reinvested in another primary residence within a set window; gains from securities are generally taxed at a flat rate. Rules differ in some respects between tax residents and non-residents, and case law has aligned much of the non-resident treatment of property gains with that of residents.

Portal das Finanças (Autoridade Tributária e Aduaneira) — Código do IRS, Artigo 10.º (Mais-valias) · Last verified 2026-07-11

Why This Matters

Newcomers who sell a property (in Portugal or, in some cases, will later sell one after establishing residency) or who trade securities need to understand how the gain is calculated, what rate applies, and whether reinvesting in a new home can defer or eliminate tax. Getting this wrong can mean an unexpected tax bill on a home sale or on investment portfolio gains reported in the annual IRS return.

Key Facts

  • Mais-valias (Categoria G) include gains from: onerous transfer of real estate rights; sale of company shares/quotas and other securities (ações, obrigações, ETFs, criptoativos); and transfer of intellectual/industrial property or acquired business know-how (when the seller is not the original holder).
  • The taxable gain is generally calculated as: realization value (sale price, or market value if higher/no price is set) minus acquisition value (adjusted for inflation via an official currency-devaluation coefficient for property held longer than 24 months) minus documented costs directly tied to the acquisition and sale (e.g., transaction costs, valorization works).
  • For residents, only 50% of a property capital gain is added to taxable income (englobamento) and taxed at the taxpayer's progressive marginal IRS rate; this is the "50% inclusion rule" under Article 43(2) of the Código do IRS.
  • Following Court of Justice of the European Union rulings (including the 2007 ruling and the 2021 "MK" case addressing non-EU/EEA residents) and subsequent Supreme Administrative Court decisions, non-residents are also entitled to have only 50% of a Portuguese property capital gain taxed, rather than the full amount, correcting the previously less favorable treatment.
  • Non-residents can generally elect a flat 28% autonomous rate applied to the (now 50%-included) taxable gain, or opt for englobamento at progressive rates as if resident, if that produces a lower liability; either way, worldwide income of the household may need to be declared to determine the applicable rate under the equal-treatment rules.
  • Gains from the sale of securities (shares, bonds, ETF units, cryptocurrency held under 365 days, etc.) are generally taxed at a flat 28% withholding/autonomous rate on the full net gain, with an option to include them in englobamento at progressive rates if that is more favorable (mainly beneficial for lower-income taxpayers).
  • Primary-residence reinvestment exemption: if the property sold was the taxpayer's or household's permanent residence (proven by tax domicile for at least the 12 months before the sale) and the sale proceeds are reinvested in another qualifying permanent residence — in Portugal or another EU/EEA state — within the legal window (36 months before or, more commonly cited as 24 months after the sale; the official FAQ confirms a 36-month reinvestment window), the gain can be wholly or partly excluded from taxation, proportional to the amount reinvested.
  • Reinvestment must generally be made without recourse to a new mortgage/credit on the amount being treated as reinvested, per the applicable conditions.
  • Taxpayers aged 65+ or retired may alternatively channel the reinvestment into an eligible retirement/pension savings product or life-insurance contract that pays regular income for at least 10 years, instead of buying a new home.
  • Capital losses on securities can generally be carried forward and offset against gains of the same category in later years, subject to the rules applicable to englobamento.
  • Cryptoasset gains have specific rules: assets held for 365 days or more before sale can benefit from an exemption in certain cases, while shorter holding periods are generally taxed similarly to securities; taxpayers should confirm current treatment as crypto tax rules have evolved.

Steps

  1. Determine residency status for tax purposes — Your tax residency status (resident vs. non-resident in Portugal at the time of sale) affects which rate options and englobamento choices are available — confirm your status before calculating expected tax.
  2. Calculate the gain — Gather the acquisition deed (value and date), sale deed (value and date), and documentation for any deductible costs/valorization works to compute the taxable gain.
  3. Assess reinvestment eligibility (property only) — If selling a primary residence, confirm the property met the 12-month prior tax-domicile requirement, and plan the purchase of the replacement primary residence within the applicable reinvestment window to claim partial or full exclusion.
  4. Report on Anexo G / Anexo J — Report property capital gains on Anexo G and foreign-source/securities gains on the relevant annex (Anexo G or Anexo J, as applicable) of the annual Modelo 3 IRS return, and elect englobamento if advantageous.

Costs

  • Resident property gain: 50% of gain included in taxable income, taxed at progressive IRS marginal rate
  • Non-resident property gain: 50% inclusion applies (per CJEU/STA case law); flat 28% autonomous rate on the included amount, or optional englobamento at progressive rates
  • Securities/investment gains: flat 28% rate on 100% of the net gain (englobamento optional)

Timelines

  • Primary-residence reinvestment window: reinvestment of proceeds in a new qualifying permanent residence, per Portal das Finanças guidance, within a defined multi-year window around the sale (confirm exact before/after periods for your case on the Portal das Finanças, as sources describe both a 36-month and a 24-month leg of this window)
  • Prior tax-domicile requirement for the sold property: at least 12 months as declared permanent residence before the sale

Required Documents

  • Acquisition and sale deeds (escrituras) with dates and values
  • Proof of tax domicile history (for the primary-residence exemption)
  • Documentation of deductible acquisition/sale costs and any valorization works
  • Anexo G (property) and/or Anexo J (foreign-source income) of the Modelo 3 IRS return

Common Mistakes

  • Assuming the full sale price minus purchase price is taxed — only the net gain, after allowed cost deductions and (for property) the 50% inclusion rule, is taxable.
  • Missing the reinvestment window when planning to buy a replacement home, losing the exemption.
  • Not confirming current non-resident treatment, since the 50% inclusion rule for non-residents followed from court rulings rather than a straightforward statutory rate — verify current application with a tax professional or the Portal das Finanças before relying on it.
  • Overlooking that gains on securities are taxed on 100% of the gain (not 50%), unlike property.
  • Forgetting to declare foreign-source capital gains if you are a Portuguese tax resident, since residents are taxed on worldwide income.

Related Topics

taxespropertyresidencybanking
← Back to Portugal guides