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

CityCountryTo Hungary
BratislavaSlovakia16 km (9.8 miles)
KošiceSlovakia18 km (11 miles)
ViennaAustria53 km (33 miles)
GrazAustria56 km (35 miles)
ZagrebCroatia86 km (53 miles)
BelgradeSerbia147 km (91 miles)
SplitCroatia275 km (171 miles)
NišSerbia327 km (203 miles)
IaşiRomania365 km (227 miles)
BucharestRomania436 km (271 miles)
KyivUkraine617 km (383 miles)
KharkivUkraine1,000 km (621 miles)

How far Hungary's cities are from its borders

CityNearest neighbourTo that border
SzegedSerbia9.2 km (5.7 miles)
DebrecenRomania29 km (18 miles)
BudapestSlovakia38 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.

Other borders