How far is Nairobi from the sea?

Nairobi lies well inland, 409 km (254 miles) from the nearest coastline in a straight line. The nearest stretch of coast is in Kilifi, Kenya.

To the coast

409 km

254 miles · straight line

Nearest land border

124 km

with Tanzania

Setting

Far inland

255th farthest from the sea of 861 cities

NairobiNearest point on the coast

How far are you from the sea?

Measure from where you are standing. On a phone this uses GPS, so the answer is for your exact spot, not the city centre.

Nairobi at a glance

Coordinates
1.2833° S, 36.8167° E
Region
Nairobi, Kenya
Distance to the coast
409 km (254 miles), in a straight line
Nearest point on the coast
2.7540° S, 40.1879° E (Kilifi, Kenya)
Nearest land border
124 km (77 miles), with Tanzania
Among Kenya's cities
2nd farthest from the sea of the 3 cities measured

Nearby cities and the coast

CityCountryTo the coast
KakamegaKenya690 km (429 miles)
MombasaKenya2.4 km (1.5 miles)
MwanzaTanzania738 km (458 miles)
KampalaUganda912 km (567 miles)
Dar es SalaamTanzania1.9 km (1.2 miles)
KigaliRwanda1,058 km (657 miles)

Explore Kenya

Questions

How far is Nairobi from the sea?

Nairobi lies well inland, 409 km (254 miles) from the nearest coastline in a straight line. The nearest stretch of coast is in Kilifi, Kenya.

Is that the driving distance?

No. 409 km (254 miles) is the straight-line distance from the city centre to the nearest point on the shore. The drive to a beach is longer, often much longer, and depends on the roads.

How far is Nairobi from the nearest border?

Nairobi is 124 km (77 miles) from the nearest land border, with Tanzania, in a straight line.

Where in Nairobi is this measured from?

From the city's centre point (1.2833° S, 36.8167° E). A large city spreads out, so some neighbourhoods are closer to the sea than this and some farther. For an exact figure from where you are, use your own location.

Measured by MapGO on October 19, 2026 with the same coastline data as the distance to coastline calculator. All distances are straight lines over the Earth's surface.