This guide explains the mechanism step by step for sellers and buyers.
The 3% retention
When the seller is not tax resident in Spain, the buyer must withhold 3% of the agreed price and pay it to the tax authority using Form 211 within one month of the sale. The notary records the retention in the deed. If the buyer fails to pay it, the property itself remains answerable for the seller's tax up to that amount, which is why buyers' lawyers insist on it. For sellers, the retention is a payment on account, not the final tax.
Calculating the gain
| Element | What is included |
|---|---|
| Transfer value | Sale price, less costs of sale paid by the seller (agent, plusvalía, notary items) |
| Acquisition value | Purchase price plus purchase taxes and costs (notary, registry, legal fees) |
| Improvements | Capital improvements with invoices, not maintenance |
| Depreciation | Deducted if the property was rented |
| Gain | Transfer value minus acquisition value |
The gain is taxed at 19% for non-residents. Inflation adjustment coefficients no longer apply to individuals for current sales. For properties acquired before 31 December 1994, transitional reduction rules may apply to part of the gain.
Filing Form 210
The seller files Form 210 declaring the gain, generally within three months after the end of the one-month period the buyer had to pay the retention. If the tax due is higher than the 3% retained, the seller pays the difference. If it is lower, or there is a loss, the seller requests a refund of the excess. Refunds are paid to a bank account and can take some months. A fiscal representative or lawyer in Spain usually handles the filing.
Avoiding problems with the retention
- Provide the buyer with your NIE; without it, the retention cannot be filed correctly.
- Make sure the buyer's lawyer or notary sends you proof of payment of Form 211.
- Keep the original purchase deed and invoices for costs and improvements.
- Check whether you were really non-resident: if you are Spanish tax resident, provide a certificate to avoid the retention.
Exemptions and special cases
Some situations change the calculation:
- Former main home reinvestment: in limited cases, EU/EEA residents selling what was their main home may apply a reinvestment exemption.
- Inherited properties: the acquisition value is the value declared for inheritance tax.
- Gifted properties: the acquisition value is the value declared in the gift.
- Properties held in companies: a company sale follows corporate tax rules.
A worked example
Imagine a non-resident who bought a villa in Ibiza for €1,000,000, paid €90,000 in purchase taxes and costs, later invested €150,000 in a documented renovation, and now sells for €1,600,000, paying €80,000 of agency fees and plusvalía. The transfer value is €1,520,000 and the acquisition value €1,240,000, so the gain is €280,000 and the tax at 19% is €53,200. The buyer will have retained 3% of €1,600,000, which is €48,000, so the seller pays the €5,200 difference with Form 210. Without the renovation invoices, the gain would be €150,000 higher and the tax correspondingly larger. The figures are illustrative, but the lesson is real: keep every invoice.
Rented properties and depreciation
If the property was rented, the depreciation that was deductible (or could have been deducted) reduces the acquisition value, increasing the gain. Owners who let their home in Mallorca for years should calculate this before agreeing a price. The rules for rental periods are explained in rental income tax for non-resident landlords.
Your home country
Your country of residence may also tax the gain, usually giving credit for the Spanish tax under the relevant double tax treaty. Exchange rates, different cost bases and timing can cause differences, so coordinate with your home adviser.
Plusvalía: the municipal tax
Separately, the seller normally pays the municipal tax on the increase in urban land value (plusvalía). When the seller is a non-resident individual, the buyer is legally the substitute taxpayer, so the buyer will usually retain the estimated plusvalía from the price as well. See plusvalía municipal tax explained.
Preparing for the sale
- Gather the purchase deed, invoices and tax receipts.
- Calculate the estimated gain and tax before agreeing the price.
- Check for outstanding non-resident annual tax and IBI, which must be up to date.
- Agree in the contract how retentions and costs will be handled.
- Appoint a representative to file Form 210 and receive any refund.
For the full seller process, read selling property in Mallorca as a non-resident.
Official sources
Rules and administrative practice change. Check the current version of each source for your property and date.
- Spanish Tax Agency — Form 211
- Spanish Tax Agency — Form 210
- Non-Resident Income Tax Act, article 25 (BOE)
This guide is general information, not legal or tax advice on a specific transaction. This is the property practice of Castell.law, the English-speaking side of the Castell group of law firms in Palma.
Before you pay a deposit, ask a lawyer
Send us the listing or the document you have been asked to sign. An English-speaking property lawyer will tell you what needs checking and what it could cost you not to.
Frequently asked questions
Do non-residents pay capital gains tax in Spain?
Yes. Non-residents pay 19% on the gain from selling Spanish property.
Is the 3% retention the final tax?
No. It is a payment on account. The seller files Form 210 to pay the difference or claim a refund.
What if I sell at a loss?
You can claim a refund of the full 3% retention by filing Form 210 showing the loss.
Who pays the 3% to the tax office?
The buyer, using Form 211, within one month of the sale.
Can I deduct renovation costs?
Capital improvements with valid invoices can be added to the acquisition cost. Routine maintenance cannot.