Home › Guides › Selling

Taxes when selling a rural estate: the gain in IRPF and what else is paid

Selling · 6 min read · Updated 2026-10-18

Taxes when selling a rural estate: the gain in IRPF and what else is paid

When you sell a rural estate you pay IRPF on the gain: the difference between the sale price and what it cost you including expenses, taxed at between 19 % and 30 % by brackets. Rural estates do not pay the municipal capital gains tax, which only taxes urban land.

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.

ItemAmount
Transfer value (320.000 - 3.000)317.000 €
Acquisition value (180.000 + 15.000 + 20.000)215.000 €
Capital gain102.000 €
IRPF: 19 % of 6.0001.140 €
21 % of 44.0009.240 €
23 % of 52.00011.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

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.

Related questions

How much do I pay if I sell an estate for 200.000 euros that cost me 100.000?

With about 13.000 euros of documented expenses, the gain would be about 87.000 euros: you would pay 19 % on the first 6.000, 21 % up to 50.000 and 23 % on the rest, in total roughly 18.800 euros.

And if I sell at a loss?

The capital loss is offset against other savings gains of the same year or the following four. It does not refund money by itself, but it reduces the tax on other gains.

Do rural estates pay municipal capital gains tax?

No. The IIVTNU only taxes urban land. Do check, though, that your estate is not classified as developable or urban for tax purposes.

Keep reading

How to sell your rural estate in Extremadura (and list it for free)Taxes on buying a rural estate in Extremadura: ITP, VAT and expensesHow much does a hectare of rural estate cost in Extremadura in 2026?How to value a rural estate: market value, agricultural value and bank valuationAll guides →
EstatesContact