Skip to content

Costa Rica vs Hungary statistics compared

Updated on by Georank team

Costa Rica has a population of 5.13M (ranked 126/197), compared with 9.56M in Hungary (ranked 97/197). Costa Rica's land area is 19,714 sq mi versus 35,236 sq mi for Hungary (ranked 126th vs. 109th).

By GDP, Costa Rica ranks 73/197 ($95.4B) and Hungary ranks 55/197 ($223B). By GDP per capita, Costa Rica ranks 62/197 ($18,587), while Hungary ranks 55/197 ($23,292).

Main facts and rankings

Costa Rica Hungary
Population
5181862
9475525
Population rank 126/197 98/197
GDP
$95.4B
2024
$223B
2024
GDP rank 73/197 55/197
GDP per capita
$18,587
2024
$23,292
2024
GDP per capita rank 62/197 55/197
GDP per capita, PPP
$31,107
2024
$48,552
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 37/185
Average annual personal income after taxes
$12,150
2026
$16,996
2026
Land area 19,714 sq mi 35,236 sq mi
Population density
262.6 ppl/mi²
2026
268.9 ppl/mi²
2026
Fertility rate
1.33
2023
1.51
2023
Median age
35.6 years
2024
44.6 years
2024
Life expectancy
81.4 years
2026
77.5 years
2026

Costa Rica and Hungary: Comparison Charts

Costa Rica and Hungary economies compared

GDP
Costa Rica

Hungary
1x
Year GDP
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/facts/costa-rica/hungary | CC BY

Costa Rica and Hungary economies compared

GDP per capita
Costa Rica

Hungary
1x
Year GDP per capita
Costa Rica Hungary
2024 $18,587 $23,292
2023 $16,942 $22,231
2022 $13,626 $18,428
2021 $12,838 $19,031
2020 $12,394 $16,387
2019 $12,885 $17,013
2018 $12,590 $16,605
2017 $12,317 $14,736
2016 $12,091 $13,216
2015 $11,715 $12,783
2014 $10,911 $14,353
2013 $10,803 $13,739
2012 $10,127 $12,950
2011 $9,276 $14,211
2010 $8,266 $13,190
2009 $6,833 $13,051
2008 $6,937 $15,763
2007 $6,138 $13,935
2006 $5,257 $11,478
2005 $4,703 $11,212
2004 $4,431 $10,291
2003 $4,173 $8,410
2002 $4,068 $6,658
2001 $3,985 $5,281
2000 $3,813 $4,630
1999 $3,691 $4,802
1998 $3,617 $4,752
1997 $3,408 $4,606
1996 $3,227 $4,542
1995 $3,275 $4,509
1994 $3,040 $4,187
1993 $2,840 $3,887
1992 $2,612 $3,747
1991 $2,253 $3,361
1990 $1,830 $3,324
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/facts/costa-rica/hungary | CC BY

Costa Rica vs. Hungary life expectancy calculator

Life expectancy
Costa Rica

Hungary
1x
Year Life expectancy, years
Costa Rica Hungary
2026 81.4 77.5
2025 81.2 77.3
2024 81 77.2
2023 80.8 77
2022 79.3 76.2
2021 78.1 74.2
2020 79.7 75.7
2019 80.3 76.5
2018 80.1 76.2
2017 80 76
2016 80 76.2
2015 80.4 75.7
2014 80.2 75.8
2013 80.2 75.7
2012 79.9 75.2
2011 79.6 74.9
2010 79.4 74.5
2009 79.4 74.2
2008 79.2 74
2007 79.1 73.4
2006 79 73.3
2005 78.9 72.9
2004 78.5 72.9
2003 78.2 72.5
2002 77.9 72.5
2001 77.6 72.4
2000 77.3 71.8
1999 77.1 71
1998 76.9 70.9
1997 76.6 71
1996 76.4 70.6
1995 76.4 70
1994 76.3 69.6
1993 76.3 69.2
1992 76.4 69.2
1991 76.2 69.4
1990 76.1 69.4
1989 75.9 69.4
1988 75.5 69.9
1987 75.2 69.6
1986 74.9 69.1
1985 74.8 68.9
1984 74.6 69
1983 74.2 68.9
1982 73.9 69.4
1981 73.4 69.2
1980 73 69.1
1979 72.5 69.7
1978 72 69.5
1977 71.5 69.9
1976 70.9 69.7
1975 70.3 69.4
1974 69.4 69.3
1973 68.7 69.6
1972 68 69.7
1971 67.4 69.1
1970 66.8 69.2
1969 66.4 69.4
1968 65.8 69.3
1967 65.6 69.5
1966 65.1 69.9
1965 64.8 69.1
1964 64.5 69.5
1963 64.3 68.9
1962 64.2 67.9
1961 63.9 69
1960 63.5 68.1
1959 62.9 67.3
1958 62.3 67.4
1957 61.6 66.3
1956 61.2 66
1955 60.5 66.9
1954 59.9 65.4
1953 59.1 63.9
1952 58.1 63.9
1951 57.8 62.5
1950 57.5 62.1

