Skip to content

Economy of Mexico vs Spain compared: GDP & Debt

Updated on by Georank team

Mexico has a GDP of $1.86T compared to $1.73T for Spain, ranking 13/197 and 15/197 by economy size, respectively.

Mexico has $1.08T in government debt (58.3% of GDP), compared to $1.75T (101.6% of GDP) in Spain.

Mexico vs Spain GDP by year

Mexico
Spain
1x
Year GDP, current $
Mexico Spain
2024 $1,856,365,616,166 $1,725,671,652,742
2023 $1,798,317,581,487 $1,619,481,980,720
2022 $1,466,934,724,293 $1,448,850,658,407
2021 $1,316,569,466,686 $1,461,244,901,853
2020 $1,121,064,767,308 $1,289,783,836,971
2019 $1,304,106,203,902 $1,403,496,387,686
2018 $1,256,300,182,880 $1,431,642,809,327
2017 $1,190,721,475,906 $1,321,754,088,819
2016 $1,112,233,497,453 $1,243,015,667,917
2015 $1,213,294,467,717 $1,206,164,777,553
2014 $1,364,507,717,614 $1,380,244,561,362
2013 $1,327,436,290,283 $1,362,186,923,158
2012 $1,255,110,424,818 $1,330,994,811,670
2011 $1,229,013,703,417 $1,487,568,659,241
2010 $1,105,424,238,731 $1,427,989,078,917
2009 $943,437,415,025 $1,496,587,590,848
2008 $1,161,553,459,715 $1,636,115,447,613
2007 $1,102,355,554,972 $1,476,746,276,855
2006 $1,020,265,057,882 $1,261,846,683,275
2005 $917,571,853,529 $1,154,667,551,776
2004 $819,459,227,375 $1,069,829,382,515
2003 $765,549,967,703 $907,963,217,058
2002 $810,666,116,402 $708,938,227,244
2001 $796,064,590,549 $627,798,682,379
2000 $742,061,329,749 $598,102,854,756
1999 $631,249,359,702 $634,394,904,387
1998 $557,461,102,631 $618,731,484,575
1997 $523,449,530,464 $589,739,772,727
1996 $432,157,945,024 $642,251,412,058
1995 $380,157,469,867 $614,170,002,669
1994 $553,618,247,901 $530,183,651,720
1993 $530,160,763,663 $524,700,572,624
1992 $363,157,832,924 $630,465,353,486
1991 $313,139,656,146 $576,753,902,322
1990 $261,253,675,693 $536,175,326,477
1989 $221,403,098,267 $414,460,794,097
1988 $181,611,150,497 $375,891,716,898
1987 $147,542,558,209 $318,520,253,335
1986 $134,556,034,673 $251,141,555,186
1985 $195,241,069,482 $180,664,322,896
1984 $184,230,754,105 $171,979,977,230
1983 $156,167,000,433 $170,829,074,246
1982 $184,602,611,610 $195,856,752,991
1981 $263,797,827,860 $202,663,023,968
1980 $205,577,055,466 $232,600,556,974
1979 $134,531,900,899 $214,448,666,336
1978 $102,648,570,299 $160,484,969,618
1977 $81,912,018,784 $132,354,665,936
1976 $88,875,923,765 $118,422,534,195
1975 $88,000,000,000 $114,695,060,870
1974 $72,000,000,000 $97,204,522,642
1973 $55,280,000,000 $78,583,355,226
1972 $45,200,000,000 $59,090,176,029
1971 $39,200,000,000 $46,586,119,760
1970 $35,520,000,000 $40,963,715,237
1969 $32,480,000,000 $37,090,689,288
1968 $29,360,000,000 $32,394,326,464
1967 $26,560,000,000 $32,570,905,397
1966 $24,320,000,000 $29,559,436,183
1965 $21,840,000,000 $25,479,619,607
1964 $20,080,000,000 $21,966,876,027
1963 $16,960,000,000 $19,631,714,760
1962 $15,200,000,000 $16,609,632,791
1961 $14,160,000,000 $14,238,126,760
1960 $13,040,000,000 $12,424,514,014

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

