Capital Gains on Real Estate: When It Is Taxed, How It Is Calculated, and How to Avoid It (Legally)

Capital gain on real estate, in short, is the profit you realize when you sell a property at a price higher than what it cost you to purchase (or build), net of certain expenses that the law allows you to add to the cost. It is a practical issue because it can significantly affect how much money you actually keep after the sale.

In Italy, however, not every gain is taxed: taxation applies only under specific conditions (typically: sale within 5 years, subject to exceptions), and with calculation rules that are very much documentation-based.

Note: this article is for informational purposes only. For specific cases (gifts, inheritances, Superbonus, co-ownership, exchanges, rent-to-buy, etc.), it is always advisable to check with a notary or tax advisor before signing.


1) When the capital gain is taxable: the 5-year rule (and the exceptions)

For buildings (residential and non-residential) and non-buildable land, the capital gain is generally taxable only if all of the following conditions are met:

  1. you purchased (or built) the property for consideration (or received it by way of a gift);

  2. you resell it within 5 years from purchase/construction;

  3. it was not used as your main residence (or that of your family members) for the majority of the period between purchase and sale.

Typical cases where capital gains tax is NOT due (or is not taxable)

  • Sale after 5 years from purchase/construction (note: different rule for buildable land).

  • Property acquired by inheritance: the capital gain is excluded even if sold within 5 years.

  • Property used as the main residence (yours or your family’s) for most of the period.

  • Property received as a gift: to verify the 5-year period, one often looks at the donor’s purchase date (a very relevant practical rule).

Important: taxation does not depend on speculative intent or on having purchased with “first-home” benefits. What matters are the objective requirements (five-year period, main residence, inheritance, etc.).


2) Buildable land: a separate world

Capital gains from the sale of buildable land (land “capable of building use”) are always taxable, even if you have owned the land for more than 5 years.

This is a technical area (urban planning classification, zoning instruments, certificates), so it is advisable to prepare the file with a professional before accepting an offer.


3) How the capital gain is calculated: the “simple” (but document-based) formula

The basic rule is:

Capital gain = Sale price – (Purchase/build cost + documented related costs)

What counts as “cost” (in practice)

  • purchase price (or construction cost);

  • taxes and charges related to the purchase (often considered “related” if connected to the acquisition);

  • documented value-increasing expenses: for example, works that increase value, technical fees, urbanization charges, subdivision costs, etc.

👉 The key point is “documented”: without invoices, bank transfers, or deeds, that cost often cannot be included, and the taxable gain increases.

“Price-value” system and capital gains: beware of confusion

The “price-value” mechanism applies to indirect taxes (registration tax) on certain transactions, but capital gains are calculated on the actual sale price. Confusing the two is a common mistake in negotiations.


4) How the tax is paid: ordinary IRPEF or 26% substitute tax

When the capital gain is taxable, you have two options:

Ordinary taxation (IRPEF)

The gain is declared and added to other income, potentially pushing you into higher tax brackets.

26% substitute tax (flat)

You may opt to pay a 26% substitute tax directly at the notarial deed.

Key operational rule: the option for the substitute tax must be exercised in the deed itself. If you do not choose it at completion, you cannot opt for it later; you will be subject to ordinary taxation in your tax return.


5) Focus 2024+: the “new” capital gain on properties with Superbonus (sale within 10 years)

As of January 1, 2024, a specific regime applies to certain sales of properties on which Superbonus-incentivized works were carried out, if the sale occurs within 10 years from completion of the works (with several exclusions and debated cases). This area is technical and still evolving in interpretation.

Why does it matter? Because it can completely change the convenience of selling shortly after major refurbishment, especially for properties that are not main residences or have “mixed” origins (inheritance plus works).


6) “Related costs” that reduce the capital gain: what is allowed and what is not

One of the most delicate aspects in calculating real-estate capital gains is determining which costs are fiscally relevant—i.e., those that can be added to the purchase cost to reduce (sometimes eliminate) the taxable gain.

The general rule is clear:
👉 only costs directly related to the purchase or that increased the property’s value, and that are documented, are deductible.

Clearly deductible costs (if documented)

a) Real-estate brokerage fees
YES, deductible

  • Commission paid to the real-estate agency for purchasing the property

  • Must be supported by an invoice (or tax receipt) issued to the buyer
    👉 One of the most frequently forgotten, yet highly relevant, costs.

b) Purchase notary fees
YES, deductible, limited to the part relating to the purchase deed

  • Notary’s fee for the transfer

  • Registration tax / VAT

  • Mortgage and cadastral taxes
    ⚠️ Attention:

  • Not deductible: notary fees related to a mortgage (mortgage deed, registration of mortgage)

c) Construction costs (for properties built by the seller)
YES, deductible

  • Documented construction costs

  • Technical expenses (design, works supervision, testing)

  • Urbanization charges

  • Construction contributions

Works on the property: what increases the cost and what does not

This is where the most common mistakes occur.

a) Value-increasing works (deductible)
YES, if:

  • documented;

  • they increase the property’s value.

Examples:

  • building renovation;

  • extensions;

  • subdivisions;

  • change of use;

  • complete replacement of systems;

  • structural consolidation;

  • major building works (CILA/SCIA/building permit).

👉 Even if they benefited from tax incentives, they still count as costs (with special attention to regimes like the Superbonus).

