Map of Panama and its neighboring countries
Panama borders two countries: Costa Rica and Colombia. Panama's land borders total 427 mi (687 km), the 130th longest of the 157 countries with land borders.
Panama's land borders are the 17th longest of the 22 countries of Latin America with land borders.
Panama land borders: total length, rankings and longest border
| Total length | 427 mi (687 km) |
|---|---|
| Neighboring countries | 2 |
| World rank by total length | 130/157 |
| Rank in Latin America | 17/22 |
| Rank, high income | 34/50 |
| Longest border |
|
Panama neighboring countries and border lengths
| Neighboring country | Border length, mi | Share of the total | |
|---|---|---|---|
|
|
216.2 | 50.7% | vs Costa Rica |
|
|
210.6 | 49.3% | vs Colombia |
The border with Costa Rica is the longest, 216.2 mi (348 km), 50.7% of the total; the shortest, with Colombia, is 210.6 mi (339 km).
Panama and nearby countries: total length of land borders
Of Panama and the five nearby countries, Colombia has the longest land borders in total, 4,146 mi (6,672 km), and El Salvador the shortest, 367 mi (590 km). Panama is fourth of the six, with 427 mi (687 km).
Compare the land borders of Panama 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.