Mexico vs Spain
Mexico vs Spain: Government debt
Government debt in 2025: 61.7% of GDP in Mexico and 100.5% of GDP in Spain, by IMF estimates. In 2025 the value was higher in Spain, by 38.8 percentage points, or 1.63 times that in Mexico.
% of GDP · IMF
What the numbers say
- Spain has been higher since 2009, when it overtook Mexico.
- In 2025, Mexico ranked 52 and Spain ranked 14 of 149 countries, counting from the highest.
- The IMF projection (World Economic Outlook, October 2026) puts Mexico at 64.5% of GDP and Spain at 89.4% of GDP in 2031.
Every year
% of GDP · IMF
| Year | Mexico | Spain |
|---|---|---|
| 2025 | 61.7 | 100.5 |
| 2024 | 59 | 101.4 |
| 2023 | 52.7 | 105.2 |
| 2022 | 53.8 | 109.2 |
| 2021 | 56.7 | 115.6 |
| 2020 | 58.5 | 119.2 |
| 2019 | 51.9 | 97.6 |
| 2018 | 52.2 | 99.7 |
| 2017 | 52.5 | 101.1 |
| 2016 | 55 | 102 |
| 2015 | 51 | 102.4 |
| 2014 | 47.1 | 104.4 |
| 2013 | 44.1 | 100 |
| 2012 | 40.8 | 89.6 |
| 2011 | 41.2 | 69.5 |
| 2010 | 40.2 | 60.3 |
| 2009 | 41.7 | 53.1 |
| 2008 | 40.6 | 39.6 |
| 2007 | 35.5 | 35.7 |
| 2006 | 35.8 | 39 |
| 2005 | 36.8 | 42.4 |
| 2004 | 38.9 | 45.3 |
| 2003 | 42.1 | 47.7 |
| 2002 | 39.9 | 51.2 |
| 2001 | 37.3 | 54.1 |
| 2000 | 38.5 | 57.8 |
| 1999 | 41.7 | 60.9 |
| 1998 | 39.7 | 62.4 |
| 1997 | 39.1 | 64.3 |
| 1996 | 42.5 | 65.4 |
| 1995 | – | 61.6 |
| 1994 | – | 57 |
| 1993 | – | 54.6 |
| 1992 | – | 44.1 |
| 1991 | – | 41.9 |
| 1990 | – | 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 | Mexico | Spain |
|---|---|---|
| 2026 | 62.1 | 97.6 |
| 2027 | 62.9 | 95.2 |
| 2028 | 63.4 | 93.2 |
| 2029 | 64 | 92 |
| 2030 | 64.3 | 90.7 |
| 2031 | 64.5 | 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
Mexico vs Spain
Health
- Life expectancyMexico: 75.1 years in 2023Spain: 83.7 years in 2023
- Child mortalityMexico: 1.3 per 100 live births in 2024Spain: 0.3 per 100 live births in 2024
- Infant mortalityMexico: 10.4 per 1,000 live births in 2023Spain: 2.4 per 1,000 live births in 2023
- Safe drinking waterMexico: 43% in 2022Spain: 99.6% in 2022
- DepressionMexico: 2.79% in 2017Spain: 3.54% in 2017
- Suicide rateMexico: 5.9 per 100,000 people in 2017Spain: 5.5 per 100,000 people in 2017
People
- PopulationMexico: 130 million people in 2023Spain: 47.9 million people in 2023
- Population growthMexico: 0.88% a year in 2023Spain: 0.02% a year in 2023
- Fertility rateMexico: 1.91 births per woman in 2023Spain: 1.21 births per woman in 2023
- Urban populationMexico: 80% in 2025Spain: 80.5% in 2025
- Median ageMexico: 28.9 years in 2023Spain: 44.9 years in 2023
- People aged 65 and overMexico: 8% in 2023Spain: 20.7% in 2023
- Net migration rateMexico: -0.8 per 1,000 people in 2023Spain: 2.5 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingMexico: 0.74% of GDP in 2025Spain: 2.13% of GDP in 2025
- Military spending in US dollarsMexico: $13.8B in 2025Spain: $37.7B in 2025
- Military spending per personMexico: $104 in 2025Spain: $839 in 2025
- Military share of state spendingMexico: 2.5% of government spending in 2025Spain: 4.7% of government spending in 2025
- Armed forces personnelMexico: 341,000 people in 2020Spain: 199,000 people in 2020
- National powerMexico: 1.14% of world capability in 2022Spain: 0.66% of world capability in 2022
- Armed forces, share of workersMexico: 0.64% of the labour force in 2020Spain: 0.87% of the labour force in 2020
- Arms importsMexico: 9 million TIV in 2025Spain: 237 million TIV in 2025
- Arms exportsMexico: 1 million TIV in 2019Spain: 341 million TIV in 2025