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:
- where you have a permanent home available to you;
- if you have one in both countries, where your personal and economic ties are closer (center of vital interests);
- where you habitually live;
- your nationality;
- 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.