Data sources: United Nations | World Population Prospects (1950–2026, retrieved 2026-03-10).

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

Costa Rica and Hungary population clocks and comparison

Population
Costa Rica

Hungary
1x
Year Population
Costa Rica Hungary
2024 5,129,910 9,562,065
2023 5,105,525 9,592,186
2022 5,081,765 9,605,074
2021 5,059,988 9,630,932
2020 5,034,320 9,670,419
2019 4,999,553 9,694,824
2018 4,957,818 9,706,964
2017 4,913,177 9,726,756
2016 4,866,998 9,759,755
2015 4,818,038 9,797,755
2014 4,767,119 9,833,038
2013 4,716,147 9,872,734
2012 4,663,934 9,920,362
2011 4,609,833 9,971,727
2010 4,555,962 10,000,023
2009 4,499,791 10,022,650
2008 4,440,056 10,038,188
2007 4,380,248 10,055,780
2006 4,321,340 10,071,370
2005 4,261,240 10,087,065
2004 4,200,078 10,107,146
2003 4,138,784 10,129,552
2002 4,075,705 10,158,608
2001 4,008,947 10,187,576
2000 3,937,739 10,210,971
1999 3,862,101 10,237,530
1998 3,782,838 10,266,570
1997 3,701,711 10,290,486
1996 3,619,013 10,311,238
1995 3,535,176 10,328,965
1994 3,451,122 10,343,355
1993 3,367,434 10,357,523
1992 3,284,258 10,369,341
1991 3,202,176 10,373,400
1990 3,121,706 10,373,988
1989 3,043,827 10,481,719
1988 2,968,103 10,596,487
1987 2,892,699 10,612,741
1986 2,817,216 10,630,564
1985 2,741,894 10,648,713
1984 2,667,595 10,668,095
1983 2,595,153 10,689,463
1982 2,524,806 10,705,535
1981 2,456,637 10,711,848
1980 2,390,633 10,711,122
1979 2,326,490 10,704,152
1978 2,264,510 10,684,822
1977 2,205,025 10,648,031
1976 2,147,774 10,598,677
1975 2,092,719 10,540,525
1974 2,039,643 10,478,720
1973 1,988,343 10,432,055
1972 1,938,248 10,398,489
1971 1,888,539 10,367,537
1970 1,838,949 10,337,910
1969 1,789,276 10,298,723
1968 1,739,731 10,255,815
1967 1,689,523 10,216,604
1966 1,638,116 10,178,653
1965 1,586,208 10,147,935
1964 1,533,960 10,119,835
1963 1,481,604 10,087,947
1962 1,429,445 10,060,825
1961 1,377,920 10,027,958
1960 1,327,496 9,983,512

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

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

Fertility rates in Costa Rica and Hungary

Fertility rate
Costa Rica

