Madrid (Madrid): population and map

Madrid is a municipality in the province of Madrid (Comunidad de Madrid), Spain. It has 3,486,621 inhabitants according to the municipal register of January 1, 2026, spread over 604 km²: 5,769 inhabitants per square kilometre.

Facts

Population
3,486,621 inhabitants (January 1, 2026)
Area
604 km²
Density
5,769 inh./km²
Altitude
645 m The altitude is that of its main settlement, not of the whole municipal area.
Province
Madrid
Autonomous community
Comunidad de Madrid
Coast
Inland
Demonym
madrileño
INE code
28079

How it compares

  • It is the most populated of the 179 municipalities of the province of Madrid.
  • In Comunidad de Madrid it ranks 1 of 179, and in Spain 1 of 8132.
  • It holds 48.6% of the inhabitants of the province of Madrid.
  • Its density, 5,769 inh./km², is 6.5 times that of its province (893 inh./km²) and 58.7 times that of Spain (98 inh./km²).
  • By area it ranks 1 of the 179 municipalities of Madrid.
  • By altitude it ranks 139 of the 179 municipalities of Madrid that have a figure.

Municipalities of a similar size in Madrid

Neighbouring municipalities (16)

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 Madrid

Madrid es un municipio y una ciudad de España. La localidad, con categoría histórica de villa, es la capital del Estado y de la Comunidad de Madrid. En su término municipal, es el más poblado del país, siendo su población de 3 506 730 habitantes (INE 2025), constituyéndose como la segunda ciudad más poblada de la Unión Europea, así como su área metropolitana, con 6 779 888 habitantes empadronados.

History

Pese a que no se han encontrado restos fósiles humanos, sí se ha hallado gran variedad de útiles, especialmente en el entorno de Arganda del Rey y del Manzanares, que permiten probar la existencia de asentamientos humanos en las terrazas del río en el lugar que hoy ocupa la ciudad. La ciudad actual se asienta en territorio que en el momento previo a la dominación romana ocupaba el grupo carpetano.

Source: Wikipedia (the article «Madrid» of the Spanish Wikipedia, revision of December 2, 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.
  • Demonym: Wikidata.
  • Summary and history: the Spanish Wikipedia.

How each figure is calculated

All the municipalities of Madrid