Largest Cities in Spain

🇪🇸 See all of this country’s rankings →

At a glance

2024: Madrid has the highest value among the listed entries at 3,477,497. 100 entries; unit: people.

Reference: 2024 · Unit: people · 100 listed entries.

Source: Instituto Nacional de Estadística (INE) (via Wikipedia) · CC BY-SA 4.0 (Wikipedia); underlying data © the cited publisher · fetched

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.
RankEntryRelative valueValue (people)
1MadridMadrid
3,477,497
2BarcelonaBarcelona
1,713,247
3ValenciaValencia
841,558
4ZaragozaZaragoza
699,007
5SevilleSeville
688,714
6MálagaMálaga
597,173
7MurciaMurcia
477,631
8PalmaBalearic Islands
443,196
9Las Palmas de Gran CanariaLas Palmas
384,023
10AlicanteAlicante
365,586
11BilbaoBiscay
350,975
12CórdobaCórdoba
324,159
13ValladolidValladolid
301,798
14VigoPontevedra
295,735
15L'Hospitalet de LlobregatBarcelona
292,161
16GijónAsturias
271,259
17Vitoria-GasteizÁlava
260,402
18A CoruñaA Coruña
251,277
19Elche/ElxAlicante
245,575
20GranadaGranada
235,294
21TerrassaBarcelona
232,676
22BadalonaBarcelona
230,642
23SabadellBarcelona
224,589
24OviedoAsturias
223,576
25CartagenaMurcia
220,400
26Jerez de la FronteraCádiz
215,025
27MóstolesMadrid
214,293
28Santa Cruz de TenerifeSanta Cruz de Tenerife
211,498
29PamplonaNavarre
209,676
30AlmeríaAlmería
204,772
31Alcalá de HenaresMadrid
202,549
32LeganésMadrid
195,946
33GetafeMadrid
195,628
34FuenlabradaMadrid
189,814
35Donostia/San SebastiánGipuzkoa
189,507
36Castellón de la PlanaCastellón
183,709
37BurgosBurgos
178,370
38AlcorcónMadrid
176,806
39SantanderCantabria
175,082
40AlbaceteAlbacete
175,068
41San Cristóbal de La LagunaSanta Cruz de Tenerife
161,927
42MarbellaMálaga
160,478
43LogroñoLa Rioja
151,681
44BadajozBadajoz
150,870
45LleidaLleida
147,369
46SalamancaSalamanca
145,583
47Torrejón de ArdozMadrid
144,211
48HuelvaHuelva
143,774
49TarragonaTarragona
143,260
50Dos HermanasSeville
142,463
51ParlaMadrid
138,012
52MataróBarcelona
131,370
53AlgecirasCádiz
126,500
54LeónLeón
124,091
55Santa Coloma de GramenetBarcelona
123,250
56AlcobendasMadrid
123,222
57JaénJaén
112,119
58ReusTarragona
111,911
59CádizCádiz
110,123
60Roquetas de MarAlmería
110,054
61GironaGirona
108,352
62OurenseOurense
105,609
63TeldeLas Palmas
104,933
64Rivas-VaciamadridMadrid
103,243
65BarakaldoBiscay
103,084
66Santiago de CompostelaA Coruña
100,842
67TorreviejaAlicante
100,470
68LugoLugo
100,071
69Las Rozas de MadridMadrid
99,579
70LorcaMurcia
98,613
71Sant Cugat del VallèsBarcelona
97,959
72San Sebastián de los ReyesMadrid
97,330
73CáceresCáceres
96,598
74MijasMálaga
94,320
75San FernandoCádiz
93,490
76GuadalajaraGuadalajara
92,798
77Cornellà de LlobregatBarcelona
92,255
78TorrentValencia
91,353
79Chiclana de la FronteraCádiz
90,997
80El EjidoAlmería
90,617
81El Puerto de Santa MaríaCádiz
90,242
82Pozuelo de AlarcónMadrid
89,474
83AronaSanta Cruz de Tenerife
89,036
84Vélez-MálagaMálaga
87,798
85ToledoToledo
87,074
86MelillaMelilla
87,067
87ValdemoroMadrid
86,078
88Sant Boi de LlobregatBarcelona
85,317
89FuengirolaMálaga
84,857
90Talavera de la ReinaToledo
84,413
91OrihuelaAlicante
84,279
92CeutaCeuta
83,567
93PontevedraPontevedra
83,339
94GandiaValencia
82,909
95RubíBarcelona
82,825
96ManresaBarcelona
80,692
97CosladaMadrid
80,365
98EsteponaMálaga
79,593
99Santa Lucía de TirajanaLas Palmas
79,506
100Benalmá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.

What question does this measure answer?

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.

Sources, provenance & corrections

Source URL last requested 2026-10-22. The source link responded during this check; that does not establish a review of every value.

Report a disputed value or interpretation with this page’s URL and a supporting source. Contact AllRanks →

About this ranking

Historical data · 2024
Source
Instituto Nacional de Estadística (INE) (via Wikipedia) ↗
Reference period
2024Dataset updated Oct 17, 2026. The badge reflects the reference year, not the update date.
Definition
The 100 most populous Spanish municipalities.
Unit
people
Coverage & value range
Spain · 100 listed entriesValues: 78,787 to 3,477,497
Ranking direction
Highest value first (descending)#1 is the highest listed value, not necessarily the best outcome.

Coverage describes this list, not necessarily the full population. Missing entries do not imply a value of zero. Collection & methodology →