Personal income tax on the sale of a home
The sale of a home is taxed as a capital gain or loss in personal income tax depending on whether money has been gained or lost with the operation.
The sale of a home must be declared in section F2 of form 100 of the Personal Income Tax, specifically on page 15 of the return. Here the capital gain or loss must be reflected.
In Renta Website, you will find it in the section "Capital gains and losses derived from transfers of other assets".
Step by step to declare the sale of a flat
These are the steps you must take to correctly reflect the transaction in the Personal Income Tax:
1. Identify the property and the owner:
- It must be specified who transfers the property and identifies the property.
- It includes the cadastral reference in boxes 1819 to 1821.
- Indicate if it is a main residence, the percentage of ownership and the location of the property in boxes 1815 to 1843.
- In box 1817, select the type of asset (in this case, a home).
2. Specify the type of operation:
- Check box 1822 if the transfer has been onerous (sale, exchange).
- Check box 1823 if the transfer has been free of charge (donation, inheritance).
3. Enter the purchase and sale dates: Enter the exact dates in the boxes 1824 (purchase) and 1825 (sale).
4. It reflects the transfer and acquisition value:
- The transfer (sale) value is indicated in box 1826.
- The acquisition (purchase) value is entered in box 1830.
- In this section you can also indicate whether part of the money is used to reinvest in a new main residence or to constitute a life annuity, which could be a tax exemption.
5. Applicable deductions:
- You can add to the acquisition value the taxes paid, certain renovations and improvements (if you have supporting documents), the management and notary expenses and works to improve energy efficiency.
- You can subtract the expenses of real estate sales, agency, notary, etc. from the transfer value.
6. Result: capital gain or loss
- The program will automatically calculate whether there is a capital gain or loss , reflecting it in boxes 1831 to 1833.
- The total summary of the transmission will appear in box 1844.
Calculation of the capital gain from the sale of a property
What you must do to find out how much personal income tax is paid for the sale of a flat is to calculate the capital increase obtained with the operation. To do this, the purchase price of the property must be subtracted from the transfer value of the property (the sale price).
- Transfer value: This refers to the net gain you obtained from the sale of your property. This must include the sale price of the house, the expenses associated with the operation, the municipal capital gains tax and the real estate commission if any.
- Acquisition value: This refers to the total investment made in the home from the time you bought it until you sold it. Here are some expenses that you had to face in order to acquire the house: the purchase price or declared value of the house, improvement works, renovations, repairs, etc., the expenses and taxes derived from the purchase and the mortgage.
IPRF taxation for the sale of a home
If you have made a profit from the sale of your home, you must apply one of the following personal income tax brackets, which in 2026 are as follows:
Table with 2 columns and 5 rows. Sorted in ascending order
| Personal Income Tax Brackets |
Retention |
| Up to €6,000 |
19% |
| From 6,000 euros to 50,000 euros |
21% |
| From €50,000 to €200,000 |
23% |
| From €200,000 to €300,000 |
27% |
| More than 300,000 euros |
30% |
Download the dataCreated with Datawrapper
When are you exempt from paying personal income tax on the sale of a home?
If you sell your main residence, the profits may be exempt from taxation in certain cases:
How is the sale of a home declared in a marriage?
It is paid according to the matrimonial regime and the ownership of the property in the deed:
- Marriage in community of property: It is understood that the profit belongs to both members of the couple, so it is distributed 50% in the return of each one, regardless of who has received the money or has income.
- Separation of property: Each spouse declares the part of the profit that corresponds to him or her according to his or her percentage of ownership. If one owns 70% and the other 30% of the house, the benefit will also be distributed in their respective returns.
Personal income tax exemptions work practically the same as for the sale of a home by an individual person:
- If the couple sells their main residence and reinvests the entire amount in the purchase of another main residence within two years, they will not pay personal income tax on the gain. If you only reinvest a part, you will only be taxed on the part not reinvested.
- If both spouses are 65 years of age or older at the time of the sale of their main residence, the gain is fully exempt. But if only one is 65 years old, only his share of the gain will be exempt; the other must pay taxes on his.
- If the property is transferred to pay off a mortgage debt, the gain is usually exempt as long as it is proven that the couple does not have other assets to pay off the debt.