Map of Spain and its neighboring countries
Spain borders four countries: Portugal, France, Andorra and Morocco. Spain's land borders total 1,213 mi (1,953 km), the 89th longest of the 157 countries with land borders.
Spain's land borders are the 16th longest of the 43 countries of Europe with land borders.
Spain land borders: total length, rankings and longest border
| Total length | 1,213 mi (1,953 km) |
|---|---|
| Neighboring countries | 4 |
| World rank by total length | 89/157 |
| Rank in Europe | 16/43 |
| Rank, high income | 18/50 |
| Longest border |
|
Spain neighboring countries and border lengths
| Neighboring country | Border length, mi | Share of the total | |
|---|---|---|---|
|
|
761 | 62.7% | vs Portugal |
|
|
401 | 33.1% | vs France |
|
|
39.1 | 3.23% | |
|
|
11.5 | 0.95% | vs Morocco |
The border with Portugal is the longest, 761 mi (1,224 km), 62.7% of the total; the shortest, with Morocco, is 11.5 mi (18.5 km).
Spain and its neighbors: total length of land borders
Of Spain and its four neighbors, France has the longest land borders in total, 2,458 mi (3,956 km), and Andorra the shortest, 73.3 mi (118 km). Spain is third of the five, with 1,213 mi (1,953 km).
Compare the land borders of Spain with other countries
Sources:
- Central Intelligence Agency (CIA) (2025, updated October 2026)
Creative Commons Attribution (CC BY): you may copy, share, adapt and reuse this content, also commercially, as long as you credit statistics.wiki and note any changes you made. The sources listed above may have their own license terms.