Agente Inmobiliario Colegiado API
Hipotecas y Financiación

Selling an Apartment with an Outstanding Mortgage: Steps, Costs and Risks

Practical seller-side guide to selling an apartment in Spain with an outstanding mortgage: payoff certificate, arras wording, notary signing, registry cancellation, costs, timing risks and tax traps.

Pedro Ochoa
Pedro Ochoa Director y Fundador
5 de julio de 2026
18 min de lectura
Apartment sale contract, mortgage payoff notes and keys prepared for notary signing in Spain

Foto por Pedro Ochoa Inmobiliaria en Unsplash

A mortgage on the apartment does not stop a sale. Silence about the mortgage can.

The awkward moment usually arrives after the buyer is ready: the nota simple shows the charge, the buyer asks whether the price will cancel the loan, the bank needs time to issue figures, and the notary wants the payment instructions clear before signing. The sale is still possible. The calendar is no longer casual.

The Consejo General del Notariado explains that the mortgage is the guarantee attached to the property, separate from the loan obligation, and the Banco de España sets out the steps for registry cancellation once the mortgage has been paid. For a seller, those two ideas matter more than any slogan: you can sell, but the debt and the registry charge need a clean path.

This article focuses on the seller-side mechanics: what to check before listing, what to put into arras, how cancellation at signing usually works, what costs can appear, which timing risks break deals, and which tax assumptions need professional review. For the wider sale folder, use the separate documents checklist. Here, the subject is narrower: selling while the mortgage is still outstanding.

This is practical guidance, not legal, tax, banking or notarial advice. Confirm sensitive points with your bank, notary, Land Registry, tax advisor and, where relevant, the buyer’s financing team.

Note

Practical rule: do not wait for the buyer’s offer to ask your bank for the payoff process. The sale can move fast only if the mortgage cancellation has already been mapped.

Can you sell an apartment with an outstanding mortgage?

Evidence base: Notariado mortgage guidance and Banco de España registry cancellation guidance.

Yes, in normal circumstances you can sell. The point is not whether a mortgaged apartment can be transferred. The point is whether the buyer, the seller’s bank, the notary and the Registry can see exactly how the outstanding loan will be paid and how the registered charge will be cancelled.

The Notariado makes a useful distinction. The loan is the money borrowed. The mortgage is the real estate guarantee given to the lender. It also explains that, except in a default sale scenario, the debtor remains the owner and can sell the property. That is the part many sellers misunderstand. The bank does not own the apartment simply because the mortgage is registered.

What the bank does have is a registered guarantee. A serious buyer will not ignore it, and a buyer’s lender will not treat it as decorative. If the nota simple shows a mortgage, the sale plan must answer four questions:

QuestionWhy it matters
How much is still owed on the signing date?The buyer needs to know how much of the price goes to the seller and how much goes to the bank.
Who receives the bank payment?The notary signing usually needs precise payment instructions.
What certificate or document proves payoff?The cancellation process needs evidence that the loan has been paid.
Who will handle registry cancellation after signing?The property should not remain with an old charge because nobody owned the final step.

The Banco de España explains that, once the mortgage has been paid, the debtor should request a debt-zero certificate from the bank. It also explains that the certificate must be issued free of charge. That certificate is not the same thing as registry cancellation, but it is the starting document for the notarial and registry route.

This creates the main seller-side lesson: do not sell “subject to sorting the mortgage later” unless the wording, money flows and deadline are precise. A mortgage balance can change by the day. Interest accrues. A direct debit may be due before signing. A bank may need internal notice. The notary may ask for documents before authorising the deed.

The buyer does not need a lecture on your mortgage. The buyer needs confidence that the sale price will deliver a property that can be registered cleanly.

Before listing: get the mortgage file ready

Evidence base: Law 5/2019 on real estate credit agreements and Banco de España registry cancellation guidance.

Before the apartment goes live, ask your bank for the practical sale information. Do it before photos, visits and price negotiations. Mortgage uncertainty is like a loose cable behind a wall: nobody sees it in the listing, but it can stop the whole installation later.

Start with the outstanding principal, the current monthly payment, the next debit date, the applicable early repayment or cancellation compensation, and the bank’s process for issuing a payoff certificate close to notary signing. If the loan was signed under or affected by the framework of Law 5/2019, Article 23 is especially relevant because it regulates early repayment and possible compensation. Do not apply those caps blindly. Ask the bank to confirm the exact amount for your contract and the intended signing date.

