Morocco · tax residency · 2026
How many days make you tax resident in Morocco?
183 days Stays in Morocco EXCEEDING 183 days, continuous or discontinuous, over any rolling 365-day period — expressly 'pour toute période de 365 jours', not the calendar year makes you tax resident in Morocco — but the day count is only the test people know about.
Next step
How we know
Figures are as Direction Générale des Impôts (DGI) publishes them at tax.gov.ma, checked 18 August 2026.
- Day threshold
- 183 days Stays in Morocco EXCEEDING 183 days, continuous or discontinuous, over any rolling 365-day period — expressly 'pour toute période de 365 jours', not the calendar year
- Tax year
- 1 January – 31 December
- Other tests
- Article 23-II, Code Général des Impôts: "une personne physique a son domicile fiscal au Maroc lorsqu'elle a au Maroc son foyer d'habitation permanent, le centre de ses intérêts économiques ou lorsque la durée continue ou discontinue de ses séjours au Maroc dépasse 183 jours pour toute période de 365 jours." Three alternative tests therefore: a permanent home in Morocco; the centre of one's economic interests in Morocco; or the 183-day rolling count. Moroccan State agents exercising their functions or on mission abroad are also deemed to have their fiscal domicile in Morocco when they are exempt from personal income tax in the foreign country where they reside.
- Worldwide income
- Yes — residents are taxed on worldwide income
- Special regimes
- Article 76: taxpayers with fiscal domicile in Morocco who hold retirement pensions of foreign source (or as their successors in title) benefit from "une réduction égale à 80% du montant de l'impôt dû au titre de leur pension" — an 80% reduction of the tax due on that pension — corresponding to the sums definitively transferred into non-convertible dirhams. Article 27 gives a split-year rule directly relevant to arriving remote workers: in the year fiscal domicile is acquired, taxable global income comprises Moroccan-source income for the whole of 1 January to 31 December but foreign-source income only from the day of installation in Morocco to 31 December; the mirror rule applies on ceasing domicile. Article 24-1° exempts foreign ambassadors and diplomatic and consular agents of foreign nationality on their foreign-source income, on a reciprocity basis.
- Authority
- Direction Générale des Impôts (DGI)
- Official page
- tax.gov.ma
- Checked
- 18 August 2026
Sources are listed further down the page.
How the counting works
Article 23-I-1° imposes income tax on "les personnes physiques qui ont au Maroc leur domicile fiscal, à raison de l'ensemble de leurs revenus et profits, de source marocaine et étrangère" — residents on their worldwide income. Non-residents are taxed on Moroccan-source income only. Article 25 includes foreign-source income in taxable global income at its gross amount, excluding foreign-source investment income subject to the specific final rates in Article 73. Article 77 gives a foreign tax credit, capped at the fraction of Moroccan IR corresponding to the foreign income, where a double-tax treaty applies. Filing deadlines under Article 82: before 1 March for non-professional income, before 1 May for professional income under the RNR/RNS regimes. NO NON-HABITUAL-RESIDENT REGIME EXISTS: the strings 'impatri', 'résident non habituel' and 'resident non habituel' return zero hits across the full 34,776-line text of the CGI 2026, so no such Moroccan regime is recorded here. ACCESS NOTE: the DGI HTML portal at www.tax.gov.ma/wps/portal/ is behind a WAF that returns 403 to all automated requests, but PDF paths under /wps/wcm/connect/ are not blocked — the Code Général des Impôts 2026 was downloaded live from www.tax.gov.ma (6.45 MB). The exact PDF URL was located via the Internet Archive's index, but no archived copy was used for any content.
Why the day count is the part you can control
Ties, homes and intentions are argued after the fact; days are a record. That is why the first thing an adviser asks for is a list of the days you were in the country — and why reconstructing it from boarding passes and photos a year later is a bad afternoon. Log each stay as it happens and the tally is simply there, with the dates that produced it. If you are moving to Morocco to work remotely, the Morocco digital nomad visa page covers the permission side.
Sources
- tax.gov.ma — official source, checked 2026-08-18
Questions people ask about Morocco tax residency
How many days can you spend in Morocco before becoming tax resident?
183 days Stays in Morocco EXCEEDING 183 days, continuous or discontinuous, over any rolling 365-day period — expressly 'pour toute période de 365 jours', not the calendar year makes you tax resident in Morocco, and residents are taxed on worldwide income. Days are not the only route in: Article 23-II, Code Général des Impôts: "une personne physique a son domicile fiscal au Maroc lorsqu'elle a au Maroc son foyer d'habitation permanent, le centre de ses intérêts économiques ou lorsque la durée continue ou discontinue de ses séjours au Maroc dépasse 183 jours pour toute période de 365 jours." Three alternative tests therefore: a permanent home in Morocco; the centre of one's economic interests in Morocco; or the 183-day rolling count. Moroccan State agents exercising their functions or on mission abroad are also deemed to have their fiscal domicile in Morocco when they are exempt from personal income tax in the foreign country where they reside. Checked 18 August 2026 against tax.gov.ma.
When is Morocco's tax year?
1 January – 31 December. Day counts are measured against that year unless the rule names a different period — here, Stays in Morocco EXCEEDING 183 days, continuous or discontinuous, over any rolling 365-day period — expressly 'pour toute période de 365 jours', not the calendar year.
Are residents of Morocco taxed on worldwide income?
Yes — once you are tax resident in Morocco, worldwide income falls in scope, subject to double-tax treaties. Article 76: taxpayers with fiscal domicile in Morocco who hold retirement pensions of foreign source (or as their successors in title) benefit from "une réduction égale à 80% du montant de l'impôt dû au titre de leur pension" — an 80% reduction of the tax due on that pension — corresponding to the sums definitively transferred into non-convertible dirhams. Article 27 gives a split-year rule directly relevant to arriving remote workers: in the year fiscal domicile is acquired, taxable global income comprises Moroccan-source income for the whole of 1 January to 31 December but foreign-source income only from the day of installation in Morocco to 31 December; the mirror rule applies on ceasing domicile. Article 24-1° exempts foreign ambassadors and diplomatic and consular agents of foreign nationality on their foreign-source income, on a reciprocity basis.
Is there a special tax regime for people moving to Morocco?
Article 76: taxpayers with fiscal domicile in Morocco who hold retirement pensions of foreign source (or as their successors in title) benefit from "une réduction égale à 80% du montant de l'impôt dû au titre de leur pension" — an 80% reduction of the tax due on that pension — corresponding to the sums definitively transferred into non-convertible dirhams. Article 27 gives a split-year rule directly relevant to arriving remote workers: in the year fiscal domicile is acquired, taxable global income comprises Moroccan-source income for the whole of 1 January to 31 December but foreign-source income only from the day of installation in Morocco to 31 December; the mirror rule applies on ceasing domicile. Article 24-1° exempts foreign ambassadors and diplomatic and consular agents of foreign nationality on their foreign-source income, on a reciprocity basis. Conditions and time limits apply; the official page below is the place to check them.
How does Stretch count tax days for Morocco?
Every stay you log feeds the tally: Stretch counts the days you were present against the 183-day threshold in the right window, so "how long was I actually there?" is answered before your accountant asks. Tax-day tallies are part of Stretch+; the day counter and the alerts are free forever.
Tax days elsewhere
- United States 183d
- Canada 183d
- Mexico tests
- Brazil 183d
- Costa Rica 183d
- Panama 183d
- Guatemala 183d
- Dominican Republic 182d
- All countries →
Morocco, the rest of it
Stretch is a tracker, not legal advice, and this is not tax advice. Visa and tax rules change and are applied by the authority, not by an app — every figure here shows its source and the date we checked it. Checked 2026-08-18; confirm on the official page before you apply or file.