Selling a Property While Repaying a Mortgage in Morocco (2026)

Selling a Property While Repaying a Mortgage in Morocco (2026)
Summarize this article with AI:ChatGPTClaudePerplexityGrok

Key takeaways

  • This 2026 guide explains how selling a mortgaged property in Morocco works: the mechanics of the mortgage, the three ways to structure the sale, the seller's tax, realistic timelines, a worked example and a net-proceeds simulator.
  • Consider a British owner who bought a villa in Hay Mohammadi (Agadir) in 2019 for 2,100,000 MAD (≈ $210,000), financed by a 1,600,000 MAD (≈ $160,000) loan over 20 years.
  • In 2026 they sell for 2,850,000 MAD (≈ $285,000); the outstanding capital due is 1,210,000 MAD (≈ $121,000).
  • The outstanding-balance certificate is obtained in 8 days; a notarial pre-contract is signed with a 285,000 MAD (≈ $28,500) advance held in escrow and a mainlevée clause; the final deed follows 52 days later.

Selling a property in Morocco before you have finished repaying the loan that financed it is entirely possible, and very common. The key is to organise, in a single coordinated movement, the payment of the price, the early repayment of the loan and the removal of the mortgage from the title (the mainlevée). This 2026 guide explains how selling a mortgaged property in Morocco works: the mechanics of the mortgage, the three ways to structure the sale, the seller’s tax, realistic timelines, a worked example and a net-proceeds simulator.

Drawing on more than +25 years of expertise, Armonia Solutions handling sales in Marrakech, Agadir and along the coast, we set out exactly what a British or international owner needs to know to sell a financed property cleanly, without the bank’s charge blocking the transfer.

What purchase budget in Morocco?

Estimate based on your down payment and target monthly payment.

Key figures

Item2026 reference
Property profit tax (TPI) rate20% of net taxable profit
Minimum contribution3% of the sale price, even with no profit
Outstanding-balance certificate5–15 days, free to 500 MAD ($50)
Typical early-repayment penaltyAbout 1% of the capital repaid
Mortgage release (mainlevée) after the deedAround 5 weeks
Tax declaration deadlineWithin 30 days of the sale, to the DGI

How the mortgage works when you sell

When a bank finances a property purchase in Morocco, it registers a first-rank mortgage on the land title at the Conservation Foncière. This registration protects the bank: as long as it has not been cancelled, the property cannot be transferred to a buyer without the debt being settled. Selling a mortgaged property therefore means coordinating, in the same operation, the payment of the price, the early repayment of the loan, and the cancellation of the registration, the mainlevée.

StepWhoTime (2026)Indicative cost
Request the outstanding-balance certificateSeller, with their bank5–15 daysFree to 500 MAD ($50)
Notarial pre-contract with mainlevée clauseNotary1–2 weeksIncluded in fees
Early repayment of the loanNotary, from the priceOn signing day~1% penalty
Mortgage release at the land registryBank, then ANCFCC~5 weeks after the deedRegistry fees

Three ways to sell with an outstanding loan

StructurePrincipleWhen to use it
1. Settlement from the sale priceThe notary deducts the outstanding capital from the price paid by the buyer and pays it directly to the bankGeneral case: the price comfortably covers the debt
2. Loan transfer to the buyerThe buyer takes over the loan on existing terms, with the bank’s express agreementWhen the old rate is better than the market and the buyer is creditworthy
3. Bridge loan on the new projectThe seller buys their next property first; the bank advances 50–70% of the value of the property being soldFor a seller repurchasing immediately

In more than nine files out of ten in Marrakech and Agadir, the first structure is used: it is the simplest, and the notary’s escrow account guarantees that the bank is paid before the balance reaches the seller. The loan transfer is rare because the bank must re-underwrite the buyer; the bridge loan suits owners who must secure a new home before selling, at the cost of interim interest.

Seller’s taxation: the property profit tax (TPI)

Selling under a loan does not change the taxation of the disposal: the seller remains liable for the property profit tax, calculated on the capital gain realised.

