San José - The Capital of Costa Rica

Population
342,188
Language
Spanish
Continent
North America
Since
1823
Eco Ranking
40/195

Source: Environmental Performance Index 2024.

About San José

San José became the capital of Costa Rica in 1823, displacing Cartago, which had served as the colonial capital since the 16th century. The transfer followed a brief civil conflict between cities competing for political dominance in the newly independent state. Costa Rica had declared independence from Spain in 1821 (as part of the Central American independence movement) and from the Mexican Empire in 1823. San José houses the Legislative Assembly, the Supreme Court, and the executive branch. Costa Rica is one of the very few countries in the world to have constitutionally abolished its military. Following a brief civil war in 1948, President José Figueres Ferrer abolished the armed forces and enshrined the prohibition in the 1949 constitution. The savings were redirected to education and health. Costa Rica has maintained this status for over 75 years, and its military spending prohibition remains a defining feature of its constitutional identity.

About Costa Rica

Costa Rica is a presidential republic with a long tradition of democratic governance in a region historically marked by military coups and civil conflict. The 1949 constitution abolished the armed forces and redirected resources to social services. Costa Rica has maintained democratic elections without military interruption since 1949, making it one of the most politically stable countries in Latin America.

View San José on the map

View San José - The Capital of Costa Rica on the map

Flight time from San José to other capitals

CityDistance (km)Flight Time
Washington, D.C.33003h 53m
Buenos Aires56006h 35m
London870010h 14m
Paris890010h 28m
Rome980011h 32m
Cape Town1180013h 53m
Tokyo1320015h 32m
Canberra1400016h 28m
Abu Dhabi1410016h 35m
Singapore1850021h 46m

Capitals with similar population to San José

CityPopulation
Port Moresby383,000
Yamoussoukro355,573
San José342,188
Maseru330,790
Manama330,000
Nicosia330,000
Ciudad de la Paz297,000

Capitals with similar eco ranking to San José

CityEco Rank
Sofia37
Nassau38
St. John's39
San José40
Kyiv41
Kingstown42
Nicosia44

Source: Environmental Performance Index 2024.

Frequently Asked Questions

  • Why is San José the capital of Costa Rica?

    San José became the capital in 1823 following a brief armed conflict among Costa Rican towns competing for political primacy after independence. San José's forces defeated those of Cartago and Heredia, and the city was designated the new capital. Its more central location within the Central Valley also supported its selection.

  • Does Costa Rica have a military?

    No. Costa Rica abolished its military in December 1948 following a brief civil war, and this abolition was enshrined in Article 12 of the 1949 constitution. Costa Rica is one of only a small number of countries in the world to have constitutionally prohibited a standing army. The funds previously allocated to defence were redirected to education and health services.

  • When did Costa Rica gain independence?

    Costa Rica declared independence from Spain on 15 September 1821, as part of a broader Central American declaration of independence. It briefly joined the Mexican Empire before becoming part of the Federal Republic of Central America in 1823. Costa Rica became a fully independent sovereign republic in 1838 when the Central American federation dissolved.

  • Is San José the largest city in Costa Rica?

    Yes. San José is Costa Rica's largest city, with approximately 342,000 residents in the city proper and around 1.4 million in the greater metropolitan area. The San José metropolitan area is home to roughly a quarter of Costa Rica's total population, making it by far the country's dominant urban centre.

  • What is Costa Rica's system of government?

    Costa Rica is a presidential republic with a unicameral Legislative Assembly of 57 members elected for four-year terms. The president is both head of state and head of government, elected by popular vote for a single four-year term; immediate re-election is prohibited. The country has maintained an uninterrupted democratic electoral system since 1949.

Sights and landmarks

The centre of San José houses the Teatro Nacional from 1897, a neoclassical gem modelled on the Opéra Garnier in Paris and funded by a tax on coffee exports. The Museo del Oro Precolombino beneath the Plaza de la Cultura preserves more than 1,600 pre-Columbian gold objects. The Museo Nacional de Costa Rica in the former Bellavista fort displays bullet holes from the 1948 civil war and keeps enormous stone spheres from the Diquís culture. The Museo de Jade holds the largest collection of pre-Columbian jade in the world. The Mercado Central from 1880 consists of labyrinthine lanes with traditional sodas. Barrio Amón preserves coffee-baron villas in Art Nouveau style from the early 20th century.

Climate and best time to visit

San José enjoys a tropical highland climate at 1,170 metres above sea level, with a remarkably temperate year-round average of 21 degrees Celsius, earning it the nickname 'eternal spring'. Temperatures vary little, with daily highs of 24–27 degrees and nights around 14–17 degrees. The dry season runs from December to April and is the best travel time, with clear mornings. The wet season or 'invierno' runs from May to November with daily afternoon and evening showers. Annual rainfall is around 1,800 millimetres. Unlike coastal regions, San José is far from hurricane tracks and does not experience extreme heat.

Regional significance

Costa Rica stands out in Central America as one of Latin America's oldest continuous democracies, having abolished its army in 1948, a unique status in the region. San José is therefore less militarised than many neighbouring capitals and has a strong focus on education and healthcare. The city sits at the centre of the densely populated Gran Área Metropolitana with around 1.5 million inhabitants, roughly a quarter of the national population. Costa Rica's political stability and relatively high prosperity have made San José a regional hub for multinationals such as Intel, Procter and Gamble, and numerous American call centres serving North America.

Economy

San José's economy relies on services, technology and medical devices. Since Intel opened a plant in 1997 — though it closed in 2014 and partly reopened — Costa Rica has positioned itself as a regional tech hub. Companies such as Hewlett Packard, Amazon and Microsoft operate large service centres in and around the city. Medical devices are, surprisingly, the largest export category, ahead of pineapples and bananas. Tourism contributes around 8% to GDP, with San José as the gateway via Juan Santamaría International Airport. The city hosts the headquarters of Banco Nacional and the Bolsa Nacional de Valores.
San José, capital of Costa Rica
San José, capital of Costa Rica

Capitals quiz

Test how many of the 195 national capitals you can name, by continent or worldwide.

Start quiz
What is the capital of New Zealand?