Morocco Tax Residency: the 183-Day Rule and Other Criteria Explained

Morocco tax residency applies when you have your permanent home in Morocco, the center of your economic interests there, or when you stay in Morocco for more than 183 days in any 365-day period. A Moroccan tax resident pays income tax in Morocco on their worldwide income; a non-resident only on their Moroccan-source income.

By Mohammed Dami, chartered accountant · updated on November 26, 2026

When are you a Moroccan tax resident?

Under article 23 of the General Tax Code (Code général des impôts, CGI), an individual has their tax domicile in Morocco, and is therefore a Morocco tax resident, as soon as one of the following criteria is met:

  • a permanent home (foyer permanent d’habitation) in Morocco, owned or rented, available to you on a lasting basis;
  • the center of your economic interests (centre des intérêts économiques) in Morocco: your main business, your main investments or the main source of your income are located there;
  • a stay of more than 183 days in Morocco, continuous or not, over any period of 365 days.

The criteria are alternative, not cumulative: meeting a single one is enough. Moroccan State officials working abroad, who are exempt from personal tax in their country of posting, are also treated as Moroccan tax residents.

How does the 183-day rule work in Morocco?

The Morocco tax residency 183-day rule counts the days you are physically present in Morocco. Three features often surprise newcomers:

  • the stays do not need to be consecutive: several trips are added together;
  • the count runs over any period of 365 days, not over a calendar year: a stay from September to April can exceed 183 days without exceeding it in either calendar year;
  • staying 183 days or less does not protect you if you have your permanent home or the center of your economic interests in Morocco.

Keep evidence of your presence and absences (passport stamps, travel tickets, lease, employment contract): they are what count if the tax authorities question your status.

What changes if you are a Morocco tax resident?

A Morocco tax resident pays income tax (impôt sur le revenu, IR) on all their income and gains, whether they arise in Morocco or abroad: salaries, pensions, rental income, investment income, capital gains. A non-resident is taxed in Morocco only on their Moroccan-source income.

Employment income is taxed under the progressive scale: exempt up to MAD 40,000 of annual net taxable income, then by brackets up to a top rate of 37%. Our Morocco income tax guide details the brackets, and the net salary calculator shows the tax withheld on a monthly salary.

Foreign income may also have been taxed in the country where it arose: that is where tax treaties come in to avoid paying tax twice on the same income.

What if two countries consider you a tax resident?

It is common for an expat to be a resident under Moroccan law and, at the same time, under the law of their home country. When Morocco has signed a tax treaty with that country, the treaty prevails over domestic law and settles the question with a series of tie-breaker tests, usually in this order:

  1. where you have a permanent home available to you;
  2. if you have one in both countries, where your personal and economic ties are closer (center of vital interests);
  3. where you habitually live;
  4. your nationality;
  5. failing that, an agreement between the two tax authorities.

The treaty then allocates the right to tax each type of income (salaries, pensions, dividends, real estate) and sets how double taxation is eliminated, by exemption or tax credit. Morocco has signed treaties with several dozen countries, including France, the United Kingdom and the United States. The wording differs from one treaty to another: always read the one that applies to you.

Expats and retirees: points to check before moving

  • Expat income tax in Morocco on a salary: work performed in Morocco is taxable in Morocco, through monthly withholding by the employer, from your first day of work, whatever your residency status.
  • Retirees: Moroccan tax residents who receive a foreign-source pension benefit from a substantial reduction of the tax on the portion transferred to Morocco on a permanent basis in non-convertible dirhams (article 76 of the CGI). Check the conditions and the applicable treaty before you move.
  • Leaving your home country: becoming a Moroccan tax resident does not automatically end your residency elsewhere. Organize your departure (home, bank accounts, registrations) so that your situation is consistent in both countries.
  • Business owners: if you run a company from Morocco, its own tax residency and its corporate tax are a separate question. See our tax advisory services in Morocco.

How do you prove your Morocco tax residency?

To claim the benefit of a tax treaty abroad (reduced withholding tax, exemption), you will usually be asked for a tax residence certificate (attestation de résidence fiscale). It can be requested from the General Tax Directorate (DGI) once you are registered and have filed your tax returns in Morocco.

A Moroccan tax resident with income other than a salary already taxed at source, such as foreign income or rental income, generally has to file an annual income tax return. The firm prepares it and checks that the treaties are correctly applied.

Frequently asked questions

Do the 183 days have to be consecutive?

No. The test counts days spent in Morocco, continuous or not, over any period of 365 days. Several shorter stays can therefore add up to more than 183 days, even if they fall across two calendar years.

Can I be a Moroccan tax resident while spending fewer than 183 days in Morocco?

Yes. The 183-day test is only one of the criteria. If your permanent home or the center of your economic interests is in Morocco, you are a Moroccan tax resident whatever the number of days you spend there.

Do you pay tax in Morocco as a non-resident?

Only on your Moroccan-source income: for example the salary for work carried out in Morocco, rent from a property located in Morocco or the gain on the sale of that property. Your foreign income is not taxed in Morocco.

Is Morocco a tax haven?

No. Tax residents pay a progressive income tax (impôt sur le revenu, IR) on their worldwide income, with brackets from 0% up to 37%. Morocco does offer targeted incentives, notably for foreign pensions transferred to Morocco and in its free zones, but it is not a low-tax jurisdiction. See the Morocco income tax brackets.

Does Morocco have a tax treaty with the US?

Yes. Morocco and the United States have an income tax treaty, as do Morocco and the United Kingdom, France and several dozen other countries. When you are considered a resident by both countries, the treaty decides which one may tax each type of income and how double taxation is eliminated. US citizens remain subject to US tax filing obligations wherever they live.

Need help with your situation?

Every company is different: one of the firm’s chartered accountants will answer your questions.

Request a call back

  1. 1
  2. 2
Your contact details

Would you rather call us?

+212 522 31 80 19