Element2026 rule
TPI rate20% of the net taxable profit
Minimum contribution3% of the sale price, even with no profit
Principal-residence exemptionOccupied as a main home for at least 6 years at the date of sale
Profit calculationSale price − (acquisition price indexed by official coefficients + acquisition costs + justified works + loan interest paid)
Declaration and paymentWithin 30 days of the sale, to the Direction Générale des Impôts

A point often overlooked: the loan interest actually paid during the holding period is deductible from the taxable profit, on production of bank statements. For a long-term loan, this deduction reduces the TPI appreciably, which is one more reason to keep every document from the purchase onward.

Net-proceeds simulator

Estimate what you keep after settling the bank and the tax.





Illustrative example (simulation): selling a mortgaged villa in Agadir

Illustrative example (simulation), indicative figures, not a real client case.

Consider a British owner who bought a villa in Hay Mohammadi (Agadir) in 2019 for 2,100,000 MAD (≈ $210,000), financed by a 1,600,000 MAD (≈ $160,000) loan over 20 years. In 2026 they sell for 2,850,000 MAD (≈ $285,000); the outstanding capital due is 1,210,000 MAD (≈ $121,000).

The outstanding-balance certificate is obtained in 8 days; a notarial pre-contract is signed with a 285,000 MAD (≈ $28,500) advance held in escrow and a mainlevée clause; the final deed follows 52 days later. On signing day, the notary allocates the price: 1,210,000 MAD (≈ $121,000) to the bank to clear the loan, 12,100 MAD (≈ $1,210) of early-repayment penalty (the contractual 1%), and the balance to the seller after a tax provision.

On tax: the gross profit of 750,000 MAD is reduced to about 524,000 MAD (≈ $52,400) after indexing the acquisition price and deducting justified acquisition costs (147,000 MAD ≈ $14,700) and the deductible share of interest paid (≈ 79,000 MAD ≈ $7,900). TPI is therefore 20% × 524,000 = 104,800 MAD (≈ $10,480), higher than the 85,500 MAD (≈ $8,550) minimum contribution, so it is the one that applies. The final net to the seller is around 1,510,000 MAD (≈ $151,000). The mortgage release is issued five weeks after the deed, at which point the 50,000 MAD (≈ $5,000) held in escrow for that purpose is released.

Checklist: selling a mortgaged property smoothly

  • Ask your bank for a dated outstanding-balance certificate before listing.
  • Confirm the early-repayment penalty written in your loan contract.
  • Choose the right structure, usually settlement from the sale price.
  • Insist on a notarial pre-contract that includes an explicit mainlevée clause.
  • Have the notary settle the bank directly from the escrowed price.
  • Keep an escrow provision until the mainlevée is registered at the land registry.
  • Gather acquisition documents, works invoices and loan-interest statements for the TPI.
  • File and pay the TPI within 30 days of the sale.

Real timelines and a typical schedule

From listing to the final deed, a mortgaged sale in Marrakech or Agadir typically runs from two to three months when the price clearly covers the debt: a week or two to obtain the balance certificate and sign the pre-contract, then four to eight weeks to the deed depending on the buyer’s own financing. The mortgage release itself lands a few weeks after signing, which is why a small sum is kept in escrow until the registry confirms the charge is cancelled. The single biggest cause of delay is a buyer relying on a mortgage of their own: their bank’s timetable, not yours, then sets the pace.

Common mistakes

The most damaging error is to agree a price without first checking the outstanding capital and the early-repayment penalty, a seller can discover too late that the proceeds barely clear the debt. Others sign a pre-contract with no mainlevée clause, leaving the release of the mortgage to chance, or forget that the TPI falls due within 30 days and must be provisioned from the price. Finally, many sellers overlook the deductible loan interest and overpay tax. The remedy is preparation: figures from the bank, a notary who structures the escrow correctly, and a complete document file for the tax authority.

Coordinating with the buyer’s bank