Hungary
1x
Year Fertility rate
Costa Rica Hungary
2023 1.33 1.51
2022 1.34 1.56
2021 1.35 1.61
2020 1.45 1.59
2019 1.6 1.55
2018 1.71 1.55
2017 1.71 1.54
2016 1.75 1.53
2015 1.8 1.45
2014 1.8 1.44
2013 1.78 1.35
2012 1.85 1.34
2011 1.88 1.23
2010 1.83 1.25
2009 1.95 1.32
2008 1.98 1.35
2007 1.95 1.32
2006 1.94 1.34
2005 2.04 1.31
2004 2.03 1.28
2003 2.08 1.27
2002 2.16 1.3
2001 2.31 1.31
2000 2.41 1.32
1999 2.48 1.28
1998 2.53 1.32
1997 2.59 1.37
1996 2.68 1.46
1995 2.78 1.57
1994 2.86 1.64
1993 2.93 1.68
1992 3 1.77
1991 3.08 1.87
1990 3.17 1.87
1989 3.24 1.82
1988 3.31 1.81
1987 3.38 1.82
1986 3.45 1.84
1985 3.51 1.85
1984 3.52 1.75
1983 3.53 1.75
1982 3.54 1.8
1981 3.56 1.88
1980 3.58 1.91
1979 3.65 2.01
1978 3.66 2.06
1977 3.7 2.15
1976 3.75 2.23
1975 3.8 2.35
1974 3.89 2.27
1973 3.99 1.93
1972 4.16 1.93
1971 4.36 1.93
1970 4.59 1.98
1969 4.84 2.04
1968 5.03 2.06
1967 5.42 2.01
1966 5.7 1.89
1965 5.96 1.82
1964 6.19 1.82
1963 6.39 1.82
1962 6.54 1.79
1961 6.65 1.94
1960 6.71 2.02

Data sources: World Bank | Health (1960–2023, retrieved 2026-04-06).

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

Costa Rica and Hungary demographics compared

Median age
Costa Rica

Hungary
1x
Year Median age, years
Costa Rica Hungary
2024 35.6 44.6
2023 35.1 44.2
2022 34.5 43.9
2021 34 43.6
2020 33.5 43.3
2019 33 43
2018 32.6 42.8
2017 32.1 42.6
2016 31.7 42.3
2015 31.2 41.9
2014 30.7 41.5
2013 30.3 41.2
2012 29.8 40.9
2011 29.4 40.4
2010 29 39.9
2009 28.6 39.6
2008 28.2 39.4
2007 27.8 39.2
2006 27.4 39.1
2005 27 39
2004 26.7 38.9
2003 26.3 38.8
2002 25.9 38.7
2001 25.5 38.6
2000 25.2 38.4
1999 24.9 38.3
1998 24.7 38.1
1997 24.4 37.9
1996 24.1 37.7
1995 23.9 37.5
1994 23.6 37.2
1993 23.4 37
1992 23.2 36.9
1991 22.9 36.7
1990 22.7 36.5
1989 22.5 36.1
1988 22.3 35.8
1987 22.1 35.5
1986 21.8 35.3
1985 21.6 35.1
1984 21.4 34.9
1983 21.2 34.7
1982 20.9 34.5
1981 20.6 34.4
1980 20.3 34.3
1979 20 34.3
1978 19.7 34.2
1977 19.5 34.2
1976 19.2 34.2
1975 18.9 34.3
1974 18.6 34.3
1973 18.4 34.3
1972 18.1 34.3
1971 17.8 34.2
1970 17.6 34.1
1969 17.3 34.1
1968 17.1 34
1967 16.9 33.8
1966 16.8 33.7
1965 16.7 33.4
1964 16.7 33.2
1963 16.7 32.9
1962 16.7 32.6
1961 16.8 32.4
1960 16.8 32.1

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

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

Interactive Maps

Use the buttons below to switch between world maps comparing statistics for Costa Rica and Hungary.

1x
1x
1x
1x
1x
1x
1x

National statistics comparison

Finance

Costa Rica Hungary
GNI, Atlas method
$80.2B
2024
$199B
2024
Government expenditure, % of GDP
18.9%
2024
46.9%
2024
Education expenditure, % of GDP
6.25%
2021
3.81%
2022
Military expenditure, % of GDP n/a
2.16%
2024
Armed forces personnel
10,000
2020
46,000
2020
Deficit/surplus, % of GDP
-3.78%
2024
-4.92%
2024
Unemployment rate
6.94%
2024
4.47%
2024
Services, % of GDP
68.8%
2024
59.5%
2024
Industry, % of GDP
19.7%
2024
23.7%
2024
Economic freedom index
69.1
2026
62.5
2026
Income share by richest 10%
34.2%
2024
24.4%
2022
Income share by poorest 10%
1.7%
2024
2.8%
2022
Number of millionaires n/a
24,692
2025
Percentage of millionaires n/a
0.32%
2025
Number of billionaires n/a
4
2025
Percentage of billionaires n/a
0.00005%
2025
Listed domestic companies
9
2022
68
2024
Market capitalization of domestic companies
$2.23B
2022
$41.5B
2024
Total reserves including gold
$14.2B
2024
$46.4B
2024
Personal remittances received
$725M
2024
$5.48B
2024
International tourist arrivals
1,146,500
2020
31,641,000
2020
International tourism as share of exports
7.41%
2020
3.4%
2020
Banked people share
71.4%
2024
87%
2024

