The capital gain in IRPF
The sale of a rural estate generates a capital gain or loss that is declared in the tax return for the year of sale. It is calculated by subtracting from the transfer value (sale price minus the expenses you pay) the acquisition value: what it cost you, plus ITP or inheritance tax, notary, registry and the improvements you can justify with invoices. Every euro documented at purchase is one euro less of taxable gain.
The gain is taxed in the savings base by brackets: 19 % up to 6.000 euros, 21 % up to 50.000, 23 % up to 200.000, 27 % up to 300.000 and 30 % above. It is not a single rate: a gain of 100.000 euros pays 19 % on its first 6.000, 21 % on the next 44.000 and 23 % on the rest.
Why rural estates do not pay municipal capital gains tax
The municipal capital gains tax (IIVTNU) taxes the increase in value of urban land. The Local Finance Law expressly excludes rural land, so the sale of a dehesa, an olive grove or a dryland estate does not pay this tax. The practical exception is estates that the Cadastre or planning consider developable or urban even though they look like countryside: if yours is in that situation, the town council can assess the tax, and it is worth checking before announcing the sale.
Reductions that may still apply
The abatement coefficients disappeared in 2015, but survive for part of the gains generated before January 2006 on estates bought before the end of 1994, with a joint limit of 400.000 euros of transfer value per taxpayer. If you inherited an old family estate or bought it decades ago, check whether it applies to you: the reduction can be very large. The reinvestment exemption and the one for those over 65 are designed for the main home and do not, in general, cover the sale of a rural estate.
If a non-resident sells
When the seller is not a tax resident in Spain, the buyer is obliged to withhold 3 % of the price and pay it to the tax authority (form 211) on account of the seller's tax. Afterwards, the non-resident declares the gain in the IRNR: 19 % if resident in the EU, Iceland or Norway, and 24 % in other cases. If the withholding exceeds the tax, they can claim a refund of the difference.
When the estate was a farm
If the estate was assigned to an agricultural or livestock activity under direct estimation, the gain is not a simple capital gain: it is included in the activity's income and withdrawal from the activity may come into play. It is one of the points where people most often get it wrong when selling, and where a prior consultation with a tax adviser pays for itself.
A complete example, with numbers
Sale in 2026 of a dehesa bought in 2010 for 180.000 euros, with 15.000 euros of ITP, notary and registry, and 20.000 euros on a new warehouse with an invoice. Sale price: 320.000 euros, with 3.000 euros of expenses paid by the seller.
| Item | Amount |
|---|---|
| Transfer value (320.000 - 3.000) | 317.000 € |
| Acquisition value (180.000 + 15.000 + 20.000) | 215.000 € |
| Capital gain | 102.000 € |
| IRPF: 19 % of 6.000 | 1.140 € |
| 21 % of 44.000 | 9.240 € |
| 23 % of 52.000 | 11.960 € |
| Total to pay in the tax return | ≈ 22.340 € |
Note the effect of the 35.000 euros of expenses and improvements: without justifying them, the tax bill would have been about 8.000 euros higher.
Instalment sales and other formulas
If you agree deferred payment, the IRPF rule allows you to declare the gains obtained in instalment transactions as they are collected, provided the period between delivery and last payment exceeds one year. It is a legitimate route to soften the bill, but it must be recorded in the deed. And if the transaction also transfers tools, livestock or PAC entitlements, each element has its own treatment: it is advisable to break it down in the deed instead of putting a single lump price.
How to prepare the sale for tax
- Gather the purchase deed or the declaration of heirs, the proof of ITP or inheritance tax and the invoices for works and improvements.
- Check the Cadastre reference value: if the agreed price is below it, the taxable gain may be calculated on the reference value.
- If there are several owners, each declares their share; in old co-ownerships it is advisable to put the shares in order first, as explained in the guide to co-ownership and inheritances.
- Ask the buyer, if the seller is a non-resident, for the withheld form 211.
The commercial process of the sale (valuation, photos, advert, visits) is developed in the guide to how to sell a rural estate in Extremadura, and to understand what price to ask, the one on prices per hectare.