
View live population, charts & trends: Population of Costa Rica
The median age in Costa Rica is 35.7 years (2026).
A Total Fertility Rate (TFR) of 2.1 represents the Replacement-Level Fertility : the average number of children per woman needed for each generation to exactly replace itself without needing international immigration. A value below 2.1 will cause the native population to decline
See also: Countries in the world ranked by Life Expectancy
Currently, 80.1% of the population of Costa Rica is urban
The 2026 population density in Costa Rica is 101 people per km² (262 people per mi2), calculated on a total land area of 51,060 km² (19,714 sq. miles).
The 30 largest of 101 urban areas, ranked by unofficial population estimates for June 30, 2020 (by National Institute of Statistics and Censuses, Costa Rica). An urban area is a continuous built-up area, which can span several municipalities.
| Rank | Urban Area | Population |
|---|---|---|
| 1 | San José | 1,453,500 |
| 2 | Heredia | 367,900 |
| 3 | Cartago | 232,300 |
| 4 | Alajuela | 196,900 |
| 5 | Puntarenas | 87,500 |
| 6 | San Isidro de El General | 66,300 |
| 7 | Limón | 65,300 |
| 8 | Liberia | 59,100 |
| 9 | San Rafael de Alajuela | 57,500 |
| 10 | San Ramón de los Palmares | 40,600 |
| 11 | Guápiles | 38,800 |
| 12 | Grecia | 38,300 |
| 13 | Quesada de San Carlos | 32,300 |
| 14 | San Isidro de Heredia | 31,900 |
| 15 | Palmares de Alajuela | 30,700 |
| 16 | Turrialba | 29,900 |
| 17 | Esparza | 28,600 |
| 18 | Cariari | 26,000 |
| 19 | Siquirres | 22,800 |
| 20 | Cañas | 22,700 |
| 21 | Naranjo de Alajuela | 19,900 |
| 22 | Buenos Aires de Puntarenas | 18,700 |
| 23 | Nicoya | 17,300 |
| 24 | Santa Cruz de Guanacaste | 16,600 |
| 25 | Puerto Quepos | 16,100 |
| 26 | La Fortuna | 15,400 |
| 27 | Jacó | 14,400 |
| 28 | Guácimo | 13,800 |
| 29 | Neily | 12,800 |
| 30 | San Miguel de Santo Domingo | 12,200 |
A Population pyramid (also called "Age-Sex Pyramid") is a graphical representation of the age and sex of a population.
Types:
Stages:

There are three types of age dependency ratio: Youth, Elderly, and Total. All three ratios are commonly multiplied by 100.
Youth Dependency Ratio
Definition: population ages 0-15 divided by the population ages 16-64.
Formula: ([Population ages 0-15] ÷ [Population ages 16-64]) × 100
Elderly dependency ratio
Definition: population ages 65-plus divided by the population ages 16-64.
Formula: ([Population ages 65-plus] ÷ [Population ages 16-64]) × 100
Total dependency ratio
Definition: sum of the youth and old-age ratios.
Formula: (([Population ages 0-15] + [Population ages 65-plus]) ÷ [Population ages 16-64] ) × 100
NOTE: Dependency Ratio does not take into account labor force participation rates by age group. Some portion of the population counted as "working age" may actually be unemployed or not in the labor force whereas some portion of the "dependent" population may be employed and not necessarily economically dependent.