Home › Buying a home
Selling a home in Spain: how much you keep after tax
Calculate the capital gain, the estimated income tax and the cash in hand after paying off the mortgage. Includes the reinvestment exemption and the over-65 exemption.
Your sale
Use the amounts in your deeds. You enter the municipal capital gains tax (plusvalía) yourself.
How we calculate the gain and the income tax
Sale value = sale price minus selling costs and the municipal capital gains tax. Purchase value = purchase price plus its costs and improvements. The difference is the gain (or loss). We apply the 2026 savings tax scale to the part that is not exempt. The cash you keep is the sale value minus the outstanding mortgage and its early repayment fee, and then minus income tax.
In the example, a home bought for €180,000 plus €14,000 in costs and sold for €240,000 produces a gain of €36,400 and income tax of about €7,524. After paying off €98,400 of mortgage, €132,000 is left before tax and about €124,476 after. If you reinvest €40,000 in another main home, the tax falls to about €5,208.
We do not include depreciation on let properties or the reduction coefficients for purchases before 1995. If either applies to you, check the figure with an adviser. For your next purchase, work out the buying taxes and costs and how much the bank will lend you.
Frequently asked questions
How much income tax do I pay when I sell a flat?
You are taxed on the capital gain, not on the sale price. The gain is what you get from the sale, minus costs and the municipal capital gains tax, minus what the purchase cost you including its costs and improvements. In 2026 it is taxed in the savings base: 19% up to €6,000, 21% up to €50,000, 23% up to €200,000, 27% up to €300,000 and 30% above that.
What if I reinvest in another main home?
If you sell your main home and reinvest the money in another main home within the following two years, the gain is exempt. If you reinvest only part of it, the exempt part is proportional to the amount reinvested over what you obtained from the sale, after deducting the outstanding loan you pay off.
Do people over 65 pay income tax when they sell their home?
No, if they sell their main home. The gain is exempt even if they do not reinvest the money.
Why don't you calculate the municipal capital gains tax?
Because it depends on the town hall and on coefficients that have changed several times. Ask your town hall or your agency for the amount and enter it in the box: we subtract it from the gain as a selling cost.
Are you going to buy another home with the money from the sale?
Open the simulator