Morocco Property Capital Gains Tax Foreigners : What I Wish Someone Had Told Me Before I Sold

Two people working together on tax forms using a calculator at a wooden desk.

Morocco property capital gains tax for foreigners applies to the profit you make when you sell a Moroccan property, whether you live in Morocco or abroad.

The tax is normally called TPI, short for taxe sur les profits immobiliers, and official documents also describe it as IR/PF, meaning income tax on property profits.

In broad terms, the rate is 20% of the net taxable profit, with a minimum contribution of 3% of the sale price even when there is no profit.

However, the final figure depends on your documents and on the rules in force in the year of sale.

Your notary or a qualified Moroccan tax adviser therefore has to confirm it.

Morocco property capital gains tax at a glance

  • TPI applies to sellers of Moroccan property, including foreign residents and non residents.
  • The standard rate is 20% of the net taxable profit.
  • A minimum contribution of 3% of the sale price applies even when the calculated profit is small or nil.
  • Your purchase price is revalued using an official coefficient set each year by the Ministry of Finance.
  • Acquisition costs may be valued at a flat 15% of the purchase price when higher costs are not documented.
  • A property occupied as your principal residence for at least five years at the date of sale may be exempt.
  • The declaration is filed electronically within 30 days of the sale, with payment at the same time.
  • Before signing, you may ask the tax administration for a prior opinion known as an avis préalable.

What TPI or IR/PF actually means

TPI is the Moroccan tax on the profit realised when a property, or a real property right located in Morocco, is sold.

Officially the tax sits inside the income tax system, in the category of property profits, which is why you also see the label IR/PF.

Because three names describe one tax, sellers often think they face several separate charges.

They do not, although other costs can still arise around the sale, as the guide to selling property in Morocco as a foreigner explains.

Term you will see What it means in plain English
TPI Taxe sur les profits immobiliers, the tax on property profits
IR/PF The same tax described as income tax on property profits
Cotisation minimale The minimum contribution of 3% of the sale price
Avis préalable A prior opinion from the tax administration before the final deed
DGI Direction Générale des Impôts, the Moroccan tax authority

Morocco Property Capital Gains Tax for Foreigners

Do foreigners and non residents pay the same tax?

Yes, the same rules apply to Moroccan residents, foreign residents and non resident owners selling property in Morocco.

There is no separate foreigner rate, and no automatic surcharge either.

What differs in practice is the paperwork, since a seller living abroad must gather purchase, cost and banking documents from a distance.

Therefore the practical risk for a foreign seller is rarely the rate itself, and much more often a missing document that cannot be replaced quickly.

The current rate and the 3% minimum contribution

Element Rule
Standard rate 20% of the net taxable profit
Minimum contribution Not less than 3% of the sale price, even where there is no profit
Exempt principal residence above 4,000,000 MAD A 3% contribution is due on the part of the sale price above that amount

Both calculations are run, and the higher figure is the one that matters.

Consequently a seller with heavy documented costs can still owe tax, because the minimum contribution is based on the price rather than the profit.

Which figure you actually pay

Calculation A

20% of the net taxable profit, after revaluation and allowable costs.

Calculation B

3% of the gross sale price, with no deductions at all.

What you owe

The higher of the two, unless an exemption applies to your sale.

Already considering a property?

See the 14 Day Buyer Plan: $299 →

Get 14 days of personal buyer support, three private calls and WhatsApp support.

Get help reviewing up to three properties before you commit money.

How the taxable gain is calculated

  1. Start from the sale price declared in the final deed, which must reflect the real transaction.
  2. Revalue the purchase price using the official coefficient set each year by the Ministry of Finance.
  3. Add acquisition costs, which may be valued at a flat 15% of the purchase price when documented costs are lower.
  4. Add documented investment expenditure and, where they qualify, loan interest supported by bank statements.
  5. Subtract that adjusted cost from the sale price to reach the net taxable profit.
  6. Compare 20% of that profit with 3% of the sale price, then plan for the higher figure.

Which costs may be included

Cost Condition normally applied
Acquisition costs such as notary fees and registration duties Flat 15% of the purchase price, or documented costs where they are higher
Investment expenditure and major works Building permits, occupancy permits and proper invoices are normally required
Loan interest linked to the property Amortisation table or an annual interest certificate from the bank
Selling costs Supporting documents for amounts genuinely paid on the sale