b) Ordinary maintenance (not deductible)
NO
Examples:

  • painting;

  • boiler replacement without structural works;

  • ordinary repairs;

  • periodic maintenance.

Reason:
👉 they preserve efficiency but do not increase value.

Condominium expenses: which count and which do not

Another commonly misunderstood area.

a) Ordinary condominium expenses
NO, not deductible
Examples:

  • stair cleaning;

  • electricity, elevator;

  • ordinary maintenance;

  • administrator’s fees.
    👉 These are operating costs, not capital increases.

b) Extraordinary condominium expenses
⚠️ It depends on their nature
YES, if:

  • extraordinary works that increase value (façades, roof, insulation, structural works);

  • approved and paid by the owner;

  • documented.
    NO, if:

  • they do not affect patrimonial value;

  • they are merely ordinary reinstatement.

Non-deductible costs (even if “related” to the property)

❌ Mortgage expenses (interest, fees, appraisal)
❌ IMU, TARI, property taxes
❌ Insurance
❌ Management or usage expenses
❌ Legal fees not related to the purchase


7) When the capital gain is realized: the “taxable moment”

Another crucial issue: when does the capital gain arise for tax purposes?

General principle

👉 The capital gain is realized at the moment of transfer of ownership, i.e. at the final deed, not at the preliminary agreement.

This principle is consistent across:

  • notarial practice;

  • case law;

  • Italian Tax Authority interpretations.

Key case: preliminary agreement registered within 5 years, final deed after 5 years

Typical scenario:

  • property purchase: January 2020

  • preliminary sale agreement registered: December 2024 (within 5 years)

  • final deed: February 2026 (after 5 years)

Crucial question:
👉 Is the capital gain taxable?

Technical answer:
NO, it is not taxable, if:

  • ownership is transferred after the five-year period;

  • the preliminary agreement does not transfer ownership, even if registered.

📌 Registration of the preliminary agreement:

  • protects the buyer;

  • has civil-law effects;

  • does not anticipate the taxable moment.

👉 For capital-gain purposes, only the date of the final deed matters.

When can the preliminary agreement matter for tax purposes?

Only in atypical cases, for example:

  • preliminary agreements with early real effects (rare, borderline cases);

  • complex transactions that effectively transfer ownership.

⚠️ These cases require careful notarial analysis.

Does early receipt of the price matter?

NO, by itself.
Even if:

  • you received deposits;

  • you collected substantial advances;

  • you handed over possession.

👉 Without transfer of ownership, the capital gain is not realized for tax purposes.


Operational summary

To reduce or avoid capital gains tax:

  • gather all documentation of related costs;

  • verify whether works are value-increasing;

  • do not confuse operating expenses with capital expenses;

  • plan the final deed date, not just the preliminary agreement.

For the five-year rule:

  • only the final deed counts;

  • the preliminary agreement, even if registered, does not trigger taxation.


Practical cases

Case 1 — Second home sold within 5 years: is the substitute tax convenient?

Purchase: €300,000
Documented costs (notary, taxes, value-increasing works): €30,000
Sale after 3 years: €420,000

Capital gain = 420,000 – (300,000 + 30,000) = €90,000

If you choose the 26% substitute tax at the deed:
90,000 × 26% = €23,400.

With ordinary IRPEF, it depends on your total income: you might pay less—or often more.
👉 Strategy: decide before completion. If you do not opt in the deed, you cannot go back.


Case 2 — “First home” is not enough: main residence matters

You purchase with first-home benefits but do not live there permanently. You resell after 2 years at a gain.

Result: the gain may still be taxable, because the exemption applies not because it was a “first home,” but because it was the main residence for most of the period (yours or your family’s).


Case 3 — Inherited property sold immediately: no “classic” capital gain

You inherit an apartment in January and sell it in June of the same year at a higher price.

Generally, under the ordinary infra-five-year regime, property acquired by inheritance is excluded from capital-gains taxation.
(However, if special building incentives like the post-2024 Superbonus apply, a case-by-case analysis is required.)


Case 4 — Gift: the 5 years are “inherited”

You receive a property by gift in 2025 that the donor purchased in 2016. You sell it in 2026.

For capital-gain purposes, one often looks at the donor’s purchase date: if more than 5 years have passed, the gain is normally not taxable.


Practical checklist before selling (or accepting an offer)

  1. Purchase/build date: have 5 years passed?

  2. Was it the main residence (yours or your family’s) for most of the period?

  3. Origin: inheritance or gift? (this changes everything)

  4. Have you done works? Gather invoices, bank transfers, building permits—they increase cost and reduce the gain.

  5. Evaluate the 26% substitute tax: the decision must be made in the deed (not after).

  6. If Superbonus works ended less than 10 years ago, do a dedicated check—it’s a separate chapter.


Conclusion

Real-estate capital gains tax is not an unavoidable “monster”: it is a tax rule with clear prerequisites, but it must be managed before completion, with proper documentation and correct classification of the case (main residence, inheritance, gift, buildable land, building incentives).

If you wish, tell me (even anonymously) the property type + year of purchase + use (main residence yes/no) + any works/incentives + purchase/sale price, and I will prepare a reasoned simulation of the options (IRPEF vs. 26% at completion) and the key points to discuss with your notary or tax advisor.