GeoRank.org/economy/mexico/spain | CC BY

GDP per capita in Mexico vs Spain by year

Mexico
GDP per capita

GDP per capita, PPP
Spain
GDP per capita

GDP per capita, PPP
1x
Year Current $
Mexico Spain
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2024 $14,186 $26,185 $35,327 $57,965
2023 $13,861 $25,243 $33,493 $55,682
2022 $11,406 $23,135 $30,319 $51,399
2021 $10,314 $20,783 $30,799 $44,252
2020 $8,841 $19,354 $27,234 $39,328
2019 $10,370 $20,964 $29,787 $44,043
2018 $10,085 $20,921 $30,602 $41,015
2017 $9,649 $20,489 $28,381 $39,825
2016 $9,098 $20,105 $26,756 $37,613
2015 $10,021 $19,071 $25,982 $35,229
2014 $11,391 $18,821 $29,708 $33,761
2013 $11,217 $18,170 $29,229 $32,614
2012 $10,744 $18,005 $28,456 $31,870
2011 $10,664 $17,267 $31,825 $32,016
2010 $9,729 $15,909 $30,659 $31,805
2009 $8,424 $15,191 $32,280 $32,218
2008 $10,524 $15,681 $35,603 $33,350
2007 $10,134 $15,032 $32,652 $32,536
2006 $9,513 $14,540 $28,422 $30,749
2005 $8,672 $13,260 $26,451 $27,630
2004 $7,850 $12,658 $24,925 $26,160
2003 $7,434 $12,066 $21,522 $25,057
2002 $7,983 $11,762 $17,111 $24,378
2001 $7,953 $11,739 $15,368 $22,952
2000 $7,524 $11,705 $14,743 $21,582
1999 $6,500 $11,031 $15,708 $19,938
1998 $5,833 $10,756 $15,382 $19,083
1997 $5,567 $10,182 $14,722 $17,903
1996 $4,674 $9,496 $16,101 $16,971
1995 $4,184 $8,933 $15,461 $16,276
1994 $6,202 $9,466 $13,406 $15,582
1993 $6,048 $9,041 $13,330 $14,973
1992 $4,221 $9,470 $16,101 $14,855
1991 $3,709 $9,079 $14,801 $14,461
1990 $3,154 $8,578 $13,795 $13,676
1989 $2,725 - $10,674 -
1988 $2,279 - $9,696 -
1987 $1,888 - $8,234 -
1986 $1,757 - $6,509 -
1985 $2,602 - $4,696 -
1984 $2,506 - $4,487 -
1983 $2,170 - $4,475 -
1982 $2,621 - $5,156 -
1981 $3,829 - $5,367 -
1980 $3,055 - $6,204 -
1979 $2,049 - $5,766 -
1978 $1,604 - $4,353 -
1977 $1,315 - $3,625 -
1976 $1,465 - $3,277 -
1975 $1,492 - $3,208 -
1974 $1,256 - $2,748 -
1973 $993 - $2,246 -
1972 $837 - $1,708 -
1971 $748 - $1,361 -
1970 $699 - $1,211 -
1969 $660 - $1,109 -
1968 $616 - $978 -
1967 $576 - $997 -
1966 $545 - $916 -
1965 $506 - $797 -
1964 $481 - $695 -
1963 $420 - $627 -
1962 $388 - $535 -
1961 $374 - $463 -
1960 $355 - $408 -

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

GeoRank.org/economy/mexico/spain | CC BY

Mexico's GDP per capita is $14,186, ranking 69/197, compared to $35,327 in Spain, ranking 32/197. Adjusted for purchasing power (GDP per capita PPP), Mexico ranks 80th at $26,185, while Spain ranks 34th at $57,965.

Economic indicators

