| Rank | Country | dual gauge | Railways |
| Denmark | | total: 2,644 km standard gauge: 2,644 km 1.435-m gauge (636 km electrified) (2007) |
| Dhekelia | | void |
| Djibouti | | total: 100 km (Djibouti segment of the Addis Ababa-Djibouti railway) narrow gauge: 100 km 1.000-m gauge note: railway under joint control of Djibouti and Ethiopia but remains largely inoperable (2006) |
| Dominica | | void |
| Dominican Republic | | total: 517 km standard gauge: 375 km 1.435-m gauge narrow gauge: 142 km 0.762-m gauge note: additional 1,226 km operated by sugar companies in 1.076 m, 0.889 m, and 0.762-m gauges (2006) |
| Ecuador | | total: 966 km narrow gauge: 966 km 1.067-m gauge (2006) |
| Egypt | | total: 5,063 km standard gauge: 5,063 km 1.435-m gauge (62 km electrified) (2006) |
| El Salvador | | total: 562 km narrow gauge: 562 km 0.914-m gauge note: railways not in operation since 2005 because of disuse and high costs that led to a lack of maintenance (2007) |
| Equatorial Guinea | | void |
| Eritrea | | total: 306 km narrow gauge: 306 km 0.950-m gauge (2006) |
| Estonia | | total: 968 km broad gauge: 968 km 1.520 m/1.524-m gauge (2006) |
| Ethiopia | | total: 699 km (Ethiopian segment of the Addis Ababa-Djibouti railroad) narrow gauge: 699 km 1.000-m gauge note: railway under joint control of Djibouti and Ethiopia but remains largely inoperable (2006) |
| European Union | | total: 236,436 km broad gauge: 28,250 km standard gauge: 200,401 km narrow gauge: 7,771 km other: 23 km (2007) |
| Falkland Islands (Islas Malvinas) | | void |
| Faroe Islands | | void |
| Fiji | | total: 597 km narrow gauge: 597 km 0.600-m gauge note: belongs to the government-owned Fiji Sugar Corporation; used to haul sugarcane during harvest season (May to December) (2006) |
| Finland | | total: 5,741 km broad gauge: 5,741 km 1.524-m gauge (2,619 km electrified) (2006) |
| France | | total: 29,370 km standard gauge: 29,203 km 1.435-m gauge (14,778 km electrified) narrow gauge: 167 km 1.000-m gauge (2006) |
| French Polynesia | | void |
| French Southern and Antarctic Lands | | void |
| Gabon | | total: 814 km standard gauge: 814 km 1.435-m gauge (2006) |
| Gambia, The | | void |
| Gaza Strip | | void |