How Spain taxes a house sale
When you sell a house in Spain for more than you paid, the profit is a capital gain, and Spain taxes it as savings income. The gain is the sale price minus the purchase price, minus the costs of buying and selling, such as notary fees, agency fees, and tax paid when you bought. The result is the taxable gain.
The gain is taxed in bands, not at one flat rate. The first 6,000 euros pay 19 percent, the next part up to 50,000 pays 21 percent, the part up to 200,000 pays 23 percent, the part up to 300,000 pays 27 percent, and anything above that pays 28 percent. A big gain therefore pays a higher average rate than a small one.
How to use the calculator
Enter the sale price first, then the price you paid when you bought the house. Then add your costs. Include the notary and registry fees from the purchase, the agency fee on the sale, and the cost of any major renovation, but only if you kept the invoices. The tool subtracts the costs from the gain and applies the tax bands.
The result shows the taxable gain and the estimated tax. The bar shows how far up the bands your gain reaches. Try different sale prices to see how the tax changes, since a higher price does not raise the tax by the same amount at every level.
Worked example: bought for 200,000, sold for 300,000
A seller bought a flat for 200,000 euros and sells it for 300,000 euros, with 20,000 euros of buying and selling costs. The gain is 300,000 minus 200,000 minus 20,000, which is 80,000 euros. The tax bands work like this: 6,000 euros at 19 percent is 1,140 euros, the next 44,000 at 21 percent is 9,240 euros, and the last 30,000 at 23 percent is 6,900 euros.
The total tax is 17,280 euros. That is about 21.6 percent of the gain, and it leaves the seller with 62,720 euros of the gain after tax. If the same seller had sold for 250,000 euros instead, the gain would be 30,000 and the tax would be 6,180 euros. Small changes in price change the tax by thousands.
Exemptions that can cut the tax to zero
The biggest exemption is reinvestment in a main home. If you sell your main home and use the money to buy another main home within two years, the gain is exempt. You must have lived in the house as your main home, and you must reinvest the full sale amount, not just the gain.
Sellers over 65 who sell their main home pay no tax on the gain at all, even without reinvesting. People who sell a home they inherited or received as a gift face different rules, since the purchase price is the value at the time they received it. Always check these rules with a tax adviser before you sign, because a missed exemption is expensive.
Limits of this calculator
This tool is an educational estimate using the savings tax bands. It does not cover the municipal plusvalía tax, which is a separate local tax on the increase in land value, and it does not cover non-resident sellers, who pay a fixed 19 percent rate in many cases. It also does not check whether an exemption applies to you.
Tax rates and rules change with each budget, and regions in Spain add their own details. The tool is a planning guide, not tax advice. For a real sale, get a written estimate from a Spanish tax adviser, known as a gestor or asesor fiscal.
Frequently asked questions
What is the tax rate on a house sale in Spain? It depends on the gain: 19 percent up to 6,000 euros, 21 percent to 50,000, 23 percent to 200,000, 27 percent to 300,000, and 28 percent above that.
Do I pay tax if I sell at a loss? No. A loss means no capital gains tax, but keep the paperwork, since the loss may offset other gains in the same year.
Can I avoid the tax by reinvesting? If the house was your main home and you buy another main home within two years, the gain is exempt. The reinvestment must cover the full sale price.
Is the municipal plusvalía the same thing? No. That is a separate local tax on the land value, paid to the town hall. This tool only estimates the national capital gains tax.
También disponible en español: Plusvalía por venta de vivienda en España.