Mexico Spain
Gross domestic product
$1.86T
2024
$1.73T
2024
GDP rank
13/197
2024
15/197
2024
GDP growth
1.43%
2023-2024
3.46%
2023-2024
GDP per capita
$14,186
2024
$35,327
2024
GDP per capita rank
69/197
2024
32/197
2024
GDP per capita, PPP
$26,185
2024
$57,965
2024
GDP per capita PPP rank
80/197
2024
34/197
2024
Government debt
$1.08T
2024
$1.75T
2024
Debt-to-GDP ratio
58.3%
2024
101.6%
2024
Government debt per person
$8,272
2024
$35,909
2024
Government debt per person rank
63/185
2024
20/185
2024
Average annual personal income after taxes
$10,231
2026
$25,470
2026
Market capitalization of domestic companies
$418B
2024
$754B
2024
Number of millionaires
399,000
2025
1,202,000
2025
Number of billionaires
22
2025
34
2025
Income share by richest 10%
34.4%
2022
24.5%
2023
Income share by poorest 10%
2.1%
2022
2.2%
2023
Government expenditure, % of GDP
30.3%
2024
45.3%
2024
Consumer prices inflation
4.72%
2023-2024
2.77%
2023-2024
Central bank interest rate
7%
2025
n/a
Unemployment rate
2.62%
2024
11.3%
2024
Population
133323134
48806901

Spending and national debt comparison by year

Mexico
Spending

Debt
Spain
Spending

Debt
1x
Year % of GDP
Mexico Spain
Government spending Government debt Government spending Government debt
2024 30.3% 58.3% 45.3% 101.6%
2023 28.5% 52.6% 45.5% 105.1%
2022 28.5% 53.8% 46.4% 109.2%
2021 26.7% 56.7% 49.5% 115.6%
2020 27.8% 58.5% 51.4% 119.2%
2019 25.3% 51.9% 42% 97.6%
2018 25% 52.2% 41.5% 99.7%
2017 25% 52.5% 41% 101.1%
2016 26.5% 55% 42.1% 102%
2015 26.6% 51% 43.7% 102.4%
2014 26.9% 47.1% 45.1% 104.4%
2013 26.7% 44.1% 46.2% 100%
2012 27% 40.8% 49.2% 89.6%
2011 26.6% 41.2% 45.9% 69.5%
2010 26.5% 40.2% 45.8% 60.3%
2009 26.5% 41.7% 46.1% 53.1%
2008 26.5% 40.6% 41.3% 39.6%
2007 22.5% 35.5% 39.2% 35.7%
2006 21.6% 35.8% 38.4% 39%
2005 21.2% 36.8% 38.4% 42.4%
2004 20.5% 38.9% 38.8% 45.3%
2003 21.5% 42.1% 38.4% 47.7%
2002 19.8% 39.9% 38.6% 51.2%
2001 19.5% 37.3% 38.4% 54.1%
2000 19.4% 38.5% 39.1% 57.8%
1999 20.1% 41.7% 40% 60.9%
1998 19.5% 39.7% 41% 62.4%
1997 20.7% 39.1% 41.5% 64.3%
1996 20.8% 42.5% 42.9% 65.4%
1995 18.9% 30.7% 44.1% 61.6%
1994 18.9% 26.8% 44.8% 57%
1993 18.2% 19.2% 46.3% 54.6%
1992 19% 21.5% 43.9% 44.1%
1991 20.1% 29.2% 42.6% 41.9%
1990 22.9% 35.7% 41.1% 41.3%
1989 19.2% 36% 32.1% 39.2%
1988 23.6% 36.5% 28.6% 38.2%
1987 26.7% 52.7% 31.1% 42.1%
1986 25.1% 47.8% 28.4% 36.5%
1985 21.4% 30.4% 27.6% 31.5%
1984 19.8% 25.2% 27% 18.3%
1983 21.6% 25.3% 26% 13.4%
1982 24.7% 29.8% 21.5% 12%
1981 20.1% 41.7% 18.1% 10.9%
1980 17.5% 31.4% 16.3% 10.2%
1979 16.5% 35.8% 14.3% 9.88%
1978 15.7% 39% 14.3% 9.93%
1977 15.5% 41.5% 12.8% 8.75%
1976 15.5% 31.3% 11.5% 8.21%
1975 14.7% 24.4% 11.4% 11.9%
1974 13.8% 21.7% 11.4% 13.6%
1973 12.7% 20% 9.88% 16.3%
1972 11.9% 17.9% 12.5% 17.6%
1971 10.6% 17% 14% 17.9%
1970 10.9% 17.1% 12.3% 19.2%
1969 11.8% 10.7% 12.3% 18.8%
1968 10.9% 7.85% 12.8% 18.3%
1967 10.4% 8.22% 12.5% 17.6%
1966 11.6% 5.14% 11.8% 17.7%
1965 10.7% 9.99% 14% 18.1%
1964 9.21% 6.22% 12.7% 19.5%
1963 8.51% 4.13% 12.4% 21%
1962 8.26% 4.2% 10.6% 24.4%
1961 8.01% 4.38% 9.97% 26.7%
1960 9.5% 4.58% 11% 29.4%

