QuestionCosta Rica

What Is the Capital of Costa Rica? San José Explained

Skyline of San José, the capital of Costa Rica, with high-rise buildings in the Central Valley
Skyline of San José, the capital of Costa Rica, with high-rise buildings in the Central Valley. Photo: Tico73 (CC BY-SA 4.0), Wikimedia Commons

San José is the capital of Costa Rica and its largest city. It lies in the Central Valley in the middle of the country, and about 352,000 people lived in the canton of San José at the 2022 census (INEC). It has been the seat of government since 1823, when it took over from the colonial capital, Cartago.

Contents

San José at a glance

FactDetail
StatusCapital of Costa Rica and of San José Province
Capital since1823 (permanently since the 1830s)
PopulationAbout 352,000 in the canton of San José (INEC, 2022 census)
Metropolitan areaThe Greater Metropolitan Area holds about half of Costa Rica’s people
AltitudeRoughly 1,150 m (3,800 ft)
Named afterSaint Joseph (San José)
Previous capitalCartago (colonial period until 1823)

Where is San José?

San José stands in the Central Valley, a fertile upland surrounded by mountains and volcanoes, including Irazú and Poás. The valley is the heart of Costa Rica: together with the nearby cities of Alajuela, Heredia and Cartago, the capital forms the Greater Metropolitan Area, where roughly half of the country’s 5.15 million people (World Bank estimate for 2025) live.

The altitude makes the climate mild. Average monthly temperatures stay close to 22 °C (72 °F) all year, while rainfall changes sharply between a dry season from about December to April and a wet season from May to November. The city itself is divided into districts such as Carmen, Merced, Hospital and Catedral in the center, with residential areas like Pavas, Hatillo and Zapote around them.

How San José became the capital

San José began as a modest settlement. In the 1730s, church authorities ordered the scattered farmers of the Aserrí valley to gather around a new chapel at a place called La Boca del Monte, and the chapel was placed under the patronage of Saint Joseph. Unlike Cartago, the town had no formal founding charter. It grew after a royal tobacco factory opened there in the 1780s, and it received the title of city from the Spanish Cortes in 1813, under the liberal constitution of 1812.

After Central America declared independence from Spain in 1821, Costa Rica’s towns could not agree on the future. A provisional agreement made the government rotate among Cartago, San José, Heredia and Alajuela, so San José served as capital for a few months in 1822. Cartago and Heredia then favored joining the Mexican Empire, while San José and Alajuela wanted a republic. On 5 April 1823, the republicans won the Battle of Ochomogo, and the capital moved to San José.

The rivalry did not end at once. In 1834 a law known as the Ley de la Ambulancia again made the capital rotate between the four towns. When the head of state, Braulio Carrillo, scrapped it in 1835, Cartago, Heredia and Alajuela rose against San José in the War of the League, and San José won. Carrillo confirmed San José as the permanent capital in 1838, and it has kept that role ever since.

Why San José and not Cartago?

Cartago, founded by the Spanish in 1563, had been the capital for more than 250 years and was the home of the colonial elite. San José won because it had become the economic center of the Central Valley. Its merchants and tobacco and coffee growers were wealthier and more liberal than Cartago’s old families, and its central position made it a natural crossroads between the eastern towns and the road to the Pacific port of Puntarenas.

Coffee confirmed the choice. From the 1840s, coffee exports to Europe paid for new public buildings, and in 1884 San José became one of the first cities in Latin America with electric street lighting. Cartago remains an important city and religious center, home to the Basilica of Our Lady of the Angels, Costa Rica’s most visited shrine.

Seat of government

All three branches of government sit in San José. The president works from the Presidential House in the district of Zapote. The Legislative Assembly, a single chamber of 57 deputies, meets in the city center, as do the Supreme Court of Justice and the Supreme Electoral Tribunal.

The city also hosts international bodies. The Inter-American Court of Human Rights has its seat in San José, and the University for Peace, created by the United Nations General Assembly in 1980, is located in the hills west of the capital.

Landmarks in San José

  • National Theatre – an ornate theater opened in 1897, financed by a tax on coffee exports and decorated with Italian marble and paintings.
  • Pre-Columbian Gold Museum – a museum of Indigenous goldwork run by the Central Bank beneath the Plaza de la Cultura.
  • National Museum – housed in the former Bellavista barracks, where the abolition of the army was announced in 1948.
  • Metropolitan Cathedral – the main Catholic church, facing Central Park, where the national flag was first raised in 1848.
  • Central Market – a covered market dating from 1880, packed with food stalls and small shops.
  • La Sabana Metropolitan Park – the city’s largest park, laid out on the site of the old airport; its former terminal now houses the Museum of Costa Rican Art.

For more about the country’s sights, from volcanoes to beaches, see What is Costa Rica known for?

San José, Costa Rica, and other San Josés

The name San José is very common in the Spanish-speaking world, which can confuse travelers and quiz players. San Jose in California, in the United States, is a much larger city, and its airport code, SJC, is easy to mix up with SJO, the code of Juan Santamaría International Airport, which serves the Costa Rican capital from neighboring Alajuela. There are also towns named San José in Mexico, Uruguay and the Philippines.

It is also easy to confuse the capitals of the countries in Central America. Costa Rica’s capital is San José, Nicaragua’s is Managua, Honduras’s is Tegucigalpa, El Salvador’s is San Salvador, and Panama’s is Panama City.

More on Big World List

Frequently asked questions

Is San José the largest city in Costa Rica?

Yes. The canton of San José had about 352,000 inhabitants in the 2022 census, more than any other canton. The wider Greater Metropolitan Area around it, which includes Alajuela, Heredia and Cartago, holds about half of Costa Rica's population.

Was Cartago the capital of Costa Rica?

Yes. Cartago, founded in 1563, was the capital of the Spanish colonial province of Costa Rica. It lost that role in 1823, when republicans from San José and Alajuela won the Battle of Ochomogo and moved the government to San José.

Why is the capital called San José?

The city is named after Saint Joseph, San José in Spanish. A small chapel built in the 1730s to gather the scattered settlers of the area was placed under his patronage, and the town that grew around it took his name.

How high is San José, Costa Rica?

San José lies in the Central Valley at roughly 1,150 m (3,800 ft) above sea level. The altitude gives it a mild climate, with average monthly temperatures that stay close to 22 °C (72 °F) all year.

Which airport serves San José?

The main airport for the capital, Juan Santamaría International Airport, is in the neighboring province of Alajuela, northwest of central San José. Its code is SJO, which is different from SJC, the code of San Jose in California.

Is San José, Costa Rica, the same as San Jose, California?

No. San José, Costa Rica, is the capital of a Central American country, while San Jose, California, is a large city in the United States. Many other towns share the name, such as San José de Mayo in Uruguay and San José del Cabo in Mexico.

Sources and further reading

  • INEC (National Institute of Statistics and Census, Costa Rica), "Censo Nacional de Población y Vivienda 2022"
  • Political Constitution of the Republic of Costa Rica (1949)
  • Encyclopaedia Britannica, "San José"
  • Encyclopaedia Britannica, "Costa Rica"

Cite this page

“What Is the Capital of Costa Rica? San José Explained.” Countries of the World, https://countries.bigworldlist.com/questions/what-is-the-capital-of-costa-rica/.

Costa Rica: more questions and guides