Skip to content

Afghanistan vs Costa Rica statistics compared

Updated on by Georank team

Afghanistan has a population of 42.6M (ranked 36/197), compared with 5.13M in Costa Rica (ranked 126/197). Afghanistan's land area is 251,827 sq mi versus 19,714 sq mi for Costa Rica (ranked 40th vs. 126th).

By GDP, Afghanistan ranks 137/197 ($17.2B) and Costa Rica ranks 73/197 ($95.4B). By GDP per capita, Afghanistan ranks 196/197 ($414), while Costa Rica ranks 62/197 ($18,587).

Main facts and rankings

Afghanistan Costa Rica
Population
45409324
5181862
Population rank 36/197 126/197
GDP
$17.2B
2023
$95.4B
2024
GDP rank 137/197 73/197
GDP per capita
$414
2023
$18,587
2024
GDP per capita rank 196/197 62/197
GDP per capita, PPP
$2,202
2023
$31,107
2024
Government debt
$1.44B
2023
$57B
2024
Debt-to-GDP ratio
8.8%
2024
59.8%
2024
Government debt per person
$34.8
2023
$11,106
2024
Government debt per person rank 185/185 50/185
Average annual personal income after taxes
$1,869
2026
$12,150
2026
Land area 251,827 sq mi 19,714 sq mi
Population density
179 ppl/mi²
2026
262.6 ppl/mi²
2026
Fertility rate
4.84
2023
1.33
2023
Median age
18.2 years
2024
35.6 years
2024
Life expectancy
66.8 years
2026
81.4 years
2026

Afghanistan and Costa Rica: Comparison Charts

Afghanistan and Costa Rica economies compared

GDP
Afghanistan

Costa Rica
1x
Year GDP
Afghanistan Costa Rica
2024 - $95,350,423,177
2023 $17,152,234,637 $86,497,941,439
2022 $14,497,243,872 $69,243,626,029
2021 $14,259,995,441 $64,960,725,734
2020 $19,955,929,052 $62,395,610,760
2019 $18,799,444,490 $64,417,670,521
2018 $18,053,222,687 $62,420,164,992
2017 $18,753,456,498 $60,516,044,657
2016 $18,116,572,395 $58,847,019,610
2015 $19,134,221,645 $56,441,920,821
2014 $20,497,128,556 $52,016,408,854
2013 $20,146,416,758 $50,949,668,842
2012 $19,907,329,778 $47,231,655,432
2011 $17,805,098,206 $42,762,613,699
2010 $15,856,668,556 $37,658,616,952
2009 $12,416,152,732 $30,745,714,313
2008 $10,109,297,048 $30,801,745,700
2007 $9,747,886,187 $26,884,700,709
2006 $6,971,758,282 $22,715,540,324
2005 $6,203,256,539 $20,040,642,477
2004 $5,224,896,719 $18,610,594,846
2003 $4,520,946,819 $17,271,760,507
2002 $3,825,701,439 $16,578,820,687
2001 $2,813,571,754 $15,976,174,337
2000 $3,521,418,060 $15,013,629,662
1999 - $14,254,866,285
1998 - $13,684,255,947
1997 - $12,614,602,382
1996 - $11,678,424,507
1995 - $11,578,594,260
1994 - $10,489,903,725
1993 - $9,564,815,975
1992 - $8,579,754,758
1991 - $7,215,725,487
1990 - $5,711,687,787
1989 - $5,251,025,767
1988 - $4,614,629,898
1987 - $4,532,952,047
1986 - $4,418,983,871
1985 - $3,919,203,960
1984 - $3,660,477,856
1983 - $3,146,772,631
1982 - $2,606,623,555
1981 - $2,623,803,096
1980 - $4,831,447,001
1979 - $4,035,519,323
1978 - $3,523,208,810
1977 - $3,072,427,013
1976 - $2,412,555,426
1975 - $1,960,863,466
1974 - $1,666,544,754
1973 - $1,528,925,846
1972 - $1,238,251,696
1971 - $1,077,147,538
1970 - $984,830,158
1969 - $853,630,204
1968 - $773,841,494
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/afghanistan/costa-rica | CC BY