Data sources: International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20); International Monetary Fund (IMF) | Public Finances in Modern History (1960–1995, retrieved 2026-02-20).

GeoRank.org/economy/mexico/spain | CC BY

In 2024, Mexico's government spending was $563B, accounting for 30.3% of its GDP, while Spain spent $782B, or 45.3% of GDP.

Debt-to-GDP ratio is 58.3% in Mexico and 101.6% in Spain, ranking 84/185 and 21/185, respectively.

Government deficit by year

Deficit/surplus
Mexico

Spain
1x
Year Deficit/surplus, % of GDP
Mexico Spain
2024 -5.73% -3.15%
2023 -4.29% -3.52%
2022 -4.32% -4.63%
2021 -3.75% -6.66%
2020 -4.29% -10%
2019 -2.27% -3.04%
2018 -2.14% -2.58%
2017 -1.03% -3.1%
2016 -2.68% -4.26%
2015 -3.86% -5.26%
2014 -4.37% -6.07%
2013 -3.56% -7.49%
2012 -3.57% -11.5%
2011 -3.2% -9.69%
2010 -3.8% -9.49%
2009 -3.94% -11.2%
2008 -0.68% -4.56%
2007 -1.46% 1.88%
2006 -1.23% 2.12%
2005 -1.43% 1.23%
2004 -1.35% -0.1%
2003 -2.24% -0.37%
2002 -2.18% -0.32%
2001 -2.57% -0.45%
2000 -2.69% -1.16%
1999 -4.49% -1.24%
1998 -4.49% -2.63%
1997 -3.48% -3.86%
1996 -3.66% -5.87%
1995 -2.28% -6.79%
1994 -2.25% -6.31%
1993 -1.51% -6.89%
1992 2.26% -4.26%
1991 1.49% -4.58%
1990 -3.11% -3.9%
1989 -4.75% -3.24%
1988 -8.76% -2.95%
1987 -11.6% -3.52%
1986 -11.2% -5.18%
1985 -7.2% -6.04%
1984 -5.79% -5.25%
1983 -6.03% -4.77%
1982 -11.4% -5.76%
1981 -4.9% -2.88%
1980 -1.75% -2.55%
1979 -2.15% -1.51%
1978 -1.88% -1.63%
1977 -2.43% -0.24%
1976 -3.14% 0.43%
1975 -2.64% 0.26%
1974 -3.33% 0.11%
1973 -2.75% 1.09%
1972 -2.3% 0.24%
1971 -1.43% -0.96%
1970 -1.71% 0.09%
1969 -2.74% -0.06%
1968 -2.06% -0.55%
1967 -2.12% -0.32%
1966 -3.2% 0.07%
1965 -2.51% -0.04%
1964 -1.44% 0.18%
1963 -0.92% -0.54%
1962 -0.79% 1.27%
1961 -0.88% 1.9%
1960 -1.36% 0.69%
1959 -0.73% 0.54%
1958 0.24% 0.23%
1957 -0.03% 1.13%
1956 0.52% -0.05%
1955 0.6% 0.6%
1954 -0.94% 0.7%
1953 -0.58% 1.02%
1952 0.42% 0.81%
1951 -0.26% -0.24%
1950 -0.2% -0.44%
1949 0.44% -0.35%
1948 -1.55% -1.21%
1947 -0.93% -1.09%
1946 0.66% -2.24%
1945 -1.11% -4.56%
1944 -1.12% -5.44%
1943 0.05% -7.73%
1942 -0.93% -2.48%
1941 -0.26% -4.34%
1940 -0.4% -3.54%
1939 -0.06% -
1938 -0.91% -
1937 -0.41% -
1936 -0.39% -
1935 0.26% -0.49%
1934 0.72% -1.17%
1933 -0.58% -0.72%
1932 0% -0.3%
1931 0.71% 0.1%
1930 0.21% 0.3%
1929 0.95% -0.07%
1928 0.24% -0.31%
1927 -0.3% -0.54%
1926 -0.29% -0.65%
1925 0.46% -1.19%
1924 1.34% -1.76%
1923 1.02% -1.89%
1922 1.13% -2.26%
1921 0.64% -3.33%
1920 0.91% -2.4%
1919 0.41% -1.82%
1918 -0.19% -1.8%
1917 0.63% -1.49%
1916 - -1.15%
1915 - -2.97%
1914 - -1.04%
1913 0.28% -0.09%
1912 -0.79% -0.33%
1911 -0.31% 0.19%
1910 0.1% 0.09%
1909 0.15% -0.29%
1908 -0.08% 0.59%
1907 0.43% 0.66%
1906 0.72% 0.91%
1905 0.35% 0.71%
1904 1.09% 0.52%
1903 3.82% 0.28%
1902 0.42% 0.74%
1901 0.62% 0.69%
1900 0.76% 1.04%
1899 - 2.75%
1898 - 0.13%
1897 - -0.64%
1896 - 0.46%
1895 - 0.83%
1894 - -0.08%
1893 - 0.87%
1892 - -0.67%
1891 - -0.41%
1890 - -0.4%
1889 - -0.38%
1888 - -0.97%
1887 - -0.73%
1886 - -0.08%
1885 - -0.78%
1884 - -0.23%
1883 - -0.38%
1882 - 0.38%
1881 - 0.08%
1880 - -0.02%
1879 - -0.52%
1878 - -0.08%
1877 - 0.11%
1876 - 0.1%
1875 - -1.42%
1874 - -0.1%
1873 - 2.22%
1872 - -2.27%
1871 - -2.64%
1870 - -3.42%
1869 - -2.64%
1868 - -1.46%
1867 - -0.79%
1866 - -0.83%
1865 - -1.84%
1864 - -2.48%
1863 - -1.55%
1862 - -1.76%
1861 - -1.77%
1860 - -0.94%
1859 - 0.39%
1858 - -0.44%
1857 - -0.41%
1856 - -0.46%
1855 - -0.76%
1854 - -0.32%
1853 - -0.02%
1852 - -0.11%
1851 - -0.25%
1850 - 0.31%

