QuestionHungary

What Is the Capital of Hungary? Budapest Explained

The Széchenyi Chain Bridge and the Danube at night in Budapest, seen from Buda Castle, with the Hungarian Parliament lit up on the Pest bank
The Széchenyi Chain Bridge and the Danube at night in Budapest, seen from Buda Castle, with the Hungarian Parliament lit up on the Pest bank. Photo: Wilfredor (CC0), Wikimedia Commons

Budapest is the capital of Hungary and by far its largest city, with about 1.68 million residents (Hungarian Central Statistical Office, 1 January 2026). It was created in 1873 by uniting three towns on the Danube: hilly Buda and Óbuda on the west bank and flat Pest on the east bank. Article F of Hungary’s constitution names Budapest as the capital.

Contents

Budapest at a glance

FeatureBudapest
CountryHungary
Formed17 November 1873 (union of Buda, Óbuda and Pest)
PopulationAbout 1.68 million (KSH, 1 January 2026)
AreaAbout 525 km² (203 sq mi), divided into 23 districts
RiverDanube
Seat ofNational Assembly, government ministries, president’s office, highest courts
UNESCO World HeritageBanks of the Danube, Buda Castle Quarter and Andrássy Avenue

Why is Budapest the capital of Hungary?

Budapest sits almost in the middle of the Carpathian Basin, at a point where the Danube was easy to cross. Here the hills of Transdanubia meet the Great Hungarian Plain, so trade routes, and later roads and railways, came together. The Romans already built a town here, Aquincum, which became the seat of the province of Lower Pannonia in the early 2nd century; its ruins can still be seen in the Óbuda district.

After the Mongol invasion of 1241–1242 showed how hard it was to defend the plains, King Béla IV built a fortified town on Castle Hill in Buda. Buda grew into the kingdom’s main royal residence, and under King Matthias Corvinus in the late 15th century it was one of the great Renaissance courts of Europe, famous for its library, the Bibliotheca Corviniana.

The Ottomans captured Buda in 1541 and held it for almost 150 years, until Christian armies retook it in 1686. In 1783 Emperor Joseph II moved Hungary’s central government offices from Pozsony to Buda. Pest grew rapidly as a center of trade and culture, and in 1848 the national assembly moved there. The first permanent bridge across the Danube, the Chain Bridge, opened in 1849, and on 17 November 1873 the three towns were united as Budapest. Until 1918 it was one of the two capitals of Austria-Hungary, alongside Vienna.

Earlier capitals of Hungary

Hungary has had several royal and political centers over its history:

  • Esztergom, on the Danube north of Budapest, was the seat of the first rulers; Stephen I, the first king, was born there. It is still the seat of the head of the Catholic Church in Hungary.
  • Székesfehérvár held the royal basilica where most medieval kings were crowned and many were buried.
  • Buda became the main royal residence in the late Middle Ages, and the royal court also spent long periods in nearby Visegrád in the 14th century.
  • Pozsony (German Pressburg, today Bratislava) was the capital of the Habsburg-ruled Kingdom of Hungary from 1536 to 1783 and its coronation city until 1830. Today it is the capital of Slovakia; see What is the capital of Slovakia?
  • Debrecen, in the east, twice hosted Hungarian governments in emergencies: the revolutionary government in 1849 and a provisional national assembly and government in 1944–1945.

Buda, Óbuda and Pest today

The Danube divides the city. Buda, on the west bank, is built on hills such as Castle Hill and Gellért Hill and includes the old town of Óbuda to the north. Pest, on the east bank, is flat and holds most of the population, the Parliament, the main shopping streets and the long Andrássy Avenue. Margaret Island, a park in the river between the two, is a favorite place for walks. Budapest is divided into 23 numbered districts.

The city is famous for its thermal water: dozens of hot springs feed public baths, some dating from the Ottoman period, such as Rudas and Király, and others built in the early 20th century, such as Széchenyi and Gellért. Budapest also opened the first underground railway on the European continent in 1896; the line, now metro M1, still runs beneath Andrássy Avenue.

Famous landmarks in the capital

The neo-Gothic Hungarian Parliament Building, designed by Imre Steindl and opened in 1902, is the city’s best-known sight and the largest building in Hungary. Across the river, the Royal Palace of Buda Castle stands near Matthias Church and the white towers of the Fisherman’s Bastion, with views over the whole city.

Other landmarks include St. Stephen’s Basilica, Heroes’ Square with its Millennium Monument, the Hungarian State Opera, the Dohány Street Synagogue, the Liberty Statue on Gellért Hill and the Great Market Hall. For more of what makes the city and country famous, see What is Hungary known for?

Common confusions about the capital of Hungary

Budapest is not Bucharest. Bucharest is the capital of Romania, a different country to the southeast; see What is the capital of Romania? The similar names are a classic quiz trap.

Vienna was never Hungary’s capital. In Austria-Hungary, Vienna was the capital of the Austrian half, and Budapest of the Hungarian half. The two halves shared a monarch, but each had its own parliament and government. Vienna is the capital of Austria only.

Budapest is not an ancient name. The combined name dates only from 1873, although Buda and Pest are much older. Hungarians often shorten it to “Pest” in everyday speech, and the city still celebrates both halves of its identity.

More on Big World List

Frequently asked questions

Is Budapest the largest city in Hungary?

Yes. With about 1.68 million residents on 1 January 2026, according to the Hungarian Central Statistical Office, Budapest is roughly eight times the size of Debrecen, the second-largest city. Roughly three million people live in its wider metropolitan area.

When did Budapest become the capital of Hungary?

Budapest was created on 17 November 1873, when Buda, Óbuda and Pest were merged into one city. Buda had already served as the royal seat for long periods since the Middle Ages, and Buda and Pest were the center of government from the late 18th century.

Is Budapest two cities, Buda and Pest?

It was three towns: Buda and Óbuda on the hilly west bank of the Danube and Pest on the flat east bank. Locals still speak of the Buda side and the Pest side of the city.

What was the capital of Hungary before Budapest?

Esztergom and Székesfehérvár were royal centers of the early kingdom, and Buda became the main royal seat in the late Middle Ages. During the Ottoman period, Pozsony (today Bratislava, the capital of Slovakia) served as the capital of Habsburg-ruled Hungary from 1536 to 1783.

How do you pronounce Budapest?

In Hungarian the s is pronounced like sh, so the city's name sounds like BOO-da-pesht. In English both BOO-da-pest and BOO-da-pesht are common.

Is Budapest the same as Bucharest?

No. Budapest is the capital of Hungary, on the Danube in Central Europe, while Bucharest is the capital of Romania, about 640 km (400 mi) to the southeast. The similar-sounding names are a frequent source of confusion.

Sources and further reading

  • The Fundamental Law of Hungary (2011), Article F
  • Hungarian Central Statistical Office (KSH), "Resident population by sex, county and region, 1 January"
  • Encyclopaedia Britannica, "Budapest"
  • UNESCO World Heritage Centre, "Budapest, including the Banks of the Danube, the Buda Castle Quarter and Andrássy Avenue"

Cite this page

“What Is the Capital of Hungary? Budapest Explained.” Countries of the World, https://countries.bigworldlist.com/questions/what-is-the-capital-of-hungary/.

Hungary: more questions and guides