Photo: NASA Goddard Space Flight Center/Reto Stöckli

Costa Rica: population and ages

Costa Rica: 5.16 million people on 1 January 2026.

The UN projects growth until 2044, to a peak of 5.38 million, and a decline after that.

Figures for 2026 are UN projections (medium variant). Estimates end in 2023.

Population, 1 January 2026
5,164,155
Median age
35.7
Births in 2026
50,203
Deaths in 2026
29,901
Life expectancy at birth
81.4
Children per woman
1.31
Under 15
18.1%
65 and over
13.0%
Population pyramid, Costa Rica, 1 January 2026MaleFemale0102030405060708090100+025K25K50K50K
Population pyramid, Costa Rica, 1 January 2026 Projection

Where does your age fit here?

Only the year is needed. It stays in this browser.

Enter your birth year to see where you fit in.

Population over time

In mid-1950 there were 927,000 people, so the population is now 5.6 times as large.

The UN projects 50,200 births and 29,900 deaths in 2026, 20,300 more births than deaths.

The UN projects the first year with more deaths than births in 2044.

Population, 1950 to 2100Projected from 202402M4M6M1950197520002025205020752100
2026 Costa Rica: 5.2M

Ages

The median age is 35.7, which is 4.6 years above the world’s 31.1.

18% of the people are under 15 and 13% are 65 or older (world: 24% and 11%).

The UN projects that people aged 65 and over will outnumber children under 15 from 2031.

Women have 1.3 children on average at today’s rates (world: 2.2), against 6.3 in 1950.

Life expectancy at birth is 81.4 years, above the world’s 73.8. In 1950 it was 57.5.

Median age, 1950 to 2100Projected from 202402040601950197520002025205020752100Costa RicaWorld
2026 Costa Rica: 36World: 31

See how the pyramid changes from 1950 to 2100

Births, deaths and the years ahead

For mid-2050 the UN projects 5.35 million people, 3.5% more than now, with a median age of 47.0.

Births and deaths per year, 1950 to 2100Projected from 2024025K50K75K100K1950197520002025205020752100DeathsBirths
2026 Births: 50.2KDeaths: 29.9K

Compare Costa Rica with other countries

Development and urbanisation

In 2025, 50% of the people lived in cities, 24% in towns and semi-dense areas and 26% in rural areas. For 2050 the UN projects 49% in cities.

Degree of urbanisation: one rule for every country, a city has at least 50,000 people at 1,500 or more per km². National definitions of “urban” differ.

IndicatorLatest valueYear
People using the internet87.2%2024
Access to electricity99.8%2024
Adult literacy (ages 15 and over)97.4%2011
99.8%2024
98.8%2024
97.0%2024
Human Development Index0.8332023

Each value is the latest one published, with the year it refers to. Countries publish in different years. Sources: World Bank, World Development Indicators (ITU, SDG 7.1.1, UNESCO UIS), UNDP, Human Development Report, UN, World Urbanization Prospects 2025.

Longevity, ageing and the future

By the death rates of 2023, life expectancy at birth was 80.8 years. People who had reached 65 could expect 22.1 more years for women and 19.2 for men.

On 1 January 2026, there are 18.9 people aged 65 or more for every 100 aged 15 to 64. For 2050, the UN projects 40.0.

For 2100 the UN projects a population of 3.78 million, with a 95 percent prediction interval of 2.2 million to 5.74 million.

Life expectancy at birth is a period measure. It sums up the death rates of one year and is not a forecast of how long the babies born that year will live.

Sources: World Population Prospects 2024, life tables, probabilistic projections, UN DESA Population Division (CC BY 3.0 IGO).

International migrants

In mid-2024, 628,000 international migrants lived here, 12.2% of the population.

In mid-2024, 51,000 people from here lived in other countries.

Largest countries of origin
CountryPeople
Nicaragua423,401
Venezuela34,048
Colombia30,809
El Salvador20,131
United States18,354
Largest countries of destination
CountryPeople
Panama14,218
Nicaragua11,707
Canada5,117
Mexico4,592
Colombia2,070

Counted by country of birth. Refugees are included. A migrant stock counts people living outside their country at mid-year, not journeys or yearly moves. Sources: International Migrant Stock 2024, UN DESA Population Division (CC BY 3.0 IGO).

Cities

Cities of 50,000 people or more here, by the UN degree of urbanisation: 6.

CityPopulation 2025
San José2,171,213
Cartago189,608
Barranca64,109
San Isidro de El General52,722
Limón52,337
Liberia51,320

Sources: World Urbanization Prospects 2025, UN DESA Population Division (CC BY 3.0 IGO).

All cities

Data and sources

Costa Rica every ten years
YearPopulation (1 July)Median ageBirthsDeathsLife expectancyChildren per woman
1950926,75816.841,60211,23057.56.32
19601,327,49615.760,35711,50063.56.71
19701,838,94916.459,93411,53766.84.58
19802,390,63419.372,58810,03073.03.58
19903,121,70621.783,20211,47476.13.17
20003,937,73924.279,68915,42177.32.41
20104,555,96228.070,19219,39279.41.83
20205,034,32032.557,22028,05679.71.45
20305,251,49637.848,91432,83082.11.31
20405,369,80642.746,42441,74783.81.35
20505,354,15047.040,86051,37185.31.38
20605,189,19450.634,87958,56286.61.41
20704,921,49953.932,77464,61387.81.44
20804,572,92755.729,94169,36789.01.46
20904,171,46055.926,39068,07090.11.48
21003,776,47456.224,32162,89191.21.49

Rows from 2024 on are UN projections (medium variant), shown in italics.

The UN estimates every country and area within its present borders for every year since 1950, also for years before it became independent or took its present shape. Figures for earlier years therefore describe the people who lived on today’s territory.

Sources: World Population Prospects 2024, UN DESA Population Division (CC BY 3.0 IGO).

All countries and areas