Tax11 September 2026· 7 min read

How to calculate the capital gain when selling a rented property

The capital gain is not the difference between what you paid and what you received. It is the sale value minus the acquisition value adjusted for inflation, minus the costs of buying and selling and the improvement works with an invoice from the last 12 years. Of the balance, only 50% is taxed (IRS Code, art. 43, para. 2).

The formula

ItemWhat it is
Sale valueThe sale value (as a rule, the IMT value, if higher — art. 44)
− Acquisition value × coefficientWhat you paid, adjusted for currency devaluation
− Improvement costsWorks from the last 12 years, with proof
− Acquisition and sale expensesIMT, Stamp Duty, deed, land registry, estate agent's fee, energy certificate
= Capital gainOf which 50% is aggregated in IRS

Acquisition value: not necessarily the price in the deed

IRS Code, art. 46, para. 1 says the acquisition value is the one used as the basis for charging IMT (property transfer tax). And IMT is charged on the higher of the declared price and the taxable property value (VPT).

In practice: if you bought below the VPT, your acquisition value for capital gains purposes is the VPT, not the price you paid — which works in your favour. If no IMT was due, the value that would have been its basis is used (para. 2).

Currency adjustment

The acquisition value is updated by coefficients approved every year by government order (portaria), and only when more than 24 months have passed between the purchase and the sale (IRS Code, art. 50).

Two details that change the result:

  • The coefficient applies to the acquisition value, not to the costs or the works;
  • Selling in the year after the purchase gives no right to any adjustment — the 24 months are a condition, not a proportion.
The coefficients change every year

Any simulator — ours included — works with the table published at the time. For a real sale, check the coefficient for your year of acquisition in the order (portaria) in force in the year of the sale.

What is added to the acquisition value

IRS Code, art. 51, para. 1, point (a) allows two families of costs:

1. Costs of improving the property, from the last 12 years

Works that add value to the property — renovating the kitchen and bathroom, replacing window frames, installing air conditioning, extensions. They must be provably carried out, that is, with an invoice in your name and with the right tax number (NIF).

The 12 years count backwards from the date of the sale. Older works do not count, however well documented they are.

2. Expenses inherent to buying and selling

The IMT and Stamp Duty paid on the purchase, the deed, the land registry, the estate agent's commission on the sale, the energy certificate required to sell. Everything that is necessary and actually borne because of the purchase or the sale.

Maintenance and improvement are different buckets

Work that maintains the property — painting, fixing a pipe, replacing a broken water heater — is, as a rule, an expense deductible from Category F income in the year you pay it. Work that adds value is added to the acquisition value and only helps you in Category G, when you sell. The same invoice cannot be used in both places, and the classification depends on the nature of the work. If in doubt, it is a conversation for your accountant.

What does not count

  • Mortgage interest. It is a financial cost, not an acquisition or improvement expense;
  • Works without a document. The law requires them to be proven (art. 51(1)(a)) — an invoice or invoice-receipt with your tax number (NIF); a bank transfer proves the payment, but on its own it does not prove the work;
  • Works done while the property was used in a business or professional activity (Category B). IRS Code, art. 51, para. 3 expressly excludes them. Note that this exclusion concerns Category B — letting taxed under Category F is not covered by it.

The 50% rule — and the exception

Once the balance between capital gains and capital losses for the year is worked out, only 50% of that balance is taken into account, and it is taxed together with your other income, at the general rates (aggregation, or englobamento). This applies both to your own home and to a rented property — the law makes no distinction.

There is one exception, and it is costly: the balance counts at 100% when the property benefited from non-repayable public support for its purchase or for works worth more than 30% of the VPT, and is sold before 10 years have passed (IRS Code, art. 43, para. 2, point (a)). In that case, art. 51, para. 2, also says the costs only count in the part that exceeds the support received.

A full example

ItemAmount
Sale in 2026€260,000
Acquisition in 2012 (basis for charging IMT)€120,000
× devaluation coefficient (illustrative example, 1.15)€138,000
− IMT, Stamp Duty, deed and registry on the purchase€9,000
− Renovation with an invoice in 2020€15,000
− Estate agent's commission on the sale€8,000
Capital gain€90,000
Balance to aggregate (50%)€45,000

The coefficient above is illustrative — the real value depends on the order (portaria) in force. For your own numbers:

Do the maths with your numbers
Year of acquisition, costs and works — result in seconds, no sign-up.
Calculate the capital gain →

Before 1989: the exclusion almost nobody knows about

Gains on the sale of urban properties acquired before 1 January 1989 — the date the IRS Code came into force — may be outside capital gains tax, under the transitional regime for Category G in Decree-Law 442-A/88 of 30 November.

It is not, however, an automatic exemption for age. The article is precise: only gains that were not subject to the old capital gains tax (created by Decree-Law 46373 of 9 June 1965) are subject to IRS when the acquisition took place after the Code came into force. Building land, for example, was already covered by that old tax and does not benefit from the exclusion.

There is also a detail that often catches people off guard: para. 2 of the same article says that it is up to the taxpayer to prove that the asset was acquired before that date. Keep the deed.

Legal basis: art. 5 of Decree-Law 442-A/88 of 30 November. This decree-law has no consolidated version published in the Diário da República — the official publication of the act is cited.

How it is paid

The capital gain is declared in Annex G of the IRS return for the year of the sale — not in Annex F, which is the one for rents. If you intend to reinvest, that same return is where you state the intention, as we explain in capital gains with reinvestment in letting (in Portuguese). For the rents of the same year, the guide is IRS Category F 2026.

FAQ

Is the capital gain the difference between the purchase price and the sale price?
No. A currency devaluation coefficient is applied to the acquisition value, and the costs of buying and selling and the improvement works of the last 12 years are added to it. Only then is the balance worked out, and 50% of it is aggregated with your other income.
Which works can I add to the acquisition value?
Those that add value to the property, provably carried out in the last 12 years. Simple maintenance works are, as a rule, a Category F expense in the year you pay them; they are not added to the acquisition value.
Do I need an invoice for the works?
In practice, yes. Art. 51 requires costs that have been provably incurred — an invoice in your name, with your tax number (NIF). Without a document, the Tax Authority (AT) may not accept them.
Does the mortgage interest count?
No. It is a financial cost and is not listed in art. 51, which only allows improvement costs and the expenses inherent to buying and selling.
I sold for less than the taxable property value (VPT). Which one counts?
As a rule, the value used for IMT (property transfer tax) — the higher of the price and the VPT — prevails, where it is higher than the price (IRS Code, art. 44(2)). But you can prove that you sold for less, through the procedure in art. 139 of the IRC Code (art. 44(5) and (6)); the Constitutional Court declared unconstitutional, with generally binding force, reading para. 2 as a presumption that cannot be rebutted (Constitutional Court ruling 348/2025). Talk to your accountant before filing.
Where do I declare the capital gain?
In Annex G of the IRS return for the year in which you sold. The rents are still declared in Annex F.
Disclaimer

This article is for information only and reflects the law in force on the date of publication. It does not replace tax or legal advice — check with your accountant before deciding.

Twelve years of invoices

The invoice for the 2021 works still counts on a 2032 sale.

RendaOK files invoices and documents by property, with date and amount. When the time comes to sell, you have all the invoices in one place.

Try it free for 60 days →
No credit card. Cancel whenever you like.