Skip to content

Economy of Costa Rica vs Hungary compared: GDP & Debt

Updated on by Georank team

Costa Rica has a GDP of $95.4B compared to $223B for Hungary, ranking 73/197 and 55/197 by economy size, respectively.

Costa Rica has $57B in government debt (59.8% of GDP), compared to $164B (73.5% of GDP) in Hungary.

Costa Rica vs Hungary GDP by year

Costa Rica
Hungary
1x
Year GDP, current $
Costa Rica Hungary
2024 $95,350,423,177 $222,722,738,926
2023 $86,497,941,439 $213,240,316,635
2022 $69,243,626,029 $177,002,580,544
2021 $64,960,725,734 $183,282,685,440
2020 $62,395,610,760 $158,468,487,754
2019 $64,417,670,521 $164,936,682,034
2018 $62,420,164,992 $161,184,691,014
2017 $60,516,044,657 $143,335,098,992
2016 $58,847,019,610 $128,983,560,865
2015 $56,441,920,821 $125,244,126,623
2014 $52,016,408,854 $141,128,696,412
2013 $50,949,668,842 $135,646,053,779
2012 $47,231,655,432 $128,470,269,690
2011 $42,762,613,699 $141,712,804,954
2010 $37,658,616,952 $131,898,737,241
2009 $30,745,714,313 $130,807,441,076
2008 $30,801,745,700 $158,228,265,916
2007 $26,884,700,709 $140,123,326,896
2006 $22,715,540,324 $115,604,111,412
2005 $20,040,642,477 $113,098,237,571
2004 $18,610,594,846 $104,015,363,080
2003 $17,271,760,507 $85,190,469,121
2002 $16,578,820,687 $67,636,468,625
2001 $15,976,174,337 $53,800,068,066
2000 $15,013,629,662 $47,275,954,429
1999 $14,254,866,285 $49,160,204,397
1998 $13,684,255,947 $48,784,412,624
1997 $12,614,602,382 $47,398,564,799
1996 $11,678,424,507 $46,833,767,124
1995 $11,578,594,260 $46,577,614,589
1994 $10,489,903,725 $43,307,949,890
1993 $9,564,815,975 $40,256,233,360
1992 $8,579,754,758 $38,857,339,125
1991 $7,215,725,487 $34,867,307,353
1990 $5,711,687,787 $34,478,360,679
1989 $5,251,025,767 $30,422,508,938
1988 $4,614,629,898 $29,799,838,597
1987 $4,532,952,047 $27,232,016,527
1986 $4,418,983,871 $24,778,163,812
1985 $3,919,203,960 $21,510,643,750
1984 $3,660,477,856 $21,242,726,264
1983 $3,146,772,631 $21,910,365,258
1982 $2,606,623,555 $24,141,667,188
1981 $2,623,803,096 $23,705,883,892
1980 $4,831,447,001 $23,116,977,148
1979 $4,035,519,323 $19,959,731,325
1978 $3,523,208,810 $17,286,744,154
1977 $3,072,427,013 $14,783,674,055
1976 $2,412,555,426 $13,235,612,079
1975 $1,960,863,466 $11,420,392,515
1974 $1,666,544,754 $10,016,338,179
1973 $1,528,925,846 $9,138,292,402
1972 $1,238,251,696 $7,379,313,742
1971 $1,077,147,538 $6,291,568,221
1970 $984,830,158 $5,780,929,203
1969 $853,630,204 $5,429,812,387
1968 $773,841,494 $4,886,222,555
1967 $699,456,619 -
1966 $647,305,630 -
1965 $592,981,162 -
1964 $542,578,367 -
1963 $511,902,137 -
1962 $479,180,824 -
1961 $490,325,182 -
1960 $507,513,830 -

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

GeoRank.org/economy/costa-rica/hungary | CC BY

GDP per capita in Costa Rica vs Hungary by year

Costa Rica
GDP per capita

GDP per capita, PPP
Hungary
GDP per capita

