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

309th farthest from the sea of 861 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 · Plot these coordinates
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

CityCountryTo the coast
ZaragozaSpain163 km (101 miles)
ValenciaSpain4.4 km (2.8 miles)
SevilleSpain66 km (41 miles)
MálagaSpain0.4 km (0.2 miles)
PortoPortugal3.3 km (2 miles)
LisbonPortugal2.2 km (1.3 miles)

Nearest big cities

The cities and towns around each of the big cities nearest to Madrid. Distances are straight lines.

Tools for Madrid

Plot coordinates near Madrid

Paste a latitude and longitude and see it on the map.

Open in workspace
How high is Madrid above sea level?

Height above sea level, or a profile along a line.

Open in workspace
Region and district of Madrid

Country, region and district for any point.

Open in workspace
What is within a radius of Madrid?

Find the places within a radius you choose.

Open in workspace
Distance from Madrid to the nearest border

Straight-line distance to the nearest border.

Open in workspace
Draw on a map of Madrid

Markers, lines, shapes and labels. Free, no sign-up.

Open in workspace
Measure an area in Madrid

Trace a field or plot and read its area in acres or hectares.

Open in workspace

Explore Spain

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 19, 2026 with the same coastline data as the distance to coastline calculator. All distances are straight lines over the Earth's surface.