Costa Rica vs Nicaragua
Costa Rica vs Nicaragua: Median age
Median age in 2023: 34.1 years in Costa Rica and 25.3 years in Nicaragua, by UN estimates. In 2023 the value was higher in Costa Rica, by 8.8 years, or 1.35 times that in Nicaragua.
years · UN
What the numbers say
- Costa Rica has been higher in every year both have figures for since 1950.
- In 2023, Costa Rica ranked 99 and Nicaragua ranked 157 of 229 countries, counting from the highest.
- The UN projection (medium variant) puts Costa Rica at 56.2 years and Nicaragua at 46.9 years in 2100.
- The world as a whole: 30.4 years in 2023.
Every year
years · UN
| Year | Costa Rica | Nicaragua | World |
|---|---|---|---|
| 2023 | 34.1 | 25.3 | 30.4 |
| 2022 | 33.5 | 24.9 | 30.1 |
| 2021 | 33 | 24.6 | 29.8 |
| 2020 | 32.5 | 24.3 | 29.6 |
| 2019 | 32 | 24 | 29.3 |
| 2018 | 31.5 | 23.7 | 29 |
| 2017 | 31.1 | 23.3 | 28.8 |
| 2016 | 30.6 | 23 | 28.5 |
| 2015 | 30.2 | 22.7 | 28.3 |
| 2014 | 29.7 | 22.4 | 28.1 |
| 2013 | 29.3 | 22.1 | 27.8 |
| 2012 | 28.8 | 21.7 | 27.6 |
| 2011 | 28.4 | 21.5 | 27.4 |
| 2010 | 28 | 21.2 | 27.2 |
| 2009 | 27.6 | 20.9 | 27 |
| 2008 | 27.2 | 20.6 | 26.7 |
| 2007 | 26.8 | 20.3 | 26.5 |
| 2006 | 26.4 | 20.1 | 26.3 |
| 2005 | 26 | 19.8 | 26.1 |
| 2004 | 25.6 | 19.4 | 25.9 |
| 2003 | 25.2 | 19.1 | 25.7 |
| 2002 | 24.8 | 18.7 | 25.5 |
| 2001 | 24.5 | 18.4 | 25.3 |
| 2000 | 24.2 | 18 | 25.1 |
| 1999 | 23.9 | 17.7 | 24.9 |
| 1998 | 23.7 | 17.4 | 24.7 |
| 1997 | 23.4 | 17.1 | 24.4 |
| 1996 | 23.1 | 16.8 | 24.2 |
| 1995 | 22.9 | 16.5 | 24 |
| 1994 | 22.6 | 16.3 | 23.8 |
| 1993 | 22.4 | 16.1 | 23.5 |
| 1992 | 22.2 | 15.9 | 23.3 |
| 1991 | 21.9 | 15.7 | 23.1 |
| 1990 | 21.7 | 15.6 | 22.9 |
| 1989 | 21.5 | 15.4 | 22.8 |
| 1988 | 21.3 | 15.3 | 22.6 |
| 1987 | 21.1 | 15.3 | 22.4 |
| 1986 | 20.8 | 15.2 | 22.2 |
| 1985 | 20.6 | 15.2 | 22 |
| 1984 | 20.4 | 15.2 | 21.9 |
| 1983 | 20.1 | 15.2 | 21.8 |
| 1982 | 19.9 | 15.2 | 21.7 |
| 1981 | 19.6 | 15.1 | 21.6 |
| 1980 | 19.3 | 15.1 | 21.5 |
| 1979 | 19 | 15.1 | 21.3 |
| 1978 | 18.7 | 15.2 | 21.1 |
| 1977 | 18.4 | 15.2 | 21 |
| 1976 | 18.1 | 15.2 | 20.8 |
| 1975 | 17.8 | 15.1 | 20.7 |
| 1974 | 17.5 | 15.1 | 20.5 |
| 1973 | 17.2 | 15.1 | 20.4 |
| 1972 | 17 | 15.1 | 20.4 |
| 1971 | 16.7 | 15.1 | 20.3 |
| 1970 | 16.4 | 15 | 20.3 |
| 1969 | 16.2 | 15 | 20.3 |
| 1968 | 16 | 15 | 20.4 |
| 1967 | 15.8 | 14.9 | 20.5 |
| 1966 | 15.7 | 14.9 | 20.6 |
| 1965 | 15.6 | 14.8 | 20.8 |
| 1964 | 15.6 | 14.8 | 21 |
| 1963 | 15.5 | 14.8 | 21.2 |
| 1962 | 15.6 | 14.9 | 21.4 |
| 1961 | 15.6 | 15 | 21.4 |
| 1960 | 15.7 | 15.2 | 21.5 |
| 1959 | 15.9 | 15.3 | 21.5 |
| 1958 | 16 | 15.4 | 21.5 |
| 1957 | 16.1 | 15.5 | 21.6 |
| 1956 | 16.2 | 15.7 | 21.7 |
| 1955 | 16.3 | 15.8 | 21.8 |
| 1954 | 16.4 | 15.9 | 21.9 |
| 1953 | 16.5 | 16.1 | 22 |
| 1952 | 16.6 | 16.2 | 22.1 |
| 1951 | 16.7 | 16.3 | 22.1 |
| 1950 | 16.8 | 16.5 | 22.2 |
UN projection (medium variant) · 2024–2100
| Year | Costa Rica | Nicaragua | World |
|---|---|---|---|
| 2024 | 34.634.6–34.6 | 25.625.5–25.7 | 30.6 |
| 2025 | 35.235.1–35.2 | 2625.7–26.2 | 30.9 |
| 2026 | 35.735.5–35.9 | 26.325.9–26.7 | 31.1 |
| 2027 | 36.236–36.5 | 26.726.1–27.2 | 31.3 |
| 2028 | 36.836.5–37.1 | 2726.3–27.7 | 31.6 |
| 2029 | 37.336.9–37.7 | 27.426.5–28.2 | 31.8 |
| 2030 | 37.837.4–38.3 | 27.726.6–28.7 | 32 |
| 2031 | 38.337.8–38.9 | 28.126.8–29.2 | 32.2 |
| 2032 | 38.838.2–39.5 | 28.427–29.7 | 32.4 |
| 2033 | 39.338.7–40.2 | 28.827.2–30.2 | 32.6 |
| 2034 | 39.839.1–40.8 | 29.127.4–30.7 | 32.8 |
| 2035 | 40.339.5–41.4 | 29.527.7–31.2 | 33 |
| 2036 | 40.839.9–42 | 29.827.9–31.7 | 33.2 |
| 2037 | 41.340.3–42.5 | 30.228.1–32.2 | 33.4 |
| 2038 | 41.840.7–43.1 | 30.628.3–32.7 | 33.6 |
| 2039 | 42.341–43.7 | 30.928.6–33.2 | 33.8 |
| 2040 | 42.741.4–44.3 | 31.328.8–33.7 | 34 |
| 2041 | 43.241.8–44.8 | 31.729–34.2 | 34.2 |
| 2042 | 43.642.1–45.4 | 3229.2–34.7 | 34.4 |
| 2043 | 44.142.5–45.9 | 32.429.5–35.2 | 34.6 |
| 2044 | 44.542.9–46.5 | 32.829.7–35.7 | 34.8 |
| 2045 | 44.943.2–47 | 33.129.9–36.2 | 35 |
| 2046 | 45.443.5–47.6 | 33.530.1–36.7 | 35.2 |
| 2047 | 45.843.9–48.1 | 33.830.3–37.2 | 35.4 |
| 2048 | 46.244.2–48.7 | 34.230.5–37.7 | 35.6 |
| 2049 | 46.644.5–49.2 | 34.630.7–38.2 | 35.9 |
| 2050 | 4744.7–49.7 | 34.930.9–38.7 | 36.1 |
| 2051 | 47.445–50.2 | 35.331.1–39.2 | 36.3 |
| 2052 | 47.745.3–50.7 | 35.631.3–39.7 | 36.5 |
| 2053 | 48.145.6–51.2 | 3631.5–40.2 | 36.7 |
| 2054 | 48.545.9–51.7 | 36.331.7–40.7 | 36.9 |
| 2055 | 48.846.2–52.2 | 36.631.8–41.2 | 37.1 |
| 2056 | 49.246.5–52.7 | 3732–41.6 | 37.3 |
| 2057 | 49.546.8–53.2 | 37.332.3–42.1 | 37.5 |
| 2058 | 49.947.1–53.7 | 37.632.6–42.6 | 37.6 |
| 2059 | 50.247.3–54.1 | 37.932.9–43 | 37.8 |
| 2060 | 50.647.6–54.6 | 38.333.2–43.5 | 37.9 |
| 2061 | 5147.8–55.1 | 38.633.4–43.9 | 38 |
| 2062 | 51.348.1–55.5 | 38.933.7–44.4 | 38.1 |
| 2063 | 51.748.3–56 | 39.234–44.8 | 38.3 |
| 2064 | 5248.6–56.4 | 39.434.2–45.3 | 38.4 |
| 2065 | 52.348.8–56.8 | 39.734.5–45.7 | 38.5 |
| 2066 | 52.749–57.3 | 4034.7–46.2 | 38.6 |
| 2067 | 5349.2–57.7 | 40.335–46.6 | 38.7 |
| 2068 | 53.349.4–58.2 | 40.635.2–47 | 38.8 |
| 2069 | 53.649.6–58.6 | 40.835.4–47.4 | 38.9 |
| 2070 | 53.949.7–59 | 41.135.6–47.9 | 39 |
| 2071 | 54.249.8–59.4 | 41.435.8–48.3 | 39.1 |
| 2072 | 54.549.8–59.8 | 41.636–48.7 | 39.2 |
| 2073 | 54.749.7–60.2 | 41.936.2–49.1 | 39.3 |
| 2074 | 5549.7–60.6 | 42.136.4–49.5 | 39.4 |
| 2075 | 55.249.7–61 | 42.336.6–49.8 | 39.5 |
| 2076 | 55.449.7–61.4 | 42.636.7–50.1 | 39.6 |
| 2077 | 55.649.7–61.8 | 42.836.9–50.4 | 39.7 |
| 2078 | 55.649.7–62.2 | 4337–50.6 | 39.8 |
| 2079 | 55.749.7–62.6 | 43.237.2–50.9 | 40 |
| 2080 | 55.749.8–63 | 43.437.3–51.2 | 40.1 |
| 2081 | 55.849.8–63.3 | 43.737.4–51.4 | 40.2 |
| 2082 | 55.849.8–63.7 | 43.937.6–51.6 | 40.3 |
| 2083 | 55.849.9–64.1 | 44.137.7–51.9 | 40.4 |
| 2084 | 55.849.9–64.5 | 44.337.8–52.1 | 40.5 |
| 2085 | 55.850–64.8 | 44.437.9–52.3 | 40.6 |
| 2086 | 55.850–65.1 | 44.638–52.6 | 40.7 |
| 2087 | 55.850–65.4 | 44.838.1–52.8 | 40.9 |
| 2088 | 55.950–65.6 | 4538.3–53 | 41 |
| 2089 | 55.950.1–65.8 | 45.238.4–53.2 | 41.1 |
| 2090 | 55.950.1–66 | 45.438.4–53.4 | 41.2 |
| 2091 | 55.950.1–66.2 | 45.538.5–53.7 | 41.3 |
| 2092 | 55.950.1–66.3 | 45.738.6–53.9 | 41.4 |
| 2093 | 5650.1–66.4 | 45.938.7–54.1 | 41.5 |
| 2094 | 5650.1–66.5 | 4638.8–54.3 | 41.6 |
| 2095 | 5650.1–66.5 | 46.238.8–54.5 | 41.7 |
| 2096 | 56.150.1–66.6 | 46.338.9–54.7 | 41.8 |
| 2097 | 56.150.1–66.6 | 46.539–54.9 | 41.9 |
| 2098 | 56.250.1–66.6 | 46.639.1–55.1 | 42 |
| 2099 | 56.250.1–66.6 | 46.839.2–55.3 | 42 |
| 2100 | 56.250.1–66.6 | 46.939.3–55.5 | 42.1 |
Each country on its own
Good to know
- Half the people are older than this age and half are younger.
- Source: UN DESA, World Population Prospects 2024.
- The dashed line is the UN projection (medium variant), a scenario rather than a forecast; the band is its 95% prediction interval.
- Ranks count the 229 countries with a value in 2023, highest first.
- The faint line is the world as a whole, as the same source counts it.
How the layers work, where their data comes from and what they can’t tell you: Countries through time
Costa Rica vs Nicaragua
Health
- Life expectancyCosta Rica: 80.8 years in 2023Nicaragua: 75 years in 2023
- Child mortalityCosta Rica: 1 per 100 live births in 2024Nicaragua: 1.1 per 100 live births in 2024
- Infant mortalityCosta Rica: 6.5 per 1,000 live births in 2023Nicaragua: 12.3 per 1,000 live births in 2023
- Safe drinking waterCosta Rica: 80.5% in 2022Nicaragua: 55.5% in 2020
- DepressionCosta Rica: 2.91% in 2017Nicaragua: 2.85% in 2017
- Suicide rateCosta Rica: 7.8 per 100,000 people in 2017Nicaragua: 5.9 per 100,000 people in 2017
People
- PopulationCosta Rica: 5.11 million people in 2023Nicaragua: 6.82 million people in 2023
- Population growthCosta Rica: 0.49% a year in 2023Nicaragua: 1.36% a year in 2023
- Fertility rateCosta Rica: 1.33 births per woman in 2023Nicaragua: 2.22 births per woman in 2023
- Urban populationCosta Rica: 79.7% in 2025Nicaragua: 59.4% in 2025
- People aged 65 and overCosta Rica: 11.7% in 2023Nicaragua: 5.4% in 2023
- Net migration rateCosta Rica: 0.2 per 1,000 people in 2023Nicaragua: -1.2 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingCosta Rica: 0% of GDP in 2025Nicaragua: 0.56% of GDP in 2025
- Military spending in US dollarsCosta Rica: $0 in 2025Nicaragua: $115M in 2025
- Military spending per personCosta Rica: $0 in 2025Nicaragua: $17 in 2025
- Military share of state spendingCosta Rica: 0% of government spending in 2025Nicaragua: 2.1% of government spending in 2025
- Armed forces personnelCosta Rica: 10,000 people in 2020Nicaragua: 12,000 people in 2020
- National powerCosta Rica: 0.03% of world capability in 2022Nicaragua: 0.04% of world capability in 2022
- Armed forces, share of workersCosta Rica: 0.41% of the labour force in 2020Nicaragua: 0.41% of the labour force in 2020
- Arms importsCosta Rica: 8 million TIV in 2019Nicaragua: 13 million TIV in 2019
- Arms exportsCosta Rica: 3 million TIV in 2009Nicaragua: 18 million TIV in 1993