Routine maintenance, furniture and work paid without any invoice are far harder to defend, so keep every official receipt from the day you buy.

Ask your notary or tax adviser which of your costs the administration will accept, since the answer depends on your documents rather than on general rules.

Two illustrative calculations

The figures below are illustrative only, and they exist to show the method rather than to predict your bill.

Example one: net profit against the minimum contribution

Step Illustrative amount
Sale price 2,200,000 MAD
Adjusted cost after the applicable official DGI coefficient and allowable costs, assumed for this example 2,100,000 MAD
Net taxable profit 100,000 MAD
Calculation A at 20% of the profit 20,000 MAD
Calculation B at 3% of the sale price 66,000 MAD
Amount planned for 66,000 MAD

No coefficient is invented here, because the revalued cost is simply assumed so that the comparison stays clear.

Example two: a taxable gain of 70,000 MAD

Twenty percent of a 70,000 MAD profit gives 14,000 MAD, which many sellers treat as the answer.

Yet if the sale price is 600,000 MAD, the minimum contribution reaches 18,000 MAD, and that higher figure applies instead.

Both examples depend on current law and on your own documents, so ask the notary or a tax adviser for a written calculation before you commit.

Morocco Property Capital Gains Tax for Foreigners

Can a foreigner use the principal residence exemption?

Possibly, and the exemption is one of the few genuinely valuable reliefs available to a seller.

According to the official Moroccan tax guide, the profit is exempt when the property was the seller’s principal residence for at least five years at the date of sale.

A maximum of one year from the date the home becomes vacant is normally allowed to complete the sale.

Renting the property out, or using it professionally, usually removes it from the definition of a principal residence.

Where the exempt property sells for more than 4,000,000 MAD, a 3% contribution is normally due on the part of the price above that amount.

Occupation is proved with practical evidence, such as an identity document showing the address, water and electricity bills, and a residence certificate from the local authority.

Because each Finance Law can adjust the conditions, confirm your eligibility before relying on it.

More detail sits in the guide to the principal residence exemption in Morocco.

Two smaller exemptions also exist, covering sales whose total value in one calendar year stays under 140,000 MAD, and gifts between close family members.

How the tax is declared and paid when you sell

The declaration is filed electronically within 30 days of the sale, and the tax is paid at the same time.

In most transactions the notary prepares the calculation and handles the filing and payment out of the sale proceeds.

Still, the tax remains the seller’s liability, so do not assume that silence from the notary means nothing is owed.

Each co owner of a jointly held property declares separately, in proportion to the share held.

Ask your notary in writing how the tax will be calculated and settled, well before the final deed is scheduled.

The guide to working with a Moroccan notary explains that relationship in more depth.

Already considering a property?

See the 14 Day Buyer Plan: $299 →

Get 14 days of personal buyer support, three private calls and WhatsApp support.

Get help reviewing up to three properties before you commit money.

Avis préalable: a prior opinion before the final sale

Sellers may ask the tax administration for a prior opinion on the taxable profit, the tax due, or the right to an exemption.

The request is submitted electronically within 30 days of the preliminary sale agreement, known as the compromis de vente.

Supporting documents are attached, including the purchase deed, the seller’s identity document, and evidence of acquisition costs, works and loan interest.

The administration replies within 60 days, and that reply normally remains valid for six months.

For a foreign seller this step turns a guess into a documented position well before the money moves.

Can the DGI challenge your declared sale price?

Yes, the administration can review a declared price that looks far below market value and reassess the tax accordingly.

Additional tax, penalties and interest may follow, and a disputed file can also delay everything that depends on it.

Declaring a lower price than the real one is not a saving, since it exposes the seller and weakens the paper trail needed later.

A clean declaration, supported by documents, is the calmer route.

Selling shares instead of the property itself

Some owners hold Moroccan property through a company rather than in their own name.

Selling the shares of such a company is a specialist transaction, and it does not automatically escape Moroccan tax.

Registration duties and other charges may apply, depending on the structure and on the assets inside the company.

Anyone considering that route should take Moroccan advice early, and the guide to owning Moroccan property through a company is a useful starting point.

Morocco Property Capital Gains Tax for Foreigners

Double taxation and reporting at home

Morocco may tax a gain on Moroccan real estate because the property is located here.

Your country of tax residence may also require you to report the same sale.

