How far am I from the Afghan border?

Afghanistan shares land borders with China, Pakistan, Iran, Uzbekistan, Turkmenistan and Tajikistan. Use your location to measure the straight-line distance from where you are to the nearest point of Afghanistan, or see below how far major cities on both sides of the border are.

How far are you from Afghanistan?

On a phone this uses GPS. The calculator opens with Afghanistan already selected and measures from your exact spot.

Afghanistan's neighbours

Afghanistan is shown in green, and the 6 countries it shares a land border with in blue.

  • Afghanistan
  • Land neighbours

Which countries border Afghanistan? See every neighbour and the countries two borders away

How far major cities are from Afghanistan

CityCountryTo Afghanistan
DushanbeTajikistan124 km (77 miles)
MashhadIran169 km (105 miles)
IsfaraTajikistan184 km (115 miles)
TürkmenabatTurkmenistan240 km (149 miles)
AndijonUzbekistan280 km (174 miles)
TashkentUzbekistan339 km (211 miles)
AshgabatTurkmenistan366 km (228 miles)
LahorePakistan413 km (257 miles)
KarachiPakistan551 km (342 miles)
TehranIran850 km (528 miles)
ChongqingChina3,051 km (1,896 miles)
ShanghaiChina4,299 km (2,671 miles)

How far Afghanistan's cities are from its borders

CityNearest neighbourTo that border
Mazār-e SharīfUzbekistan54 km (34 miles)
KabulPakistan87 km (54 miles)
HerātTurkmenistan87 km (54 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 Afghan 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 Afghanistan, in miles and kilometers.

Which countries border Afghanistan?

Afghanistan shares land borders with China, Pakistan, Iran, Uzbekistan, Turkmenistan and Tajikistan.

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 Afghanistan's territory. From most places that is the land border, but from somewhere across a sea or a lake it can be Afghanistan's coast.

Which big city is closest to Afghanistan?

Of the cities measured here, Dushanbe in Tajikistan is the closest: 124 km (77 miles) from Afghanistan in a straight line.

Other borders