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
Flight time from San José to other capitals
| City | Distance (km) | Flight Time |
|---|---|---|
| Washington, D.C. | 3300 | 3h 53m |
| Buenos Aires | 5600 | 6h 35m |
| London | 8700 | 10h 14m |
| Paris | 8900 | 10h 28m |
| Rome | 9800 | 11h 32m |
| Cape Town | 11800 | 13h 53m |
| Tokyo | 13200 | 15h 32m |
| Canberra | 14000 | 16h 28m |
| Abu Dhabi | 14100 | 16h 35m |
| Singapore | 18500 | 21h 46m |
Capitals with similar population to San José
| City | Population |
|---|---|
| Port Moresby | 383,000 |
| Yamoussoukro | 355,573 |
| San José | 342,188 |
| Maseru | 330,790 |
| Manama | 330,000 |
| Nicosia | 330,000 |
| Ciudad de la Paz | 297,000 |
Capitals with similar eco ranking to San José
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
Climate and best time to visit
Regional significance
Economy

Other capitals in North America
San Salvador
El Salvador, North America
Santo Domingo
Dominican Republic, North America
St. George's
Grenada, North America
St. John's
Antigua and Barbuda, North America
Tegucigalpa
Honduras, North America
Washington, D.C.
United States, North America