Costa Rica occupies 51,100 square kilometres of the Central American isthmus, between Nicaragua to the north and Panama to the southeast, with the Caribbean Sea on its eastern side and the Pacific Ocean along its western and southern margins. San José lies in the elevated Central Valley, where the country’s largest urban concentration developed between volcanic ranges rather than on either coast. A mountainous spine runs northwest to southeast through the Cordillera de Guanacaste, Cordillera de Tilarán, Cordillera Central and Cordillera de Talamanca, dividing short Pacific-draining rivers from broader northern and Caribbean lowlands. Cerro Chirripó in the Talamanca range reaches about 3,820 metres, the national high point. West of the mountains, the Nicoya Peninsula encloses the Gulf of Nicoya; farther south, the Osa Peninsula and Golfo Dulce form a second major Pacific indentation. These contrasts compress high mountains, volcanic uplands, intermontane basins and humid coastal plains into a relatively small territory.
The mountain barrier is also the main organizer of climate. Costa Rica lies in the tropics, but elevation, exposure to northeast trade winds and the contrast between Caribbean and Pacific slopes create markedly different rainfall and temperature regimes. On much of the Pacific side and in the Central Valley, a pronounced dry season extends through much of the boreal winter and early spring, followed by a wetter period from roughly May into November; parts of the Pacific experience a mid-year relative reduction in rainfall. The Caribbean slope has no comparably reliable dry season, and even its less rainy months receive substantial precipitation. Temperatures remain warm in coastal lowlands but fall with altitude, making the Central Valley milder and the highest Talamanca summits cool. This asymmetry shapes water supply, farming calendars and fire risk: drought is recurrent in the northwest, while intense rain can cause flooding and landslides on saturated lowlands and steep mountain roads, and climate change is increasing pressure on coasts and water management.
Those climatic and elevational gradients support ecosystems ranging from Guanacaste’s tropical dry forest to Caribbean and Osa lowland rainforest, cloud forest on windward middle slopes, montane oak forest and páramo in the highest Talamanca zone, together with mangroves, wetlands and marine habitats. UNESCO recognizes three natural World Heritage properties: the Área de Conservación Guanacaste, Cocos Island National Park, and the transboundary Talamanca Range–La Amistad Reserves/La Amistad National Park. Forest cover, which fell sharply during the twentieth century as pasture and agriculture expanded, later recovered under protected-area policies, reforestation and payments for environmental services; a 2023 FONAFIFO document estimated forest cover at about 61% of national territory, though classifications differ. Agriculture remains geographically specialized. Coffee prospered on volcanic uplands of the Central Valley, cattle ranching became important in seasonally dry Guanacaste, and bananas and pineapples expanded across humid Caribbean and northern lowlands. Conservation, farming and settlement therefore coexist within unusually compressed ecological zones.
Human occupation long predates the Spanish conquest, but pre-Columbian Costa Rica was not a single political unit. Communities developed regionally distinct forms of agriculture, exchange, craft production and political authority, with complex chiefdoms representing the largest political organizations documented before European arrival. In the Diquís Delta of the south, settlements dating broadly from AD 500 to 1500 left artificial mounds, paved areas, cemeteries and finely made stone spheres, evidence of organized labor and social hierarchy. Regional exchange connected communities across the isthmus without producing a unified state. Spanish incursions began in the sixteenth century and brought epidemic disease, forced labor and demographic collapse among Indigenous populations. Colonial Costa Rica became the southern part of the Kingdom and later Captaincy General of Guatemala, relatively distant from major imperial centers but integrated into regional circuits through cattle, cacao, tobacco, mules and local agriculture. Cartago emerged as the principal colonial town, while the Caribbean route toward Matina connected producers to wider commerce despite difficult terrain and insecurity.
The break with Spanish rule came in 1821, after independence was declared in Guatemala and news reached the province; Costa Rican authorities formally proclaimed independence from Spain on 29 October. Political leaders debated annexation to the Mexican Empire, union with other Central American provinces and separate statehood, while the Pacto de Concordia supplied an early provisional constitutional framework. Costa Rica joined the Central American federation in 1824, separated from it in 1838 and was declared a republic in 1848. During the nineteenth century, coffee exports strengthened a Central Valley commercial elite and financed state institutions and transport links; the railway to the Caribbean, built with extensive Afro-Caribbean labor, opened lowland land to a large banana economy tied to foreign capital. The social state took clearer form in the 1940s through social insurance and labor reforms. A disputed 1948 election triggered a brief civil war, after which the victorious junta abolished the standing army; the 1949 Constitution embedded the new institutional order. The debt crisis of the early 1980s exposed weaknesses in the older model, while subsequent decades brought wider export diversification and trade opening.
That transition produced a diversified export economy built around services, foreign direct investment, free-trade zones, advanced manufacturing, tourism and still-important agriculture. The IMF recorded real GDP growth of 4.6% in 2025, driven especially by robust goods exports from free-zone firms, while identifying global uncertainty, infrastructure gaps and fiscal pressures as important risks. PROCOMER reported exports of goods and services excluding travel at US$35.243 billion in 2025, 11% above 2024. Medical devices accounted for 31% of that total, ahead of business services and information and communications services; pineapple and banana remained major agricultural exports, while coffee retains economic and cultural importance despite a smaller macroeconomic share. This structure gives Costa Rica access to high-value global supply chains, particularly those connected to North America, but it also creates a dual economy in which highly productive multinational exporters coexist with lower-productivity domestic firms, informal employment and pronounced regional differences in income and opportunity. The national currency remains the Costa Rican colón.
Demographic growth is slowing and population aging is becoming a central structural issue. Costa Rica’s 2022 census field operation did not achieve sufficient coverage to provide a valid national census count, so INEC relied on demographic estimation and subsequently revised its population series. Its current projections place the 2025 population at 5,191,823 and anticipate a maximum of about 5.44 million in 2044 before gradual decline. Settlement is concentrated in the Central Valley and Greater Metropolitan Area, where San José merges functionally with parts of Alajuela, Heredia and Cartago; the Caribbean lowlands, northern plains and much of the southern Pacific are more sparsely settled. World Bank data based on UN urbanization estimates put the urban share at 80% in 2025. The country is a unitary republic divided into seven provinces, subdivided into 84 cantons and 492 districts. Longstanding migration from Nicaragua has also shaped the labor force and urban communities, while Indigenous peoples retain recognized territories concentrated chiefly in the south and Caribbean-facing highlands.
Spanish is the official language and dominant medium of government, education and national public life, while the Constitution requires the state to protect Indigenous languages. Bribri and Cabécar remain important in parts of Talamanca and adjoining Indigenous territories, alongside other Indigenous languages with smaller speaker populations; on the Caribbean coast, Afro-Costa Rican history has also sustained English and an English-based Creole tradition. Roman Catholicism remains the constitutionally established state religion, but freedom of worship is protected and Protestant, evangelical, Jewish, Muslim and other communities form part of contemporary society. Cultural institutions grew particularly strongly in the Central Valley, yet national culture is not reducible to that region: Afro-Caribbean migration influenced music and language in Limón, Indigenous communities preserved distinct artistic and social traditions, and the painted oxcart became a national craft emblem because ox transport once linked upland coffee districts with export routes. Literature, public education and social institutions likewise developed alongside the expansion of the state.
Transport still reflects the mountain spine and the historic concentration of population around San José. The Inter-American Highway links Costa Rica northward to Nicaragua and southeastward to Panama, while Route 27 connects the capital region with the Pacific port of Caldera and Route 32 crosses the central mountains toward Limón and the container terminal at Moín. These corridors carry much of the country’s freight because rail has a limited role, with commuter services concentrated in the Greater Metropolitan Area and freight mainly associated with Caribbean routes. Juan Santamaría International Airport near Alajuela is the principal international air gateway, complemented by Guanacaste Airport near Liberia. Electricity infrastructure contrasts with transport bottlenecks: ICE reported that 98.6% of national electricity generation in 2025 came from hydro, geothermal, wind, biomass and solar sources. Mountainous terrain and heavy rainfall support that renewable system, but the same geography raises road-maintenance costs and exposes key connections to landslides and flooding.
Costa Rica’s regional importance rests less on military weight or a single strategic commodity than on the way its institutions, two-ocean geography and export platform connect Central America to wider markets. It participates in the Central American Integration System, entered CAFTA-DR in 2009 and became the OECD’s 38th member in 2021; San José also hosts the Inter-American Court of Human Rights. Ports on both coasts, land borders with Nicaragua and Panama, and strong commercial ties with the United States place the country within north-south and transoceanic supply chains even without a canal. Medium-term opportunities lie in deeper domestic linkages to medical-device and service exporters, renewable-energy investment, logistics improvement and high-skill employment. The principal constraints are population aging, fiscal and pension pressures, transport bottlenecks, unequal regional productivity, security pressures and climate-sensitive water and energy systems. Its future weight will depend on whether institutions that supported social stability and export upgrading can adapt to those demographic, infrastructural and environmental demands.