Dacion en pago in Spain: voluntarily surrendering your property to clear the mortgage debt
Dacion en pago lets a borrower hand back a mortgaged property to clear the debt. It needs lender consent, with a vulnerable-borrower Code route under RDL 6/2012
Dacion en pago in Spain: voluntarily surrendering your property to clear the mortgage debt
A dacion en pago is the voluntary handover of a mortgaged property to the lender in exchange for cancelling the outstanding debt. Under Spanish law it is not a right the borrower can exercise unilaterally: it needs the lender to consent, and without that consent the mortgage stands. There is one statutory exception, the Codigo de Buenas Practicas established by Real Decreto-ley 6/2012, where a qualifying vulnerable borrower on a main residence can compel the bank to accept the property once restructuring and a partial write-down have failed.
What is dacion en pago and where does it come from in Spanish law?
Dacion en pago is an agreement through which a debtor transfers ownership of an asset to a creditor who accepts it as payment, extinguishing the underlying obligation. Spanish civil law does not regulate it as a named institution, but Article 1175 of the Codigo Civil provides the nearest statutory hook: the debtor may cede assets to creditors in payment of debts, and unless the parties agree otherwise the cession only releases the debtor up to the liquid value of the assets transferred. That default rule is pro solvendo, meaning the creditor can still pursue the balance if the asset falls short. Dacion en pago stricto sensu, the transfer that extinguishes the debt in full, works pro soluto and depends on an express agreement to that effect.
The practical consequence for a Spanish mortgage is that the bank must explicitly accept the property in full discharge. A borrower who simply hands over the keys without a signed dacion en pago agreement achieves nothing: the mortgage continues, default interest accrues, and the lender can initiate the foreclosure process described in our guide to mortgage foreclosure in Spain.
Is dacion en pago a legal right in Spain?
No, dacion en pago is not a statutory right the borrower can invoke against the lender’s will. It is an atypical contract governed by the general principle of freedom of contract (autonomia de la voluntad). The lender is free to refuse and insist on the contractual mortgage terms, including the early-maturity clause if the borrower defaults.
The one structured exception is the Codigo de Buenas Practicas annexed to RDL 6/2012. Under that Code, a borrower who meets the exclusion threshold and whose loan is secured on their main residence can demand dacion en pago as a last-resort measure, and an adhering lender must accept. The Code is voluntary for lenders, but once a bank has adhered, its provisions are binding on the bank’s whole portfolio of qualifying loans for the adherence period.
How does the Codigo de Buenas Prácticas work?
The Code sets out a three-stage cascade, and dacion en pago is the final stage, available only after the earlier stages have been tried and have failed. The Banco de Espana, which supervises the Code through its complaints function, describes the measures as successive rather than elective.
| Stage | Measure | What it involves | Lender obligation |
|---|---|---|---|
| 1 | Restructuring (reestructuracion) | Capital holiday of up to 5 years, term extension to 40 years from origination, interest reduction to Euribor minus 0.10 during the holiday | Must offer a plan within 1 month of a qualifying request |
| 2 | Partial write-down (quita) | Capital reduction of 25 per cent, or a formula-based reduction, at the lender’s discretion to accept or reject | May offer, not bound to accept |
| 3 | Dacion en pago | Handover of the property in full discharge of the debt and all personal liabilities | Must accept if restructuring is unviable, no quita applied, and the borrower requests within 24 months |
A restructuring plan is deemed unviable when the resulting monthly payment still exceeds 50 per cent of the household’s net income, as defined in the Code’s Annex. The dacion en pago request must be made within 24 months of the restructuring application, or at any later point if a restructuring plan is in force but the borrower can no longer meet payments.
The two-year rent-back option is built into the Code: at the moment of requesting dacion en pago, the borrower may ask to remain in the property as a tenant for two years at an annual rent of 3 per cent of the total debt outstanding at the date of dacion. Late payment of that rent attracts a 10 per cent default interest rate. After two years the tenancy ends without a right to extension unless the parties agree otherwise.
Who qualifies for the Codigo de Buenas Prácticas in 2026?
Article 3 of RDL 6/2012 defines the exclusion threshold (umbral de exclusion) that gates every measure in the Code. The borrower must satisfy all of the following conditions simultaneously:
| Requirement | Standard threshold | Relaxed threshold (disability / dependencia) |
|---|---|---|
| Household income cap | 3x IPREM (14 pays) = EUR 25,200/yr in 2026 | 4x IPREM = EUR 33,600/yr, or 5x for severe disability |
| Mortgage burden | Cuota exceeds 50% of net household income | Exceeds 40% of net household income |
| Economic change | Effort ratio worsened in the last 4 years, or a listed vulnerability circumstance applies | Same |
| Assets | No other assets sufficient to cover the debt (for stages 2 and 3) | Same |
| Property | The mortgaged property must be the only residence owned and the loan taken to buy it | Same |
| Price cap | Acquisition price within 20% of the provincial mean sqm price, capped at EUR 300,000 | Same |
| Price cap for dacion | Capped at EUR 250,000 | Same |
The IPREM has been frozen at EUR 600 a month (EUR 8,400 a year at fourteen pays) since 2023, because no new Presupuestos Generales del Estado has been passed. The 2026 figure remains EUR 600 a month, so three times the fourteen-pay IPREM is EUR 25,200 a year of household income, the ceiling a qualifying family must not exceed. The threshold rises to four times IPREM (EUR 33,600) where a household member has a declared disability above 33 per cent, dependencia, or a permanent incapacity, and to five times IPREM (EUR 42,000) in cases of severe disability.
The listed vulnerability circumstances include families with minor children, single-parent households, large families (familia numerosa), households with a disabled or dependent member, victims of gender violence, and borrowers over 60.
What is the difference between pro soluto and pro solvendo?
This is the distinction that determines whether you walk away clean or remain liable for the shortfall, and it is the detail most often misunderstood by distressed borrowers.
- Datio pro soluto: the creditor accepts the property and the debt is fully extinguished, regardless of whether the property’s value covers the outstanding balance. The borrower owes nothing further.
- Datio pro solvendo: the creditor accepts the property only as a partial payment, and the borrower remains personally liable for any shortfall between the property’s liquid value and the debt. Article 1175 of the Codigo Civil sets this as the default unless the parties agree otherwise.
The Code’s dacion en pago is always pro soluto: Article 3.b of the Annex states that the dacion extinguishes the full secured debt and the personal liabilities of the debtor and of third parties. A voluntary dacion en pago negotiated outside the Code can be drafted either way, and a borrower who accepts a pro solvendo arrangement may find the bank pursuing them years later for the difference between the property’s sale price and the mortgage balance. Any negotiation outside the Code should therefore insist on pro soluto language in the notarial deed.
How does dacion en pago compare with foreclosure and a short sale?
A distressed borrower in Spain generally faces three routes. The table sets out the structural differences:
| Route | Who initiates | Lender consent | Debt outcome | Credit impact | Timeline |
|---|---|---|---|---|---|
| Dacion en pago (Code) | Borrower requests | Lender must accept if thresholds met | Full discharge (pro soluto) | Avoids foreclosure judgment | Weeks to months |
| Dacion en pago (voluntary) | Borrower proposes | Lender may accept or refuse | Negotiable (pro soluto or pro solvendo) | Avoids foreclosure judgment | Negotiable |
| Foreclosure | Lender initiates | Not needed | Borrower liable for shortfall after auction | Court judgment, asset loss | 12-18 months |
| Short sale | Borrower proposes | Lender must approve sale price | Borrower may still owe shortfall | Avoids foreclosure if lender agrees | Months |
The foreclosure route under Spanish mortgage law is the bank’s remedy when the borrower defaults and no dacion is agreed. Under Article 24 of Ley 5/2019, the lender can trigger early maturity only when the arrears reach 3 per cent of the capital in the first half of the loan (or 12 unpaid monthly instalments) or 7 per cent in the second half (or 15 months), and only after a formal payment demand giving the borrower at least one month to cure. Late interest is capped at the remunerative rate plus 3 percentage points, and accrues only on overdue principal, not the whole loan.
Can a non-resident with a Costa del Sol second home use dacion en pago?
A non-resident owner of a holiday property on the Costa del Sol does not qualify for the Codigo de Buenas Practicas, because the Code applies only to the borrower’s main residence (vivienda habitual) purchased for personal use, not a second home. The Banco de Espana is explicit on this point: the Code is directed at deudores hipotecarios sin recursos on their primary residence.
That does not close the door. A non-resident borrower can propose a voluntary dacion en pago to the bank at any point during the loan. Banks will sometimes accept one where the property’s market value is close to the outstanding debt, because it avoids the cost and delay of a judicial foreclosure. The negotiation is entirely commercial, and the bank has no obligation to agree. Where the property is worth less than the mortgage, the bank has little incentive to accept a pro soluto dacion and will usually prefer to foreclose and pursue the personal guarantee, though a borrower with no recoverable assets in Spain may find the bank more willing to negotiate a clean break.
Borrowers considering this route should also review the early repayment mechanics and the subrogation and refinancing options, since restructuring the loan may be cheaper than surrendering the property, particularly if Euribor has moved favourably.
What are the tax and notarial consequences of a dacion en pago?
A dacion en pago is a property transfer for tax purposes, and the tax treatment depends on whether the Code applies.
For a Code dacion en pago, RDL 6/2012 provides specific reliefs. Article 10 of the law exempts any capital gain arising on the transfer from personal income tax (IRPF). Article 11 halves the notarial and registry fees for the mortgage cancellation deed, and the borrower bears no additional cost from the lender for acquiring the property free of the mortgage charge. Article 9 makes the acquiring bank the substitute taxpayer for the plusvalia municipal (IIVTNU) on the transfer, meaning the bank pays it and cannot recover it from the borrower.
For a voluntary dacion en pago outside the Code, none of these reliefs apply automatically. The transfer can trigger a capital gains tax liability if the property’s value at handover exceeds its acquisition value, and the borrower may face the plusvalia municipal unless a specific exemption or the Constitutional Court’s real-gain method election applies. The notarial and registry costs of the deed and the mortgage cancellation fall to be negotiated between the parties.
The non-resident mortgage guide covers the broader tax position of financing a Spanish property as a foreign buyer, which is relevant context for anyone weighing a dacion against keeping the loan.
What should a borrower do before requesting a dacion en pago?
The practical sequence, grounded in the Code’s cascade and the Banco de Espana’s guidance, is:
- Contact the lender early. The Code’s measures are available before a foreclosure auction is announced. Once the auction notice is published, dacion en pago under the Code is no longer available, and the bank’s only route is the judicial process. The Banco de Espana’s Cliente Bancario portal advises raising the issue as soon as payment difficulties appear.
- Check the exclusion threshold. Gather income evidence (tax certificate, last three payslips, unemployment benefit certificate), household composition (padron, family book), and property title documents. The bank will verify these against the Article 3 criteria.
- Attempt restructuring first. The Code requires a restructuring attempt before dacion en pago can be requested. The bank has one month to propose a plan after a qualifying request.
- Request a quita if restructuring fails. A partial write-down is the intermediate step, and the bank has discretion to accept or reject it.
- Request dacion en pago within 24 months. The window opens from the restructuring request and closes at 24 months, unless a restructuring plan is still in force and the borrower can no longer pay.
- Ask for the rent-back if needed. The two-year tenancy at 3 per cent of the debt is a right the borrower must exercise at the moment of requesting the dacion, not afterwards.
- Insist on pro soluto wording in the deed. The notarial deed must state that the transfer extinguishes the debt in full and releases all personal guarantees. Without that language, the borrower risks a residual liability.
A borrower whose property carries a second charge after the mortgage (a subsequent lien, a judicial embargo) cannot use the Code’s dacion en pago, because Article 3.e of the Annex excludes properties with later encumbrances. Such a borrower may still request a quita, but the clean handover route is closed.
What if the bank refuses a voluntary dacion en pago?
If the bank refuses and the borrower does not qualify for the Code, the bank’s remedy is foreclosure. The foreclosure process is governed by the Ley de Enjuiciamiento Civil and, for extrajudicial sales, Article 129 of the Ley Hipotecaria. After the auction, if the proceeds do not cover the debt, the borrower remains personally liable for the shortfall, and the bank can pursue the borrower’s other assets for up to twenty years.
A borrower facing foreclosure should seek legal advice immediately, as there are procedural defences: the Article 24 early-maturity thresholds of Ley 5/2019 must be met, the formal payment demand must have been properly served, and the auction valuation must comply with the statutory minimums. The mortgage broker regulation guide covers the intermediaries who can help restructure a loan before it reaches that stage, and the judicial auction guide explains what happens when a property reaches the subasta.
This guide is general information, not legal or tax advice. Rules change and individual circumstances differ. Verify current requirements with an independent lawyer (abogado) or tax advisor (gestor/asesor fiscal) before acting.
Frequently asked questions
- Can I just hand back the keys and walk away from my Spanish mortgage?
- No. Spanish law does not give a borrower a unilateral right to surrender a mortgaged property and extinguish the debt. Dacion en pago requires the lender to agree to accept the property in discharge of the full debt. Without that agreement, the mortgage remains enforceable and the bank can pursue foreclosure plus any personal liability for the shortfall.
- Does the Codigo de Buenas Prácticas apply to a holiday home in Spain?
- No. The Code under RDL 6/2012 applies only to loans secured on the borrower's main residence (vivienda habitual), purchased for under EUR 250,000, where the household meets the exclusion-threshold income and mortgage-burden tests. A non-resident's second home on the Costa del Sol falls outside the Code, though a voluntary dacion en pago can still be negotiated directly with the bank.
- What happens to the remaining debt if the property is worth less than the mortgage?
- Outside the Code, if a dacion en pago is agreed pro soluto, the lender accepts the property as full settlement and writes off any shortfall. If agreed pro solvendo, the lender can still pursue the borrower for the unsatisfied balance. The Code's dacion en pago is always pro soluto: the debt and all personal liabilities are cancelled on handover.
- Can I stay in the property after a Code dacion en pago?
- Yes. Article 3.c of the Code's Annex lets the borrower request a two-year lease on the surrendered property at an annual rent of 3 per cent of the total debt at the moment of dacion. Late rent accrues a 10 per cent default interest. After two years the tenancy ends unless the parties agree otherwise.
Sources and data
- Real Decreto-ley 6/2012, de 9 de marzo, de medidas urgentes de protección de deudores hipotecarios sin recursos (Codigo de Buenas Practicas) — BOE - Agencia Estatal Boletin Oficial del Estado
- Ley 5/2019, de 15 de marzo, reguladora de los contratos de credito inmobiliario (Art 24 vencimiento anticipado) — BOE - Agencia Estatal Boletin Oficial del Estado
- Real Decreto-ley 19/2022, de 22 de noviembre, por el que se establece un Codigo de Buenas Practicas para aliviar la subida de los tipos de interes en prestamos hipotecarios sobre vivienda habitual — BOE - Agencia Estatal Boletin Oficial del Estado
- Codigo Civil, Articulo 1175 (datio in solutum) — BOE - Agencia Estatal Boletin Oficial del Estado
- Dacion en pago de la vivienda habitual - Guia textual — Banco de Espana - Portal del Cliente Bancario
- Requisitos economicos - Umbral de exclusion — Banco de Espana - Portal del Cliente Bancario