Energy

Costa Rica Hungary
Energy use, kg of oil equivalent per capita
1,025 kg
2023
2,515 kg
2023
GDP PPP per kg equivalent of energy use
$28.2
2023
$18.5
2023
Carbon dioxide (CO2) emissions
8.38 megatons
2024
42.6 megatons
2024
CO2 emissions per capita
1.63 tons
2024
4.46 tons
2024
Fossil fuel energy use share
51.6%
2023
64.2%
2023
Renewable energy use share
34.2%
2021
15.3%
2021
Alternative and nuclear energy use share
37.7%
2023
21.1%
2023
Net energy imports use share
60.4%
2023
62.5%
2023
Electric power consumption per capita
2,206 kWh
2023
4,605 kWh
2023
Renewable electricity output share
99.4%
2021
19.1%
2021
Hydroelectric share
69.3%
2023
0.62%
2023
Nuclear share
0%
2021
44.8%
2023
Electricity access
100%
2023
100%
2023

Society

Costa Rica Hungary
% of world population
0.06%
2024
0.12%
2024
Annual migration change
+1,000
2025
-16,331
2025
Urban population
79.3%
2024
70.5%
2024
Male:Female ratio
49.4:50.6
2024
48:52
2024
Average male height
5.71 ft
2025
5.79 ft
2025
Average female height
5.26 ft
2025
5.33 ft
2025
Quality of life index
64.8
2026
70.6
2026
Corruption Perceptions Index
56
2025
40
2025
Higher education index
73
2026
80
2026
Homicides per 100K people
17.7
2023
0.77
2023
Road traffic mortality per 100K people
14.8
2019
7.7
2019
Visa free countries
142
2025
171
2025
Adult literacy rate
98%
2021
99.1%
2021
English speaking
8.15%
2023
25.3%
2023
People using the Internet
85.4%
2023
93.8%
2024

Health

Costa Rica Hungary
Government health expenditure per capita
$1,163
2023
$1,420
2023
Out-of-pocket health expenditure per capita
$280.7
2023
$327
2023
Life expectancy
81.4 years
2026
77.5 years
2026
Foreign aid share of health expenditure
0.01%
2023
0%
2023
Physicians per 1,000 people
2.69
2022
3.46
2022
Age at first childbirth n/a
28.8 years
2023
Maternal mortality per 100K births
24
2023
12
2023
Mortality rate before reaching 5 years of age
10.5
2023
3.8
2023
Obesity rate
32.3%
2022
32.5%
2022
Diabetes prevalence
9.8%
2024
8.3%
2024
Air quality index
80
2026
59
2026
Tobacco use prevalence
8.9%
2022
32.2%
2022
Pure alcohol consumption per capita
3.4 liters
2020
9.93 liters
2020

Territory

Costa Rica Hungary
% of world land
0.03%
2026
0.06%
2026
Land area per capita
3,843 sq mi
2024
3,685 sq mi
2024
Agricultural land area
6,534 sq mi
2026
19,626 sq mi
2026
Forest area
11,907 sq mi
2026
7,910 sq mi
2026
Roads length
3,129 mi
2017
130,979 mi
2018

In-depth comparisons

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 | Health (1960–2025, retrieved 2026-04-06)
  2. United Nations | World Population Prospects (1950–2026, retrieved 2026-03-10)
  3. U.S. Census Bureau (1960–2025, retrieved 2026-02-08)
  4. Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-02-20)
  5. International Monetary Fund (IMF) | Fiscal Monitor (2024, retrieved 2026-02-20)
  6. LivingCost (2026, retrieved 2025-10-14)
  7. World Obesity Federation (2022, retrieved 2026-02-08)
  8. Passport Index (2025, retrieved 2026-02-08)
  9. Transparency International (2025, retrieved 2026-02-10)
  10. The Heritage Foundation | Economic Freedom Index (2026, retrieved 2026-03-09)
  11. EduRank (2026, retrieved 2025-10-13)
  12. United Nations Economic Commission for Europe (UNECE) (2023, retrieved 2026-03-10)

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.