Duration of compulsory education (years) in Morocco
Morocco: Duration of compulsory education (years) was 9 years in 2025. ▲ Rising
Duration of compulsory education in Morocco, 1998–2025
Source: UNESCO Institute for Statistics. Measured in years.
Analysis
The most recent figure for duration of compulsory education in Morocco is 9 years, measured in 2025. That is the highest value across all 28 years on record.
Compared with earlier readings it is unchanged over ten years.
Over the whole period, duration of compulsory education in Morocco peaked at 9 years in 2000 and was at its lowest, 6 years, in 1998.
That places Morocco 120th out of 206 countries with data for 2025, putting it in the middle of the range.
The long-run direction has been consistently rising across the 28 years of available data.
Duration of compulsory education (years) in Morocco, year by year
| Year | years | Change |
|---|---|---|
| 1998 | 6 years | — |
| 1999 | 6 years | +0.0% |
| 2000 | 9 years | +50.0% |
| 2001 | 9 years | +0.0% |
| 2002 | 9 years | +0.0% |
| 2003 | 9 years | +0.0% |
| 2004 | 9 years | +0.0% |
| 2005 | 9 years | +0.0% |
| 2006 | 9 years | +0.0% |
| 2007 | 9 years | +0.0% |
| 2008 | 9 years | +0.0% |
| 2009 | 9 years | +0.0% |
| 2010 | 9 years | +0.0% |
| 2011 | 9 years | +0.0% |
| 2012 | 9 years | +0.0% |
| 2013 | 9 years | +0.0% |
| 2014 | 9 years | +0.0% |
| 2015 | 9 years | +0.0% |
| 2016 | 9 years | +0.0% |
| 2017 | 9 years | +0.0% |
| 2018 | 9 years | +0.0% |
| 2019 | 9 years | +0.0% |
| 2020 | 9 years | +0.0% |
| 2021 | 9 years | +0.0% |
| 2022 | 9 years | +0.0% |
| 2023 | 9 years | +0.0% |
| 2024 | 9 years | +0.0% |
| 2025 | 9 years | +0.0% |
Morocco compared with similar countries
- Morocco's 9 years is above the median for lower middle income countries, which is 9 years, 1.0× the median. (42 countries reporting)
- Morocco's 9 years is below the median for Middle East, North Africa, Afghanistan & Pakistan, which is 10 years, 90% of the median. (23 countries reporting)
Averages by decade
| Decade | Average | Lowest | Highest | Years |
|---|---|---|---|---|
| 1990s | 6 years | 6 years | 6 years | 2 |
| 2000s | 9 years | 9 years | 9 years | 10 |
| 2010s | 9 years | 9 years | 9 years | 10 |
| 2020s | 9 years | 9 years | 9 years | 6 |
Countries ranked near Morocco
- 120 Afghanistan 9 years compare
- 120 Albania 9 years compare
- 120 Azerbaijan 9 years compare
- 120 Bahrain 9 years compare
- 120 Bosnia and Herzegovina 9 years compare
- 120 Brunei 9 years compare
- 120 China 9 years compare
- 120 Cuba 9 years compare
- 120 Estonia 9 years compare
- 120 Georgia 9 years compare
- 120 Gambia 9 years compare
- 120 Guinea-Bissau 9 years compare
- 120 Hong Kong 9 years compare
- 120 Indonesia 9 years compare
- 120 Iran 9 years compare
- 120 Japan 9 years compare
- 120 Kazakhstan 9 years compare
- 120 Kiribati 9 years compare
- 120 South Korea 9 years compare
- 120 Kuwait 9 years compare
- 120 Laos 9 years compare
- 120 Libya 9 years compare
- 120 Liechtenstein 9 years compare
- 120 Mali 9 years compare
- 120 Montenegro 9 years compare
- 120 Mauritania 9 years compare
- 120 Nigeria 9 years compare
- 120 Nepal 9 years compare
- 120 Poland 9 years compare
- 120 Saudi Arabia 9 years compare
- 120 Sierra Leone 9 years compare
- 120 Slovenia 9 years compare
- 120 Syria 9 years compare
- 120 Thailand 9 years compare
- 120 Tajikistan 9 years compare
- 120 East Timor 9 years compare
- 120 Tunisia 9 years compare
- 120 Tuvalu 9 years compare
- 120 Yemen 9 years compare
- 120 South Africa 9 years compare
More education data for Morocco
- Gender gap education levels, gaps filled 97.18 (2019)
- Primary enrollment selected countries, gaps filled 99.1 (2024)
- Teachers in secondary education, both sexes (number), gaps filled 183,432 (2024)
- Repeaters in primary education, all grades, both sexes (number), gaps 266,273 (2024)
- Enrolment in pre-primary education, male (number), gaps filled 460,392 (2024)
- Enrolment in pre-primary education, female (number), gaps filled 452,625 (2024)
- Secondary education, pupils, gaps filled 3.57 million (2024)
- Primary education, duration (years), annual growth rate 0 % change on previous year (2025)
- Primary education, pupils, gaps filled 4.61 million (2024)
- Primary education, pupils, annual growth rate -1.63 % change on previous year (2024)
Frequently asked questions
- What is duration of compulsory education in Morocco?
- Duration of compulsory education in Morocco was 9 years in 2025, according to UNESCO Institute for Statistics.
- What is the highest duration of compulsory education recorded in Morocco?
- The highest recorded value was 9 years in 2000.
- What is the lowest duration of compulsory education recorded in Morocco?
- The lowest recorded value was 6 years in 1998.
- How does Morocco rank for duration of compulsory education?
- Morocco ranks 120th out of 206 countries with data for 2025.
- Is duration of compulsory education rising or falling in Morocco?
- Over the last ten years it is unchanged. The long-run trend across the full record is rising.
- Where does this Morocco data come from?
- The figures come from UNESCO Institute for Statistics, published as part of Duration of compulsory education (years). Statizoid updates them automatically from the source API.
Download this data
CSV · JSON — 28 observations, free to reuse under CC BY-SA 3.0 IGO (UNESCO Institute for Statistics).
About this data
February 2026 Data Release