El Escorial (Madrid): population and map

El Escorial is a municipality in the province of Madrid (Comunidad de Madrid), Spain. It has 17,373 inhabitants according to the municipal register of January 1, 2026, spread over 69 km²: 252 inhabitants per square kilometre.

Facts

Population
17,373 inhabitants (January 1, 2026)
Area
69 km²
Density
252 inh./km²
Altitude
911 m The altitude is that of its main settlement, not of the whole municipal area.
Province
Madrid
Autonomous community
Comunidad de Madrid
Coast
Inland
INE code
28054

How it compares

  • It ranks 42 by population among the 179 municipalities of the province of Madrid.
  • In Comunidad de Madrid it ranks 42 of 179, and in Spain 504 of 8132.
  • It holds 0.2% of the inhabitants of the province of Madrid.
  • Its density, 252 inh./km², is 0.3 times that of its province (893 inh./km²) and 2.6 times that of Spain (98 inh./km²).
  • By area it ranks 21 of the 179 municipalities of Madrid.
  • By altitude it ranks 52 of the 179 municipalities of Madrid that have a figure.

Municipalities of a similar size in Madrid

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 El Escorial

El Escorial es un municipio español de la Comunidad de Madrid. Está situado en la zona noroeste de la Comunidad, a los pies de la vertiente meridional de la sierra de Guadarrama, y cuenta con una población de 17 171 habitantes (INE 2025). Pertenece al partido judicial de San Lorenzo de El Escorial.

History

Los restos más antiguos encontrados en el municipio corresponden al periodo romano: por un lado, varias lápidas funerarias halladas en el siglo XIX en las cercanías del núcleo de Navalquejigo, y por otro una posible calzada romana situada entre El Escorial y Zarzalejo, que sería parte de la vía que enlazaba Segovia con la Bética; se complementa con un puente sobre el río Aulencia de traza medieval pero de posible origen romano.

Source: Wikipedia (the article «El Escorial» of the Spanish Wikipedia, revision of October 11, 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 Madrid