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
- Zarautz 23,630 inhabitants
- Arrasate/Mondragón 22,503 inhabitants
- Tolosa 20,244 inhabitants
- Lasarte-Oria 19,528 inhabitants
Neighbouring municipalities (7)
- Donostia/San Sebastián 190,134 inhabitants · 8 km north-west
- Errenteria 39,430 inhabitants · 5 km east
- Lasarte-Oria 19,528 inhabitants · 7 km west
- Astigarraga 7,943 inhabitants · 4 km north
- Urnieta 6,331 inhabitants · 4 km west
- Elduain 250 inhabitants · 8 km south-west
- Arano 107 inhabitants · 5 km south-east
Map of the municipal area
- Obra derivada de BDLJE Continua CC-BY 4.0 ign.es (August 10, 2026)
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.
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.
- Elaboración propia con datos extraídos del sitio web del INE: www.ine.es (January 1, 2026)
- Obra derivada de BDLJE Continua CC-BY 4.0 ign.es (August 10, 2026)
- Obra derivada de IGR_POBLACIONES 2024 CC-BY 4.0 scne.es (December 5, 2025)
- Extractos de artículos de Wikipedia en español, CC BY-SA 4.0 (December 6, 2026)