Map of Costa Rica and its neighboring countries
Costa Rica borders two countries: Panama and Nicaragua. Costa Rica's land borders total 411 mi (661 km), the 132nd longest of the 157 countries with land borders.
Costa Rica's land borders are the 18th longest of the 22 countries of Latin America with land borders.
Costa Rica land borders: total length, rankings and longest border
| Total length | 411 mi (661 km) |
|---|---|
| Neighboring countries | 2 |
| World rank by total length | 132/157 |
| Rank in Latin America | 18/22 |
| Rank, high income | 35/50 |
| Longest border |
|
Costa Rica neighboring countries and border lengths
| Neighboring country | Border length, mi | Share of the total | |
|---|---|---|---|
|
|
216.2 | 52.6% | vs Panama |
|
|
194.5 | 47.4% | vs Nicaragua |
The border with Panama is the longest, 216.2 mi (348 km), 52.6% of the total; the shortest, with Nicaragua, is 194.5 mi (313 km).
Costa Rica and nearby countries: total length of land borders
Of Costa Rica and the five nearby countries, Guatemala has the longest land borders in total, 1,036 mi (1,667 km), and El Salvador the shortest, 367 mi (590 km). Costa Rica is fifth of the six, with 411 mi (661 km).
Compare the land borders of Costa Rica 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.