How far am I from the Hungarian border?
Hungary shares land borders with Ukraine, Romania, Austria, Serbia, Croatia, Slovakia and Slovenia. Use your location to measure the straight-line distance from where you are to the nearest point of Hungary, or see below how far major cities on both sides of the border are.
How far are you from Hungary?
On a phone this uses GPS. The calculator opens with Hungary already selected and measures from your exact spot.
Hungary's neighbours
Hungary is shown in green, and the 7 countries it shares a land border with in blue.
- Hungary
- Land neighbours
Which countries border Hungary? See every neighbour and the countries two borders away
How far major cities are from Hungary
| City | Country | To Hungary |
|---|---|---|
| Bratislava | Slovakia | 16 km (9.8 miles) |
| Košice | Slovakia | 18 km (11 miles) |
| Vienna | Austria | 53 km (33 miles) |
| Graz | Austria | 56 km (35 miles) |
| Zagreb | Croatia | 86 km (53 miles) |
| Belgrade | Serbia | 147 km (91 miles) |
| Split | Croatia | 275 km (171 miles) |
| Niš | Serbia | 327 km (203 miles) |
| Iaşi | Romania | 365 km (227 miles) |
| Bucharest | Romania | 436 km (271 miles) |
| Kyiv | Ukraine | 617 km (383 miles) |
| Kharkiv | Ukraine | 1,000 km (621 miles) |
How far Hungary's cities are from its borders
| City | Nearest neighbour | To that border |
|---|---|---|
| Szeged | Serbia | 9.2 km (5.7 miles) |
| Debrecen | Romania | 29 km (18 miles) |
| Budapest | Slovakia | 38 km (24 miles) |
Straight-line distance from each city centre to the nearest point of the other country, measured October 8, 2026.
Questions
How far am I from the Hungarian border?
Tap "Use my location" on this page. On a phone it uses GPS, and the calculator measures the straight-line distance from where you are to the nearest point of Hungary, in miles and kilometers.
Which countries border Hungary?
Hungary shares land borders with Ukraine, Romania, Austria, Serbia, Croatia, Slovakia and Slovenia.
Is this the distance to a border crossing?
No. It is the straight-line distance to the nearest point on the border line itself. The nearest official crossing can be much farther away by road.
Does it measure across water?
Yes. It measures to the nearest point of Hungary's territory. From most places that is the land border, but from somewhere across a sea or a lake it can be Hungary's coast.
Which big city is closest to Hungary?
Of the cities measured here, Bratislava in Slovakia is the closest: 16 km (9.8 miles) from Hungary in a straight line.