Morocco vs Spain
Morocco vs Spain: Government debt
Government debt in 2025: 66.6% of GDP in Morocco and 100.5% of GDP in Spain, by IMF estimates. In 2025 the value was higher in Spain, by 33.9 percentage points, or 1.51 times that in Morocco.
% of GDP · IMF
What the numbers say
- Spain has been higher since 2009, when it overtook Morocco.
- In 2025, Morocco ranked 43 and Spain ranked 14 of 149 countries, counting from the highest.
- The IMF projection (World Economic Outlook, October 2026) puts Morocco at 61.6% of GDP and Spain at 89.4% of GDP in 2031.
Every year
% of GDP · IMF
| Year | Morocco | Spain |
|---|---|---|
| 2025 | 66.6 | 100.5 |
| 2024 | 67 | 101.4 |
| 2023 | 68.4 | 105.2 |
| 2022 | 71.4 | 109.2 |
| 2021 | 69.4 | 115.6 |
| 2020 | 72.3 | 119.2 |
| 2019 | 60.3 | 97.6 |
| 2018 | 60.5 | 99.7 |
| 2017 | 60.3 | 101.1 |
| 2016 | 60.1 | 102 |
| 2015 | 58.4 | 102.4 |
| 2014 | 58.6 | 104.4 |
| 2013 | 57.1 | 100 |
| 2012 | 52.3 | 89.6 |
| 2011 | 48.6 | 69.5 |
| 2010 | 45.3 | 60.3 |
| 2009 | 42.6 | 53.1 |
| 2008 | 42 | 39.6 |
| 2007 | 47.1 | 35.7 |
| 2006 | 50.6 | 39 |
| 2005 | 54.8 | 42.4 |
| 2004 | 54.4 | 45.3 |
| 2003 | 56.9 | 47.7 |
| 2002 | 59.4 | 51.2 |
| 2001 | 60.4 | 54.1 |
| 2000 | 64.9 | 57.8 |
| 1999 | 63.4 | 60.9 |
| 1998 | 64.5 | 62.4 |
| 1997 | 68 | 64.3 |
| 1996 | 65.3 | 65.4 |
| 1995 | 72.2 | 61.6 |
| 1994 | 69.3 | 57 |
| 1993 | 74.7 | 54.6 |
| 1992 | 67 | 44.1 |
| 1991 | 59.1 | 41.9 |
| 1990 | 70.5 | 41.3 |
| 1989 | – | 39.9 |
| 1988 | – | 38.5 |
| 1987 | – | 41.9 |
| 1986 | – | 42.1 |
| 1985 | – | 40.9 |
| 1984 | – | 36 |
| 1983 | – | 29.5 |
| 1982 | – | 24.4 |
| 1981 | – | 19.5 |
| 1980 | – | 16.1 |
IMF projection (World Economic Outlook, October 2026) · 2026–2031
| Year | Morocco | Spain |
|---|---|---|
| 2026 | 66.6 | 97.6 |
| 2027 | 66.2 | 95.2 |
| 2028 | 65.3 | 93.2 |
| 2029 | 63.9 | 92 |
| 2030 | 62.6 | 90.7 |
| 2031 | 61.6 | 89.4 |
Each country on its own
Good to know
- What the government owes, as a share of the economy’s yearly output.
- Source: IMF, World Economic Outlook, October 2026.
- The dashed line is the IMF projection (World Economic Outlook, October 2026), a scenario rather than a forecast.
- Ranks count the 149 countries with a value in 2025, highest first.
How the layers work, where their data comes from and what they can’t tell you: Countries through time
Morocco vs Spain
Health
- Life expectancyMorocco: 75.3 years in 2023Spain: 83.7 years in 2023
- Child mortalityMorocco: 1.6 per 100 live births in 2024Spain: 0.3 per 100 live births in 2024
- Infant mortalityMorocco: 14.3 per 1,000 live births in 2023Spain: 2.4 per 1,000 live births in 2023
- Safe drinking waterMorocco: 74.8% in 2022Spain: 99.6% in 2022
- DepressionMorocco: 5.41% in 2017Spain: 3.54% in 2017
- Suicide rateMorocco: 7.1 per 100,000 people in 2017Spain: 5.5 per 100,000 people in 2017
People
- PopulationMorocco: 37.7 million people in 2023Spain: 47.9 million people in 2023
- Population growthMorocco: 1% a year in 2023Spain: 0.02% a year in 2023
- Fertility rateMorocco: 2.23 births per woman in 2023Spain: 1.21 births per woman in 2023
- Urban populationMorocco: 63.1% in 2025Spain: 80.5% in 2025
- Median ageMorocco: 29.2 years in 2023Spain: 44.9 years in 2023
- People aged 65 and overMorocco: 7.8% in 2023Spain: 20.7% in 2023
- Net migration rateMorocco: -1.1 per 1,000 people in 2023Spain: 2.5 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingMorocco: 3.54% of GDP in 2025Spain: 2.13% of GDP in 2025
- Military spending in US dollarsMorocco: $5.88B in 2025Spain: $37.7B in 2025
- Military spending per personMorocco: $166 in 2025Spain: $839 in 2025
- Military share of state spendingMorocco: 10.3% of government spending in 2025Spain: 4.7% of government spending in 2025
- Armed forces personnelMorocco: 246,000 people in 2020Spain: 199,000 people in 2020
- National powerMorocco: 0.4% of world capability in 2022Spain: 0.66% of world capability in 2022
- Armed forces, share of workersMorocco: 2.07% of the labour force in 2020Spain: 0.87% of the labour force in 2020
- Arms importsMorocco: 392 million TIV in 2025Spain: 237 million TIV in 2025
- Arms exportsMorocco: 26 million TIV in 2024Spain: 341 million TIV in 2025