How far are Spain's cities from the sea?

Of the 6 cities in Spain MapGO measured, Madrid is the farthest from the sea (306 km (190 miles)) and Málaga the closest (0.4 km (0.2 miles)).

Farthest from the sea first

CityRegionTo the coastSetting
MadridComunidad de Madrid306 km (190 miles)Far inland
ZaragozaAragón163 km (101 miles)Inland
SevilleAndalucía66 km (41 miles)Inland
ValenciaComunidad Valenciana4.4 km (2.8 miles)On the coast
BarcelonaCataluña2.2 km (1.4 miles)On the coast
MálagaAndalucía0.4 km (0.2 miles)On the coast

Straight-line distance from each city centre to the nearest point on the coast, measured October 8, 2026.

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.

Questions

Which city in Spain is farthest from the sea?

Of the 6 cities measured, Madrid is the farthest from the coast: 306 km (190 miles) in a straight line.

Which city in Spain is closest to the sea?

Málaga, 0.4 km (0.2 miles) from the nearest shoreline in a straight line.

Are these driving distances?

No. Each figure is the straight-line distance from the city centre to the nearest point on the coast. The drive to a beach is longer and depends on the roads.

Other countries