You also need the registry picture. Pull an updated nota simple and compare it with the mortgage you think you have. Sometimes the live loan and the registered charge do not feel aligned to the owner because the original mortgage amount, liability allocation, interest and costs appear in the registry in a technical way. That is normal. What is dangerous is discovering an old mortgage that was paid years ago but never cancelled at the Registry.

Use this pre-listing checklist:

Item to request or checkPractical reason
Outstanding balance todayShows whether the asking price leaves enough room after debt and costs.
Estimated payoff on a target signing datePrevents a last-minute gap caused by accrued interest.
Early repayment compensation, if anyAffects net proceeds and negotiation room.
Bank instructions for sale cancellationClarifies whether the bank will attend, issue certificate, or require payment in a specific form.
Debt-zero certificate processNeeded after payoff for cancellation steps.
Registry status of the mortgageConfirms what the buyer will see in the nota simple.
Existing direct debits or linked productsAvoids an unexpected payment between arras and notary.

The Banco de España indicates that the bank may charge fees and expenses if the client asks the bank to handle the notarial and registry procedures, provided it informs the client beforehand. That is different from issuing the debt-zero certificate, which the same guidance says must be free.

This distinction matters when calculating your net price. A seller may say, “I owe EUR180,000 and I am selling for EUR320,000, so I will receive EUR140,000.” That number may be close, but it is incomplete. You still need to account for any early repayment compensation, registry cancellation costs, notary-related costs for the cancellation deed, agency fees, taxes, community adjustments and any agreed sale expenses.

If you are also preparing the wider paperwork, cross-check this mortgage file with the documents guide for selling an apartment in Barcelona. The document checklist tells you what the sale folder needs. This mortgage file tells you whether the price can actually travel from buyer to bank to seller without confusion.

Before arras: write the mortgage mechanics into the deal

Evidence base: Notariado mortgage guidance and Law 5/2019 on early repayment and loan information.

The arras contract should not pretend the mortgage is a footnote. If the apartment will be sold with a registered mortgage that must be cancelled at signing, the arras should say so plainly.

This is where many sales become fragile. The price is agreed, the deposit is paid, and the contract simply says the property will be transferred free of charges. That sounds clean, but it leaves the real mechanism outside the document. If the buyer later asks how the mortgage will disappear, everyone starts reconstructing the conversation from memory. Memory is a poor contract manager.

Before signing arras, align these points:

Arras pointWhat should be clear
The mortgage appears in the nota simpleThe buyer acknowledges the current charge and the seller commits to cancellation at or before completion.
The sale price will be used partly to repay the loanThe payment split should be expected, not improvised at notary.
Payoff amount will be updated before signingThe exact amount may depend on the completion date.
Cancellation costs are allocatedThe contract should state who pays what, subject to legal and professional review.
Completion deadline is realisticThe bank, notary and buyer’s lender need time to coordinate.
Consequence of non-cancellation is definedThe buyer needs a remedy if the seller cannot deliver as promised.

If the buyer is also financing the purchase, two banks may be involved: the seller’s bank receiving the payoff and the buyer’s bank issuing mortgage funds. The buyer’s lender will normally want clarity on existing charges and completion flows. A vague arras contract can create unnecessary friction for the buyer’s mortgage file.

The Notariado’s explanation that the mortgage is a guarantee over the property helps frame the issue: the buyer is not buying your personal debt, but the buyer needs the property to be delivered without the charge that secured that debt. The BOE text of Law 5/2019 confirms that the borrower can repay early and that conditions and possible compensation must be identified. Those are not decorative details. They determine the amount needed on signing day.

A practical arras clause should avoid heroic promises. Do not write that the property is already free of charges if the nota simple says otherwise. Better wording, subject to legal review, usually says that the property is currently charged with a mortgage in favour of the lender, that the seller will cancel the outstanding loan with part of the sale price at completion, and that the seller will provide the necessary bank certificate and cancellation documentation according to the agreed procedure.

For wider arras checks, use the Barcelona deposit contract guide. Read it with one extra question in mind: does this arras explain the mortgage mechanics well enough for a stranger to execute the signing without calling everyone twice?

Warning

Avoid the weak phrase: “The seller will cancel the mortgage.” It sounds fine, but it does not say when, with whose money, under what certificate, who pays cancellation costs, or what happens if the bank is not ready.

