Number of years of compulsory primary and secondary education in Morocco
Morocco: Number of years of compulsory primary and secondary education was 9 in 2025. ▲ Rising
Number of years of compulsory primary and secondary education in Morocco, 1998–2025
Source: UNICEF.
Analysis
In 2025, number of years of compulsory primary and secondary education in Morocco stood at 9. 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, number of years of compulsory primary and secondary education in Morocco peaked at 9 in 2000 and was at its lowest, 6, in 1998.
Morocco ranks 43rd of 73 countries on this measure, in the middle of the range.
The long-run direction has been consistently rising across the 28 years of available data.
Number of years of compulsory primary and secondary education in Morocco, year by year
| Year | Value | Change |
|---|---|---|
| 1998 | 6 | — |
| 1999 | 6 | +0.0% |
| 2000 | 9 | +50.0% |
| 2001 | 9 | +0.0% |
| 2002 | 9 | +0.0% |
| 2003 | 9 | +0.0% |
| 2004 | 9 | +0.0% |
| 2005 | 9 | +0.0% |
| 2006 | 9 | +0.0% |
| 2007 | 9 | +0.0% |
| 2008 | 9 | +0.0% |
| 2009 | 9 | +0.0% |
| 2010 | 9 | +0.0% |
| 2011 | 9 | +0.0% |
| 2012 | 9 | +0.0% |
| 2013 | 9 | +0.0% |
| 2014 | 9 | +0.0% |
| 2015 | 9 | +0.0% |
| 2016 | 9 | +0.0% |
| 2017 | 9 | +0.0% |
| 2018 | 9 | +0.0% |
| 2019 | 9 | +0.0% |
| 2020 | 9 | +0.0% |
| 2021 | 9 | +0.0% |
| 2022 | 9 | +0.0% |
| 2023 | 9 | +0.0% |
| 2024 | 9 | +0.0% |
| 2025 | 9 | +0.0% |
Morocco compared with similar countries
- Morocco's 9 is below the median for lower middle income countries, which is 10, 90% of the median. (9 countries reporting)
- Morocco's 9 is below the median for Middle East, North Africa, Afghanistan & Pakistan, which is 9.5, 95% of the median. (20 countries reporting)
Averages by decade
| Decade | Average | Lowest | Highest | Years |
|---|---|---|---|---|
| 1990s | 6 | 6 | 6 | 2 |
| 2000s | 9 | 9 | 9 | 10 |
| 2010s | 9 | 9 | 9 | 10 |
| 2020s | 9 | 9 | 9 | 6 |
Countries ranked near Morocco
- 43 Kuwait 9 compare
- 43 Tunisia 9 compare
- 43 Republic of Moldova 9 compare
- 43 Sweden 9 compare
- 43 Cyprus 9 compare
- 43 Saudi Arabia 9 compare
- 43 Greece 9 compare
- 43 Bulgaria 9 compare
- 43 Kazakhstan 9 compare
- 43 Estonia 9 compare
- 43 Yemen 9 compare
- 43 Montenegro 9 compare
- 43 Syrian Arab Republic 9 compare
- 43 Georgia 9 compare
- 43 Iran, Islamic Republic of 9 compare
- 43 Azerbaijan 9 compare
- 43 Czechia 9 compare
- 43 Libya 9 compare
- 43 Bahrain 9 compare
- 43 Kyrgyzstan 9 compare
- 43 Latvia 9 compare
- 43 Tajikistan 9 compare
- 43 Slovenia 9 compare
- 43 Albania 9 compare
- 43 Bosnia and Herzegovina 9 compare
More education data for Morocco
- 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)
- Primary education, pupils, per unit of GDP 0 units per US$ of GDP (2024)
- Primary education, pupils, per capita 0.121 units per person (2024)
Frequently asked questions
- What is number of years of compulsory primary and secondary education in Morocco?
- Number of years of compulsory primary and secondary education in Morocco was 9 in 2025, according to UNICEF.
- What is the highest number of years of compulsory primary and secondary education recorded in Morocco?
- The highest recorded value was 9 in 2000.
- What is the lowest number of years of compulsory primary and secondary education recorded in Morocco?
- The lowest recorded value was 6 in 1998.
- How does Morocco rank for number of years of compulsory primary and secondary education?
- Morocco ranks 43rd out of 73 countries with data for 2025.
- Is number of years of compulsory primary and secondary 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 UNICEF, published as part of Number of years of compulsory primary and secondary education guaranteed in legal frameworks. Statizoid updates them automatically from the source API.
Download this data
CSV · JSON — 28 observations, free to reuse under UNICEF Terms of Use (attribution required).