Quick answer
You become a Moroccan tax resident if your permanent home or your centre of economic interests is in Morocco, or if you stay more than 183 days in any 365-day period. Residents pay income tax on worldwide income. In 2026 the scale runs from 0% up to MAD 40,000 to 37% above MAD 180,000.
Last reviewed: November 2026 · Reviewed by Stéphane Gombauld, tax expert, technologist and digital nomad
Heavnn
Stay tax compliant, wherever you work
Answer a few questions and get a clear plan for your own situation.
Check my tax setup →You are planning a move to Casablanca, Marrakech or Taghazout and want to know when Morocco starts taxing you. You also want the paperwork done in the right order. After reading, you will know the three residence tests, the 2026 scale, your first filings and the exchange-control side most guides skip.
Morocco tax residency in 2026: the key figures
| Item | 2026 rule | Legal basis |
|---|---|---|
| Residence tests | Permanent home, or centre of economic interests, or more than 183 days in any 365-day period | General Tax Code (Code général des impôts, CGI) |
| Scope of tax | Residents: worldwide income. Non-residents: Moroccan-source income only | CGI |
| Income tax scale | 0% up to MAD 40,000; 10%, 20%, 30%, 34%; 37% above MAD 180,000 | CGI, scale set by Finance Law 2025 |
| Family reduction | MAD 600 per dependant, capped at MAD 3,600 (six dependants) | Finance Law 2026 |
| Pensions | 70% deduction on gross pension up to MAD 168,000 and 40% above; 80% tax reduction on repatriated foreign pensions | CGI |
| Return deadline (foreign employer or several employers) | No later than 28 February of the following year | CGI |
| Exchange-control status | You are "resident" for exchange control if you are resident under tax law | IGOC 2026, Office des Changes |
| Statute of limitations | Four years for income tax (IR) | CGI |
What changed for 2026
- Dependants: the Finance Law 2026 raised the income tax reduction from MAD 500 to MAD 600 per dependant, with a MAD 3,600 cap.
- Rent withholding: from 1 July 2026, rent paid to companies and to professionals on the net real or simplified net profit regime carries a 5% withholding. It is creditable against the final tax.
- Casablanca Finance City staff: the flat 20% income tax for employees of CFC-status companies now counts up to ten years of eligible employment, continuous or not. Bank and insurance staff are excluded, and you can opt for the normal scale by 1 February (PwC, secondary).
- Exchange control: a new General Instruction on Foreign Exchange Operations (IGOC 2026) applies from 1 January 2026.
The 2026 rate scale itself is unchanged: it is the one introduced by the Finance Law 2025.
Is this guide for you?
Read on if you…
- plan to spend most of the year in Morocco as a freelancer, remote employee, founder or retiree;
- need Morocco to become your tax home so your current country stops taxing you;
- want to know which date your Moroccan residence starts and what you file first.
Probably not your case if you…
- spend a few weeks a year in Morocco and keep your home and business elsewhere;
- are already resident and are leaving: read our guide to ceasing tax residency in Morocco instead.
When does Morocco treat you as a tax resident?
The CGI uses three tests. They are alternatives: meeting one is enough.
The three residence tests
| Test | What it means in plain words | Watch out for |
|---|---|---|
| Permanent home (foyer permanent d'habitation) | A home in Morocco that is available to you, owned or rented | A long lease can count even if you travel a lot |
| Centre of economic interests | Your main business, job or investments are in Morocco | Running a Moroccan company or client base can trigger it |
| More than 183 days in any 365-day period | Your days in Morocco exceed 183 over any rolling 365 days | It is a rolling window, not a calendar year |
Here's the catch. Most people only count days. The first two tests can make you resident much earlier, for example the week you sign a one-year lease and move your business.
When does residence start?
The published rules we reviewed do not describe a formal split-year regime. In practice, two things decide your start date: the day you first meet a test, and the treaty tie-breaker if your old country still claims you. Keep your lease, entry stamps and first invoices. They prove the date.
What if two countries claim you?
That is dual residence. If a tax treaty applies, its tie-breaker settles it: permanent home first, then centre of vital interests (where your family and main business are), then habitual abode, then nationality. Morocco has tax treaties with 49 countries plus the Arab Maghreb Union, per PwC (secondary). Partners include France, Germany, the UK, the US, Canada and Saudi Arabia. No treaty means both countries can tax you under their own law.
For how residence fits the wider system, see our overview of the Moroccan tax landscape.
Which permits and registrations do you need?
Tax residence and the right to stay are two separate files. You can meet a tax test without a residence card. Living in Morocco beyond your authorised stay still requires one.
- Check your entry rules. Visa needs depend on your nationality. Confirm with the Moroccan consulate before you book.
- Choose your ground for residence. Usual grounds are employment, self-employment or investment, retirement on regular income, study, or family ties.
- Apply for the residence card (carte de séjour). You file with the national police (DGSN) at your local office, before your authorised stay ends. Expect to show your passport, address, income and activity proof.
- Get your tax identifier (identifiant fiscal). Employees are handled through payroll. Freelancers and company founders register when they start their activity with the tax authority (Direction générale des impôts, DGI).
- Social security. Employees contribute to the CNSS (Caisse nationale de sécurité sociale). A bilateral social security agreement may let assigned staff stay in their home scheme.
- Open a bank account. Ask which account type suits money coming from abroad, and keep every foreign-exchange certificate the bank issues.
Choosing your structure? Compare a sole proprietorship and a company in our guide to legal forms of business in Morocco.
What do you file in your first year?
Employees
Salary from a single Moroccan employer is taxed at source. You usually have no return to file. If you are paid by a non-resident employer, or by several employers, you file a return no later than 28 February of the following year.
Freelancers and founders
Your professional income goes on an annual return. Profits are taxed on the progressive scale. The 2026 brackets:
| Annual taxable income (MAD) | Rate |
|---|---|
| 0 – 40,000 | 0% |
| 40,001 – 60,000 | 10% |
| 60,001 – 80,000 | 20% |
| 80,001 – 100,000 | 30% |
| 100,001 – 180,000 | 34% |
| Above 180,000 | 37% |
Foreign income and pensions
As a resident, your foreign salary, rent and dividends are taxable in Morocco unless a treaty excludes them. You get a credit for withholding tax paid in treaty countries on certain income. Retirees deduct 70% of the gross pension up to MAD 168,000 and 40% above, then get an 80% reduction of the tax on repatriated foreign pensions. Recent Finance Laws also changed the treatment of pensions from basic (mandatory) schemes; whether that covers a foreign pension depends on the CGI wording and your treaty, so get it confirmed in writing.
The family reduction and other reliefs are listed in our guide to personal tax deductions and benefits in Morocco. Special regimes, like the Casablanca Finance City flat rate, are covered in tax incentives for expats and digital nomads in Morocco.
How do exchange controls change once you are resident?
This is the part most newcomers miss. The IGOC 2026 defines a resident individual, Moroccan or foreign, as someone resident "au sens de la législation fiscale". In other words, becoming a tax resident also changes your exchange-control status.
- Moroccan nationals who are resident and acquire assets or cash abroad must declare them to the Office des Changes within three months.
- Dirham banknotes cannot be exported or imported, except up to MAD 2,000 per traveller (Office des Changes FAQ).
- Foreign-funded investments: document every inflow. Bank certificates are what lets you move capital out later.
Your move plan: before, during and after
Before the move (3–6 months out)
- Read the treaty between your current country and Morocco: tie-breaker, pensions, dividends.
- Secure a lease or a purchase; every application needs an address.
- Gather apostilled documents and translations while you are still at home.
During the move (first months)
- Register your address and file the residence-card application before your authorised stay ends.
- Open your bank account and register your activity to get a tax identifier.
- Note your residence start date and keep the evidence.
After the move (first 15 months)
- Track days on a rolling 365-day basis, even if another test already applies.
- File your first Moroccan return on time and pay the balance.
- Tell your former tax authority you have left, with Moroccan proof attached.
Example – Lena, 34, German freelance UX designer
Lena signs a 12-month lease in Marrakech on 1 February 2026 and moves her design business there. The permanent-home and economic-interests tests make her resident from February, long before day 184. Her 2026 taxable professional profit is MAD 250,000. Tax: MAD 0 on the first 40,000, then 2,000 + 4,000 + 6,000 + 27,200 (34% of 80,000) + 25,900 (37% of 70,000). Total: MAD 65,100, an effective rate of 26.04%. She has no dependants, so no family reduction applies.
Lena's first year touched five rules. Yours probably will too.
Get a personalised check of your residence date, structure and first Moroccan return before you move.
Check my tax setup →Common mistakes (and what they cost)
- Counting only days → your lease and business already made you resident; you file late and owe tax plus late-filing penalties on worldwide income.
- Forgetting foreign income → residents are taxed on worldwide income; undeclared dividends or rent can be reassessed for four years.
- Keeping a home in your old country → two permanent homes push you into the treaty tie-breaker, which can leave you taxable at home.
- Moving money without bank certificates → you cannot prove the foreign origin of funds when you later want to repatriate them.
- Letting the residence card lapse → you lose legal status and weaken the evidence of your Moroccan home.
Frequently asked questions
What is the 183-day rule in Morocco?
You are a Moroccan tax resident if you stay more than 183 days in any 365-day period, continuously or not. It is a rolling window, not a calendar-year count. Two other tests, a permanent home or a centre of economic interests in Morocco, can make you resident with far fewer days. Meeting any one test is enough.
Do I need a residence card to be tax resident in Morocco?
No. Tax residence depends on the three tests in the General Tax Code, not on your immigration status. But staying beyond your authorised period without a card is illegal. In practice, the tax office and your former country will want both files to tell the same story: a Moroccan address, a card and Moroccan filings.
When must I file my first Moroccan tax return?
It depends on your income. Salary from one Moroccan employer is taxed at source and usually needs no return. If you are paid by a foreign employer or several employers, the return is due no later than 28 February of the following year. Freelancers and founders file an annual return for professional income.
Does Morocco tax foreign pensions?
Yes, if you are resident, but with strong relief. Pensions get a 70% deduction on the gross amount up to MAD 168,000 and 40% above. On top of that, 80% of the tax on foreign-source pensions repatriated to Morocco is waived. The treaty with your source country decides which state may tax the pension first.
Can I be tax resident in Morocco and another country at the same time?
Yes, under each country's domestic law. If a tax treaty applies, its tie-breaker assigns you to one country: permanent home, then centre of vital interests, habitual abode and nationality. Without a treaty, both countries may tax you, and relief depends on each one's domestic rules.
Do I become an exchange-control resident too?
Yes. The Office des Changes' IGOC 2026 defines a resident individual by reference to tax law. Once you are tax resident, Moroccan exchange-control rules apply to your accounts and transfers. Resident Moroccan nationals must also declare assets acquired abroad within three months.
Related guides
- Overview of the Moroccan tax landscape
- How to cease your tax residency in Morocco
- Tax incentives for expats and digital nomads in Morocco
- Personal tax deductions and benefits in Morocco
- Legal forms of business in Morocco
- How to obtain tax residency in Mauritius
- How to obtain tax residency in Ethiopia
- All country tax guides
Sources
- General Instruction on Foreign Exchange Operations 2026 (IGOC 2026) – Office des Changes
- Publication of the IGOC 2026 – Office des Changes
- Can dirhams be exported? – Office des Changes
- Ministry of Economy and Finance – Finance Law 2026 publications
- PwC Worldwide Tax Summaries – Morocco: Residence (secondary)
- PwC Worldwide Tax Summaries – Morocco: Taxes on personal income (secondary)
- PwC Worldwide Tax Summaries – Morocco: Significant developments (secondary)
- PwC Worldwide Tax Summaries – Morocco: Foreign tax relief and tax treaties (secondary)
This guide is general information, not personalised tax advice. See how we research and review.
Ready to make Morocco your tax home?
Let us map your residence tests, permits and first-year filings in one plan.
Start with Heavnn →