At notary: how cancellation usually works on signing day

Evidence base: Banco de España cancellation steps and ATC mortgage cancellation AJ7 guidance.

On completion day, the clean version is simple: part of the buyer’s price pays the seller’s mortgage, the rest goes to the seller, and the cancellation process is documented so the registry charge can be removed. The real version needs coordination.

Before the appointment, the seller’s bank should provide an updated payoff amount for the agreed signing date. That figure should include principal, accrued interest and any compensation or fees confirmed by the bank. If the buyer is using a mortgage, the buyer’s bank or notary office may coordinate payment instruments. If the buyer pays from their own funds, the notary still needs the payment method and recipient details to match the deed.

A common completion flow looks like this:

StepWhat happens
The seller’s bank confirms the payoff amountThe amount is calculated close to signing because interest and charges may vary by date.
The deed of sale identifies the payment splitOne part of the price repays the mortgage; the remaining part goes to the seller.
The bank receives the payoffThis may be by bank cheque, transfer or another accepted method.
Debt-zero certificate is issued or made availableBanco de España says the certificate must be free.
Cancellation deed is signed or preparedThe bank representative or authorised process formalises cancellation.
AJD form is filed where applicableIn Catalonia, ATC treats public-deed mortgage cancellation as subject to AJD but exempt from payment, and model 600 must still be filed.
Registry cancellation is submittedThe Land Registry removes the charge once documentation is complete and fees are paid.

The Banco de España describes the sequence of certificate, notary, AJD form and Registry submission. It also states that the bank should not charge for the bank’s signature procedure or travel to the notary. The Agencia Tributaria de Cataluña explains that, in Catalonia, mortgage cancellation formalised in a public deed is subject to AJD but exempt from payment, with model 600 filing required.

That “subject to AJD but exempt from payment” wording is the kind of detail sellers misread. Exempt from payment does not always mean no form, no process and no timing. In Catalonia, the ATC page is clear: the model 600 must be filed for the public-deed cancellation even though the operation is exempt from payment.

Who handles the final paperwork? There are several possibilities: the seller, the seller’s bank, a gestor, the buyer’s bank, or a professional appointed for completion. The right answer depends on the transaction. The wrong answer is nobody. If nobody owns the registry cancellation, the buyer may later see an old charge still appearing even though the loan was financially repaid.

In a well-run sale, the notary appointment should feel almost boring. The numbers match. The payment route is known. The bank’s document is ready. The cancellation route is assigned. Boring is good here.

Costs: what can appear and what should not be confused

Evidence base: Law 5/2019 early repayment rules and ATC mortgage cancellation AJ7 guidance.

A sale with an outstanding mortgage can create several cost categories. They are often mixed together in conversation, which is how sellers end up surprised at the notary table.

Separate them like this:

Cost or amountWhat it isWho confirms it
Outstanding principalThe capital still owed to the bankSeller’s bank
Accrued interest to signing dateInterest generated until payoffSeller’s bank
Early repayment compensation, if applicableContractual or legal compensation for early repaymentSeller’s bank, checked against deed and law
Debt-zero certificateBank certificate proving loan payoffBank, free according to Banco de España
Cancellation deed notary costNotarial formalisation of mortgage cancellationNotary office
Registry cancellation feeRegistry cost for removing the chargeLand Registry or gestor
AJD filing in CataloniaModel 600 filing for public-deed cancellationATC guidance, gestor or tax advisor
Gestoria fee, if usedAdministrative handling of filings and registry workGestor or bank if contracted

Article 23 of Law 5/2019 regulates early repayment and possible compensation. The legal text includes different rules for variable and fixed-rate loans, and it also refers to the lender’s financial loss. Do not reduce this to a generic “the bank charges 0.25%” or “there is no fee after three years”. The exact answer depends on your contract, loan type, signing date and the bank’s calculation.

The ATC page on mortgage cancellation in Catalonia adds a different point: AJD for mortgage cancellation formalised in a public deed is subject to AJD but exempt from payment, and the self-assessment obligation remains. That is not the same as the notary fee, Registry fee or a gestoria fee.

Now the most common confusion: paying the loan is not the same as cancelling the mortgage at the Registry. When the loan is paid, the debt can be financially extinguished. The registered charge can still remain visible until the notarial, tax and registry steps are completed. Buyers, banks and future transactions care about that difference.