GDP per capita, PPP
1x
Year Current $
Costa Rica Hungary
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2024 $18,587 $31,107 $23,292 $48,552
2023 $16,942 $28,909 $22,231 $46,592
2022 $13,626 $26,226 $18,428 $44,366
2021 $12,838 $23,853 $19,031 $38,887
2020 $12,394 $22,100 $16,387 $35,584
2019 $12,885 $23,340 $17,013 $35,627
2018 $12,590 $21,498 $16,605 $32,258
2017 $12,317 $20,499 $14,736 $29,728
2016 $12,091 $19,202 $13,216 $28,179
2015 $11,715 $17,525 $12,783 $26,938
2014 $10,911 $16,394 $14,353 $25,796
2013 $10,803 $15,232 $13,739 $24,592
2012 $10,127 $14,464 $12,950 $23,205
2011 $9,276 $13,614 $14,211 $22,992
2010 $8,266 $12,928 $13,190 $21,691
2009 $6,833 $12,274 $13,051 $20,691
2008 $6,937 $12,472 $15,763 $20,709
2007 $6,138 $11,842 $13,935 $19,089
2006 $5,257 $10,800 $11,478 $18,362
2005 $4,703 $9,899 $11,212 $17,091
2004 $4,431 $9,365 $10,291 $16,251
2003 $4,173 $8,863 $8,410 $15,460
2002 $4,068 $8,461 $6,658 $14,532
2001 $3,985 $8,190 $5,281 $13,223
2000 $3,813 $7,879 $4,630 $11,872
1999 $3,691 $7,563 $4,802 $10,892
1998 $3,617 $7,306 $4,752 $10,415
1997 $3,408 $6,890 $4,606 $9,846
1996 $3,227 $6,568 $4,542 $9,388
1995 $3,275 $6,515 $4,509 $9,222
1994 $3,040 $6,276 $4,187 $8,888
1993 $2,840 $6,025 $3,887 $8,441
1992 $2,612 $5,635 $3,747 $8,284
1991 $2,253 $5,175 $3,361 $8,352
1990 $1,830 $5,021 $3,324 $9,169
1989 $1,725 - $2,902 -
1988 $1,555 - $2,812 -
1987 $1,567 - $2,566 -
1986 $1,569 - $2,331 -
1985 $1,429 - $2,020 -
1984 $1,372 - $1,991 -
1983 $1,213 - $2,050 -
1982 $1,032 - $2,255 -
1981 $1,068 - $2,213 -
1980 $2,021 - $2,158 -
1979 $1,735 - $1,865 -
1978 $1,556 - $1,618 -
1977 $1,393 - $1,388 -
1976 $1,123 - $1,249 -
1975 $937 - $1,083 -
1974 $817 - $956 -
1973 $769 - $876 -
1972 $639 - $710 -
1971 $570 - $607 -
1970 $536 - $559 -
1969 $477 - $527 -
1968 $445 - $476 -
1967 $414 - - -
1966 $395 - - -
1965 $374 - - -
1964 $354 - - -
1963 $346 - - -
1962 $335 - - -
1961 $356 - - -
1960 $382 - - -

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

GeoRank.org/economy/costa-rica/hungary | CC BY

Costa Rica's GDP per capita is $18,587, ranking 62/197, compared to $23,292 in Hungary, ranking 55/197. Adjusted for purchasing power (GDP per capita PPP), Costa Rica ranks 72nd at $31,107, while Hungary ranks 48th at $48,552.

Economic indicators

Costa Rica Hungary
Gross domestic product
$95.4B
2024
$223B
2024
GDP rank
73/197
2024
55/197
2024
GDP growth
4.32%
2023-2024
0.56%
2023-2024
GDP per capita
$18,587
2024
$23,292
2024
GDP per capita rank
62/197
2024
55/197
2024
GDP per capita, PPP
$31,107
2024
$48,552
2024
GDP per capita PPP rank
72/197
2024
48/197
2024
Government debt
$57B
2024
$164B
2024
Debt-to-GDP ratio
59.8%
2024
73.5%
2024
Government debt per person
$11,106
2024
$17,109
2024
Government debt per person rank
50/185
2024
37/185
2024
Average annual personal income after taxes
$12,150
2026
$16,996
2026
Market capitalization of domestic companies
$2.23B
2022
$41.5B
2024
Number of millionaires n/a
24,692
2025
Number of billionaires n/a
4
2025
Income share by richest 10%
34.2%
2024
24.4%
2022
Income share by poorest 10%
1.7%
2024
2.8%
2022
Government expenditure, % of GDP
18.9%
2024
46.9%
2024
Consumer prices inflation
-0.41%
2023-2024
3.7%
2023-2024
Central bank interest rate
3.5%
2025
6.5%
2024
Unemployment rate
6.94%
2024
4.47%
2024
Population
5181862
9475525

