A tale of two denominators
Where density
actually lives
From their full-city population density figures, Madrid and London might seem equally dense. But are they?
The first impression
The headline numbers are almost a draw.
Divide every resident by every square kilometre inside the administrative boundary and both cities land near 5,700 people per km². That calculation is correct. It is also answering a narrower question than it appears to.
Change the viewpoint
Ask where the typical resident lives.
Instead of weighting every square metre equally, weight each small area by its population. The median resident in Madrid lives in a census section at roughly — the density of the median London resident’s LSOA.
The density spectrum
Madrid’s low average is mostly land where almost nobody lives.
66.4% of Madrid’s territory lies in sections below 1,000 residents per km², but those sections contain only 1.6% of its population. London distributes both land and residents more gradually across the middle of the scale.
Land and population deciles
Half of Madrid’s least-dense territory holds just of its residents.
In London, the least-dense half still holds . Sorting small areas from sparse to dense exposes how sharply Madrid’s population is concentrated into a small part of its municipal footprint.
Population deciles
Madrid’s density gap persists across the population—not just at the median.
Each dot represents one-tenth of residents, ordered by the density of their small area. The value is the population-weighted average density within that group.
Beyond London’s 99th percentile
Only 1% of Londoners live above — people per km².
Apply that same threshold to Madrid and — of residents live in denser census sections. A shared threshold describes the upper tail more meaningfully than comparing two exceptional polygons.
The useful conclusion
The two cities are not “equally dense.” Their administrative averages merely happen to match.
TerritoryMadrid contains far more very-low-density land.
ResidentsThe typical Madrid resident lives at much higher local density.
Upper tailLondon’s P99 density is exceeded by a much larger share of Madrid residents.
Method & limits
Comparable, not identical.
Geographies. Madrid municipality uses 2,450 census sections; Greater London uses 4,994 LSOAs across its 33 local authorities. LSOAs were selected because their usual population range of 1,000–3,000 is much closer to Spanish census sections than OAs.
Dates. Madrid population is from the INE Annual Population Census at 1 January 2024. London population is the ONS mid-year estimate at 30 June 2024 on 2021 LSOA boundaries. Both count usual residents, but the systems and reference dates are not identical.
Area. Density is population divided by full polygon area. No parks, water, roads or industrial zones were removed. A section or LSOA is treated as uniformly dense for distribution calculations.
Interpretation. This is residential population density—not built-up density, floor-space density, household crowding, building height or daytime population. Results depend on administrative boundaries and small-area design.