Data sources: International Monetary Fund (IMF) | Public Finances in Modern History (1850–1989, retrieved 2026-02-20); International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20).

GeoRank.org/economy/mexico/spain | CC BY

In 2024, Mexico's government deficit, the difference between spending and revenue, was $106B, equivalent to 5.73% of GDP. This compares to Spain's deficit of $54.3B, or 3.15% of GDP.

Over the past 65 years, Mexico recorded a fiscal deficit in 63 of those years, while Spain ran a deficit in 51 years. On average, Mexico posted an annual deficit equal to 3.22% of GDP, compared to deficit of 2.94% of GDP for Spain.

Inflation comparison by year

Inflation
Mexico

Spain
1x
Year Consumer prices inflation
Mexico Spain
2024 4.72% 2.77%
2023 5.53% 3.53%
2022 7.9% 8.39%
2021 5.69% 3.09%
2020 3.4% -0.32%
2019 3.64% 0.7%
2018 4.9% 1.67%
2017 6.04% 1.96%
2016 2.82% -0.2%
2015 2.72% -0.5%
2014 4.02% -0.15%
2013 3.81% 1.41%
2012 4.11% 2.45%
2011 3.41% 3.2%
2010 4.16% 1.8%
2009 5.3% -0.29%
2008 5.12% 4.08%
2007 3.97% 2.79%
2006 3.63% 3.52%
2005 3.99% 3.37%
2004 4.69% 3.04%
2003 4.55% 3.04%
2002 5.03% 3.07%
2001 6.37% 3.59%
2000 9.49% 3.43%
1999 16.6% 2.31%
1998 15.9% 1.83%
1997 20.6% 1.97%

