Selling Your Property in Morocco as a Foreign Owner: Capital Gains, Procedure and Repatriating the Proceeds

Selling Your Property in Morocco as a Foreign Owner: Capital Gains, Procedure and Repatriating the Proceeds
Summarize this article with AI:ChatGPTClaudePerplexityGrok

Key takeaways

  • At Armonia Solutions, with more than 25 years of expertise in property management and concierge services across Marrakech and Agadir, we support foreign owners at every stage of a sale.
  • The declaration must be filed within 30 days of the sale with the Moroccan tax administration.

Selling a property in Morocco when you live abroad raises three very concrete questions: how much capital gains tax you will owe, how the transaction unfolds before the notary and the Land Registry, and above all how to transfer the sale proceeds to your country of residence lawfully. Many British and international sellers discover too late that an incomplete foreign-exchange file can block the repatriation of funds for months. This guide brings together the essential markers for selling with peace of mind, from preparing your file to the final transfer abroad.

At Armonia Solutions, with more than 25 years of expertise in property management and concierge services across Marrakech and Agadir, we support foreign owners at every stage of a sale. Below you will find how Moroccan capital gains tax works, the step-by-step procedure, the rules for repatriating your money and the practical mistakes that cost non-resident sellers the most time.

Is your project in Morocco well structured?

4 questions for a quick diagnosis.

Key figures for a foreign owner’s sale

The benchmarks below are indicative and depend on your specific situation, the property and the completeness of your file.

ItemIndicative benchmarkComment
Capital gains tax (TPI)20 percent of the net profitLevied on the gain, not the full price
Minimum contribution3 percent of the sale priceApplies when it exceeds the 20 percent figure
Main-residence exemptionAfter 6 years of continuous occupationUnder conditions set by Moroccan law
Tax declaration deadline30 days after the saleFiled with the Moroccan tax administration
Average duration of a sale2 to 4 monthsDepending on the file and the buyer’s financing
Repatriation conditionInitial investment traced in foreign currencyControlled by the Office des Changes

For a British or international owner, the single most important rule to remember is this: the right to send your money home later is built at the moment you buy, by documenting that your original investment entered Morocco in foreign currency.

Who can sell and under what legal framework

A foreign national can freely own and sell real estate in Morocco, with the notable exception of agricultural land. A flat, a villa or a riad in an urban area can be sold to a Moroccan or a foreign buyer without any special authorisation. The sale is formalised by a deed drawn up by a notary, or in some cases by an adoul, and registered with the National Agency for Land Registry, Cadastre and Cartography.

Non-residents are taxed in Morocco on gains arising from Moroccan immovable property. This is confirmed by the United Kingdom to Morocco Double Taxation Convention, in force since 1990, whose Article 13 provides that gains from the disposal of immovable property may be taxed in the State where the property is situated. In practice, a UK resident pays the Moroccan tax on the sale and then claims relief in the United Kingdom to avoid being taxed twice on the same gain. Owners resident in other countries should check their own treaty with Morocco, which usually follows the same logic for immovable property.

Understanding this framework early matters, because it shapes both your net proceeds and the paperwork your accountant at home will need.

Capital gains tax (TPI): how it is calculated

Selling a property triggers the Tax on Real Estate Profits, known by its French acronym TPI. The principle is straightforward in spirit: the tax falls on the gain realised between purchase and sale, not on the total price. The taxable profit is the sale price minus the acquisition cost, the latter being revalued by official coefficients that account for inflation, plus documented acquisition and improvement expenses.

The rate is 20 percent of that net profit. Crucially, Moroccan law sets a minimum contribution of 3 percent of the sale price: if 20 percent of your calculated gain comes out below that floor, you pay the 3 percent instead. A main residence occupied continuously for at least six years can qualify for an exemption, which rarely applies to a non-resident owner but is worth checking. Keeping every invoice, the original purchase deed and proof of renovation costs is what allows you to reduce the taxable gain legitimately.

The declaration must be filed within 30 days of the sale with the Moroccan tax administration. A local notary or accountant handles this filing and calculates the amount due, which is typically withheld at completion.

The sale procedure step by step

The process usually begins with a preliminary sale agreement setting the price, the deposit and the conditions. The notary then gathers the documents: the property title, a recent certificate of ownership from the Land Registry, proof that local taxes and syndic charges are paid, and the lifting of any mortgage, known as mainlevee, if the property was financed by a loan. Once the file is complete, the final deed is signed, the balance is paid, the TPI is settled and the transfer of ownership is registered.

For a seller living abroad, physical presence is not mandatory. You can grant a power of attorney to a trusted representative or to the notary’s office to sign on your behalf, which is common practice and perfectly secure when properly drafted. Planning this in advance avoids costly return trips and keeps the timeline, generally two to four months, on track.

If you are weighing your options before committing, our analysis on whether to sell or rent your villa sets out the trade-offs a non-resident owner should consider first.

Repatriating the sale proceeds out of Morocco

This is where most foreign sellers underestimate the paperwork. Morocco operates exchange controls administered by the Office des Changes. A non-resident who invested in foreign currency, and who registered that investment at the time of purchase, has the right to repatriate the proceeds of the sale, including the capital gain, subject to producing a complete file. That file typically includes the original purchase deed, the bank certificates proving the foreign-currency inflow at acquisition, the sale deed and evidence that the TPI has been paid.

If your initial investment was never traced in foreign currency, for instance if you bought with funds already held locally in dirhams, repatriation becomes far more restrictive and may be capped. This is why documentation created years earlier, at the moment of purchase, determines what you can send home at the moment of sale. The official rules and forms are published by the Office des Changes, and we strongly recommend validating your file with your Moroccan bank before signing.

