Selling a property in Spain with a mortgage: how it works
You can sell a property in Spain that still has a mortgage on it. In most sales the loan is paid off from the sale price on completion day, at the notary's office: your bank says in writing what is owed, the buyer pays that amount straight to the bank, and the bank signs a deed cancelling the mortgage. The charge is then removed at the Land Registry so the buyer gets a clean title.
This guide explains each step, what it costs, the legal limits on early repayment charges, and what happens if the price won't cover the debt. It's general information, so ask your bank for your own figures and take advice from a Spanish lawyer.
Can you sell a property in Spain with a mortgage on it?
Yes. A mortgage (hipoteca) is a charge registered against the property, and it stays there until the lender agrees to remove it. Spain's land registrars set out three ways a buyer can deal with one:
- The seller cancels it before the sale, so the buyer buys free of charges.
- The buyer holds back the amount owed from the price and pays it to the bank directly. This is the usual route, done at the same appointment as the sale.
- The buyer takes over the loan (subrogación), which needs the lender's consent.
Whichever applies, the buyer's lawyer will see the mortgage on the nota simple, the Land Registry's summary of the property and its charges. One point often worries sellers: the figure shown in the registry is not what you owe. The registrars explain that it adds up the loan plus sums set aside for interest, late interest and costs, and that the property only answers for what is actually owed at the time.
How the mortgage is paid off at the notary: step by step
- Tell your bank you're selling. For loans signed after 16 June 2019, the Banco de España says you can repay early at any time. Your contract may ask for notice, which can't be more than one month, and the bank must give you the information you need to weigh up the repayment within three working days.
- Ask for the certificate of the outstanding debt. The Banco de España says that to sell a mortgaged home, your bank has to issue a balance certificate (certificado de saldo) that includes any interest due and unpaid. The figure is normally worked out to a set date, so agree the completion date before you ask for it.
- Completion day. Seller, buyer and a representative of your bank meet at the notary. The buyer pays the amount on the certificate to the bank, by banker's draft handed over at the notary or by a bank-to-bank transfer, and pays the rest of the price to you.
- The bank signs the deed of cancellation. A mortgage is normally cancelled by a notarial deed in which the lender confirms it has been paid and agrees to the cancellation. It is the bank that signs, not you. The Banco de España says the bank must not charge for signing or for its representative's trip to the notary.
- The tax form is filed. Cancelling a mortgage falls under stamp duty (Actos Jurídicos Documentados), but it is exempt. The form must still be filed with the regional tax office, and nothing is paid. The consumer body OCU puts the deadline at 30 working days from the deed.
- The Land Registry removes the charge. The cancellation deed and the tax form go to the registry. OCU says the registry confirms the cancellation after a few weeks.
In a sale, someone usually does steps 5 and 6 for you. OCU notes that when the buyer has a mortgage of their own, the buyer's bank may insist on a gestoría (an administrative agent) and ask for a sum to be set aside for the notary, registry and gestoría fees.
An illustration
These are made-up round figures to show how the price is split, not typical costs.
| On completion day | Amount |
|---|---|
| Sale price | €250,000 |
| Paid to the seller's bank: balance on the certificate | €90,000 |
| Paid to the seller's bank: early repayment charge | €500 |
| Set aside for the cancellation paperwork | €500 |
| Retention if the seller isn't resident in Spain (3% of the price) | €7,500 |
| Paid to the seller | €151,500 |
The last-but-one line only applies to non-resident sellers. The buyer must withhold 3% of the price and pay it to the tax office on account of the seller's tax on the gain, whether or not there is a mortgage. See the 3% retention for non-resident sellers.
What it costs to cancel the mortgage
| Cost | What the official and consumer sources say |
|---|---|
| Early repayment charge | Only if your mortgage deed provides for one, and capped by law for newer loans (see below) |
| Certificate that the debt is paid | The Banco de España says the bank must provide it free |
| The bank attending the notary | No charge allowed for signing or travel |
| Notary's fee for the cancellation deed | OCU's guide, published in March 2022, put it at between €120 and €150 |
| Stamp duty | Exempt, though the form must be filed |
| Land Registry fee | Depends on the value of the mortgage |
| Gestoría, or the bank handling the paperwork | Their fee on top. If the bank does it, it must tell you the cost first |
The Banco de España says that after a sale the seller's own costs are the mortgage cancellation deed and the town hall's plusvalía tax. In other words, cancelling your mortgage is your cost, not the buyer's, unless the two of you agree something different. For everything else a seller pays, see the cost of selling a property in Spain.
Ask the notary and the gestoría for a quote beforehand.
Early repayment charges: the legal limits
Spain's 2019 mortgage law (Law 5/2019) gives borrowers the right to repay early and limits what the bank can charge. It covers loans signed since 16 June 2019, and older loans that have since been changed or moved to another lender. These are national rules, as the law and the Banco de España's pages stand in November 2026.
| Type of loan | Ceiling on the charge |
|---|---|
| Variable rate | Up to 0.25% of the amount repaid early during the first 3 years, or up to 0.15% during the first 5 years, whichever the contract chose. Nothing after that |
| Fixed rate | Up to 2% of the amount repaid early during the first 10 years, and up to 1.5% after that |
Two further points. The charge can never be more than the bank's financial loss from the early repayment, which the law tells it how to work out, so on a fixed-rate loan the charge may be well under the ceiling or nothing at all. And if your deed sets a lower charge, the lower one applies.
Mortgages signed before 16 June 2019
The 2019 law isn't retroactive, so an older loan follows its own deed. For home loans to individuals signed after an earlier law (Law 41/2007) took effect in December 2007, that law capped the charge for repaying early at 0.5% of the amount repaid in the first five years and 0.25% after that. Fixed-rate loans from that period can also carry a separate charge for interest-rate risk if the deed says so.
Whatever the date, the answer for your loan is in your mortgage deed and on the bank's certificate. Ask for the charge to be shown as a separate figure.
What if the mortgage is more than the sale price?
This is negative equity, and it changes the sale, because the bank doesn't have to release its charge for less than it is owed.
- The bank must agree. Under the Mortgage Law, a registered mortgage is cancelled by a deed in which the lender consents (or by a court judgment). Without the bank at the notary, the buyer can't get a clean title.
- The debt doesn't end with the property. The same law says a mortgage doesn't alter the borrower's unlimited personal liability, unless the mortgage deed expressly limits the debt to the property. So any shortfall is normally still owed after the sale.
- Your realistic options. Pay the difference from other money on completion day, or ask the bank before you accept an offer whether it will release the charge and agree terms for the rest. It isn't obliged to.
- Handing the property back. Dación en pago, giving the home to the bank to clear the debt, is a measure in Spain's Code of Good Practice for struggling borrowers. The Banco de España's page shows how narrow it is: it concerns the borrower's main home, with conditions that include a purchase price of no more than €250,000 and the borrower being below a set hardship threshold. A holiday home won't qualify.
If you're in this position, it's worth talking to the bank and a lawyer early, before any payments are missed.
Can the buyer take over your mortgage?
Yes, in principle. The registrars point out that the advantage for the buyer is not having to find that part of the price on the day. It needs the bank's consent, since the bank is swapping one borrower for another. The Banco de España adds that the bank can charge a fee for the change if the mortgage deed provides for one.
Lawyers generally advise making sure the bank formally releases the seller from the debt in the deed, so that you aren't left liable for a loan on a property you no longer own.
Does a mortgage change how you should sell?
It sharpens the sums. Every month the property is unsold you keep paying the mortgage, along with community fees and local taxes.
An estate agent selling on the open market will usually achieve the highest price, and when the mortgage is close to the property's value that extra money may be what clears the debt. If you can afford the payments while you wait, that is likely to leave you better off.
A cash buyer doesn't need a mortgage approval or a bank valuation, so there are fewer things to wait for and fewer things to fall through. But cash buyers usually offer less than the asking prices on the property portals. Before accepting any offer, check it against your bank's figure: balance, plus early repayment charge, plus selling costs and taxes.
Your House Bought introduces owners across Spain to its panel of vetted cash buyers, who show proof of funds first. There is one fixed fee of €299 to list a property with the panel, confirmed in writing first. Every offer is passed to you in writing, the decision is yours alone, and you can use an estate agent at the same time. A cash sale doesn't suit an owner whose mortgage is higher than a cash buyer is likely to pay.
A checklist for selling with a mortgage
- Your mortgage deed, to check the early repayment clause and the date you signed
- An up-to-date balance from the bank before you set the asking price
- The balance certificate, with the early repayment charge shown separately
- A date agreed with the bank for its representative to attend the notary
- If you live abroad, a power of attorney that covers paying off the mortgage (see selling a property in Spain from the UK)
- Afterwards, a fresh nota simple showing the charge has gone
For the full sale, step by step, see how to sell a property in Spain.
Questions people ask
Can I sell my property in Spain if I still have a mortgage on it?
Yes. The usual way is to pay the loan off from the sale price on the day the sale is signed. Your bank issues a certificate of the outstanding balance, the buyer pays that amount to the bank at the notary, and the bank signs a deed cancelling the mortgage. The buyer can also take over the loan, but only if the bank agrees.
Who pays to cancel the mortgage when a property is sold?
The seller, unless the contract says otherwise. The Banco de España says that after a sale the seller's costs are the mortgage cancellation deed and the town hall's plusvalía tax. Cancelling means a notary's fee, a Land Registry fee and, if someone handles the paperwork for you, their fee. The stamp duty form still has to be filed, but nothing is payable.
How much can a Spanish bank charge for paying a mortgage off early?
For loans signed since 16 June 2019, the law sets ceilings. On a variable rate the contract can allow up to 0.25% of the amount repaid in the first three years, or up to 0.15% in the first five, and nothing after that. On a fixed rate the ceiling is 2% in the first ten years and 1.5% afterwards. The charge can never be more than the bank's financial loss.
What happens if the sale price is less than the mortgage?
The sale can only complete if the bank agrees to cancel its charge, because a mortgage is cancelled by a deed the lender signs. Under Spanish mortgage law the borrower normally stays personally liable for any shortfall. Speak to the bank and a lawyer before you accept an offer. The usual answers are paying the difference yourself or agreeing terms with the bank.
Does the mortgage have to be paid off before the sale?
No. A buyer can ask for it to be cleared beforehand, but in practice it is usually paid off at the same appointment as the sale. Spain's land registrars describe three options for a buyer: the seller cancels first, the buyer holds back the amount owed from the price and pays the bank directly, or the buyer takes over the loan with the lender's consent.
Sources
- Venta del inmueble con hipoteca (Banco de España, Portal del Cliente Bancario)
- Cancelación registral de la hipoteca (Banco de España, Portal del Cliente Bancario)
- Early repayment (Banco de España, Bank Customer Portal)
- Ley 5/2019, reguladora de los contratos de crédito inmobiliario, artículo 23 y disposición transitoria primera (BOE)
- Ley 41/2007, artículos 7 a 9: compensación por desistimiento (BOE)
- Guía de cargas que se pueden encontrar inscritas en el Registro de la Propiedad (Registradores de España)
- ¿Cómo se inscribe una cancelación de hipoteca? (Registradores de España)
- Cómo cancelar la hipoteca paso a paso (OCU)
- Ley Hipotecaria, artículos 82, 105 y 140 (BOE)
- Dación en pago de la vivienda habitual (Banco de España, Portal del Cliente Bancario)
- Comisión por subrogación del deudor de una hipoteca (Banco de España, Portal del Cliente Bancario)
- Ganancias patrimoniales derivadas de la venta de inmuebles: manual de tributación de no residentes (Agencia Tributaria)
Related guides
The cost of selling a property in Spain: every fee and tax a seller pays
A seller in Spain usually pays an estate agent's commission (the consumer body OCU puts it at 2% to 6% of the price, plus 21% IVA), a lawyer, the town hall's plusvalía tax, tax on any gain (19% for non-residents and 19% to 30% for residents, as of November 2026) and the cost of clearing any mortgage. If you are not tax resident in Spain, the buyer also holds back 3% of the price and pays it to the tax office on your account.
The processHow to sell a property in Spain: a step-by-step guide
To sell a property in Spain you choose a route (estate agent, private sale or cash buyer), gather the paperwork, sign a private deposit contract (the contrato de arras) and then sign the deed of sale in front of a notary, which is when you are paid. The seller normally pays the town hall's plusvalía tax and any capital gains tax. If you are not tax resident in Spain, the buyer must hold back 3% of the price and pay it to the tax office.
The processDocuments needed to sell a property in Spain: a seller's checklist
To sell a property in Spain you need your title deed, a nota simple from the Land Registry, an NIE and passport for every owner, an energy performance certificate, the latest IBI receipt and, in a community, a certificate of your community fees. Some regions also require a habitation licence or cédula. A mortgage, an inheritance or a seller who cannot attend the notary each add a document.
General information about selling property in Spain, not legal, tax or financial advice. Rules and rates change and differ between regions, so check with a Spanish lawyer or tax adviser. Last checked 15 November 2026.