When a notary authorizes the purchase and sale of a property In Spain, it not only ensures the legality of the transaction, but also plays a key role in tax security. A clear example of this is the 3% retention of the purchase price which applies when the seller is a non-tax resident in Spain.
This mechanism is a critical point of attention in any notary office And one of the most common questions for foreign buyers and sellers. But what exactly does this retention entail, and why is it so important?
The 3% withholding tax: A payment on account of the tax
Contrary to popular belief, this 3% is not a tax in itself, but rather a payment on account of Non-Resident Income Tax (IRNR) which the seller must settle for the capital gain obtained from the sale.
The purpose of this measure is clear: the Tax Agency ensures that the State collects a portion of the capital gains tax generated by the sale. By requiring the buyer to withhold this tax, the administration protects itself against a possible non-payment, since the non-resident seller may not have a tax presence in Spain after the transaction.
The buyer is obliged to pay this amount to the Treasury through the Model 211 within one month from the formalization of the public deed.
When does it apply and who is responsible?
The 3% withholding is applied whenever the the seller is a natural or legal person who is not a tax resident in Spain. Nationality is not relevant; what matters is the tax residenceTherefore, a Spanish citizen residing outside of Spain will be subject to this withholding.
The responsibility for practicing retention falls squarely on the buyer. Failure to do so is subject to the law real affectation of the property, which means that the acquired property could be liable for the seller's tax debt. In notarial practice, this is an unacceptable risk that is rigorously avoided.
Are there exceptions to the rule?
Yes, there are situations where this withholding does not apply:
- When the seller is a tax resident in Spain: Proof of residency is provided by a certificate from the Tax Agency.
- In non-onerous transmissions: For example, in the case of a donation, since there is no purchase price, no withholding is applied.
- In contributions to resident companies or in the termination of a condominium.
After the withholding, the non-resident seller may declare his capital gain or loss in the Model 210 and deduct the amount already paid. If the resulting tax is less than 3%, the seller may request a refund of the excess.
Who is considered a non-resident in Spain for personal income tax purposes?
For the purposes of Personal Income Tax (IRPF), a person is considered to be is not a tax resident in Spain if you do not meet any of the following criteria established by law:
- Permanence criteria: Does not reside more than 183 days in Spanish territory during the calendar year. For the purposes of calculating this period, sporadic absences are counted, unless the taxpayer proves tax residence in another country.
- Main core of interests criterion: The main core or base of their economic activities or interests is not, directly or indirectly, in Spain. This is presumed to be the case when, for example, the taxpayer earns the majority of their income in Spanish territory.
- Residence criteria for spouse and minor children: If your legally separated spouse and/or minor children habitually reside in Spain, it is presumed, unless proven otherwise, that the person is also a tax resident in Spain.
It's important to note that tax residency is determined by calendar year. A person can only be a tax resident of one country in a single year.
Why is this distinction important in the context of selling a property?
The difference is crucial for the taxation of the sale:
- If the seller is tax resident in Spain, will be taxed on the capital gain obtained in its personal income tax return, and the 3% withholding will not apply.
- If the seller is non-tax resident in Spain, capital gains are taxed through the Non-Resident Income Tax (IRNR), and it is in this case when the 3% withholding tax on the purchase price is applied.
This distinction is the legal pillar on which the entire transaction rests and the reason why, in notarial practice, proof of tax residency is required to proceed with the deed of sale without the withholding tax.
In short, the 3% withholding tax is a cornerstone of legal tax security in real estate transactions with non-residents. Understanding how it works is crucial to avoiding risks, streamlining the purchase and sale process, and ensuring that all parties act within the law.

Antonio Bosch Carrera. Notary Public at Notaría Bosch Barcelona since 1.991. Professor at UIC Barcelona since 2000. Certified mediator, specialist in notarial conciliation.

Leave a Comment