Data sources: World Bank | Economy & Growth (1997–2024, retrieved 2026-04-06).

GeoRank.org/economy/mexico/spain | CC BY

Over the past 28 years, Mexico has recorded an average annual inflation rate of 6.15%, compared with 2.34% in Spain. In 2024, inflation was 4.72% in Mexico and 2.77% in Spain.

Top exports between countries

Mexico
Export category Export value
Machinery & equipment $607M
Raw materials & minerals $274M
Chemicals & pharma $174M
Processed food, beverages & tobacco $158M
Metals $112M
Animal & marine products $60.8M
Raw agricultural goods $58M
Textiles & consumer goods $21.5M
Miscellaneous $13.7M
Wood & paper products $4.82M
Spain
Export category Export value
Machinery & equipment $2.76B
Chemicals & pharma $1.06B
Processed food, beverages & tobacco $575M
Metals $569M
Textiles & consumer goods $554M
Raw materials & minerals $217M
Wood & paper products $199M
Animal & marine products $103M
Miscellaneous $82.8M
Precious metals & jewellery $82.4M

Balance of trade

Mexico Spain
Current account balance
-$16.7B
2024
$54.9B
2024
Current account balance ranking
181/190
2024
13/190
2024
Current account balance, % of GDP
-0.9%
2024
+3.18%
2024
Goods imports
$637B
2024
$456B
2024
Goods exports
$618B
2024
$419B
2024
Service imports
$72B
2024
$111B
2024
Service exports
$63B
2024
$220B
2024
Imports of goods and services, % of GDP
37.9%
2024
32.9%
2024
Exports of goods and services, % of GDP
36.7%
2024
37.1%
2024

Economic freedom indices

The indices of economic freedom below are issued by the Heritage Foundation. Higher scores indicate stronger economic health.

Mexico Spain
Economic freedom 59.8 66.8
Economic freedom ranking 102/197 59/197
Property rights 37.6 88
Government integrity 28.8 64.2
Judicial effectiveness 40.4 74.3
Tax burden 75.4 58.2
Government spending 74.6 37.3
Fiscal health 56.7 57.3
Business freedom 67 82.6
Labor freedom 57.3 61.7
Monetary freedom 70.6 78.2
Trade freedom 74.2 79.4
Investment freedom 75 60
Financial freedom 60 60

Economic freedom comparison by year

Mexico
Spain
1x
Year Economic freedom index
Mexico Spain
2026 59.8 66.8
2025 61.3 66.3
2024 62 63.3
2023 63.2 65
2022 63.7 68.2
2021 65.5 69.9
2020 66 66.9
2019 64.7 65.7
2018 64.8 65.1
2017 63.6 63.6
2016 65.2 68.5
2015 66.4 67.6
2014 66.8 67.2
2013 67 68
2012 65.3 69.1
2011 67.8 70.2
2010 68.3 69.6
2009 65.8 70.1
2008 66.2 69.1
2007 66 69.2
2006 64.7 68.2
2005 65.2 67
2004 66 68.9
2003 65.3 68.8
2002 63 68.8
2001 60.6 68.1
2000 59.3 65.9
1999 58.5 65.1
1998 57.9 62.6
1997 57.1 59.6
1996 61.2 59.6
1995 63.1 62.8

Data sources: The Heritage Foundation | Economic Freedom Index (1995–2026, retrieved 2026-03-09).

GeoRank.org/economy/mexico/spain | CC BY

