Hernani (Gipuzkoa): population and map

Hernani is a municipality in the province of Gipuzkoa (País Vasco), Spain. It has 20,250 inhabitants according to the municipal register of January 1, 2026, spread over 40 km²: 509 inhabitants per square kilometre.

Facts

Population
20,250 inhabitants (January 1, 2026)
Area
40 km²
Density
509 inh./km²
Altitude
26 m The altitude is that of its main settlement, not of the whole municipal area.
Province
Gipuzkoa
Autonomous community
País Vasco
Coast
Inland
INE code
20040

How it compares

  • It ranks 7 by population among the 88 municipalities of the province of Gipuzkoa.
  • In País Vasco it ranks 19 of 252, and in Spain 429 of 8132.
  • It holds 2.8% of the inhabitants of the province of Gipuzkoa.
  • Its density, 509 inh./km², is 1.3 times that of its province (385 inh./km²) and 5.2 times that of Spain (98 inh./km²).
  • By area it ranks 15 of the 88 municipalities of Gipuzkoa.
  • By altitude it ranks 79 of the 88 municipalities of Gipuzkoa that have a figure.

Municipalities of a similar size in Gipuzkoa

Neighbouring municipalities (7)

Map of the municipal area

Simplified outlines; the distance and direction to each neighbour are measured between points inside each municipal area.

Get to know Hernani

Hernani es una villa y municipio español de la provincia de Guipúzcoa, perteneciente a la comarca de San Sebastián, en la comunidad autónoma del País Vasco. Está situada a una distancia de 5 km de San Sebastián. El término municipal de Hernani ocupa una superficie aproximada de 40 km² y limita con San Sebastián, Astigarraga, Arano, Elduayen, Rentería, Lasarte-Oria y Urnieta. Su población asciende a 20 438 habitantes (2020).

History

Durante la Alta Edad Media, el territorio que formaría la provincia de Guipúzcoa estaba dividido en valles y Hernani era uno de ellos. El valle de Hernani se extendía antiguamente por todo el territorio comprendido entre los cursos bajos de los ríos Urumea y Oria. Comprendía en su territorio las actuales poblaciones de San Sebastián, Hernani, Astigarraga, Lasarte-Oria, Usúrbil, Urnieta y Orio.

Source: Wikipedia (the article «Hernani» of the Spanish Wikipedia, revision of April 23, 2026) · Licence CC BY-SA 4.0. Shortened excerpts of the article, in Spanish. You may reuse them under the same licence, citing the source.

Read more on Wikipedia

In the game

How many towns of Spain do you recognise by their outline? Try today’s challenge.

Where the figures come from

  • Population: municipal register at January 1, 2026.
  • Area, outline and neighbours: municipal boundary lines.
  • Altitude: that of the main settlement, according to the IGN.
  • Summary and history: the Spanish Wikipedia.

How each figure is calculated

All the municipalities of Gipuzkoa