Property taxes · PUNTO HABITAT
Taxes when selling a home in Barcelona
When selling a home, the main taxes a seller should check are Spanish personal income tax on the capital gain (IRPF) and municipal plusvalía. The amount depends on the acquisition, sale and any applicable exemptions. It is not a single percentage of the property's selling price.
This guide covers tax residents of Spain under the common tax regime. Non-residents are subject to IRNR and need a separate calculation.
Taxes are payments to the public authorities. Professional fees and the cost of procedures are expenses: we explain them in a separate guide.

1. IRPF taxes the gain, not the full sale price
The capital gain is the transfer value minus the acquisition value. Both figures are adjusted under the tax rules: qualifying transaction costs and taxes, paid by the owner and supported by evidence, may be taken into account, as may certain investments and improvements. Ordinary repairs are not improvements.
If the property has been rented out, depreciation that reduces its acquisition value must also be checked.
Savings tax rates
The current combined national and regional scale applies progressively to the taxable savings base, which includes the gain from the sale:
| Taxable savings band | Rate |
|---|---|
| Up to €6,000 | 19% |
| €6,000 to €50,000 | 21% |
| €50,000 to €200,000 | 23% |
| €200,000 to €300,000 | 27% |
| Over €300,000 | 30% |
Each rate applies only to the amount within that band. The final liability also depends on other savings income, offsettable losses and personal circumstances.
An illustrative example
You bought for €300,000 and have €20,000 of qualifying acquisition costs: the acquisition value is €320,000. You sell for €400,000 and pay €10,000 of qualifying transfer costs: the transfer value is €390,000. The capital gain is €70,000.
If this were the entire savings base subject to the scale, with no exemptions or other adjustments, the progressive calculation would give €14,980: €1,140 + €9,240 + €4,600. This is an example, not the outcome of every sale at that price.
2. When the capital gain may be exempt
Reinvestment in a main residence
If you sell your main residence and reinvest the required amount in another qualifying main residence, the gain may be exempt. The general period includes the two years before or after the sale. If you reinvest only part of the required amount, the exemption is proportional.
Reinvesting only the profit is not enough. Check the proceeds, any outstanding mortgage used to finance the original acquisition, ownership, deadlines and tax reporting.
Over-65s and qualifying dependency
Selling a qualifying main residence may be exempt for people over 65 and those with legally recognised severe or high dependency, without a reinvestment requirement. This does not automatically apply to a second home. With joint ownership, each owner's circumstances are considered separately.

3. Municipal plusvalía in Barcelona
This is separate from IRPF: it taxes the increase in the value of urban land. In an ordinary sale it is normally payable by the seller. The calculation uses the acquisition and transfer dates and the cadastral values of the land and property.
Compare the objective method with the actual increase and request the latter if it is lower and can be evidenced. If the land value has not increased, the transfer may fall outside the tax, but it must still be declared and the position substantiated.
In Barcelona, the ordinary deadline for a sale is 30 working days from execution of the public deed. An IRPF exemption for reinvestment or age does not automatically remove municipal plusvalía.
Frequently asked questions before selling
Do I pay IRPF if I sell for less than I paid?
There may be a capital loss, but it must be calculated using the adjusted tax values. Municipal plusvalía is assessed separately.
When is the sale reported for IRPF?
In the tax return for the year of the transfer, filed during the following year’s filing season. This is separate from the municipal plusvalía deadline.
Can I deduct every expense from the capital gain?
No. Only costs allowed under the tax rules and properly evidenced. Keep deeds, invoices and proof of payment: not every outgoing reduces the gain.
What should I gather before calculating the taxes?
The acquisition deed, documented costs and taxes, expected sale price, IBI bill, mortgage information and ownership details. Previous rental use, inheritance or a gift requires further review.
The selling price is your starting point
A realistic valuation helps you anticipate taxes and plan your next move. The calculation must then be adjusted to the final agreed price and each owner’s circumstances.

Working out how much you will keep from the sale?
You need an estimate of the taxes and achievable sale price. At PUNTO HABITAT, we help you prepare the transaction and guide you through the whole process. Start with an in-person valuation of your property.
You may also find useful
Alongside taxes, a sale may involve professional fees and documentation or mortgage discharge costs. These are explained separately in our guide to transaction costs.
Sources: Spanish Personal Income Tax Law 35/2006, articles 33–38, 66 and 76; IRPF Regulations, articles 40, 41 and 41 bis; Spanish Tax Agency guidance on selling and reinvesting in a main residence; Barcelona City Council, Institut Municipal d’Hisenda. Content by PUNTO HABITAT. General information: each transaction requires a review of its tax circumstances.