Step 1: debt certificate
A few days before closing, ask the bank for a certificate of the outstanding debt as of a date close to closing. It includes outstanding principal, interest and the fee, if any. Request it with time to spare, because the amount is updated based on the payment date.
Step 2: closing in front of a notary
The buyer hands over the price. One portion, the amount covering the debt, is paid to the bank (usually by bank check made out to the institution) and the rest to you. This clears the debt. For the closing in detail: what happens at the notary's office when you sell.
Step 3: cancellation deed and registration
The mortgage cancellation is also formalized in a deed and registered in the Registro de la Propiedad so the lien disappears from the nota simple (an official land-registry extract showing ownership and registered charges). It is usually handled through a gestoría. If it isn't done, the lien remains on record even though the debt is paid, which can cause problems later.
The early cancellation fee
Ley 5/2019, regulating real estate credit contracts, limits the early repayment fee, and its limits depend on the interest rate type (fixed or variable) and the years elapsed. If your mortgage predates that law, what was agreed in the contract applies. Check your deed and article 23 of the law to see what applies to you.
If the price doesn't cover the debt
If the sale price is lower than what you owe, you'll have to cover the difference or negotiate with the bank. It's another reason to know the realistic price before selling, with a valuation based on comparables.
Frequently asked questions
Can I sell an apartment that still has a mortgage?
Yes. It's very common. The mortgage is cancelled with the buyer's money at closing itself.
How long does the bank take to give me the debt certificate?
It depends on the institution. Request it several days before closing.
Do I have to pay for the registry cancellation?
Cancellation costs are usually borne by the owner, although it may vary depending on the contract. Ask your bank.
What happens if the buyer also needs a mortgage?
The transaction is coordinated between both banks and the notary. That's why it's best to start early.
Official sources
- Ley 5/2019 on real estate credit contracts (BOE)
- Banco de España: Bank Customer Portal
- Colegio de Registradores de España
This guide is for information only and does not replace legal or financial advice for your specific case. Terms depend on your contract.
Want to sell your apartment in Madrid?
Non-binding estimate with real comparables from your area. If the listing is exclusive, we don't charge the owner a commission.
Request a valuationKeep reading
- Arras when selling an apartment: types and what if someone backs out
- Homeowners' association when selling: debts and certificate
- How long it takes to sell an apartment in Madrid
- Complete guide to selling your apartment in Madrid
- Real estate glossary
Areas where we sell: Barrio de Salamanca · Recoletos · Chamberí · Almagro · Centro · Justicia · Chamartín · El Viso · Retiro · Jerónimos · Tetuán · Ciudad Lineal · Arganzuela · Aravaca · Pozuelo de Alarcón · Boadilla del Monte · Majadahonda · Las Rozas · Torrelodones · Alcobendas-La Moraleja · San Sebastián de los Reyes · Tres Cantos.