Spending and national debt comparison by year

Costa Rica
Spending

Debt
Hungary
Spending

Debt
1x
Year % of GDP
Costa Rica Hungary
Government spending Government debt Government spending Government debt
2024 18.9% 59.8% 46.9% 73.5%
2023 18.5% 61.1% 49.2% 73%
2022 19.2% 63% 48.7% 73.9%
2021 20.8% 67.6% 48.1% 76.2%
2020 22.3% 66.9% 51% 78.7%
2019 21.7% 56.4% 45.8% 65%
2018 18.9% 51.8% 45.9% 68.8%
2017 19.2% 47.1% 46.6% 72%
2016 18.8% 44.1% 46.7% 74.6%
2015 18.8% 39.8% 50.4% 75.7%
2014 18.4% 37.4% 50% 76.5%
2013 18.5% 35.1% 50.1% 77.2%
2012 17.3% 33.7% 49.2% 78.4%
2011 17.2% 29.5% 49.1% 80.5%
2010 18% 28.1% 48.9% 80.2%
2009 16.7% 26% 50.7% 78.2%
2008 15.2% 24% 48.8% 71.8%
2007 14.6% 27% 49.9% 65.6%
2006 15.2% 33% 51.4% 64.5%
2005 15.9% 37.3% 49.4% 60.6%
2004 17% 41% 48.8% 58.9%
2003 17.6% 40.6% 49.2% 58.2%
2002 18.6% 41.4% 51% 55.6%
2001 17.3% 39.6% 47.2% 52.2%
2000 16.9% 38.9% 47.3% 55.6%
1999 16.7% 39% 48.9% 60.3%
1998 16% 40.7% 50.7% 60.4%
1997 16.3% 30.6% 49.5% 62.2%
1996 17.3% 33.7% 50.9% 71.2%
1995 16.4% 29.1% 55% 83.9%
1994 17.4% 27% - 86.2%
1993 13.8% 24.4% - 87.2%
1992 13.7% 23.3% - 76.5%
1991 14% 28.4% - 74.2%
1990 18.9% 18.5% - 63.7%
1989 26.1% 19.3% - 70.7%
1988 24.5% 18.2% - -
1987 27.2% 21.2% - -
1986 26.4% 26.1% - -
1985 21.8% 22.8% - -
1984 22.8% 25.2% - -
1983 23.6% 29.8% - -
1982 18.4% 31.8% - -
1981 21% 32.3% - -
1980 25% 37.7% - -
1979 24.9% 39.5% - -
1978 23.2% 41.7% - -
1977 19.3% 27.8% - -
1976 20.1% 29.5% - -
1975 19.1% 26.1% - -
1974 18.3% 30.3% - -
1973 18.4% 32.8% - -
1972 17.2% 31.8% - -
1971 17.5% 30.4% - -
1970 14.9% 28.6% - -
1969 14.5% 26.1% - -
1968 13.8% 27.7% - -
1967 14.7% 26.7% - -
1966 14.3% 24.8% - -
1965 13.8% 24.1% - -
1964 13.5% 22.7% - -
1963 13.3% 21.8% - -
1962 14% 19.7% - -
1961 13.2% 20.3% - -
1960 12.5% 16.1% - -

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/costa-rica/hungary | CC BY

In 2024, Costa Rica's government spending was $18B, accounting for 18.9% of its GDP, while Hungary spent $104B, or 46.9% of GDP.

Debt-to-GDP ratio is 59.8% in Costa Rica and 73.5% in Hungary, ranking 79/185 and 49/185, respectively.

Government deficit by year

Deficit/surplus
Costa Rica

