San Martín de Valdeiglesias (Madrid): population and map

San Martín de Valdeiglesias is a municipality in the province of Madrid (Comunidad de Madrid), Spain. It has 9,673 inhabitants according to the municipal register of January 1, 2026, spread over 116 km²: 83 inhabitants per square kilometre.

Facts

Population
9,673 inhabitants (January 1, 2026)
Area
116 km²
Density
83 inh./km²
Altitude
675 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
28133

How it compares

  • It ranks 58 by population among the 179 municipalities of the province of Madrid.
  • In Comunidad de Madrid it ranks 58 of 179, and in Spain 822 of 8132.
  • It holds 0.1% of the inhabitants of the province of Madrid.
  • Its density, 83 inh./km², is 0.1 times that of its province (893 inh./km²) and 0.8 times that of Spain (98 inh./km²).
  • By area it ranks 8 of the 179 municipalities of Madrid.
  • By altitude it ranks 116 of the 179 municipalities of Madrid that have a figure.

Municipalities of a similar size in Madrid

Neighbouring municipalities (9)

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 San Martín de Valdeiglesias

San Martín de Valdeiglesias es un municipio de España perteneciente a la Comunidad de Madrid. Situado en el extremo occidental de la provincia, lindando con las de Ávila y Toledo, tiene una población de 9324 habitantes (INE 2025) e incluye, además de la localidad homónima, las urbanizaciones de Costa de Madrid, Javacruz y San Ramón.

History

Aun contando con vestigios anteriores, la entrada de San Martín de Valdeiglesias en la historia comienza en el siglo XIII, cuando se formó una pequeña aldea alrededor de una ermita bajo la advocación de San Martín de Tours. Todo ello, en consonancia con los intereses del monasterio de Santa María de Valdeiglesias (Pelayos de la Presa), que fue el verdadero impulsor y aglutinador de la colonización de todo el valle de Valdeiglesias. De entre todas las aldeas pertenecientes a dicho monasterio, fue la de San Martín la que más se desarrolló.

Source: Wikipedia (the article «San Martín de Valdeiglesias» of the Spanish Wikipedia, revision of July 29, 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