The Economic Freedom Index for Mexico is 59.8, ranking 102/197, compared to 66.8 for Spain, ranking 59/197. The chart above displays a comparison of annual changes in economic freedom indexes.

Other economic metrics

Mexico Spain
Services, % of GDP
58.1%
2024
68.9%
2024
Industry, % of GDP
31.8%
2024
19.5%
2024
Agriculture, forestry, and fishing, % of GDP
3.72%
2024
2.75%
2024
GNI, Atlas method
$1.68T
2024
$1.64T
2024
GNI per capita, PPP
$25,460
2024
$57,670
2024
Total reserves including gold
$232B
2024
$108B
2024
Total reserves ranking
16/177
2024
26/177
2024
Net foreign direct investment
-$32.3B
2024
$28.7B
2024
Net inflows of foreign direct investment
$45.5B
2024
$42.8B
2024
Net outflows of foreign direct investment
$13B
2024
$71.5B
2024
Servicing debt to the IMF, % of GNI
3.71%
2024
n/a
Poverty at national poverty lines
29.6%
2024
20.2%
2022
Gross capital formation, % of GDP
24.1%
2024
21.2%
2024

GDP per capita map

1x

Data sources: World Bank | Economy & Growth (1985–2024, retrieved 2026-04-06); U.S. Census Bureau (1985–2024, retrieved 2026-02-08).

GeoRank.org/economy/mexico/spain | CC BY

Compare countries by 7 more topics

Help us show the world through your eyes

Share a photo of your city and help others discover what it looks like to live there. Your contribution makes our data come alive.

Data sources:

  1. World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06)
  2. International Monetary Fund (IMF) | Public Finances in Modern History (1850–1995, retrieved 2026-02-20)
  3. International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20)
  4. The Heritage Foundation | Economic Freedom Index (1995–2026, retrieved 2026-03-09)
  5. U.S. Census Bureau (1985–2024, retrieved 2026-02-08)
  6. TradeMap (2024, retrieved 2026-02-08)
  7. United Nations | World Population Prospects (2026, retrieved 2026-03-10)
  8. LivingCost (2026, retrieved 2025-10-14)

Creative Commons Attribution (CC BY) — you’re free to copy, share, remix, adapt, and use even commercially as long as you give appropriate credit and clearly indicate if you made changes. Other sources may be subject to different license terms.

The current account balance is the sum of net trade in goods and services, net earnings from cross-border investments, and net transfer payments. It reflects a country's economic transactions with the rest of the world and is a fundamental component of the balance of payments. A surplus indicates that a country exports more than it imports, while a deficit shows the opposite.

Gross National Income (GNI) measures a country's total income. It encompasses income earned by residents, businesses, and foreign sources, defined as employee compensation and investment profits. GNI adds product taxes not included elsewhere and subtracts subsidies. It accounts for income from residents working abroad but excludes earnings from foreigners within the country.

A negative value for Net Foreign Direct Investment indicates a country is a net receiver of investments, as foreign inflows exceed outflows after Balance of Payments adjustments. A positive value indicates a net provider, with outflows exceeding inflows. Inflows are credits (increasing foreign claims on domestic assets), while outflows are debits (increasing domestic assets abroad).

Foreign direct investment (FDI, net inflows) shows how much capital foreign investors bring into a country after accounting for any funds that flow back in the opposite direction. It represents the net value of overseas companies establishing, expanding, or financing businesses in the reporting country. A positive number means more capital entered the country than was withdrawn, while a negative number means foreign investors pulled out more than they invested.

Foreign direct investment (FDI, net outflows) shows how much capital residents of a country invest abroad after accounting for any funds that flow back in the opposite direction. It represents the net value of domestic companies establishing, expanding, or financing businesses in other countries. A positive number means more capital was invested abroad than withdrawn, while a negative number means residents pulled back more than they invested.

Principal and interest payments to the IMF in currency, goods, or services on long-term debt expressed as a share of GNI.

Formerly gross domestic investment, gross capital formation measures the share of a country’s economic output invested in fixed assets, including buildings, machinery, and infrastructure. It indicates how much of the economy is devoted to building productive capacity.