Afghanistan and Costa Rica economies compared

GDP per capita
Afghanistan

Costa Rica
1x
Year GDP per capita
Afghanistan Costa Rica
2024 - $18,587
2023 $414 $16,942
2022 $357 $13,626
2021 $356 $12,838
2020 $511 $12,394
2019 $497 $12,885
2018 $491 $12,590
2017 $525 $12,317
2016 $522 $12,091
2015 $566 $11,715
2014 $625 $10,911
2013 $637 $10,803
2012 $651 $10,127
2011 $607 $9,276
2010 $561 $8,266
2009 $452 $6,833
2008 $382 $6,937
2007 $376 $6,138
2006 $274.2 $5,257
2005 $254.2 $4,703
2004 $221.8 $4,431
2003 $198.9 $4,173
2002 $179 $4,068
2001 $138.7 $3,985
2000 $174.9 $3,813
1999 - $3,691
1998 - $3,617
1997 - $3,408
1996 - $3,227
1995 - $3,275
1994 - $3,040
1993 - $2,840
1992 - $2,612
1991 - $2,253
1990 - $1,830
1989 - $1,725
1988 - $1,555
1987 - $1,567
1986 - $1,569
1985 - $1,429
1984 - $1,372
1983 - $1,213
1982 - $1,032
1981 - $1,068
1980 - $2,021
1979 - $1,735
1978 - $1,556
1977 - $1,393
1976 - $1,123
1975 - $937
1974 - $817
1973 - $769
1972 - $639
1971 - $570
1970 - $536
1969 - $477
1968 - $445
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/afghanistan/costa-rica | CC BY

Afghanistan vs. Costa Rica life expectancy calculator

Life expectancy
Afghanistan

Costa Rica
1x
Year Life expectancy, years
Afghanistan Costa Rica
2026 66.8 81.4
2025 66.5 81.2
2024 66.3 81
2023 66 80.8
2022 65.6 79.3
2021 60.4 78.1
2020 61.5 79.7
2019 62.9 80.3
2018 62.4 80.1
2017 62.4 80
2016 62.6 80
2015 62.3 80.4
2014 62.3 80.2
2013 62.2 80.2
2012 61.7 79.9
2011 61.3 79.6
2010 60.7 79.4
2009 60.2 79.4
2008 59.7 79.2
2007 59 79.1
2006 58.6 79
2005 58.2 78.9
2004 57.8 78.5
2003 57.2 78.2
2002 56.2 77.9
2001 55.5 77.6
2000 55 77.3
1999 54.5 77.1
1998 52.5 76.9
1997 53.2 76.6
1996 52.8 76.4
1995 52.1 76.4
1994 51 76.3
1993 51 76.3
1992 46.6 76.4
1991 45.5 76.2
1990 45.1 76.1
1989 44.5 75.9
1988 43.2 75.5
1987 38.8 75.2
1986 38.4 74.9
1985 32.1 74.8
1984 31.5 74.6
1983 36.5 74.2
1982 36.1 73.9
1981 39.4 73.4
1980 39.3 73
1979 38.8 72.5
1978 40.1 72
1977 41.1 71.5
1976 40.5 70.9
1975 40 70.3
1974 39.5 69.4
1973 39 68.7
1972 38.4 68
1971 37.9 67.4
1970 37.5 66.8
1969 37 66.4
1968 36.5 65.8
1967 36 65.6
1966 35.6 65.1
1965 35.1 64.8
1964 34.7 64.5
1963 34.2 64.3
1962 33.8 64.2
1961 33.3 63.9
1960 32.8 63.5
1959 32.3 62.9
1958 31.8 62.3
1957 31.3 61.6
1956 30.8 61.2
1955 30.4 60.5
1954 29.7 59.9
1953 29.5 59.1
1952 29 58.1
1951 28.6 57.8
1950 28.2 57.5

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

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

Afghanistan and Costa Rica population clocks and comparison

Population
Afghanistan

Costa Rica
1x
Year Population
Afghanistan Costa Rica
2024 42,647,492 5,129,910
2023 41,454,761 5,105,525
2022 40,578,842 5,081,765
2021 40,000,412 5,059,988
2020 39,068,979 5,034,320
2019 37,856,121 4,999,553
2018 36,743,039 4,957,818
2017 35,688,935 4,913,177
2016 34,700,612 4,866,998
2015 33,831,764 4,818,038
2014 32,792,523 4,767,119
2013 31,622,704 4,716,147
2012 30,560,034 4,663,934
2011 29,347,708 4,609,833
2010 28,284,089 4,555,962
2009 27,466,101 4,499,791
2008 26,482,622 4,440,056
2007 25,909,852 4,380,248
2006 25,424,094 4,321,340
2005 24,404,567 4,261,240
2004 23,560,654 4,200,078
2003 22,733,049 4,138,784
2002 21,378,117 4,075,705
2001 20,284,307 4,008,947
2000 20,130,327 3,937,739
1999 19,887,785 3,862,101
1998 19,159,996 3,782,838
1997 18,452,091 3,701,711
1996 17,763,266 3,619,013
1995 17,065,836 3,535,176
1994 16,250,794 3,451,122
1993 14,943,172 3,367,434
1992 13,278,974 3,284,258
1991 12,238,879 3,202,176
1990 12,045,660 3,121,706
1989 11,874,088 3,043,827
1988 11,523,298 2,968,103
1987 11,387,818 2,892,699
1986 11,420,074 2,817,216
1985 11,426,852 2,741,894
1984 11,190,221 2,667,595
1983 10,917,982 2,595,153
1982 10,991,378 2,524,806
1981 11,937,581 2,456,637
1980 13,169,311 2,390,633
1979 13,655,567 2,326,490
1978 13,611,441 2,264,510
1977 13,340,756 2,205,025
1976 13,059,851 2,147,774
1975 12,773,954 2,092,719
1974 12,469,127 2,039,643
1973 12,157,999 1,988,343
1972 11,853,696 1,938,248
1971 11,567,667 1,888,539
1970 11,290,128 1,838,949
1969 11,017,409 1,789,276
1968 10,756,922 1,739,731
1967 10,505,959 1,689,523
1966 10,266,395 1,638,116
1965 10,036,008 1,586,208
1964 9,814,318 1,533,960
1963 9,604,487 1,481,604
1962 9,404,406 1,429,445
1961 9,214,083 1,377,920
1960 9,035,043 1,327,496

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

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

Fertility rates in Afghanistan and Costa Rica

Fertility rate
Afghanistan

Costa Rica
1x
Year Fertility rate
Afghanistan Costa Rica
2023 4.84 1.33
2022 4.93 1.34
2021 5.04 1.35
2020 5.15 1.45
2019 5.24 1.6
2018 5.33 1.71
2017 5.43 1.71
2016 5.54 1.75
2015 5.65 1.8
2014 5.77 1.8
2013 5.88 1.78
2012 5.99 1.85
2011 6.09 1.88
2010 6.2 1.83
2009 6.3 1.95
2008 6.39 1.98
2007 6.51 1.95
2006 6.69 1.94
2005 6.86 2.04
2004 7.02 2.03
2003 7.17 2.08
2002 7.32 2.16
2001 7.45 2.31
2000 7.57 2.41
1999 7.64 2.48
1998 7.69 2.53
1997 7.73 2.59
1996 7.76 2.68
1995 7.77 2.78
1994 7.77 2.86
1993 7.76 2.93
1992 7.7 3
1991 7.63 3.08
1990 7.58 3.17
1989 7.56 3.24
1988 7.55 3.31
1987 7.55 3.38
1986 7.55 3.45
1985 7.55 3.51
1984 7.55 3.52
1983 7.57 3.53
1982 7.6 3.54
1981 7.62 3.56
1980 7.64 3.58
1979 7.61 3.65
1978 7.6 3.66
1977 7.59 3.7
1976 7.56 3.75
1975 7.54 3.8
1974 7.53 3.89
1973 7.49 3.99
1972 7.45 4.16
1971 7.43 4.36
1970 7.4 4.59
1969 7.39 4.84
1968 7.36 5.03
1967 7.34 5.42
1966 7.32 5.7
1965 7.31 5.96
1964 7.3 6.19
1963 7.3 6.39
1962 7.29 6.54
1961 7.28 6.65
1960 7.28 6.71

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

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

Afghanistan and Costa Rica demographics compared

Median age
Afghanistan

Costa Rica
1x
Year Median age, years
Afghanistan Costa Rica
2024 18.2 35.6
2023 18 35.1
2022 17.8 34.5
2021 17.6 34
2020 17.5 33.5
2019 17.3 33
2018 17.1 32.6
2017 17 32.1
2016 16.8 31.7
2015 16.6 31.2
2014 16.4 30.7
2013 16.2 30.3
2012 16 29.8
2011 15.9 29.4
2010 15.7 29
2009 15.5 28.6
2008 15.3 28.2
2007 15.2 27.8
2006 15.1 27.4
2005 15 27
2004 14.9 26.7
2003 14.9 26.3
2002 14.9 25.9
2001 14.9 25.5
2000 15 25.2
1999 15.1 24.9
1998 15.2 24.7
1997 15.3 24.4
1996 15.5 24.1
1995 15.6 23.9
1994 15.7 23.6
1993 15.8 23.4
1992 15.9 23.2
1991 16 22.9
1990 16.1 22.7
1989 16.1 22.5
1988 16.2 22.3
1987 16.3 22.1
1986 16.3 21.8
1985 16.4 21.6
1984 16.5 21.4
1983 16.6 21.2
1982 16.7 20.9
1981 16.8 20.6
1980 16.9 20.3
1979 17 20
1978 17.2 19.7
1977 17.3 19.5
1976 17.4 19.2
1975 17.5 18.9
1974 17.6 18.6
1973 17.7 18.4
1972 17.8 18.1
1971 17.9 17.8
1970 18.1 17.6
1969 18.2 17.3
1968 18.3 17.1
1967 18.4 16.9
1966 18.5 16.8
1965 18.6 16.7
1964 18.6 16.7
1963 18.7 16.7
1962 18.8 16.7
1961 18.9 16.8
1960 18.9 16.8

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

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

Interactive Maps

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

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

National statistics comparison

Finance

Afghanistan Costa Rica
GNI, Atlas method
$15.5B
2023
$80.2B
2024
Government expenditure, % of GDP
19.4%
2024
18.9%
2024
Education expenditure, % of GDP
4.34%
2017
6.25%
2021
Military expenditure, % of GDP
1.83%
2021
n/a
Armed forces personnel
165,000
2020
10,000
2020
Deficit/surplus, % of GDP
-0.54%
2024
-3.78%
2024
Unemployment rate
5.68%
2021
6.94%
2024
Services, % of GDP
46.4%
2023
68.8%
2024
Industry, % of GDP
13.4%
2023
19.7%
2024
Economic freedom index
53
2021
69.1
2026
Income share by richest 10% n/a
34.2%
2024
Income share by poorest 10% n/a
1.7%
2024
Listed domestic companies n/a
9
2022
Market capitalization of domestic companies n/a
$2.23B
2022
Total reserves including gold
$9.75B
2020
$14.2B
2024
Personal remittances received
$320M
2024
$725M
2024
International tourist arrivals n/a
1,146,500
2020
International tourism as share of exports
5.08%
2020
7.41%
2020
Banked people share
9.65%
2021
71.4%
2024

Energy

Afghanistan Costa Rica
Energy use, kg of oil equivalent per capita n/a
1,025 kg
2023
GDP PPP per kg equivalent of energy use n/a
$28.2
2023
Carbon dioxide (CO2) emissions
12.1 megatons
2024
8.38 megatons
2024
CO2 emissions per capita
0.28 tons
2024
1.63 tons
2024
Fossil fuel energy use share n/a
51.6%
2023
Renewable energy use share
20%
2022
34.2%
2021
Alternative and nuclear energy use share n/a
37.7%
2023
Net energy imports use share n/a
60.4%
2023
Electric power consumption per capita n/a
2,206 kWh
2023
Renewable electricity output share
78.2%
2021
99.4%
2021
Hydroelectric share
71.7%
2021
69.3%
2023
Nuclear share
0%
2021
0%
2021
Electricity access
85.3%
2023
100%
2023

Society

Afghanistan Costa Rica
% of world population
0.52%
2024
0.06%
2024
Annual migration change
-74,404
2025
+1,000
2025
Urban population
25.7%
2024
79.3%
2024
Male:Female ratio
50.5:49.5
2024
49.4:50.6
2024
Average male height
5.53 ft
2025
5.71 ft
2025
Average female height
5.12 ft
2025
5.26 ft
2025
Quality of life index
15.5
2026
64.8
2026
Corruption Perceptions Index
16
2025
56
2025
Higher education index
20
2026
73
2026
Homicides per 100K people
4.02
2021
17.7
2023
Road traffic mortality per 100K people
15.9
2019
14.8
2019
Visa free countries
36
2025
142
2025
Adult literacy rate
37.3%
2021
98%
2021
English speaking
6%
2023
8.15%
2023
People using the Internet
17.7%
2023
85.4%
2023

Health

Afghanistan Costa Rica
Government health expenditure per capita
$59.1
2023
$1,163
2023
Out-of-pocket health expenditure per capita
$45.6
2023
$280.7
2023
Life expectancy
66.8 years
2026
81.4 years
2026
Foreign aid share of health expenditure
21.2%
2023
0.01%
2023
Physicians per 1,000 people
0.32
2023
2.69
2022
Age at first childbirth
19.9 years
2025
n/a
Maternal mortality per 100K births
521
2023
24
2023
Mortality rate before reaching 5 years of age
55.5
2023
10.5
2023
Obesity rate
19.6%
2022
32.3%
2022
Diabetes prevalence
11.7%
2024
9.8%
2024
Air quality index
3
2026
80
2026
Tobacco use prevalence
22.7%
2022
8.9%
2022
Pure alcohol consumption per capita
0.01 liters
2020
3.4 liters
2020

Territory

Afghanistan Costa Rica
% of world land
0.44%
2026
0.03%
2026
Land area per capita
5,905 sq mi
2024
3,843 sq mi
2024
Agricultural land area
147,167 sq mi
2026
6,534 sq mi
2026
Forest area
4,666 sq mi
2026
11,907 sq mi
2026
Roads length
21,688 mi
2021
3,129 mi
2017

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–2025, retrieved 2026-02-20)
  5. International Monetary Fund (IMF) | Fiscal Monitor (2023–2024, retrieved 2026-02-20)
  6. LivingCost (2026, retrieved 2025-10-14)
  7. The Heritage Foundation | Economic Freedom Index (2021–2026, retrieved 2026-03-09)
  8. World Obesity Federation (2022, retrieved 2026-02-08)
  9. Passport Index (2025, retrieved 2026-02-08)
  10. Transparency International (2025, retrieved 2026-02-10)
  11. EduRank (2026, retrieved 2025-10-13)

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.