How far is Madrid from the sea?
Madrid lies well inland, 306 km (190 miles) from the nearest coastline in a straight line. The nearest stretch of coast is in Comunidad Valenciana, Spain.
To the coast
306 km
190 miles · straight line
Nearest land border
245 km
with Portugal
Setting
Far inland
45th farthest from the sea of 182 cities
MadridNearest 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.
Madrid at a glance
- Coordinates
- 40.4165° N, 3.7026° W
- Region
- Comunidad de Madrid, Spain
- Distance to the coast
- 306 km (190 miles), in a straight line
- Nearest point on the coast
- 39.5106° N, 0.3229° W (Comunidad Valenciana, Spain)
- Nearest land border
- 245 km (152 miles), with Portugal
- Among Spain's cities
- The farthest from the sea of the 6 cities measured
Nearby cities and the coast
Questions
How far is Madrid from the sea?
Madrid lies well inland, 306 km (190 miles) from the nearest coastline in a straight line. The nearest stretch of coast is in Comunidad Valenciana, Spain.
Is that the driving distance?
No. 306 km (190 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 Madrid from the nearest border?
Madrid is 245 km (152 miles) from the nearest land border, with Portugal, in a straight line.
Where in Madrid is this measured from?
From the city's centre point (40.4165° N, 3.7026° W). 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 8, 2026 with the same coastline data as the distance to coastline calculator. All distances are straight lines over the Earth's surface.