Costa Rica Population Pyramid 2022
Year
2022Costa Rica in 2022
As of 2022, Costa Rica counted 5,081,764 inhabitants. A decade earlier, in 2012, the population was 4,663,934; it has grown by 9.0% since.
The median age was 34.5 years, and for every 100 people of working age (15–64) there were 28.8 children under 15 and 16.3 people aged 65 or over. The near-vertical sides of the pyramid indicate a stationary age structure, with births roughly balancing the passage of cohorts into older age.
Data source: United Nations World Population Prospects, 2024 revision (medium variant) — last updated July 2024.
The fertility rate of Costa Rica was 1.33 births per woman in 2023, under the 2.1 needed to replace each generation.
Source: World Bank World Development Indicators, latest available year.
Life expectancy at birth was 80.8 years in 2023: 83.4 for women and 78.1 for men.
Source: World Bank World Development Indicators, latest available year.
608,121 immigrants live in Costa Rica, 11.9% of the population.
| Nicaragua | 423,401 |
| Venezuela | 34,048 |
| Colombia | 30,809 |
| El Salvador | 20,131 |
| United States of America | 18,354 |
50,821 people born in Costa Rica live in other countries.
| Panama | 14,218 |
| Nicaragua | 11,707 |
| Canada | 5,117 |
| Mexico | 4,592 |
| Colombia | 2,070 |
Source: United Nations International Migrant Stock 2024.
| Country | Population | Median age | Relative size |
|---|---|---|---|
| Costa Rica | 5,081,765 | 34.5 | |
| Panama | 4,400,773 | 30.3 | |
| El Salvador | 6,280,319 | 27.6 | |
| Nicaragua | 6,730,654 | 25.9 | |
| Belize | 402,733 | 26.5 |