Relief often comes through a tax treaty or a domestic foreign tax credit.

Even so, the outcome depends on your residence, your nationality, the ownership structure and your home country rules.

Speak to an adviser in your own jurisdiction as well, since a Moroccan notary cannot answer for a foreign tax system.

Repatriating the sale proceeds

Paying TPI and transferring your money abroad are related but separate matters.

Transfers of this kind fall under the foreign exchange rules administered by the Office des Changes, and your Moroccan bank applies them in practice.

Broadly, the bank looks for evidence that the original purchase funds entered Morocco through a compliant route.

It will also want the deeds and proof that the Moroccan tax has been settled.

Buyers who used a convertible dirham account usually find this stage far simpler than buyers who did not.

The practical sequence is set out in the guide to repatriating money after selling property in Morocco, and your bank should confirm its own document list early.

From purchase records to repatriated proceeds

1. Purchase file

Original deed, notary invoices and the transfer that brought your funds into Morocco.

2. Ownership years

Invoices for works, loan interest certificates and receipts for local property taxes.

3. The sale

Final deed, the tax calculation and proof that the tax was paid.

4. The transfer

Bank certificates and the supporting file your bank requires for the outward transfer.

From my experience

I am Anis Chity, a Moroccan based in Marrakech, and I have personally bought four properties in the city.

My work is the buyer side of these transactions, so I am not an accountant, a notary or a tax adviser.

What I can say is that the documents you file away at purchase are the same documents a seller needs years later.

Keep the deed, the invoices and the traceable bank payments, and ask for calculations in writing rather than in conversation.

Practical steps before you sell

  1. Find your original purchase deed and every invoice connected to the property.
  2. Check that local property taxes are paid and that no charge remains outstanding.
  3. Ask a Moroccan tax adviser for a written calculation using the current coefficient and your documents.
  4. Confirm whether any exemption genuinely applies to your situation.
  5. Discuss an avis préalable with your notary soon after the preliminary agreement.
  6. Ask your Moroccan bank which documents it needs for a later transfer abroad.
  7. Tell your home country adviser about the sale before it completes.

Who confirms what

DGI

The tax position, the prior opinion and any exemption.

Notary

The deed, the calculation in the file and the filing at the sale.

Tax adviser

Your figures, your documents and the deductions you can support.

Bank and home adviser

The transfer abroad, and reporting in your country of residence.

FAQ: Morocco property capital gains tax for foreigners

What is TPI in Morocco?

TPI is the tax on property profits, charged when a property located in Morocco is sold, and it also appears as IR/PF in official documents.

Do foreigners pay property capital gains tax in Morocco?

Yes, foreign residents and non residents are taxed under the same rules as Moroccan sellers, with no separate foreigner rate.

What is the current rate?

The standard rate is 20% of the net taxable profit, while the tax due cannot fall below 3% of the sale price.

How is the taxable profit calculated?

The revalued purchase price and allowable costs are subtracted from the sale price, using the official coefficient for your purchase year.

Does tax apply if there is little or no gain?

Usually yes, because the minimum contribution of 3% of the sale price applies even without a profit, unless an exemption covers the sale.

Can renovation costs reduce the taxable profit?

Documented investment expenditure can be taken into account, so keep permits and proper invoices rather than informal receipts.

Can a foreigner qualify for the principal residence exemption?

It is possible where the property was genuinely occupied as the principal residence for at least five years, subject to conditions you should confirm.

What should a non resident seller prepare?

The purchase deed, cost invoices, proof that local taxes are paid, your tax identification details and the banking records behind the original purchase.

What is the safest next step?

Gather your documents early, well before a buyer appears.

Obtain a current calculation from a qualified adviser, then confirm any exemption rather than assuming it.

Preserve the banking trail from the original purchase, and check what your home country expects you to report.

Above all, verify the figures before you sign anything, because corrections after the deed are slower than checks before it.

Already considering a property?

See the 14 Day Buyer Plan: $299 →

Get 14 days of personal buyer support, three private calls and WhatsApp support.

Get help reviewing up to three properties before you commit money.

This article is educational information for foreign property owners, and it is not tax, legal or financial advice.

Moroccan rules change with each Finance Law, so confirm rates, thresholds and procedures before selling.

The DGI, the Ministry of Economy and Finance, your notary and a qualified Moroccan tax adviser are the right sources.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *