Skip to content

Costa Rica vs Madagascar statistics compared

Updated on by Georank team

Costa Rica has a population of 5.13M (ranked 126/197), compared with 32M in Madagascar (ranked 49/197). Costa Rica's land area is 19,714 sq mi versus 224,634 sq mi for Madagascar (ranked 126th vs. 44th).

By GDP, Costa Rica ranks 73/197 ($95.4B) and Madagascar ranks 136/197 ($17.4B). By GDP per capita, Costa Rica ranks 62/197 ($18,587), while Madagascar ranks 193/197 ($545).

Main facts and rankings

Costa Rica Madagascar
Population
5181862
33750171
Population rank 126/197 49/197
GDP
$95.4B
2024
$17.4B
2024
GDP rank 73/197 136/197
GDP per capita
$18,587
2024
$545
2024
GDP per capita rank 62/197 193/197
GDP per capita, PPP
$31,107
2024
$1,884
2024
Government debt
$57B
2024
$8.77B
2024
Debt-to-GDP ratio
59.8%
2024
50.3%
2024
Government debt per person
$11,106
2024
$274.3
2024
Government debt per person rank 50/185 180/185
Average annual personal income after taxes
$12,150
2026
$1,268
2026
Land area 19,714 sq mi 224,634 sq mi
Population density
262.6 ppl/mi²
2026
149.3 ppl/mi²
2026
Fertility rate
1.33
2023
3.97
2023
Median age
35.6 years
2024
20 years
2024
Life expectancy
81.4 years
2026
64.3 years
2026

Costa Rica and Madagascar: Comparison Charts

Costa Rica and Madagascar economies compared

GDP
Costa Rica

Madagascar
1x
Year GDP
Costa Rica Madagascar
2024 $95,350,423,177 $17,420,501,490
2023 $86,497,941,439 $15,869,945,478
2022 $69,243,626,029 $15,325,603,273
2021 $64,960,725,734 $14,354,731,964
2020 $62,395,610,760 $13,051,441,204
2019 $64,417,670,521 $14,104,664,679
2018 $62,420,164,992 $13,760,033,282
2017 $60,516,044,657 $13,176,313,594
2016 $58,847,019,610 $11,848,613,858
2015 $56,441,920,821 $11,323,020,701
2014 $52,016,408,854 $12,522,957,399
2013 $50,949,668,842 $12,423,555,455
2012 $47,231,655,432 $11,578,975,062
2011 $42,762,613,699 $11,551,819,618
2010 $37,658,616,952 $9,982,711,338
2009 $30,745,714,313 $9,616,879,409
2008 $30,801,745,700 $10,725,137,724
2007 $26,884,700,709 $8,524,620,890
2006 $22,715,540,324 $6,395,712,491
2005 $20,040,642,477 $5,859,269,753
2004 $18,610,594,846 $5,064,732,626
2003 $17,271,760,507 $6,372,498,890
2002 $16,578,820,687 $5,351,701,663
2001 $15,976,174,337 $5,438,332,602
2000 $15,013,629,662 $4,629,247,204
1999 $14,254,866,285 $4,277,903,780
1998 $13,684,255,947 $4,401,967,633
1997 $12,614,602,382 $4,262,965,420
1996 $11,678,424,507 $4,931,861,039
1995 $11,578,594,260 $3,838,100,904
1994 $10,489,903,725 $3,522,227,092
1993 $9,564,815,975 $4,063,298,919
1992 $8,579,754,758 $3,714,966,678
1991 $7,215,725,487 $3,254,713,056
1990 $5,711,687,787 $3,931,334,875
1989 $5,251,025,767 $3,175,638,333
1988 $4,614,629,898 $3,189,456,965
1987 $4,532,952,047 $3,212,900,556
1986 $4,418,983,871 $4,347,989,788
1985 $3,919,203,960 $3,802,557,895
1984 $3,660,477,856 $3,905,938,481
1983 $3,146,772,631 $4,686,457,031
1982 $2,606,623,555 $4,784,977,326
1981 $2,623,803,096 $4,759,333,998
1980 $4,831,447,001 $5,201,818,348
1979 $4,035,519,323 $3,463,565,854
1978 $3,523,208,810 $2,669,755,115
1977 $3,072,427,013 $2,358,930,406
1976 $2,412,555,426 $2,181,844,179
1975 $1,960,863,466 $2,283,049,215
1974 $1,666,544,754 $1,917,508,190
1973 $1,528,925,846 $1,653,062,335
1972 $1,238,251,696 $1,341,590,690
1971 $1,077,147,538 $1,199,507,631
1970 $984,830,158 $1,111,859,571
1969 $853,630,204 $1,056,391,056
1968 $773,841,494 $1,031,669,637
1967 $699,456,619 $956,436,932
1966 $647,305,630 $900,264,585
1965 $592,981,162 $833,563,473
1964 $542,578,367 $802,482,184
1963 $511,902,137 $759,345,864
1962 $479,180,824 $739,286,908
1961 $490,325,182 $699,161,945
1960 $507,513,830 $673,081,725

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

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

Costa Rica and Madagascar economies compared

GDP per capita
Costa Rica

Madagascar
1x
Year GDP per capita
Costa Rica Madagascar
2024 $18,587 $545
2023 $16,942 $509
2022 $13,626 $504
2021 $12,838 $483
2020 $12,394 $451
2019 $12,885 $500
2018 $12,590 $500
2017 $12,317 $492
2016 $12,091 $454
2015 $11,715 $445
2014 $10,911 $506
2013 $10,803 $515
2012 $10,127 $494
2011 $9,276 $506
2010 $8,266 $450
2009 $6,833 $446
2008 $6,937 $513
2007 $6,138 $420
2006 $5,257 $324
2005 $4,703 $306
2004 $4,431 $272.2
2003 $4,173 $353
2002 $4,068 $305
2001 $3,985 $319
2000 $3,813 $280.3
1999 $3,691 $267.4
1998 $3,617 $284.2
1997 $3,408 $284.4
1996 $3,227 $340
1995 $3,275 $273.1
1994 $3,040 $258.7
1993 $2,840 $308
1992 $2,612 $290.2
1991 $2,253 $262
1990 $1,830 $326
1989 $1,725 $271.3
1988 $1,555 $280.5
1987 $1,567 $290.8
1986 $1,569 $405
1985 $1,429 $364
1984 $1,372 $385
1983 $1,213 $476
1982 $1,032 $501
1981 $1,068 $513
1980 $2,021 $578
1979 $1,735 $396
1978 $1,556 $315
1977 $1,393 $286.9
1976 $1,123 $273.5
1975 $937 $295
1974 $817 $255.3
1973 $769 $226.8
1972 $639 $189.6
1971 $570 $174.6
1970 $536 $166.6
1969 $477 $162.9
1968 $445 $163.6
1967 $414 $155.9
1966 $395 $150.7
1965 $374 $143.2
1964 $354 $141.5
1963 $346 $137.4
1962 $335 $137.3
1961 $356 $133.3
1960 $382 $131.7

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

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

Costa Rica vs. Madagascar life expectancy calculator

Life expectancy
Costa Rica

Madagascar
1x
Year Life expectancy, years
Costa Rica Madagascar
2026 81.4 64.3
2025 81.2 64
2024 81 63.8
2023 80.8 63.6
2022 79.3 63.1
2021 78.1 62.5
2020 79.7 62.7
2019 80.3 63.5
2018 80.1 63.5
2017 80 63.4
2016 80 63.4
2015 80.4 63.4
2014 80.2 63.3
2013 80.2 63.2
2012 79.9 63
2011 79.6 62.9
2010 79.4 62.6
2009 79.4 62.3
2008 79.2 62
2007 79.1 61.5
2006 79 61.1
2005 78.9 60.7
2004 78.5 60.2
2003 78.2 59.7
2002 77.9 59.2
2001 77.6 58.7
2000 77.3 58
1999 77.1 57.4
1998 76.9 56.8
1997 76.6 56.1
1996 76.4 55.5
1995 76.4 54.8
1994 76.3 54.2
1993 76.3 53.7
1992 76.4 52.9
1991 76.2 52.6
1990 76.1 52.1
1989 75.9 51.8
1988 75.5 51.4
1987 75.2 51.1
1986 74.9 50.7
1985 74.8 50.4
1984 74.6 50.2
1983 74.2 50.1
1982 73.9 50
1981 73.4 49.8
1980 73 50
1979 72.5 50.1
1978 72 50
1977 71.5 49.9
1976 70.9 49.8
1975 70.3 49.6
1974 69.4 49.3
1973 68.7 48.9
1972 68 48.5
1971 67.4 48.2
1970 66.8 47.9
1969 66.4 47.3
1968 65.8 46.9
1967 65.6 46.5
1966 65.1 46
1965 64.8 45.4
1964 64.5 45
1963 64.3 44.6
1962 64.2 44.2
1961 63.9 43.8
1960 63.5 43.3
1959 62.9 43
1958 62.3 42.5
1957 61.6 42.1
1956 61.2 41.7
1955 60.5 41.3
1954 59.9 40.9
1953 59.1 40.7
1952 58.1 40.3
1951 57.8 39.9
1950 57.5 39.7

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

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

Costa Rica and Madagascar population clocks and comparison

Population
Costa Rica

Madagascar
1x
Year Population
Costa Rica Madagascar
2024 5,129,910 31,964,956
2023 5,105,525 31,195,932
2022 5,081,765 30,437,261
2021 5,059,988 29,691,083
2020 5,034,320 28,953,556
2019 4,999,553 28,219,554
2018 4,957,818 27,494,926
2017 4,913,177 26,788,375
2016 4,866,998 26,099,952
2015 4,818,038 25,426,702
2014 4,767,119 24,764,348
2013 4,716,147 24,109,290
2012 4,663,934 23,462,438
2011 4,609,833 22,822,300
2010 4,555,962 22,183,340
2009 4,499,791 21,547,280
2008 4,440,056 20,923,840
2007 4,380,248 20,318,583
2006 4,321,340 19,730,909
2005 4,261,240 19,159,707
2004 4,200,078 18,606,608
2003 4,138,784 18,071,854
2002 4,075,705 17,549,913
2001 4,008,947 17,032,939
2000 3,937,739 16,516,338
1999 3,862,101 16,000,506
1998 3,782,838 15,489,364
1997 3,701,711 14,990,814
1996 3,619,013 14,510,711
1995 3,535,176 14,051,275
1994 3,451,122 13,613,850
1993 3,367,434 13,197,345
1992 3,284,258 12,800,870
1991 3,202,176 12,421,412
1990 3,121,706 12,055,639
1989 3,043,827 11,704,998
1988 2,968,103 11,369,462
1987 2,892,699 11,047,291
1986 2,817,216 10,736,857
1985 2,741,894 10,433,142
1984 2,667,595 10,134,550
1983 2,595,153 9,843,044
1982 2,524,806 9,557,671
1981 2,456,637 9,279,011
1980 2,390,633 9,006,032
1979 2,326,490 8,737,581
1978 2,264,510 8,475,864
1977 2,205,025 8,222,240
1976 2,147,774 7,976,831
1975 2,092,719 7,739,336
1974 2,039,643 7,509,726
1973 1,988,343 7,288,048
1972 1,938,248 7,074,398
1971 1,888,539 6,868,868
1970 1,838,949 6,672,003
1969 1,789,276 6,484,716
1968 1,739,731 6,306,493
1967 1,689,523 6,136,486
1966 1,638,116 5,974,279
1965 1,586,208 5,819,116
1964 1,533,960 5,669,863
1963 1,481,604 5,525,185
1962 1,429,445 5,384,150
1961 1,377,920 5,246,158
1960 1,327,496 5,111,029

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

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

Fertility rates in Costa Rica and Madagascar

Fertility rate
Costa Rica

Madagascar
1x
Year Fertility rate
Costa Rica Madagascar
2023 1.33 3.97
2022 1.34 4.04
2021 1.35 4.1
2020 1.45 4.17
2019 1.6 4.22
2018 1.71 4.25
2017 1.71 4.26
2016 1.75 4.29
2015 1.8 4.34
2014 1.8 4.42
2013 1.78 4.53
2012 1.85 4.61
2011 1.88 4.74
2010 1.83 4.9
2009 1.95 5
2008 1.98 5.04
2007 1.95 5.08
2006 1.94 5.13
2005 2.04 5.2
2004 2.03 5.26
2003 2.08 5.33
2002 2.16 5.41
2001 2.31 5.53
2000 2.41 5.67
1999 2.48 5.84
1998 2.53 5.99
1997 2.59 6.02
1996 2.68 6.03
1995 2.78 6.04
1994 2.86 6.04
1993 2.93 6.06
1992 3 6.08
1991 3.08 6.12
1990 3.17 6.14
1989 3.24 6.15
1988 3.31 6.18
1987 3.38 6.24
1986 3.45 6.34
1985 3.51 6.46
1984 3.52 6.55
1983 3.53 6.63
1982 3.54 6.7
1981 3.56 6.77
1980 3.58 6.84
1979 3.65 6.87
1978 3.66 6.9
1977 3.7 6.93
1976 3.75 6.95
1975 3.8 6.97
1974 3.89 6.99
1973 3.99 7.01
1972 4.16 7.04
1971 4.36 7.07
1970 4.59 7.1
1969 4.84 7.12
1968 5.03 7.13
1967 5.42 7.14
1966 5.7 7.16
1965 5.96 7.17
1964 6.19 7.19
1963 6.39 7.21
1962 6.54 7.26
1961 6.65 7.3
1960 6.71 7.34

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

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

Costa Rica and Madagascar demographics compared

Median age
Costa Rica

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

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

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

Interactive Maps

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

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

National statistics comparison

Finance

Costa Rica Madagascar
GNI, Atlas method
$80.2B
2024
$16.4B
2024
Government expenditure, % of GDP
18.9%
2024
16.2%
2024
Education expenditure, % of GDP
6.25%
2021
3.05%
2023
Military expenditure, % of GDP n/a
0.71%
2024
Armed forces personnel
10,000
2020
22,000
2020
Deficit/surplus, % of GDP
-3.78%
2024
-2.48%
2024
Unemployment rate
6.94%
2024
3.19%
2022
Services, % of GDP
68.8%
2024
47.7%
2024
Industry, % of GDP
19.7%
2024
22.8%
2024
Economic freedom index
69.1
2026
57
2026
Income share by richest 10%
34.2%
2024
29.6%
2021
Income share by poorest 10%
1.7%
2024
2.9%
2021
Listed domestic companies
9
2022
n/a
Market capitalization of domestic companies
$2.23B
2022
n/a
Total reserves including gold
$14.2B
2024
$2.78B
2024
Personal remittances received
$725M
2024
$406M
2024
International tourist arrivals
1,146,500
2020
87,099
2020
International tourism as share of exports
7.41%
2020
7.8%
2020
Banked people share
71.4%
2024
24.5%
2024

Energy

Costa Rica Madagascar
Energy use, kg of oil equivalent per capita
1,025 kg
2023
309 kg
2022
GDP PPP per kg equivalent of energy use
$28.2
2023
$5.56
2022
Carbon dioxide (CO2) emissions
8.38 megatons
2024
4.68 megatons
2024
CO2 emissions per capita
1.63 tons
2024
0.15 tons
2024
Fossil fuel energy use share
51.6%
2023
0%
2022
Renewable energy use share
34.2%
2021
83.1%
2022
Alternative and nuclear energy use share
37.7%
2023
0.8%
2022
Net energy imports use share
60.4%
2023
13.7%
2017
Electric power consumption per capita
2,206 kWh
2023
81.3 kWh
2022
Renewable electricity output share
99.4%
2021
34%
2021
Hydroelectric share
69.3%
2023
31.5%
2022
Nuclear share
0%
2021
0%
2021
Electricity access
100%
2023
39.4%
2023

Society

Costa Rica Madagascar
% of world population
0.06%
2024
0.39%
2024
Annual migration change
+1,000
2025
-2,227
2025
Urban population
79.3%
2024
32.4%
2024
Male:Female ratio
49.4:50.6
2024
50.2:49.8
2024
Average male height
5.71 ft
2025
5.42 ft
2025
Average female height
5.26 ft
2025
5.02 ft
2025
Quality of life index
64.8
2026
22.6
2026
Corruption Perceptions Index
56
2025
25
2025
Higher education index
73
2026
31
2026
Homicides per 100K people
17.7
2023
7.69
2015
Road traffic mortality per 100K people
14.8
2019
29.2
2019
Visa free countries
142
2025
67
2025
Adult literacy rate
98%
2021
77.5%
2022
English speaking
8.15%
2023
18%
2023
People using the Internet
85.4%
2023
20.4%
2023

Health

Costa Rica Madagascar
Government health expenditure per capita
$1,163
2023
$17.4
2023
Out-of-pocket health expenditure per capita
$280.7
2023
$4.78
2023
Life expectancy
81.4 years
2026
64.3 years
2026
Foreign aid share of health expenditure
0.01%
2023
38.1%
2023
Physicians per 1,000 people
2.69
2022
0.17
2022
Age at first childbirth n/a
19.5 years
2025
Maternal mortality per 100K births
24
2023
445
2023
Mortality rate before reaching 5 years of age
10.5
2023
64.8
2023
Obesity rate
32.3%
2022
4.45%
2022
Diabetes prevalence
9.8%
2024
4.6%
2024
Air quality index
80
2026
38
2026
Tobacco use prevalence
8.9%
2022
26.8%
2022
Pure alcohol consumption per capita
3.4 liters
2020
0.99 liters
2020

Territory

Costa Rica Madagascar
% of world land
0.03%
2026
0.39%
2026
Land area per capita
3,843 sq mi
2024
7,028 sq mi
2024
Agricultural land area
6,534 sq mi
2026
157,896 sq mi
2026
Forest area
11,907 sq mi
2026
47,839 sq mi
2026
Roads length
3,129 mi
2017
19,660 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–2025, 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)

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.