Geographic History

Flag of SpainCoastline of Spain (2025)

The coastline of Spain is 4,964 km long (as of 2025, CIA World Factbook).

Spain has the 26th longest coastline of 150 ranked countries (as of 2025, CIA World Factbook).

Key figures

Coastline
4,964 kmas of 2025, CIA World Factbook
World rank
26 of 150as of 2025, CIA World Factbook

Spain through history

Spain became independent in 1492.

Map quizzes that include Spain

Spain in context

Spain in context
CountryValueYearRankRelation
Argentina4,989 km202524 of 150similar size
Iceland4,970 km202525 of 150similar size
Spain4,964 km202526 of 150this country
France4,853 km202527 of 150land neighbour
Madagascar4,828 km202528 of 150similar size
Malaysia4,675 km202529 of 150similar size
Morocco2,945 km202538 of 150land neighbour
Portugal1,793 km202557 of 150land neighbour
Gibraltar12 km2025not rankedland neighbour

Frequently asked questions

How long is the coastline of Spain?

The coastline of Spain is 4,964 km long (as of 2025, CIA World Factbook).

How does Spain rank in the world by coastline?

Spain has the 26th longest coastline of 150 ranked countries (as of 2025, CIA World Factbook).

What it measures

The coastline is the length of the boundary between land and sea, in kilometres.

Sources and method

Ranks count the independent states that have a value for the indicator and are listed in the Geographic History country data; territories and dependencies are shown with their data but are not ranked. Rank 1 is the highest value.

A year given as "as of" is when the figure was read from the source, not the year it describes.

Last updated:

More about Spain

More statistics for Spain

Every year has a map

Drag a timeline across 2,500 years in the free Geographic History app - every province, ruler and battle, also offline.