Amounts sent abroad are handled by an authorised intermediary bank, which applies the prevailing exchange rate. Building the repatriation file in parallel with the sale, rather than after it, is the single best way to avoid funds sitting blocked for months.

Simulate your capital gains and net proceeds

Foreign owner net-proceeds estimator

Sale price (MAD)

Revalued acquisition cost, fees included (MAD)

Enter your figures, then click Calculate.

Indicative estimate in dirhams, converted to US dollars for reference. The TPI shown applies the 20 percent rate or the 3 percent minimum, whichever is higher. Actual tax depends on official revaluation coefficients and your documented costs.

Renting rather than selling: an alternative to consider

Selling is not the only way to turn a Moroccan property into income. If your goal is cash flow rather than exiting the market, keeping the asset and renting it out can outperform a sale, especially while prices in Marrakech and Agadir hold firm. Short-stay letting in peak season, combined with medium-term winter lets to European visitors, can produce a steady yield without triggering capital gains tax or a repatriation file.

Some owners also rent while they wait for a better offer, keeping the property productive until the right buyer appears. Our guide on renting out while waiting to sell weighs the benefits and the risks of that middle path for a non-resident owner. For a broader view of protecting and transferring the value of your assets, our wealth management consulting service can help structure the decision.

Illustrative case (simulation). Consider a villa sold for 2,000,000 MAD, about $200,000, bought and improved for a revalued 1,400,000 MAD. The taxable gain is 600,000 MAD, so the TPI at 20 percent is 120,000 MAD, about $12,000, well above the 3 percent floor of 60,000 MAD. The net proceeds before transfer would be around 1,880,000 MAD, about $188,000. These figures are purely illustrative and must be adjusted to your file and the official coefficients.

Best practices and mistakes to avoid

On the good-practice side, gather your documents early: purchase deed, proof of foreign-currency investment, renovation invoices and tax receipts. Validate your repatriation file with your Moroccan bank before you sign. Appoint a reliable notary and, if you cannot travel, a properly drafted power of attorney. Price realistically against comparable local sales, and factor the TPI into your expected net from the outset.

On the mistakes side, the most damaging is failing to trace the original investment in foreign currency, which can trap your proceeds in Morocco. Others include underestimating the 30-day declaration deadline, forgetting to lift an existing mortgage before completion, and assuming a treaty automatically cancels the Moroccan tax when in fact it only prevents double taxation. When in doubt, professional guidance on both sides of the border pays for itself.

A cultural note for the foreign seller in Morocco

In Morocco, a real estate transaction is a relationship as much as a contract. Buyers, notaries and intermediaries value courtesy, patience and face-to-face trust. A sale often moves faster when the seller, even from abroad, takes the time to greet the parties, accepts the customary glass of mint tea when visiting, and treats negotiation as a conversation rather than a confrontation. Written agreements remain essential, but the warmth around them is not mere decoration: it reassures a buyer and smooths the many small steps of a Moroccan sale. Foreign owners who understand this hospitality, and who work through a local representative respected in the community, frequently secure better cooperation from every office involved. Respecting the pace and the etiquette is not a delay, it is often the shortest path to completion.

Frequently asked questions

Can a foreigner freely sell a property in Morocco?

Yes, foreign nationals can own and sell urban real estate freely, with the main exception of agricultural land. The sale is formalised before a notary and registered with the Land Registry.

What tax applies to the sale?

The Tax on Real Estate Profits (TPI) applies, at 20 percent of the net gain, with a minimum contribution of 3 percent of the sale price when that is higher.

How is the taxable profit calculated?

It is the sale price minus the acquisition cost, revalued by official inflation coefficients, plus documented acquisition and improvement expenses. Keeping invoices reduces the taxable gain legitimately.

Can I be exempt from the TPI?

A main residence occupied continuously for at least six years may be exempt under conditions. This rarely applies to a non-resident owner, but it is worth verifying with a local notary.

Will I be taxed again in my home country?

Double taxation treaties, such as the United Kingdom to Morocco convention, let the property be taxed in Morocco and grant relief at home, so the same gain is not taxed twice. Check your own country’s treaty.

How do I repatriate the sale proceeds?

Through an authorised bank, by submitting a complete Office des Changes file proving your initial foreign-currency investment. Without that trace, repatriation is far more restrictive.

What if I originally bought with local dirhams?

Repatriation may then be capped or blocked, because the right to transfer proceeds abroad depends on the traced foreign-currency investment made at purchase.

How long does a sale take?

Typically two to four months, depending on the completeness of the file and the buyer’s financing.

Do I need to be in Morocco to sell?

No. A properly drafted power of attorney lets a trusted representative or the notary’s office sign on your behalf, which is common and secure.

Notary or adoul: what is the difference?

Both can formalise a sale. The notary follows modern civil-law procedure, while the adoul operates under a traditional Islamic-law framework. Most non-resident sellers use a notary.

Conclusion

Selling a Moroccan property as a foreign owner is entirely manageable once you understand three things: the TPI on your gain, the notarial procedure, and above all the Office des Changes file that lets you bring your money home. Prepared early and documented properly, a sale completes smoothly in a few months and your proceeds reach your account without months of blockage.

Do you own a property in Marrakech or Agadir and want to know your net proceeds after tax and the fastest route to repatriate them? Request your free assessment from Armonia Solutions. Our team reviews your file, estimates your TPI and helps you build a compliant repatriation dossier, or shows you what the asset could earn if you chose to rent instead of sell.

Sources

  • Office des Changes, official rules on foreign-exchange operations and repatriation, oc.gov.ma
  • United Kingdom to Morocco Double Taxation Convention, in force 1990, Article 13 on gains from immovable property
  • Market observations and client experience, Armonia Solutions, property management Marrakech and Agadir