Skip to content
Alicerce

Capital gains on a home sale calculator (2026)

The IRS you pay — or don't — on the gain from selling your home: the inflation-adjustment coefficient, deductible expenses, and the exclusion if you reinvest in a new home of your own.

Renovation work from the last 12 years with an invoice, plus IMT (property transfer tax), stamp duty (Imposto do Selo) and registration fees from the purchase, plus the estate agent’s commission and the energy certificate from the sale.

Reinvesting the net sale proceeds in a new primary residence (habitação própria e permanente) excludes part — or all — of the gain.

Household income, to estimate your tax bracket.

Estimated IRS on the gain

€22,093.13

Where this number comes from

Corrected acquisition valuecoefficient 1,4€140,000.00
Gross gain€105,000.00
Taxable base (50%)€52,500.00
Estimated IRS€22,093.13

Coefficients from Portaria 382/2025/1 (sales in 2025); the 2026 table has not been published yet.

For tax residents in Portugal. The non-resident regime is outside the scope of this calculator.

How the calculation works

The capital gain (mais-valia) on selling a home isn’t just “I sold for more than I paid.” The tax formula adjusts the purchase price for inflation, lets you deduct expenses and renovation work, and taxes only half of what’s left — the other half falls outside IRS (personal income tax) thanks to the mandatory 50% aggregation rule (property capital gains are “Category G” income).

A home bought in 2005 for €100,000 and sold in 2026 for €250,000, with €15,000 of charges (renovation work, the purchase deed (escritura), the sale commission): the corrected value is €100,000 × 1.40 = €140,000. The gain is €250,000 − €140,000 − €15,000 = €95,000. Only half counts for IRS — €47,500 — and, added to a taxable income of €30,000, the estimated tax is around €19,863. If you reinvest half of the net realisation value in another home of your own, the tax drops to around €9,271.

Reinvestment only shelters the gain if the home you sold was your primary residence (habitação própria e permanente) and you buy — or build — another one within the legal window: 24 months before the sale, or up to 36 months after. The exclusion is proportional: reinvest half of the net realisation value and you exclude half of the gain, not the whole gain. Properties bought before 1 January 1989 fall completely outside this tax, under the transitional regime of the CIRS (Personal Income Tax Code).

The currency-devaluation coefficient — 1.40 for a purchase made in 2005 — comes from an official table set by ordinance (Portaria 382/2025/1) that adjusts the purchase price for accumulated inflation. The table for 2026 sales is usually only published in November; until then, the calculator uses the latest published table and flags it to you. This tax is only part of the sale’s bottom line — for what’s left in the bank after paying everything, including the costs you had on the original purchase, use the total purchase costs calculator.

Frequently asked questions

I sell the home I live in — do I always pay IRS on the gain?
No — not if you reinvest the sale proceeds (net of any mortgage settled) in another primary residence: the gain is excluded, in whole or in part, in proportion to the amount reinvested. The legal window runs from 24 months before to 36 months after the sale. Without reinvestment — or if the home sold wasn’t your primary residence — the capital gain (mais-valia) is taxed as normal.
What expenses can I deduct from the gain?
Article 51 of the CIRS lets you deduct value-adding renovation work carried out in the last 12 years (with an invoice), the costs of the purchase (IMT, Imposto do Selo, registration fees) and the costs of the sale (estate agent’s commission, energy certificate), as long as they’re necessary and documented.
What is the currency-devaluation coefficient?
A factor that adjusts the purchase price for inflation accumulated up to the sale, so the simple loss of the money’s purchasing power isn’t taxed as a “gain”. A home bought in 2005 has a coefficient of 1.40: you multiply the purchase price by 1.40 before working out the gain. The table is published every year by ordinance (currently Portaria 382/2025/1, for sales in 2025) — the 2026 one is only published in November, so the calculator uses the table currently in force, with a notice.
I bought the property before 1989 — do I have to pay IRS when I sell?
No. Properties acquired before 1 January 1989 (when the CIRS came into force) fall outside the scope of this tax, under the transitional regime of Decree-Law 442-A/88. The calculator flags this automatically.
What if I sell the home at a loss?
You pay no IRS: with no gain, there’s no taxable base. You have a capital loss (menos-valia), and how it fits into the rest of your tax return — whether and how it can be relevant in future years — depends on the rest of your IRS situation; it’s worth checking with an accountant.

Keep going