Hungary
1x
Year Deficit/surplus, % of GDP
Costa Rica Hungary
2024 -3.78% -4.92%
2023 -3.25% -6.75%
2022 -2.81% -6.17%
2021 -5.09% -7.11%
2020 -8.38% -7.49%
2019 -6.68% -2.02%
2018 -5.66% -2.05%
2017 -5.88% -2.45%
2016 -5.09% -1.79%
2015 -5.52% -2%
2014 -5.45% -2.77%
2013 -5.25% -2.6%
2012 -4.22% -2.33%
2011 -3.91% -5.22%
2010 -4.96% -4.44%
2009 -3.25% -4.76%
2008 0.18% -3.78%
2007 0.56% -5.09%
2006 -1.04% -9.27%
2005 -2.09% -7.79%
2004 -3.42% -6.6%
2003 -3.43% -7.19%
2002 -4.99% -8.79%
2001 -3.47% -4%
2000 -3.68% -3.04%
1999 -2.88% -5.27%
1998 -2.96% -7.41%
1997 -3.39% -5.54%
1996 -4.32% -4.36%
1995 -3.68% -8.57%
1994 -5.46% -
1993 -1.52% -
1992 -1.51% -
1991 -2.41% -
1990 -4.4% -
1989 -1.55% -
1988 0.57% -
1987 -2.57% -
1986 -4.26% -
1985 -1.06% -
1984 -0.5% -
1983 -1.84% -
1982 -0.94% -
1981 -3.14% -
1980 -7.24% -
1979 -6.6% -
1978 -4.12% -
1977 -2.63% -
1976 -2.42% -
1975 -1.13% -
1974 0.26% -
1973 -2.41% -
1972 -4.54% -
1971 -4.72% -
1970 -1.41% -
1969 -1.61% -
1968 -1.72% -
1967 -3.03% -
1966 -2.12% -
1965 -1.71% -
1964 -1.51% -
1963 -2.01% -
1962 -1.99% -
1961 -0.71% -
1960 -0.19% -
1959 0.49% -
1958 0% -
1957 0.3% -
1956 0.05% -
1955 - -
1954 - -
1953 - -
1952 - -
1951 - -
1950 - -
1949 - -
1948 - -
1947 - -
1946 - -
1945 - -
1944 - -
1943 - -0.17%
1942 - 0.31%
1941 - 0.2%
1940 - -0.07%
1939 - 0.19%
1938 - -0.11%
1937 - -0.01%
1936 - 0.08%
1935 - 0.03%
1934 - 0.04%
1933 - -0.03%
1932 - -0.22%
1931 - -0.32%
1930 - -0.26%
1929 - 0.02%
1928 - 0.12%
1927 - 0.15%

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

GeoRank.org/economy/costa-rica/hungary | CC BY

In 2024, Costa Rica's government deficit, the difference between spending and revenue, was $3.61B, equivalent to 3.78% of GDP. This compares to Hungary's deficit of $10.9B, or 4.92% of GDP.

Over the past 30 years, Costa Rica recorded a fiscal deficit in 28 of those years, while Hungary ran a deficit in 30 years. On average, Costa Rica posted an annual deficit equal to 3.93% of GDP, compared to deficit of 5.05% of GDP for Hungary.

Inflation comparison by year

Inflation
Costa Rica

Hungary
1x
Year Consumer prices inflation
Costa Rica Hungary
2024 -0.41% 3.7%
2023 0.53% 17.1%
2022 8.27% 14.6%
2021 1.73% 5.11%
2020 0.72% 3.33%
2019 2.1% 3.34%
2018 2.22% 2.85%
2017 1.63% 2.35%
2016 -0.02% 0.39%
2015 0.8% -0.06%
2014 4.52% -0.23%
2013 5.23% 1.73%
2012 4.5% 5.65%
2011 4.88% 3.93%
2010 5.66% 4.86%
2009 7.84% 4.21%
2008 13.4% 6.04%
2007 9.36% 7.96%
2006 11.5% 3.93%
2005 13.8% 3.56%
2004 12.3% 6.74%
2003 9.45% 4.66%
2002 9.17% 5.27%
2001 11.3% 9.12%
2000 11% 9.8%
1999 10% 10%
1998 11.7% 14.2%
1997 13.2% 18.3%

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

GeoRank.org/economy/costa-rica/hungary | CC BY

Over the past 28 years, Costa Rica has recorded an average annual inflation rate of 6.66%, compared with 6.16% in Hungary. In 2024, inflation was -0.41% in Costa Rica and 3.7% in Hungary.

Top exports between countries

