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

San Martín de la Vega is a municipality in the province of Madrid (Comunidad de Madrid), Spain. It has 21,333 inhabitants according to the municipal register of January 1, 2026, spread over 105 km²: 203 inhabitants per square kilometre.

Facts

Population
21,333 inhabitants (January 1, 2026)
Area
105 km²
Density
203 inh./km²
Altitude
514 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
28132

How it compares

  • It ranks 35 by population among the 179 municipalities of the province of Madrid.
  • In Comunidad de Madrid it ranks 35 of 179, and in Spain 402 of 8132.
  • It holds 0.3% of the inhabitants of the province of Madrid.
  • Its density, 203 inh./km², is 0.2 times that of its province (893 inh./km²) and 2.1 times that of Spain (98 inh./km²).
  • By area it ranks 10 of the 179 municipalities of Madrid.
  • By altitude it ranks 175 of the 179 municipalities of Madrid that have a figure.

Municipalities of a similar size in Madrid

Neighbouring municipalities (8)

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 la Vega

San Martín de la Vega es un municipio español del sur de la Comunidad de Madrid, situado en la comarca de Las Vegas. Es conocido por estar en su término municipal el parque temático Parque Warner Madrid. El término municipal cuenta con una población de 21 010 habitantes (INE 2025).

History

San Martín de la Vega fue fundado en la Edad Media por la ciudad de Segovia y poblado por segovianos, perteneció al Comunidad de ciudad y tierra de Segovia hasta 1480 cuando Isabel la Católica donó ilegalmente parte del sexmo de Casarrubios y la entera parte de Sexmo de Valdemoro (perteneciendo San Martín de la Vega al segundo) al matrimonio Cabrera-Bobadilla pasando sus habitantes de ser vecinos libres a sus pecheros y perdiendo sus bienes comunes.

Source: Wikipedia (the article «San Martín de la Vega» of the Spanish Wikipedia, revision of September 24, 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