Map of Hungary and its neighboring countries
Hungary borders seven countries: Slovakia, Romania, Croatia, Austria, Serbia, Ukraine and Slovenia. Hungary's land borders total 1,309 mi (2,106 km), the 87th longest of the 157 countries with land borders.
Hungary's land borders are the 14th longest of the 43 countries of Europe with land borders.
Hungary land borders: total length, rankings and longest border
| Total length | 1,309 mi (2,106 km) |
|---|---|
| Neighboring countries | 7 |
| World rank by total length | 87/157 |
| Rank in Europe | 14/43 |
| Rank, high income | 16/50 |
| Longest border |
|
Hungary neighboring countries and border lengths
| Neighboring country | Border length, mi | Share of the total | |
|---|---|---|---|
|
|
390 | 29.8% | vs Slovakia |
|
|
263.5 | 20.1% | vs Romania |
|
|
216.2 | 16.5% | vs Croatia |
|
|
199.5 | 15.2% | vs Austria |
|
|
101.9 | 7.79% | vs Serbia |
|
|
79.5 | 6.08% | vs Ukraine |
|
|
58.4 | 4.46% | vs Slovenia |
The border with Slovakia is the longest, 390 mi (627 km), 29.8% of the total; the shortest, with Slovenia, is 58.4 mi (94 km).
Hungary and its neighbors: total length of land borders
Of Hungary and its seven neighbors, Ukraine has the longest land borders in total, 3,468 mi (5,581 km), and Slovenia the shortest, 752 mi (1,211 km). Hungary is sixth of the eight, with 1,309 mi (2,106 km).
Compare the land borders of Hungary with other countries
Sources:
- Central Intelligence Agency (CIA) (2025, updated October 2026)
Creative Commons Attribution (CC BY): you may copy, share, adapt and reuse this content, also commercially, as long as you credit statistics.wiki and note any changes you made. The sources listed above may have their own license terms.