Costa Rica
Export category Export value
Chemicals & pharma $32.6M
Machinery & equipment $8.47M
Precious metals & jewellery $46K
Raw materials & minerals $12K
Raw agricultural goods $10K
Wood & paper products $8K
Textiles & consumer goods $6K
Processed food, beverages & tobacco $2K
Metals $1K
Hungary
Export category Export value
Chemicals & pharma $56.5M
Machinery & equipment $27M
Textiles & consumer goods $3.6M
Wood & paper products $2.67M
Raw materials & minerals $1.02M
Processed food, beverages & tobacco $780K
Raw agricultural goods $334K
Metals $293K
Miscellaneous $77K
Animal & marine products $20K

Balance of trade

Costa Rica Hungary
Current account balance
-$1.25B
2024
$3.52B
2024
Current account balance ranking
129/190
2024
36/190
2024
Current account balance, % of GDP
-1.31%
2024
+1.58%
2024
Goods imports
$23.1B
2024
$130B
2024
Goods exports
$20.6B
2024
$129B
2024
Service imports
$7.58B
2024
$27.9B
2024
Service exports
$16.3B
2024
$38.9B
2024
Imports of goods and services, % of GDP
32.8%
2024
71.1%
2024
Exports of goods and services, % of GDP
38.5%
2024
75.4%
2024

Economic freedom indices

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

Costa Rica Hungary
Economic freedom 69.1 62.5
Economic freedom ranking 43/197 86/197
Property rights 66 67.3
Government integrity 64.1 44
Judicial effectiveness 76.9 61.9
Tax burden 78.6 85.1
Government spending 89.3 30.2
Fiscal health 75.6 32.7
Business freedom 79.9 70.8
Labor freedom 55.9 56.5
Monetary freedom 78.2 72.1
Trade freedom 75 79.4
Investment freedom 50 80
Financial freedom 40 70

Economic freedom comparison by year

Costa Rica
Hungary
1x
Year Economic freedom index
Costa Rica Hungary
2026 69.1 62.5
2025 68.6 61.4
2024 67.7 61.2
2023 66.5 64.1
2022 65.4 66.9
2021 64.2 67.2
2020 65.8 66.4
2019 65.3 65
2018 65.6 66.7
2017 65 65.8
2016 67.4 66
2015 67.2 66.8
2014 66.9 67
2013 67 67.3
2012 68 67.1
2011 67.3 66.6
2010 65.9 66.1
2009 66.4 66.8
2008 64.2 67.6
2007 64 64.8
2006 65.9 65
2005 66.1 63.5
2004 66.4 62.7
2003 67 63
2002 67.5 64.5
2001 67.6 65.6
2000 68.4 64.4
1999 67.4 59.6
1998 65.6 56.9
1997 65.6 55.3
1996 66.4 56.8
1995 68 55.2

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

GeoRank.org/economy/costa-rica/hungary | CC BY

The Economic Freedom Index for Costa Rica is 69.1, ranking 43/197, compared to 62.5 for Hungary, ranking 86/197. The chart above displays a comparison of annual changes in economic freedom indexes.

Other economic metrics

Costa Rica Hungary
Services, % of GDP
68.8%
2024
59.5%
2024
Industry, % of GDP
19.7%
2024
23.7%
2024
Agriculture, forestry, and fishing, % of GDP
3.56%
2024
2.71%
2024
GNI, Atlas method
$80.2B
2024
$199B
2024
GNI per capita, PPP
$28,840
2024
$47,290
2024
Total reserves including gold
$14.2B
2024
$46.4B
2024
Total reserves ranking
70/177
2024
42/177
2024
Net foreign direct investment
-$4.96B
2024
-$15.8B
2024
Net inflows of foreign direct investment
$5.3B
2024
-$62.2B
2024
Net outflows of foreign direct investment
$337M
2024
-$78B
2024
Servicing debt to the IMF, % of GNI
6.31%
2023
n/a
Poverty at national poverty lines
20.3%
2024
12.1%
2021
Gross capital formation, % of GDP
15.7%
2024
23.5%
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/costa-rica/hungary | 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) | Fiscal Monitor (1990–2024, retrieved 2026-02-20)
  3. International Monetary Fund (IMF) | Public Finances in Modern History (1927–1995, 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 (2023–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.