Costs and profit calculator for selling
Enter your figures and you'll see what you would keep after every cost, including income tax on the gain.
Navarre and the Basque Country have their own foral rules for plusvalía and income tax; this calculator applies the common rules.
Indicative information, not tax advice. Rules checked against the official source on 20 October 2026.
Whatever you agree, before VAT (21% is added). 0 if you sell without an agency.
Work it out in the plusvalía calculator.
Energy certificate, cédula de habitabilidad, cancelling the mortgage at the land registry…
For income tax on the gain (optional)
ITP or VAT, notary, land registry and gestoría (administrative agency) fees from when you bought.
Only if the home you sell is your main home and you reinvest within 2 years. The reinvested part is exempt, proportionally (if you pay off a mortgage, count what you keep after paying it off).
Income tax is paid in the following year's return, on the savings scale (19% to 30%). It is an estimate: it depends on the rest of your return.
Source: Ley 35/2006 del IRPF, escala del ahorro (arts. 66 y 76), vigente desde 2025 · TRLRHL art. 107 (RDL 26/2021); coeficientes máximos del RDL 8/2023, art. 24. Rules checked on 20 October 2026.
The agency commission is freely agreed and carries VAT. The seller pays the plusvalía municipal unless agreed otherwise.
For income tax, the gain is what counts: what you receive minus what it cost you (price, purchase costs and taxes, and improvements). Selling your main home at 65 or over, or reinvesting in another main home, can make it exempt. If you bought before 1995, reduction coefficients may apply, and if you let it, the depreciation is deducted: the calculator doesn't take these into account.
Sources: Ley 35/2006 del IRPF, escala del ahorro (arts. 66 y 76), vigente desde 2025 · TRLRHL art. 107 (RDL 26/2021); coeficientes máximos del RDL 8/2023, art. 24
Frequently asked questions
What does it cost to sell a flat?
The agency commission if you sell through one (it carries VAT), the plusvalía municipal, any outstanding mortgage, other costs such as the energy certificate or cancelling the mortgage at the land registry, and income tax on the gain.
How is the gain worked out for income tax?
It is the sale price minus its costs (commission, plusvalía…) and minus what the home cost you: the purchase price, the purchase costs and taxes, and renovations that added to its value.
When don't I pay income tax on a sale?
If you are 65 or over and sell your main home, or if you reinvest what you receive in another main home. The reinvested part is exempt proportionally.
What doesn't the calculator take into account?
The reduction coefficients if you bought before 1995 and the depreciation if you let the home. Your real income tax also depends on the rest of your return.
Don't know what your home is worth yet?
Value it for free in one minute. Porque si vas a vender, está bien saber.
An indicative estimate based on public and market data. It is not an official appraisal.
Methodology