There is also a timing cost. If the seller delays the cancellation plan and the buyer’s mortgage offer expires, the deal may need new bank approvals. If the payoff figure is wrong, the notary appointment may be postponed. If the old mortgage was paid years ago but never cancelled, the seller may have to reopen a process that should have been closed long before listing.

For sellers, the practical net calculation should be:

LineExample format
Agreed sale priceEUR X
Less outstanding mortgage payoffEUR X
Less early repayment compensation, if anyEUR X
Less mortgage cancellation notary, registry and handling costsEUR X
Less agency, sale and other agreed costsEUR X
Less estimated tax impactTo be confirmed by tax advisor
Estimated net before final adjustmentsEUR X

Do this before accepting the final offer. A price that looks acceptable before mortgage costs may feel different after the payoff amount, sale expenses and tax estimate are written on one page.

Risks that break timing

Evidence base: Banco de España cancellation process and Notariado mortgage guidance.

Most mortgage-related sale problems are not dramatic legal mysteries. They are coordination failures.

The seller asks the bank too late. The payoff certificate is calculated for the wrong date. The buyer’s bank wants the old charge cancelled in a specific way. The notary office has not received the payment instructions. A co-owner is abroad. The mortgage was transferred, merged or serviced by a different entity. The old paid mortgage still appears in the Registry. None of these problems automatically kills a sale. Each can add days or weeks.

Watch these timing risks:

RiskHow it affects the sale
Payoff amount requested too earlyThe figure may be outdated by signing day.
Payoff amount requested too lateThe notary appointment may not have the bank confirmation in time.
Wrong payment methodA bank cheque, transfer or internal process may not match what the lender accepts.
Old mortgage paid but not cancelledThe Registry still shows a charge and the buyer asks for removal.
Bank representative unavailableCancellation deed or signature process may need another date.
Buyer mortgage conditionsThe buyer’s lender may require specific charge cancellation evidence.
Co-owner or power of attorney issueThe mortgage plan is ready, but the sale deed cannot be signed.
Tax or gestoria filing delayRegistry cancellation waits for the supporting documents.

The Banco de España page is useful because it separates the steps after payoff: certificate, notary, AJD form and Registry. The Notariado page is useful because it reminds sellers that the mortgage is a guarantee over the property, so it naturally becomes part of the buyer’s due diligence.

The best timing buffer is not a longer listing period. It is earlier preparation. Before visits begin, know who at the bank issues the payoff figure. Before arras, know whether the cancellation will happen at signing or immediately after. Before notary, know who files the AJD form and who submits to the Registry.

A small detail: if the mortgage has linked products, closing the loan may interact with insurance, accounts, cards or direct debits. That is not the buyer’s problem, but it can affect the seller’s cash flow and paperwork after completion. Ask the bank for the full closure procedure, not just the payoff amount.

This is also why the arras deadline should be realistic. A 30-day signing may be possible in a straightforward cash purchase with a responsive bank. It may be tight if two banks, foreign owners, powers of attorney, registry issues or inheritance documents are involved. The calendar should match the file, not the excitement of the offer.

Tax points sellers often misread

Evidence base: AEAT guidance on selling property and TEAC criterion 00/02995/2025.

The mortgage payoff is a cash movement. The tax result of selling the apartment is a separate analysis.

The AEAT states that when you sell a property, you must include a capital gain or loss in your income tax return, and that a habitual residence gain may be exempt in certain cases. That is the starting point. It does not mean every seller pays tax. It does not mean every seller is exempt. It means the sale has to be analysed.

Common misconceptions:

MisconceptionSafer reading
”I sold for less because the bank took part of the price, so there is no gain.”The mortgage payoff does not automatically eliminate the capital gain calculation.
”The mortgage was paid at the notary, so there is nothing to declare.”The sale still needs income tax review.
”It was my habitual residence, so I never pay.”Exemptions depend on specific requirements.
”The old home deduction always ignores the final mortgage payoff.”TEAC has addressed a specific criterion, but it must be checked against the taxpayer’s facts.
”AJD is exempt, so there are no tax forms.”In Catalonia, public-deed cancellation is exempt from payment but model 600 still applies.

