Country rankings

Countries Near Spain

Portugal has the highest Length of Border with Spain (km) (1,214), followed by France (623) and Andorra (63.7). Gibraltar has the lowest (1.2).

5 of 235 countries

Length of Border with Spain (km)

Darker means higher. Click a place to highlight it.

Loading map…

All 5 ranked

Highest first.

Distribution Median and middle halfThe median is the middle value: half of places are above it, half below. The middle half is the range holding the central 50% of places.More in the glossary →

Each dot is one country; the lines mark the median and the middle half.

Median
63.7
Middle half 17 – 623
Average
384
5 countries
Highest
1,214
Portugal
Lowest
1.2
Gibraltar

Data

Click a column to sort, a row to highlight that place on the charts.

232 countries · # = rank by Length of Border with Spain (km)
#
1Portugal0km (shared border)1,214755
2France0km (shared border)623387
3Andorra1500km or closer63.739
4Morocco0km (shared border)1711
5Gibraltar0km (shared border)1.21
—Indiaover 3000km——
—Chinaover 3000km——
—United Statesover 3000km——
—Indonesiaover 3000km——
—Pakistanover 3000km——
—Nigeria3000km to 1500km——
—Brazilover 3000km——
—Bangladeshover 3000km——
—Russia3000km to 1500km——
—Ethiopiaover 3000km——
—Mexicoover 3000km——
—Japanover 3000km——
—Egypt3000km to 1500km——
—Philippinesover 3000km——
—DR Congoover 3000km——
—Vietnamover 3000km——
—Iranover 3000km——
—Turkey3000km to 1500km——
—Germany1500km or closer——
—Tanzaniaover 3000km——
—Thailandover 3000km——
—United Kingdom1500km or closer——
—South Africaover 3000km——
—Kenyaover 3000km——
—Myanmarover 3000km——
—Colombiaover 3000km——
—Sudanover 3000km——
—Ugandaover 3000km——
—South Koreaover 3000km——
—Algeria1500km or closer——
—Iraqover 3000km——
—Argentinaover 3000km——
—Afghanistanover 3000km——
—Yemenover 3000km——
—Canadaover 3000km——
—Angolaover 3000km——
—Ukraine3000km to 1500km——
—Poland1500km or closer——
—Uzbekistanover 3000km——
—Mozambiqueover 3000km——
—Malaysiaover 3000km——
—Ghana3000km to 1500km——
—Saudi Arabiaover 3000km——
—Peruover 3000km——
—Madagascarover 3000km——
—Ivory Coast3000km to 1500km——
—Cameroonover 3000km——
—Nepalover 3000km——
—Niger3000km to 1500km——
—Venezuelaover 3000km——
—Australiaover 3000km——
—North Koreaover 3000km——
—Syria3000km to 1500km——
—Mali1500km or closer——
—Burkina Faso3000km to 1500km——
—Sri Lankaover 3000km——
—Taiwanover 3000km——
—Malawiover 3000km——
—Zambiaover 3000km——
—Chad3000km to 1500km——
—Kazakhstanover 3000km——
—Somaliaover 3000km——
—Chileover 3000km——
—Senegal3000km to 1500km——
—Guatemalaover 3000km——
—Romania1500km or closer——
—Netherlands1500km or closer——
—Ecuadorover 3000km——
—Cambodiaover 3000km——
—Zimbabweover 3000km——
—Guinea3000km to 1500km——
—Benin3000km to 1500km——
—Rwandaover 3000km——
—Burundiover 3000km——
—Boliviaover 3000km——
—South Sudanover 3000km——
—Tunisia1500km or closer——
—Haitiover 3000km——
—Belgium1500km or closer——
—Dominican Republicover 3000km——
—Jordanover 3000km——
—United Arab Emiratesover 3000km——
—Hondurasover 3000km——
—Tajikistanover 3000km——
—Papua New Guineaover 3000km——
—Cubaover 3000km——
—Sweden3000km to 1500km——
—Czechia1500km or closer——
—Azerbaijanover 3000km——
—Togo3000km to 1500km——
—Greece1500km or closer——
—Israel3000km to 1500km——
—Hungary3000km to 1500km——
—Austria1500km or closer——
—Switzerland1500km or closer——
—Sierra Leone3000km to 1500km——
—Belarus3000km to 1500km——
—Laosover 3000km——
—Turkmenistanover 3000km——
—Libya1500km or closer——
—Kyrgyzstanover 3000km——
—Hong Kongover 3000km——
—Nicaraguaover 3000km——
—Paraguayover 3000km——
—Bulgaria3000km to 1500km——
—Serbia1500km or closer——
—Republic of the Congoover 3000km——
—El Salvadorover 3000km——
—Denmark1500km or closer——
—Singaporeover 3000km——
—Lebanon3000km to 1500km——
—Liberiaover 3000km——
—Central African Republicover 3000km——
—Palestineover 3000km——
—Omanover 3000km——
—Norway3000km to 1500km——
—Finland3000km to 1500km——
—Mauritania1500km or closer——
—Slovakia1500km or closer——
—Ireland1500km or closer——
—New Zealandover 3000km——
—Costa Ricaover 3000km——
—Kuwaitover 3000km——
—Panamaover 3000km——
—Croatia1500km or closer——
—Georgia3000km to 1500km——
—Eritreaover 3000km——
—Mongoliaover 3000km——
—Uruguayover 3000km——
—Puerto Ricoover 3000km——
—Qatarover 3000km——
—Namibiaover 3000km——
—Bosnia and Herzegovina3000km to 1500km——
—Moldova3000km to 1500km——
—Armeniaover 3000km——
—Gambia3000km to 1500km——
—Jamaicaover 3000km——
—Lithuania3000km to 1500km——
—Albania3000km to 1500km——
—Gabonover 3000km——
—Botswanaover 3000km——
—Lesothoover 3000km——
—Guinea-Bissau3000km to 1500km——
—Slovenia1500km or closer——
—Equatorial Guineaover 3000km——
—Latvia3000km to 1500km——
—North Macedonia1500km or closer——
—Bahrainover 3000km——
—Trinidad and Tobagoover 3000km——
—Timor-Lesteover 3000km——
—Cyprus3000km to 1500km——
—Estonia3000km to 1500km——
—Eswatiniover 3000km——
—Mauritiusover 3000km——
—Djiboutiover 3000km——
—Fijiover 3000km——
—Comorosover 3000km——
—Reunionover 3000km——
—Solomon Islandsover 3000km——
—Guyanaover 3000km——
—Bhutanover 3000km——
—Macauover 3000km——
—Luxembourg1500km or closer——
—Surinameover 3000km——
—Montenegro1500km or closer——
—Western Sahara1500km or shorter——
—Malta1500km or closer——
—Maldivesover 3000km——
—Cape Verde3000km to 1500km——
—Bruneiover 3000km——
—Belizeover 3000km——
—Bahamasover 3000km——
—Iceland3000km to 1500km——
—Guadeloupeover 3000km——
—Mayotteover 3000km——
—Vanuatuover 3000km——
—Martiniqueover 3000km——
—French Guianaover 3000km——
—New Caledoniaover 3000km——
—French Polynesiaover 3000km——
—Barbadosover 3000km——
—Sao Tome and Principeover 3000km——
—Samoaover 3000km——
—Curacaoover 3000km——
—Saint Luciaover 3000km——
—Guamover 3000km——
—Kiribatiover 3000km——
—Seychellesover 3000km——
—Grenadaover 3000km——
—Micronesiaover 3000km——
—Arubaover 3000km——
—Jersey1500km or closer——
—Tongaover 3000km——
—Saint Vincent and the Grenadinesover 3000km——
—Antigua and Barbudaover 3000km——
—Isle of Man1500km or closer——
—United States Virgin Islandsover 3000km——
—Cayman Islandsover 3000km——
—Dominicaover 3000km——
—Guernsey1500km or closer——
—Bermudaover 3000km——
—Faroe Islands3000km to 1500km——
—Greenland3000km to 1500km——
—Turks and Caicos Islandsover 3000km——
—Saint Kitts and Nevisover 3000km——
—American Samoaover 3000km——
—Sint Maartenover 3000km——
—Northern Mariana Islandsover 3000km——
—Liechtenstein1500km or closer——
—British Virgin Islandsover 3000km——
—Monaco1500km or closer——
—Marshall Islandsover 3000km——
—San Marino1500km or closer——
—Saint Martinover 3000km——
—Palauover 3000km——
—Anguillaover 3000km——
—Cook Islandsover 3000km——
—Nauruover 3000km——
—Saint Barthelemyover 3000km——
—Wallis and Futunaover 3000km——
—Tuvaluover 3000km——
—Saint Pierre and Miquelonover 3000km——
—Montserratover 3000km——
—Falkland Islandsover 3000km——
—Tokelauover 3000km——
—Niueover 3000km——
—Vatican City1500km or closer——

What correlates with Length of Border with Spain (km)?

Not enough places to compare

Correlations need at least 10 countries with data; this metric covers 5.

Quick answers

Which country has the highest Length of Border with Spain (km)?
Portugal has the highest Length of Border with Spain (km), at 1,214, followed by France (623) and Andorra (63.7).
Which country has the lowest Length of Border with Spain (km)?
Gibraltar has the lowest Length of Border with Spain (km), at 1.2.
What is the median Length of Border with Spain (km) across countries?
The median is 63.7 across the 5 countries with data.
Where does this countries near spain data come from?
Rankodex compiles it from World Population Review and the primary sources it cites: Jurisdictions - Confidus Solutions; Distance between countries - Geodatos.