Each tile’s area is its share of the combined total of 22,917,892 (100 entries). Stronger colour means a higher rank. The smallest 60 are merged into one grey tile.
Compare two entries
Same measure, same snapshot: 2024. Select two entries to see their values and the absolute gap.
Madrid3,477,497Position 1 of 100
Barcelona1,713,247Position 2 of 100
Absolute difference1,764,250Madrid has the higher value
Calculated by AllRanks from the displayed values before rounding. Positions follow the table order; equal values are ordered by name. A gap does not establish a cause or an overall quality difference.
Largest Cities in Spain — 2024. Values in people.
Rank
Entry
Relative value
Value (people)
1
MadridMadrid
3,477,497
2
BarcelonaBarcelona
1,713,247
3
ValenciaValencia
841,558
4
ZaragozaZaragoza
699,007
5
SevilleSeville
688,714
6
MálagaMálaga
597,173
7
MurciaMurcia
477,631
8
PalmaBalearic Islands
443,196
9
Las Palmas de Gran CanariaLas Palmas
384,023
10
AlicanteAlicante
365,586
11
BilbaoBiscay
350,975
12
CórdobaCórdoba
324,159
13
ValladolidValladolid
301,798
14
VigoPontevedra
295,735
15
L'Hospitalet de LlobregatBarcelona
292,161
16
GijónAsturias
271,259
17
Vitoria-GasteizÁlava
260,402
18
A CoruñaA Coruña
251,277
19
Elche/ElxAlicante
245,575
20
GranadaGranada
235,294
21
TerrassaBarcelona
232,676
22
BadalonaBarcelona
230,642
23
SabadellBarcelona
224,589
24
OviedoAsturias
223,576
25
CartagenaMurcia
220,400
26
Jerez de la FronteraCádiz
215,025
27
MóstolesMadrid
214,293
28
Santa Cruz de TenerifeSanta Cruz de Tenerife
211,498
29
PamplonaNavarre
209,676
30
AlmeríaAlmería
204,772
31
Alcalá de HenaresMadrid
202,549
32
LeganésMadrid
195,946
33
GetafeMadrid
195,628
34
FuenlabradaMadrid
189,814
35
Donostia/San SebastiánGipuzkoa
189,507
36
Castellón de la PlanaCastellón
183,709
37
BurgosBurgos
178,370
38
AlcorcónMadrid
176,806
39
SantanderCantabria
175,082
40
AlbaceteAlbacete
175,068
41
San Cristóbal de La LagunaSanta Cruz de Tenerife
161,927
42
MarbellaMálaga
160,478
43
LogroñoLa Rioja
151,681
44
BadajozBadajoz
150,870
45
LleidaLleida
147,369
46
SalamancaSalamanca
145,583
47
Torrejón de ArdozMadrid
144,211
48
HuelvaHuelva
143,774
49
TarragonaTarragona
143,260
50
Dos HermanasSeville
142,463
51
ParlaMadrid
138,012
52
MataróBarcelona
131,370
53
AlgecirasCádiz
126,500
54
LeónLeón
124,091
55
Santa Coloma de GramenetBarcelona
123,250
56
AlcobendasMadrid
123,222
57
JaénJaén
112,119
58
ReusTarragona
111,911
59
CádizCádiz
110,123
60
Roquetas de MarAlmería
110,054
61
GironaGirona
108,352
62
OurenseOurense
105,609
63
TeldeLas Palmas
104,933
64
Rivas-VaciamadridMadrid
103,243
65
BarakaldoBiscay
103,084
66
Santiago de CompostelaA Coruña
100,842
67
TorreviejaAlicante
100,470
68
LugoLugo
100,071
69
Las Rozas de MadridMadrid
99,579
70
LorcaMurcia
98,613
71
Sant Cugat del VallèsBarcelona
97,959
72
San Sebastián de los ReyesMadrid
97,330
73
CáceresCáceres
96,598
74
MijasMálaga
94,320
75
San FernandoCádiz
93,490
76
GuadalajaraGuadalajara
92,798
77
Cornellà de LlobregatBarcelona
92,255
78
TorrentValencia
91,353
79
Chiclana de la FronteraCádiz
90,997
80
El EjidoAlmería
90,617
81
El Puerto de Santa MaríaCádiz
90,242
82
Pozuelo de AlarcónMadrid
89,474
83
AronaSanta Cruz de Tenerife
89,036
84
Vélez-MálagaMálaga
87,798
85
ToledoToledo
87,074
86
MelillaMelilla
87,067
87
ValdemoroMadrid
86,078
88
Sant Boi de LlobregatBarcelona
85,317
89
FuengirolaMálaga
84,857
90
Talavera de la ReinaToledo
84,413
91
OrihuelaAlicante
84,279
92
CeutaCeuta
83,567
93
PontevedraPontevedra
83,339
94
GandiaValencia
82,909
95
RubíBarcelona
82,825
96
ManresaBarcelona
80,692
97
CosladaMadrid
80,365
98
EsteponaMálaga
79,593
99
Santa Lucía de TirajanaLas Palmas
79,506
100
BenalmádenaMálaga
78,787
Which included cities or municipalities have the largest recorded populations?
Madrid has the highest listed value, 3,477,497. This is a position within 100 included entries, not proof of leadership beyond this coverage. Read “Largest Cities in Spain” as a comparison of the included entries within Spain under the stated people measure. The useful conclusion depends on the definition, included entries and reference period.
The question here concerns “Largest Cities in Spain” for the included entries within Spain. The 100 most populous Spanish municipalities.
The printed unit is people; the displayed reference period is 2024. Population counts depend on the boundary being counted. A city proper, municipality, built-up area and metropolitan region may share a name while describing different groups of residents.
What the included observations show
Madrid has the highest listed value, 3,477,497. This is a position within 100 included entries, not proof of leadership beyond this coverage.
To look beyond the leading entry, the middle half of listed observations lies between 92,798 and 220,400, using the stored values at the rounded-outward 25% and 75% index positions. The median is 140,238. These describe this list’s distribution, not an average weighted by population or economic size.
How to use the comparison
Check the source’s geographical definition and observation date before comparing this figure with another website. To estimate growth, use a time series with consistent boundaries rather than subtracting two differently defined city figures.
How this page was prepared
AllRanks retrieved this dataset on 2026-10-17. The table retains the stored values and sorts from highest to lowest; equal stored values are ordered by name. Formatting can round two different values to the same printed label.
Collection and validation checks concern the stored snapshot. They are not independent field measurements or an expert audit of every source observation.
Limits that matter for this dataset
A city’s absence is not a zero population. Geographical databases and compiled lists may combine census observations and estimates from different dates; a collection year does not make them contemporaneous.
The coverage for this page is exactly the 100 listed entries. It does not establish the size or completeness of the full eligible population.