TAXES · 3% WITHHOLDING
Sold at a loss as a non-resident: how to recover the 3% withheld from you
By Moisés Vicens i FrancésJune 30, 20268 min read
If you've sold your home in Spain for less than it cost you, the buyer still withheld 3% of the price for Hacienda. I explain, without the jargon, why this happens, how to work out whether there really was a loss, and how to recover that money using the modelo 210.
Let me tell you about a situation I see very often at my office in Calp. A foreign client sells their home on the coast, sometimes for less than they originally paid for it, and at the notary's office discovers that the buyer does not hand over the full price: 3% has been withheld to pay into the Spanish Tax Agency (Hacienda). And the reaction is always the same: 'but I sold at a loss — why am I being taxed?'
It's a fair question, and the answer comes with good news: that 3% is not a final tax, it is a payment on account. If you genuinely sold at a loss, you can get it back in full. But — and this is the important part — they won't refund it just because you ask: you have to prove it properly. Let me walk you through it step by step.
Why 3% is withheld even when you sell at a loss
When a non-resident sells a property located in Spain, the law requires the buyer to withhold 3% of the agreed price and pay it directly to Hacienda. The buyer does this using a form called modelo 211, and has one month from signing to file it. This is not optional: if the buyer fails to withhold it, they become personally liable for that money, so in practice it is almost always withheld.
Here's the key to understanding all of this: that 3% is a PAYMENT ON ACCOUNT. Think of it as a deposit Hacienda takes upfront, not as the final tax. Hacienda withholds it 'just in case' there was a taxable gain. The real tax — if any — is calculated afterwards, on the actual gain. And if there was no gain, there is no tax to pay.
That's why what feels unfair can happen: having 3% withheld even though you sold at a loss. The withholding (retención) is calculated on the sale price, not on your gain. The system withholds first and adjusts afterwards. And that 'adjustment afterwards' is something you have to request yourself.
Was there really a loss? Here's how it's calculated
Before claiming anything, one thing needs to be clear: 'selling for less than I paid' doesn't always mean 'a loss' for tax purposes. The capital gain or loss (ganancia o pérdida patrimonial) is the difference between two values, and each of those values is made up of several components. Let's look at them, because that's where the case is won or lost.
What counts toward the acquisition value (what it cost you)
The acquisition value is not just the price stated in the deed (escritura) when you bought the property. The law lets you add everything it actually cost you to acquire the home:
- The actual price you paid for the property.
- The taxes you paid when you bought it (the transfer tax — ITP — if it was a resale property, or VAT — IVA — and stamp duty — AJD — if it was a new build).
- The notary and land registry fees and, where applicable, the gestoría (administrative agent) and lawyer's fees from that purchase.
- The cost of any genuine improvements you made to the property (not repairs — I'll explain the difference later, which is where the real trick lies).
Notice this: the higher your correctly calculated acquisition value, the bigger the loss (or the smaller the gain). That's why digging out old invoices and deeds isn't pointless paperwork — it's money.
What is deducted from the sale value (what you actually received)
The same works in reverse for the sale: the transfer value (valor de transmisión) is not the gross price in the deed, but what you actually ended up with. From that price you can deduct the costs and taxes of the sale that you paid yourself:
- The selling costs you took on as the seller.
- The estate agent's commission, if you were the one who paid it.
- The municipal capital gains tax (plusvalía municipal): if you paid it as the seller, it can be treated as reducing the sale value, which can help turn a small gain into a loss, or increase an existing loss.
The result: if the adjusted sale value is lower than the adjusted acquisition value, there is a LOSS and the tax due is zero. In that case, the 3% withheld is entirely yours, and you need to claim it back. Only if there had been a gain would the 19% rate apply to it; but in a sale made at a loss, the tax bill is zero and that 19% figure doesn't even come into play.
The key issue isn't the law — it's the EVIDENCE
Here comes the most important point in this whole article, and where most refund claims fall apart. The law is clear: if there's a loss, you get the 3% back. The law is never the problem. The problem is PROVING that loss to Hacienda. Because Hacienda doesn't just take your word for it: it checks, compares, and if the figures don't add up, it refuses the claim.
The battleground where most disputes happen is the distinction between an IMPROVEMENT and a REPAIR, and it's worth understanding it properly:
- An IMPROVEMENT (mejora) extends the property, substantially modernises it, or lengthens its useful life (enclosing a porch, extending the home, a full renovation that changes what was there before). Only genuine improvements add to the acquisition value.
- A REPAIR (reparación) simply maintains or replaces something that was already there (painting, replacing a broken boiler, fixing damp problems). That does NOT add to the acquisition value.
And be careful, because even genuine improvements aren't accepted automatically: even if the improvement is real, Hacienda demands specific proof of what you actually paid. It's not enough to say 'I did a renovation', and a new-build deed on its own won't do either. If you don't provide invoices and proof of payment for the amounts actually paid, the improvement gets struck down — and part of your refund along with it. I've seen it many times: the loss was real, but the client couldn't prove it.
What documents you need
Gather this before claiming back the 3%
- Purchase deed (escritura de compra): to prove the date, price and the percentage share you acquired.
- Sale deed (escritura de venta): to prove the date, price and the share you sold.
- Proof of the taxes and costs from the purchase (ITP, or IVA plus AJD, notary, land registry) and from the sale.
- Proof of the 3% withheld (the modelo 211 filed by the buyer): this is the evidence of how much was withheld from you.
- If you're claiming improvements: itemised invoices, proof of payment (bank transfers, not cash) and, if you have them, permits or technical documentation for the works.
- If you paid the municipal capital gains tax (plusvalía municipal) yourself: proof of payment.
The better this file is put together from the start, the easier and faster the refund. It's when a key document is missing — especially invoices for improvements or the old purchase deed — that the problems and delays begin.
How to request the refund: modelo 210 and the timeframes
First, don't mix up the two forms, because that's the most common mistake. The modelo 211 is filed by the BUYER to pay the 3% in. The modelo 210 is filed by YOU, the seller, to declare the transaction and request that money back. They are different forms, filed by different people.
With the modelo 210 you declare the sale, prove that there was a loss (with everything we covered above) and, since the tax due is zero, request the full refund of the 3% withheld from you. Even where there's a loss and nothing is owed, you still have to file this form: if you don't file it, you don't get the money back. Hacienda will not refund it automatically.
One detail many people don't know: each property is declared separately. If, in the same deed, you sold the home, a garage space and a storage room with different cadastral references (referencias catastrales), you need to file a separate modelo 210 for each one, and the loss on one cannot be offset against the gain on another. (Be careful here, because this is sometimes confused with the change brought by Orden HAC/56/2024, which allows RENTAL income to be grouped into a single annual return; that applies to rentals, not to sales, which are still declared property by property.)
How long does it take to get paid? I'll be honest with you: the refund usually arrives within a few months of the sale, but the exact timeframe depends on each case and on whether Hacienda decides to review it or not. I won't promise you a fixed date, because that would be misleading you. What I can assure you is that a well-prepared file is resolved much sooner than one with incomplete documents.
Mistakes that cost you the refund
- Not filing the modelo 210 because you assume that, since there's a loss, nothing needs to be done. No filing means no refund.
- Claiming improvements without invoices or proof of payment: Hacienda rejects them and lowers your acquisition value.
- Getting the dates or the deed's figures wrong when filling in the modelo 210: a mistake in a single box can end up in a review and a refusal.
- Lumping the home, the garage and the storage room into a single return when they have different cadastral references.
- For homes bought many years ago or acquired in stages, not properly separating the date and value of each part acquired.
- If the property belonged to several owners, forgetting that each co-owner only recovers THEIR share of the 3%, according to their percentage of ownership: one owner cannot claim another's share.
If you've sold your home in Spain at a loss and had that 3% withheld, write to me and we'll go through it together. The first step is to look at the real figures of your transaction; the loss is often bigger than it looks once every cost is properly added up. From there, we prepare the modelo 210 with solid supporting evidence, which is the only way to get your money back without surprises. That's how I work: first understand your case, then prove it, and only then make the claim.
Frequently asked questions
I sold at a loss — why was 3% withheld from me?
Because the 3% is not the final tax, but a payment on account that the buyer is required to pay in when the seller is a non-resident. It's calculated on the sale price, not on your gain, so it applies even if you sell at a loss. Afterwards, you claim it back using the modelo 210.
What's the difference between modelo 210 and modelo 211?
The modelo 211 is filed by the buyer to PAY the 3% to Hacienda. The modelo 210 is filed by you, the seller, to declare the transaction and RECOVER that 3% when there was a loss, or when the actual tax due is lower. They are different forms, filed by different people.
Do the works I did on the property help prove the loss?
Only if they are genuine improvements (extending the property, substantially modernising it, lengthening its useful life) and only if you can prove them with invoices and proof of payment. Simple repairs or maintenance do not add to the acquisition value. And even genuine improvements are not accepted without specific documentary proof.
How long does Hacienda take to refund the 3%?
It's usually resolved within a few months of the sale, but the exact timeframe depends on each case and on whether Hacienda reviews the request. I can't seriously give you a fixed date. What genuinely speeds up payment is filing a complete, well-documented file from the outset.
The property belonged to my partner and me — who gets the 3% back?
Each co-owner recovers their share of the 3% according to their percentage of ownership. If you each owned 50%, each of you files your own return and recovers half. One co-owner cannot claim the other's share.
Legal basis and official sources
- TR Ley del Impuesto sobre la Renta de no Residentes (RDLeg 5/2004), arts. 24 y 25
- Reglamento del IRNR (RD 1776/2004), arts. 14 y 16 (retención del 3 % y devolución del exceso)
- Ley 35/2006 del IRPF, art. 85 (regla de imputación de rentas inmobiliarias: 1,1 % / 2 %)
- Orden HAC/56/2024 (modelo 210: agrupación anual de rendimientos de arrendamiento)
- TR Ley Reguladora de las Haciendas Locales (RDLeg 2/2004), plusvalía municipal (IIVTNU), arts. 104-108
SHALL WE TALK?
Tell me about your case, with no obligation
I reply to you personally, in your language. The first consultation is to get to know each other and see how I can help you.
Keep reading
I help you with the modelo 210, the 3% withholding and the tax treatment of your property in Spain, from start to finish.
Taxes for non-residents →If you're selling your home in Spain, I support you through the whole transaction, from negotiation to signing and taxes.
Buying and selling property →