Are you selling property in Spain as a non-resident? Whether you own an apartment in Málaga, a holiday home in Marbella, or a villa on the Costa del Sol, there is an important tax obligation you need to understand before completing the sale: the 3% tax retention for non-resident property sellers.
Many foreign property owners are surprised to discover that they will not receive the full agreed selling price when signing the title deed at the notary. Under Spanish tax law, the buyer must normally withhold 3% of the purchase price and pay it directly to the Spanish Tax Agency (Agencia Tributaria).
But does this mean you automatically lose 3% of your property’s value? Not necessarily.
The amount withheld is an advance payment towards your potential Capital Gains Tax liability. Depending on your circumstances, you may be entitled to recover some or all of it.
At Malaga Solicitors, our property lawyers in Málaga help international property owners understand their legal and tax obligations when selling real estate in Spain.
In this guide, we explain how the 3% retention works, who is responsible for paying it, how to claim a refund, and what you should consider before selling your Spanish property.
What Is the 3% Tax Retention When Selling Property in Spain?
The 3% retention is a mandatory withholding applied when a non-resident taxpayer sells property in Spain, subject to the applicable legal rules.
Under Article 25.2 of Royal Legislative Decree 5/2004, which regulates Spanish Non-Resident Income Tax (Impuesto sobre la Renta de no Residentes or IRNR), the buyer is generally required to withhold 3% of the agreed purchase price.
This amount must be paid to the Spanish Tax Agency on behalf of the non-resident seller.
The purpose is to secure an advance payment towards any tax liability arising from the property’s sale.
It is important to understand that the 3% retention is not an additional tax on top of Capital Gains Tax. Instead, it is deducted from the final tax payable on the transaction.
If your final tax liability is lower than the amount withheld, you may be entitled to a refund.
Example: Selling a property in Málaga for €300,000
Suppose you are a UK tax resident selling your apartment in Málaga for €300,000.
At completion, the transaction would generally be handled as follows:
| Description | Amount |
| Agreed selling price | €300,000 |
| 3% tax retention | €9,000 |
| Amount payable to the seller before other costs | €291,000 |
The buyer must pay the €9,000 to the Spanish Tax Agency.
This does not mean your final tax bill will be €9,000. The actual amount depends on the taxable capital gain arising from the sale.
Any outstanding mortgage, sale expenses, local taxes or other agreed deductions must also be considered when calculating the final proceeds you receive.
Who Is Responsible for Paying the 3% Retention?
Although the withholding relates to the seller’s tax obligations, the buyer is legally responsible for withholding the money and paying it to the Spanish Tax Agency.
This is an important distinction.
The buyer must:
- Withhold 3% of the agreed purchase price when the property transfer takes place.
- Submit Modelo 211 to the Spanish Tax Agency.
- Pay the withheld amount within one month of the property transfer.
- Provide the non-resident seller with the relevant copy of Modelo 211.
The seller should retain this document because it provides evidence of the withholding and is needed when declaring the capital gain and claiming any applicable refund.
Failing to coordinate these obligations correctly can create unnecessary complications after completion.
For this reason, having an experienced Spanish property lawyer review the completion arrangements can be particularly valuable for foreign sellers.
Is the 3% Retention the Same as Capital Gains Tax?
No. This is one of the most common misunderstandings among non-resident property owners.
The 3% withholding and Capital Gains Tax are related, but they serve different purposes.
The 3% retention is calculated on the agreed selling price. Capital Gains Tax is generally calculated on the taxable profit made from the sale.
For non-resident taxpayers selling Spanish property, the applicable Capital Gains Tax rate is generally 19% of the taxable gain, including for UK and other non-EU tax residents.
However, this does not mean that 19% of the entire selling price is payable.
The taxable gain is broadly calculated by comparing the property’s acquisition value and transfer value, taking into account legally allowable expenses, taxes and adjustments.
Which expenses can reduce the taxable capital gain?
Depending on the circumstances and supporting documentation, relevant costs may include:
- Certain taxes and notary or Land Registry fees paid when purchasing the property.
- Estate agent fees and other qualifying expenses directly associated with the sale.
- Certain documented capital improvements made to the property.
Not every property-related expense is deductible. Routine maintenance and repairs, for example, are treated differently from qualifying improvements.
If the property has been rented out, depreciation rules may also affect the acquisition value used to calculate the taxable gain.
Keeping your original purchase documents, invoices and supporting records can make a significant difference when calculating your tax liability.
Can You Get the 3% Retention Back?
Yes. A non-resident seller may claim a refund if the amount withheld exceeds the final Capital Gains Tax liability.
This situation can arise when the taxable profit is relatively small or when the property is sold at a loss.
Let’s consider two simplified examples.
Example 1: You are entitled to a partial refund
Imagine you sell your property for €250,000 and your calculated taxable capital gain is €20,000.
| Description | Amount |
| Selling price | €250,000 |
| 3% retention | €7,500 |
| Taxable capital gain | €20,000 |
| Capital Gains Tax at 19% | €3,800 |
| Potential refund | €3,700 |
In this example, your actual tax liability is €3,800, but €7,500 has already been withheld.
You may therefore be entitled to recover the €3,700 difference.
Example 2: You sell your property at a loss
Suppose you bought your property for €250,000 and later sell it for €230,000.
The buyer would generally still have to withhold 3% of the selling price, equivalent to €6,900.
However, if the transaction results in a genuine tax-recognised capital loss, there may be no Capital Gains Tax payable on the sale.
In that case, you may be entitled to request a refund of the full €6,900.
These are simplified examples. Actual tax calculations may be affected by deductible costs, depreciation, ownership circumstances and other applicable rules.
The key point is that selling at a loss does not automatically eliminate the buyer’s obligation to withhold 3%.
How to Claim a 3% Tax Retention Refund in Spain
If you are entitled to recover part or all of the retention, you must declare the property transfer to the Spanish Tax Agency using Modelo 210.
This is the non-resident income tax return used to report the gain or loss arising from the sale.
For property transfers, the filing period is three months, beginning after the first month has elapsed from the transfer date.
In practical terms, this means there is normally a four-month period from completion within which the relevant declaration must be filed.
What documents might you need?
Your lawyer or tax adviser may request:
- Your NIE (Spanish Foreigner Identification Number) and identification documents.
- The original property purchase deed (escritura de compraventa).
- The deed documenting the sale.
- A copy of the buyer’s Modelo 211 confirming the 3% retention.
- Supporting invoices for qualifying purchase and sale expenses.
- Documentation relating to eligible property improvements.
- Bank account details for any approved refund.
Additional documents may be needed depending on the ownership history and circumstances of the transaction.
A refund is not automatically issued simply because the 3% has been withheld. It must be properly claimed through the relevant tax procedure.
The Spanish Tax Agency may also review the information and supporting documentation before approving repayment.
Professional assistance can help ensure that the tax return reflects the transaction accurately and that any refund entitlement is properly supported.
What Happens If the Capital Gains Tax Is Higher Than the 3% Retention?
Not every non-resident seller will be entitled to a refund.
If your property has increased significantly in value, the final Capital Gains Tax liability may exceed the amount withheld by the buyer.
For example, suppose you sell a property for €400,000 and make a taxable capital gain of €100,000.
The buyer would retain €12,000, representing 3% of the selling price.
Your Capital Gains Tax at 19% would be €19,000.
After deducting the €12,000 already withheld, you would still need to pay €7,000 through your non-resident tax declaration.
This is why it is advisable to calculate your estimated tax position before agreeing to sell your property, rather than waiting until the transaction has been completed.
Understanding your potential tax liability in advance allows you to plan your finances and avoid unexpected costs.
Other Taxes and Costs When Selling Property in Málaga
The 3% retention is not the only financial obligation you should consider when selling Spanish real estate.
Depending on your circumstances, other relevant costs and taxes may include:
Municipal Plusvalía Tax
The Plusvalía Municipal, formally known as the Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana (IIVTNU), is a local tax associated with increases in the value of urban land.
It is separate from Capital Gains Tax.
For a sale involving an individual non-resident seller, Spanish law generally makes the buyer the substitute taxpayer for municipal Plusvalía purposes.
The amount, potential exemptions and applicable calculation method depend on the circumstances and the relevant municipal regulations.
Outstanding Property Expenses
Before completing a sale, it is also important to review any outstanding liabilities associated with the property.
These may include unpaid community fees, local property taxes (IBI), utilities or other amounts that need to be settled or addressed during the conveyancing process.
Mortgage Cancellation
If your property is subject to an existing mortgage, the outstanding debt and the arrangements for cancelling the mortgage at the Land Registry should be considered before completion.
A Spanish property lawyer can help review these matters so that you have a clearer understanding of the expected net proceeds.
Do UK Citizens Have to Pay the 3% Retention When Selling Property in Spain?
Yes, when they are non-resident taxpayers for Spanish tax purposes and the withholding rules apply.
The relevant factor is generally the seller’s tax residence status, not simply their nationality.
A British citizen who is tax resident in the UK and sells property in Spain will generally be subject to the 3% withholding requirement.
The same principle applies to sellers who are tax resident in other countries, including Ireland, Germany, the Netherlands and the United States.
However, whether someone qualifies as a Spanish tax resident must be assessed according to the applicable rules. Having an NIE, owning a home in Spain or holding Spanish residency documentation does not, by itself, conclusively establish tax residence.
If your position is uncertain, it is advisable to obtain professional guidance before completion.
You should also consider whether the sale needs to be reported in your country of tax residence and whether a relevant double taxation agreement applies.
Why Use a Property Lawyer When Selling as a Non-Resident?
Selling property in Spain while living abroad can involve more than finding a buyer and signing a contract.
You may need to coordinate legal documents, tax obligations, completion arrangements and financial matters from another country.
At Malaga Solicitors, we provide legal assistance with property sales in Málaga and the Costa del Sol.
Our services include legal advice on selling Spanish property and assistance with relevant tax matters.
Working with a property lawyer can help you:
- Understand the legal requirements before committing to a sale.
- Review the sale contract and completion documentation.
- Clarify how the 3% retention will be handled.
- Identify relevant tax obligations and filing deadlines.
- Review documentation needed for the calculation of Capital Gains Tax.
- Obtain assistance with Modelo 210 and any applicable refund procedure.
- Coordinate the legal aspects of the transaction if you live outside Spain.
Whether you are selling a holiday apartment, an investment property or a former home, getting advice early can help reduce uncertainty and avoid preventable complications.
Frequently Asked Questions About the 3% Retention in Spain
Is the 3% retention mandatory for non-resident property sellers?
Generally, yes. Under Spanish Non-Resident Income Tax rules, the buyer must withhold 3% of the agreed consideration when purchasing Spanish property from a non-resident taxpayer to whom the withholding provisions apply. Specific legal exceptions may apply.
Is the 3% calculated on the sale price or the profit?
The 3% retention is calculated on the agreed purchase price, not the capital gain. The final Capital Gains Tax liability is calculated separately.
Can I reclaim the 3% if I sell my property at a loss?
Potentially, yes. If the sale produces a tax-recognised capital loss and no Capital Gains Tax is payable, you may be entitled to recover the full amount withheld by submitting the appropriate Modelo 210 return.
How long does it take to receive a 3% tax refund?
There is no guaranteed refund date. The processing time depends on the Spanish Tax Agency and whether additional checks or supporting documentation are required.
Do I need to file Modelo 210 if I have already paid the 3%?
Yes. The 3% retention is an advance payment, not a substitute for the final tax declaration relating to the property sale.
Does the 3% retention apply if I sell my holiday home in Marbella or Málaga?
Yes, the same national withholding framework generally applies to non-resident property sellers throughout Spain, including Málaga, Marbella and the wider Costa del Sol.
Selling Your Property in Málaga? Speak to Malaga Solicitors
Selling a property in Spain as a non-resident should not leave you uncertain about how much tax you owe or how much money you will receive.
The 3% retention is an important part of the process, but understanding your actual tax position, legal obligations and potential refund entitlement is equally essential.
At Malaga Solicitors, our property lawyers can help you navigate the legal and tax aspects of selling your property in Málaga and the Costa del Sol.
Whether you are preparing to sell, approaching completion or need advice about the 3% withholding, our team can assist you.
Get Legal Advice Before Selling Your Spanish Property
Contact Malaga Solicitors to discuss your property sale and understand your obligations as a non-resident seller.
Visit our office: Camino del Colmenar, 45, Local Bajo, Distrito Centro, 29013 Málaga, Spain.
Call us: +34 952 90 12 25
Email: mail@malagasolicitors.com
Contact our team: www.malagasolicitors.com/contact-us/
Get professional guidance for your property sale in Spain.
Legal information: This article provides general information about Spanish property taxation for non-resident sellers. It does not constitute individual legal or tax advice. The applicable rules and tax consequences depend on each seller’s circumstances and the legislation in force at the time of the transaction.




