Geographys

Six degrees of borders

Walk from country to country across land borders and 156 countries form one network. The longest trip through it takes 18 crossings; 48% of pairs are six or fewer apart.

Computed from the site’s dataLast checked 17 October 2026Suggest a correction

The shortest overland route from Lesotho to El Salvador: 18 borders.

Treat each country as a stop and each land border as a step, and the map becomes a network: the one Border Run is played on.[1] Of the 197 countries, 156 are joined in a single network; the Dominican Republic and Haiti share an island of their own, and 39 countries, all islands, border no one.[1]

The longest trip

The two countries furthest apart are Lesotho and El Salvador: the shortest route between them crosses 18 borders.[1] Two other pairs tie with it: Lesotho to Papua New Guinea and Lesotho to Timor-Leste.[1]

The route is Lesotho → South Africa → Botswana → Zambia → DR Congo → Central African Republic → Chad → Niger → Algeria → Morocco → Spain (Ceuta and Melilla) → France → Germany → Denmark (Greenland) → Canada → United States → Mexico → Guatemala → El Salvador.[1] It reaches Europe through Spain's cities of Ceuta and Melilla on the Moroccan coast, and North America through Hans Island, between Greenland and Canada's Ellesmere Island.[1] Canada and Denmark, which governs Greenland, agreed in June 2022 to divide the island with a land border.[2]

The bridges to the Americas

Without overseas territories, the Americas would be cut off. Only four land borders join them to the rest: Canada's with Greenland, which is part of Denmark; France's with Brazil and Suriname, through French Guiana; and France's with the Netherlands on Saint Martin in the Caribbean.[1] Remove them and the network splits, leaving 22 countries in the Americas on their own.[1] Even with them, the link is a trick of counting: a country is one stop however its parts are spread, so a route can step from Greenland to Germany without crossing the sea in between.[1]

With them, the United States is 6 borders from China, by way of Greenland: United States → Canada → Denmark (Greenland) → Germany → Poland → Russia (Kaliningrad) → China.[1]

The middle of the world

On average, France is 4.82 borders from every other country in the network, closer than anyone else.[1] It is central partly because of French Guiana: France is the one country with a land border in both Europe and South America.[1][3] Germany, its neighbour, is a close second.[1]

The most remote are at the ends of the longest routes: Lesotho, Timor-Leste and Papua New Guinea, each an average of more than 10 borders from everywhere else.[1]

#CountryAverage borders to the rest
1Flag of FranceFrance4.82
2Flag of GermanyGermany4.86
3Flag of RussiaRussia4.98
4Flag of SpainSpain5.05
5Flag of PolandPoland5.06
6Flag of TürkiyeTürkiye5.14
7Flag of AzerbaijanAzerbaijan5.16
8Flag of GeorgiaGeorgia5.19
9Flag of SwitzerlandSwitzerland5.25
10Flag of MoroccoMorocco5.26
The ten most central of the 156 countries in the network.

A few trips

Some trips for scale, each the fewest borders it can be done in.[1]

#From and toBorders
1Flag of PortugalFlag of VietnamPortugal to Vietnam7
2Flag of SpainFlag of South KoreaSpain to South Korea6
3Flag of FranceFlag of United StatesFrance to United States4
4Flag of NorwayFlag of South AfricaNorway to South Africa12
5Flag of CanadaFlag of ChileCanada to Chile6
The fewest land borders crossed, through any country in between.

How we counted

The network is the site's border graph: each country's neighbours from GeoNames, plus a few borders GeoNames misses because they run through a territory (French Guiana, Saint Martin, Gibraltar, Hans Island).[1] Bridges, tunnels and causeways don't count, so Singapore and Bahrain are islands here.[1]

A route's length is the number of borders it crosses on the shortest path, whatever the distance on the ground.[1] Each country is one stop, with all its territories and exclaves: Russia with Kaliningrad, Denmark with Greenland, France with French Guiana.[1] Where several routes tie, the route shown is one of them.[1]

Sources

  1. [1]
    countryInfo.txt · GeoNames

    Each country's neighbours, currency, languages and time zones, as the site's games and Globe Atlas use them.

  2. [2]
  3. [3]
    Admin 0 – Countries, 1:50m · Natural Earth, via the world-atlas package

    The country shapes the site's maps and games are drawn from; border lengths are measured along them.

More by the numbers

Know a better source? Send a link for any fact on this page.
Primary sources (treaties, court rulings, official records) help most.