Quick answer
Morocco taxes residents on worldwide income at progressive rates from 0% to 37% (above MAD 180,000). Residence comes from a permanent home, economic centre or more than 183 days in any 365-day period. Corporate tax is 20% in 2026, VAT is 20%, and there is no wealth, inheritance or exit tax. Repatriated foreign pensions get an 80% tax cut.
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 considering Morocco as a base and want the whole tax picture before you commit. This hub explains how the system works in 2026, the main taxes, what changes when you move, and how to run a business there. Each section links to a detailed guide.
Morocco taxes in 2026: the key figures
| Tax | Rule in 2026 |
|---|---|
| Residence test (art. 23 CGI) | Permanent home, or centre of economic interests, or more than 183 days in any 365-day period |
| Personal income tax (IR) | 0% up to MAD 40,000; 10%, 20%, 30%, 34%; 37% above MAD 180,000, on worldwide income for residents |
| Social security (CNSS) | Employee about 6.74%, employer about 21.09%; pension contributions capped at MAD 6,000 of monthly salary |
| Capital gains | Listed shares 15%; unlisted shares 20%; real estate 20% with a minimum of 3% of the sale price |
| Corporate income tax (IS) | 20% below MAD 100 million of profit; 35% above; 40% for banks and insurers |
| VAT | Standard 20%; reduced 10%; intermediate 7% and 14% rates being phased out |
| Dividends | 11.25% withholding on 2026 distributions, 10% from 2027; foreign dividends 15% |
| Wealth, inheritance and exit tax | None. Registration duties apply to gifts and estates |
Is this guide for you?
Read on if you…
- plan to live in Morocco for more than half the year and want to know what you will owe;
- earn abroad, from clients, an employer or a pension, and need to understand worldwide taxation;
- want one page that maps every Moroccan tax topic before diving into the details.
Probably not your case if you…
- only spend short holidays in Morocco with no income or property there;
- need the detailed rules of a single topic. Jump straight to the relevant guide below.
How does the Moroccan tax system work?
Residence decides almost everything
Article 23 of the General Tax Code (Code Général des Impôts, CGI) makes you a Moroccan tax resident if any one of three conditions applies. Your permanent home is in Morocco. Your centre of economic interests is in Morocco. Or you spend more than 183 days in Morocco in any 365-day period.
The 365-day window is rolling, not a calendar year. Arrive in October and stay through May, and you are resident even though no single calendar year shows 183 days.
Worldwide for individuals, territorial for companies
Resident individuals are taxed on worldwide income: Moroccan salary, foreign freelance fees, dividends from a US broker, rent from a flat in Lyon. Non-residents pay only on Moroccan-source income, usually by withholding. Where another country also claims you, one of Morocco's roughly 60 tax treaties settles it through tie-breaker rules.
Companies work the other way round. Moroccan corporate tax is territorial: a Moroccan company is taxed on profits made in Morocco, not on profits of a foreign branch.
Who runs the system
The Direction Générale des Impôts (DGI) administers income tax, corporate tax, VAT and registration duties through its SIMPL e-portal. The CNSS collects social security and the Office des Changes supervises foreign currency movements.
What are the main taxes in Morocco?
Personal income tax
The 2025 Finance Law set the current scale, which still applies in 2026:
| Annual taxable income (MAD) | Rate |
|---|---|
| Up to 40,000 | 0% |
| 40,001 to 60,000 | 10% |
| 60,001 to 80,000 | 20% |
| 80,001 to 100,000 | 30% |
| 100,001 to 180,000 | 34% |
| Above 180,000 | 37% |
Salaries get a flat expense deduction and family allowances; freelancers deduct real costs or use the auto-entrepreneur regime. Details in personal tax deductions and benefits of Morocco. Rental income is taxed separately at 10% up to MAD 120,000 a year and 15% above, by withholding where the tenant is a business.
Social security
Employees contribute about 6.74% of salary to the CNSS (pension, short-term benefits and health insurance), employers about 21.09%. Pension contributions are capped at MAD 6,000 of monthly salary; health contributions are not. Self-employed professionals have a separate mandatory scheme with flat contributions by profession.
Capital gains
Listed Moroccan shares are taxed at 15%, unlisted shares and foreign securities at 20%. Real estate gains bear 20%, with a minimum of 3% of the sale price. Your main residence is exempt after six years of occupation. Crypto has no dedicated regime yet. See capital gains tax in Morocco and cryptocurrency taxes in Morocco.
Corporate tax, VAT and the rest
Corporate income tax reached its target rates in 2026: 20% for most companies, 35% above MAD 100 million of profit, 40% for banks and insurers. A minimum contribution of 0.25% of turnover applies on top. VAT is 20% standard with a 10% reduced rate. Property purchases bear registration duty of about 4% plus land registry fees. There is no wealth tax, no inheritance tax and no exit tax. Registration duties apply to gifts and estates, at low rates in the direct line. Details are in corporate income taxes in Morocco and specific taxes in Morocco.
Which special regimes help newcomers?
Morocco has no general expat or digital nomad regime and no digital nomad visa. It has three targeted incentives:
- Foreign pensions. A 70% deduction (40% above MAD 168,000) plus an 80% reduction of the tax on pensions transferred definitively to Morocco in non-convertible dirhams. A EUR 30,000 private pension ends up taxed at under 2%.
- Casablanca Finance City. Employees of CFC-status companies can opt for a flat 20% income tax for up to 10 years. The companies get a five-year exemption, then 20%.
- Auto-entrepreneur status. Residents with small activities pay 0.5% of turnover (trade, cap MAD 500,000) or 1% (services, cap MAD 200,000). A 30% withholding applies above MAD 80,000 a year from a single client.
Details in tax incentives for expats and digital nomads in Morocco.
What happens when you move to Morocco, and when you leave?
Moving in
- Enter on a visa or the 90-day visa-free stay most Western passports get.
- Apply for a residence card (carte de séjour) at the local police before the 90 days end. Grounds include employment, self-employment, investment, retirement income or family.
- Register with the DGI for a tax identifier once you have taxable income, and open a Moroccan bank account.
- Check exchange control. Foreign residents keep more freedom over foreign assets than Moroccan nationals, but Office des Changes rules apply to transfers.
- File your first return by the end of February for salary and pension income, or by the end of April for professional income.
The full process, including the tax residence certificate, is in the practical guide to obtaining your tax residency in Morocco.
Moving out
Good news: Morocco has no exit tax. You must file a return for the income of the departure year before leaving, and tell the DGI your new address. Keep evidence that your home and economic centre have moved, otherwise article 23 can still catch you. Step by step in the practical guide to ceasing your tax residency in Morocco.
How do you run a business from Morocco?
Three routes cover most location-independent professionals:
- Auto-entrepreneur for a small activity: a few days to register online and 1% of turnover for services. The MAD 200,000 cap and the single-client rule limit it.
- Sole trader under the real regime: progressive income tax on net profit, VAT once you exceed the threshold, CNSS contributions.
- SARL or SAS: 20% corporate tax, 11.25% dividend withholding in 2026, limited liability and credibility with foreign clients. Registration goes through the regional investment centre (CRI) in one to three weeks.
Here's the catch for founders who travel. A Moroccan company run entirely from another country can be treated as tax resident there too. Anchor management in Morocco. Compare entity types in legal forms of business in Morocco. Respect the deadlines too: late filing costs 5% to 20% and under-declaration 20% to 100%, as explained in tax fraud regulations of Morocco.
Example – Sofia, Spanish product designer in Marrakech
Sofia moved in January 2026 and spends about 250 days a year in Morocco. She is resident under article 23. She invoices European clients EUR 60,000, about MAD 650,000, as a sole trader. After MAD 65,000 of costs, taxable profit is MAD 585,000. Tax is MAD 39,200 on the first MAD 180,000 plus 37% on the remaining MAD 405,000, about MAD 189,000, or 29% of gross. Through a SARL distributing all profit, the combined burden would be about MAD 170,000. Spain stops taxing her once her home and economic centre have moved, documented by a Moroccan residence certificate.
Sofia's setup has three moving parts: days, structure and the Spanish exit. Yours probably does too.
Heavnn builds your full Moroccan tax picture, from residence test to business structure, before you book the flight.
Check my tax setup →Common mistakes (and what they cost)
- Counting days per calendar year → residence arrives months earlier than planned, and foreign income for the whole period becomes taxable in Morocco.
- Assuming foreign income is invisible → full tax plus a 20% surcharge and late-payment penalties, with a ten-year look-back if you never filed.
- Keeping a foreign pension abroad → no 80% relief, so the Moroccan bill is around five times higher.
- Leaving without a departure return → the DGI keeps treating you as resident, and your new country's treaty claim is harder to prove.
- Running a Moroccan company from abroad → double residence of the company and two tax bills.
Frequently asked questions
Is Morocco a low-tax country?
It depends on your profile. Retirees with a repatriated private pension pay under 2%. Companies pay 20%, which is moderate. A resident freelancer earning MAD 650,000 pays around 29% to 33% in income tax, plus social contributions, which is comparable to Western Europe. Morocco has no wealth, inheritance or exit tax, which helps high-net-worth newcomers.
Does Morocco tax worldwide income?
Yes, for residents. Once you meet the article 23 test, Moroccan income tax applies to your salary, freelance fees, dividends, interest and rents wherever they arise. Double tax treaties with around 60 countries prevent the same income being taxed twice, usually through a credit or an exemption in Morocco. Non-residents pay only on Moroccan-source income.
How many days can I spend in Morocco without becoming tax resident?
Up to 183 days in any 365-day period, provided your permanent home and centre of economic interests stay elsewhere. The window rolls, so a stay spanning two calendar years can still exceed 183 days. Day counting alone is not safe if you rent a home in Morocco and run your business from it.
What is the income tax rate in Morocco in 2026?
The scale set by the 2025 Finance Law applies. Rates are 0% up to MAD 40,000, 10% to 60,000, 20% to 80,000, 30% to 100,000, 34% to 180,000, and 37% above. Capital gains and dividends are taxed at flat rates of 15%, 20% or 11.25% rather than on the scale.
Does Morocco have an exit tax or a wealth tax?
No. Morocco levies no wealth tax, no inheritance tax and no exit tax on unrealised gains when you leave. Gifts and estates bear registration duties at modest rates. When you leave you must file a return covering the departure year and prove that your home and economic centre have moved abroad.
Can I live in Morocco as a digital nomad?
Yes, but without a dedicated visa. Most Western nationals enter visa-free for 90 days and then need a residence card on another ground, such as self-employment, investment or retirement income. Spending more than 183 days in a 365-day period makes you tax resident on worldwide income, so plan the structure of your work before you settle.
Morocco tax guides
- Tax landscape overview of Morocco – this hub page, the one-page map of the Moroccan system.
- Practical guide to obtaining your tax residency in Morocco – the article 23 test, residence card and tax residence certificate, step by step.
- Practical guide to ceasing your tax residency in Morocco – the departure return, proof of departure and what to keep.
- Tax incentives for expats and digital nomads in Morocco – pensions, Casablanca Finance City and the auto-entrepreneur status.
- Personal tax deductions and benefits of Morocco – allowances, family deductions and what reduces your scale income.
- Capital gains tax in Morocco – shares, funds and property, residents and non-residents.
- Cryptocurrency taxes in Morocco – the current legal position and how gains are treated.
- Corporate income taxes in Morocco – 2026 rates, minimum contribution, filing calendar and dividends.
- Legal forms of business in Morocco – SARL, SA, SAS, branch and auto-entrepreneur compared.
- Specific taxes in Morocco – VAT, registration duties, housing and business taxes.
- Tax fraud regulations of Morocco – penalties, audits, limitation periods and voluntary correction.
Related guides
- Tax landscape overview of the United Arab Emirates
- Tax landscape overview of Saudi Arabia
- Tax landscape overview of Lebanon
- All country tax guides
Sources
- Direction Générale des Impôts (DGI) – General Tax Code, rates and SIMPL e-services
- Ministry of Economy and Finance – Finance Laws 2025 and 2026
- Caisse Nationale de Sécurité Sociale (CNSS) – contribution rates
- Office des Changes – exchange control for residents and non-residents
- OECD – Morocco tax treaties and exchange of information
- PwC Worldwide Tax Summaries – Morocco (cross-check)
This guide is general information, not personalised tax advice. See how we research and review.
Morocco can be a 2% country or a 37% country. The difference is planning.
Let Heavnn map your residence, income and structure against the 2026 Moroccan rules before you move.
Start with Heavnn →