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
| City | Country | To Afghanistan |
|---|---|---|
| Dushanbe | Tajikistan | 124 km (77 miles) |
| Mashhad | Iran | 169 km (105 miles) |
| Isfara | Tajikistan | 184 km (115 miles) |
| Türkmenabat | Turkmenistan | 240 km (149 miles) |
| Andijon | Uzbekistan | 280 km (174 miles) |
| Tashkent | Uzbekistan | 339 km (211 miles) |
| Ashgabat | Turkmenistan | 366 km (228 miles) |
| Lahore | Pakistan | 413 km (257 miles) |
| Karachi | Pakistan | 551 km (342 miles) |
| Tehran | Iran | 850 km (528 miles) |
| Chongqing | China | 3,051 km (1,896 miles) |
| Shanghai | China | 4,299 km (2,671 miles) |
How far Afghanistan's cities are from its borders
| City | Nearest neighbour | To that border |
|---|---|---|
| Mazār-e Sharīf | Uzbekistan | 54 km (34 miles) |
| Kabul | Pakistan | 87 km (54 miles) |
| Herāt | Turkmenistan | 87 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.