When the buyer funds their purchase with a mortgage of their own, two banks must align on the same signing day: yours, which is being repaid and will issue the release, and theirs, which is releasing the loan funds. The notary sits at the centre of this, holding the price in escrow and only paying your bank once the buyer’s funds have arrived. In practice this is where most timetables slip, because the buyer’s bank conducts its own valuation and underwriting on a schedule you do not control. The safeguards are simple but important: agree a realistic completion window in the pre-contract, include a financing condition for the buyer so that a refused loan does not leave you exposed, and keep your own outstanding-balance certificate fresh, since banks date it to the day of the deed. A seller who anticipates the buyer’s bank timeline rather than assuming their own pace will hold avoids the most common late surprise.

Preparing your documents for the tax authority

The property profit tax rewards good record-keeping, so assemble the file early. You will want the original purchase deed showing the acquisition price, the invoices for acquisition costs such as notary and registration fees, invoices for any improvement works carried out during ownership, and the bank statements evidencing the loan interest you paid over the years. Each of these legitimately increases the cost base and therefore reduces the taxable profit; without them, the tax is calculated on a higher gain. For a non-resident who has owned the property for a decade, the deductible interest alone can run to tens of thousands of dirhams, so the difference between a complete and an incomplete file is real money. Hand the package to your notary, who files and pays the TPI within the thirty-day deadline on your behalf, deducting the provision from the sale proceeds.

What British and international owners should understand

Owners used to the British conveyancing system expect their solicitor to redeem the mortgage and register the discharge almost invisibly at completion. Morocco reaches the same outcome through different hands: it is the notary, not a solicitor, who holds the price in escrow, pays the bank, and lodges the deed, while the mortgage release is a separate registry act at the ANCFCC that arrives a few weeks later. For a non-resident, the practical consequences are two. First, plan for a short escrow tail after signing before the title is fully clear. Second, keep every document from your original purchase, indexed acquisition price, costs, works and interest all reduce the Moroccan profit tax, exactly the kind of paperwork that is easy to lose when you live abroad. Treating the notary as your project manager from the outset is the cultural key.

FAQ: selling a mortgaged property in Morocco

1. Can I sell before I have finished repaying the loan?
Yes. The outstanding capital is simply settled from the sale price on signing day, and the mortgage is then released.

2. Do I need the bank’s agreement to sell?
You do not need permission to sell, but you must obtain the outstanding-balance certificate and coordinate the early repayment and the mainlevée with the bank.

3. What exactly is a mainlevée?
It is the cancellation of the mortgage registration on the title at the land registry, issued once the bank confirms the loan is fully repaid.

4. How much does early repayment cost in Morocco?
Typically around 1% of the capital repaid, but check the exact clause in your loan contract.

5. What if the sale price does not cover the outstanding capital?
The seller must make up the difference, or negotiate with the bank; the transfer cannot complete while the debt remains unsettled.

6. Can the buyer finance their purchase with their own mortgage?
Yes, and it is common, but the buyer’s bank timetable will then largely determine the completion date.

7. Is the loan interest I paid deductible from the tax?
Yes. Interest actually paid during the holding period is deductible from the taxable profit on production of bank statements.

8. When must I declare and pay the TPI?
Within 30 days of the sale, to the Direction Générale des Impôts.

9. How long until the mortgage is fully released?
Usually around five weeks after the deed; keep an escrow provision until the registry confirms the cancellation.

Conclusion

Selling a mortgaged property in Morocco is a question of sequencing, not of obstacles. Get the balance certificate, choose the settlement-from-price structure, insist on a mainlevée clause, let the notary pay the bank from escrow, and provision the property profit tax, and the sale completes in two to three months with the title cleared shortly after. If you own a financed property in Marrakech, Agadir or Taghazout and want to sell cleanly, Armonia Solutions can coordinate the bank, the notary and the tax file from start to finish. Read our guides to the property sale tax (TPI) in Morocco and on whether to sell or rent your property.

Sources

Direction Générale des Impôts (property profit tax / TPI rules and declaration): tax.gov.ma. Mortgage registration and release: National Agency for Land Registry, Cadastre and Cartography (ANCFCC).