Costa Rica

Republic of Costa Rica
República de Costa Rica
Motto: "¡Vivan siempre el trabajo y la paz!" (Spanish)
"May work and peace always live!"
Anthem: Himno Nacional de Costa Rica
"National Anthem of Costa Rica"
Capital
and largest city
San José
9°56′N 84°5′W / 9.933°N 84.083°W / 9.933; -84.083
Official languagesSpanish
Recognized regional languages
Ethnic groups
(2021)
Religion
(2021)
  • 27.0% no religion
  • 0.4% others
Demonyms
GovernmentUnitary presidential republic
• President
Rodrigo Chaves
Mary Munive
Vacant
LegislatureLegislative Assembly
Independence from
• from Spain
15 September 1821
1 July 1823
14 November 1838
7 November 1949
• Recognized by Spain
10 May 1850
Area
• Total
51,179.92 km2 (19,760.68 sq mi) (126th)
• Water (%)
1.05 (as of 2015)
Population
• 2026 estimate
5,160,700 (127th)
• 2022 census
5,044,197
• Density
220/sq mi (84.9/km2) (107th)
GDP (PPP)2025 estimate
• Total
$169.034 billion (90th)
• Per capita
$31,462 (66th)
GDP (nominal)2025 estimate
• Total
$102.591 billion (85th)
• Per capita
$19,095 (64th)
Gini (2022) 47.2
high inequality
HDI (2023) 0.833
very high (62nd)
CurrencyCosta Rican colón (CRC)
Time zoneUTC−6 (CST)
Date formatdd/mm/yyyy
Calling code+506
ISO 3166 codeCR
Internet TLD.cr
.co.cr

Costa Rica, officially the Republic of Costa Rica, is a country in Central America. It borders Nicaragua to the north, the Caribbean Sea to the northeast, Panama to the southeast, and the Pacific Ocean to the southwest, sharing a maritime border with Ecuador to the south of Cocos Island. It has a population of around five million in a land area of nearly 51,180 km2 (19,760 sq mi); the capital and largest city is San José, home to around 350,000 residents and two million people in the surrounding metropolitan area.

Humans have been present in Costa Rica since between 7,000 and 10,000 BC. Various indigenous peoples lived in the territory before it was colonized by Spain in the 16th century. Costa Rica was a peripheral colony of the Spanish Empire until independence in 1821 as part of the First Mexican Empire, followed by membership in the Federal Republic of Central America in 1823, from which it formally declared independence in 1847. The country underwent gradual modernization under relatively stable authoritarian rule until the late 19th century, when it promulgated a liberal constitution and held the first free and fair national election in Central America.

Following a brief civil war in 1948, Costa Rica adopted its current constitution in 1949, which granted universal suffrage, provided various social, economic, and educational guarantees for all citizens, and permanently abolished the army, becoming one of the few sovereign nations without a standing military. Costa Rica is a presidential republic with a robust and stable democracy. About one-fourth of the national budget is spent on education—which has been free and compulsory since 1886—equal to about 6.2% of the country's GDP, compared to a global average of 3.8%; The economy, once heavily dependent on agriculture, has diversified to include finance, corporate services for foreign companies, pharmaceuticals, and ecotourism.

Costa Rica has consistently performed favorably in the Human Development Index (HDI), placing 62nd globally, and fifth in Latin America, in 2023. Costa Rica is classified by the World Bank as a high-income country and it is the only OECD country in Central America and the Caribbean. It has also been cited by the United Nations Development Programme (UNDP) as having attained much higher human development than other countries at the same income levels, with a better record on human development and inequality than the regional median. Costa Rica performs well in metrics of democratic governance, press freedom, subjective happiness and sustainable wellbeing; it has one of the highest literacy rates in the Americas, and is considered a regional leader in human rights and environmentalism.