| Rank | Country | broad gauge | Railways |
| 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) |
| 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) |
| 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) |
| 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 |
| Germany | | total: 48,215 km standard gauge: 47,962 km 1.435-m gauge (20,278 km electrified) narrow gauge: 229 km 1.000-m gauge (16 km electrified); 24 km 0.750-m gauge (2006) |
| Ghana | | total: 953 km narrow gauge: 953 km 1.067-m gauge (2006) |