The TEAC criterion from 20 October 2025 is worth mentioning because it deals with a narrow but relevant situation: a taxpayer selling what had been their habitual residence and using part of the sale price to cancel the outstanding mortgage. The criterion concerns the base for the historic habitual residence investment deduction, not a general rule for every seller. If you are in that old regime, ask a tax advisor to review it. Do not translate one administrative criterion into a universal internet rule.

Use the TEAC criterion as a warning against simplistic tax answers. Use the AEAT sale guidance as the baseline: selling an inmueble belongs in your tax return analysis.

One more practical point: tax planning should happen before accepting the sale price. If the net proceeds after mortgage payoff, costs and tax are too low for your next move, discovering that after arras is painful. This is especially true when the sale funds are needed to buy another home, settle an inheritance, divide proceeds after divorce, or repay family debt.

For a seller with an outstanding mortgage, the right tax question is not “does paying the bank reduce my tax?” The right question is: what is the full tax treatment of this sale, given acquisition value, sale value, costs, habitual residence status, age, reinvestment, old deductions and the exact mortgage payoff route?

Practical sequence for sellers

Evidence base: Banco de España cancellation guidance and ATC mortgage cancellation guidance.

This is the seller sequence I would use before putting a mortgaged apartment into a serious sale process.

MomentAction
Before listingRequest outstanding balance, early repayment conditions and bank cancellation procedure.
Before publishing priceEstimate net proceeds after mortgage payoff, sale costs and tax review.
Before visitsPull nota simple and check the registered mortgage details.
Before accepting an offerConfirm that the proposed price covers the mortgage payoff and the seller’s minimum net target.
Before arrasWrite the mortgage cancellation mechanics into the contract.
After arrasAsk the bank for an updated payoff figure for the target signing date.
Week before notaryConfirm payment method, recipient, certificate process and cancellation deed route.
At signingMake sure the deed reflects the payment split and cancellation plan.
After signingConfirm debt-zero certificate, AJD filing where applicable, and Registry cancellation submission.
After registryKeep evidence that the charge has been cancelled.

The Banco de España sequence is the backbone: debt-zero certificate, notary, AJD form and Land Registry. In Catalonia, the ATC AJ7 page adds the local tax filing detail for cancellation formalised in a public deed.

A seller who handles those steps early can negotiate from a stronger position. The buyer sees that the mortgage is not a hidden defect. The notary sees a clear path. The buyer’s bank sees fewer moving parts. The seller sees the real net number before committing.

The next action is small: ask your bank for the current outstanding balance, the estimated payoff procedure for sale signing, and the cost or compensation that would apply if the loan is repaid on a target date. Put those figures next to your expected sale price. If the numbers still work, prepare the arras and notary route with the same discipline.

For buyers or sellers comparing whether to keep the loan, repay early or restructure before a sale, this separate guide may help: Reduce mortgage interest and save thousands of euros in 2026. For this sale, the priority is simpler: make the mortgage cancellation boring before the buyer makes it urgent.

Sources

  1. Cancelación registral de la hipoteca Banco de España · Primary source
  2. Hipotecas y préstamos Consejo General del Notariado · Primary source
  3. Ley 5/2019 reguladora de los contratos de crédito inmobiliario Boletín Oficial del Estado · Fri Mar 15 2019 00:00:00 GMT+0000 (Coordinated Universal Time) · Primary source
  4. Cancelación de hipoteca, tarifa AJ7 Agencia Tributaria de Cataluña · Primary source
  5. Qué ocurre cuando vendo un inmueble Agencia Estatal de Administración Tributaria · Fri Mar 27 2026 00:00:00 GMT+0000 (Coordinated Universal Time) · Primary source
  6. TEAC criterio 00/02995/2025 Tribunal Económico-Administrativo Central · Mon Oct 20 2025 00:00:00 GMT+0000 (Coordinated Universal Time) · Primary source
Tags:
sell apartment with mortgage Spainoutstanding mortgage salemortgage cancellation Spainselling apartment Barcelonamortgage payoff at notaryregistry cancellation mortgagesale without mistakesSpain property sale 2026
Pedro Ochoa

Pedro Ochoa

Director y Fundador

Fundador de Pedro Ochoa Inmobiliaria con más de 27 años de experiencia en el mercado inmobiliario de Barcelona. Experto en inversión y asesoramiento patrimonial.

Can we help you find your next property?

Our team of experts in the Barcelona real estate market is ready to advise you. Find the perfect home with us.