Skip to content
Open data study

Population within 1, 5, 10, 25 and 50 km of Spain’s provincial capitals

7.42 million people live within 50 km (31 miles) of central Madrid, and 63,500 within 50 km of Teruel. We counted the people living within 1, 5, 10, 25 and 50 km of Spain’s 50 provincial capitals, Ceuta and Melilla, using the official municipal register and the same code as our Population in a radius tool, and you can download every figure.

By the All Map Tools Team Published

Key figures

  • 7.42 million people live within 50 km of Madrid, the most of any capital
  • 36,200 within 10 km of Teruel, the capital with the fewest people nearby
  • 85% of the people within 50 km of Ceuta live in Morocco
  • 3.63 million within 50 km of Guadalajara, 3rd of all, thanks to Madrid

Ready-to-quote facts

  • Madrid has the most people around it of any Spanish capital from 5 km out: 1.52 million within 5 km, 3.34 million within 10 km and 7.42 million within 50 km. Barcelona follows, with 2.59 million within 10 km and 5.60 million within 50 km.
  • Teruel is the capital with the fewest people nearby: 36,200 within 10 km and 63,500 within 50 km. The median capital has 193,000 within 10 km and 682,000 within 50 km.
  • 85% of the people within 50 km of Ceuta live in Morocco (Tangier and Tétouan), and 88% of those within 50 km of Melilla; just 5 km from Melilla, 51,100 people already live in Morocco.
  • 3.63 million people live within 50 km of Guadalajara, because the circle reaches Madrid; only 4% of them live within 10 km of the city.
  • Burgos (79%), Zaragoza (76%) and Salamanca (73%) are the most concentrated capitals: that share of the people within 50 km live within 10 km.

Feel free to use them as they are, crediting “Source: All Map Tools” with a link to this page.

People within 25 km of each capital

Map of Spain with a circle for each capital, larger the more people live within 25 km Madrid: 5.95 million Barcelona: 4.35 million Valencia: 1.93 million Sevilla: 1.43 million Bilbao: 1.09 million Málaga: 953,000 Alicante: 824,000 Zaragoza: 791,000 Murcia: 787,000 Oviedo: 751,000 Las Palmas de Gran Canaria: 670,000 Palma: 650,000 Cádiz: 620,000 Granada: 601,000 A Coruña: 595,000 Pontevedra: 578,000 San Sebastián: 542,000 Tarragona: 525,000 Santa Cruz de Tenerife: 522,000 Melilla: 501,000 Castellón de la Plana: 460,000 Guadalajara: 445,000 Valladolid: 435,000 Almería: 426,000 Santander: 411,000 Pamplona: 407,000 Córdoba: 354,000 Girona: 340,000 Huelva: 309,000 Vitoria-Gasteiz: 301,000 Lleida: 285,000 Ceuta: 285,000 Logroño: 233,000 Salamanca: 231,000 León: 221,000 Jaén: 220,000 Ourense: 208,000 Burgos: 206,000 Toledo: 200,000 Badajoz: 196,000 Albacete: 187,000 Ciudad Real: 140,000 Lugo: 135,000 Cáceres: 116,000 Palencia: 112,000 Segovia: 109,000 Zamora: 84,100 Ávila: 72,900 Huesca: 70,200 Cuenca: 61,900 Soria: 49,800 Teruel: 44,600 Madrid Barcelona Valencia Sevilla Teruel
  • 100K
  • 1M
  • 5M
Each circle’s area is proportional to the number of people living within 25 km of the capital’s center (legend sizes are approximate). The Canary Islands are in the inset.

Most people nearby, at each distance

The top five and the last of the 52. At 1 km the order is only a rough guide (see “Method”).

Within 1 km

  1. Valencia 79.8K
  2. Madrid 76.5K
  3. Bilbao 72.7K
  4. Barcelona 68.3K
  5. Valladolid 56.6K

52. Segovia 11.4K

Within 5 km

  1. Madrid 1.52M
  2. Barcelona 1.3M
  3. Valencia 913K
  4. Sevilla 606K
  5. Zaragoza 510K

52. Teruel 31.9K

Within 10 km

  1. Madrid 3.34M
  2. Barcelona 2.59M
  3. Valencia 1.43M
  4. Sevilla 977K
  5. Bilbao 695K

52. Teruel 36.2K

Within 50 km

  1. Madrid 7.42M
  2. Barcelona 5.6M
  3. Guadalajara 3.63M
  4. Valencia 2.46M
  5. Ceuta 2.38M

52. Teruel 63.5K

Concentrated and spread out

The share of the people within 50 km of each capital who live within 10 km. Around the first ones there is little besides the city itself; the last ones have a bigger city or a busy coast nearby.

Most concentrated

  • Burgos 79%
  • Zaragoza 76%
  • Salamanca 73%
  • Cuenca 67%
  • Pamplona 67%

Most spread out

  • Guadalajara 4%
  • Ceuta 8%
  • Pontevedra 11%
  • Toledo 12%
  • Segovia 13%

Across the border

10 of the 52 capitals have people from another country within 50 km. That part is counted with the GHS-POP grid.

Capital Outside, within 10 km Outside, within 25 km Outside, within 50 km
Ceuta Morocco 95.5K 53% of the total 201K 71% of the total 2.03M 85% of the total
Melilla Morocco 77.1K 47% of the total 414K 83% of the total 637K 88% of the total
San Sebastián France — 24.3K 4% of the total 261K 24% of the total
Badajoz Portugal 69 0% of the total 22.3K 11% of the total 50.3K 16% of the total
Pontevedra Portugal — — 29.9K 3% of the total
Huelva Portugal — — 20.7K 4% of the total
Ourense Portugal — — 7.88K 2% of the total
Pamplona France — — 4.61K 1% of the total
Zamora Portugal — — 2.5K 2% of the total
Girona France — — 1.47K 0% of the total

All 52 capitals, at each distance

Tap a column header to sort the table. Under each figure, the low and high estimates. “See the rings” opens the tool with the same center and radii. “What’s around” goes to its page with the towns, people and divisions in each circle.

Rank at 10 km Capital Municipality 1 km 5 km 10 km 25 km 50 km
1 Madrid Madrid · See the rings · What’s around 3.51M 76.5K 30.6K–122K 1.52M 1.2M–1.84M 3.34M 2.98M–3.59M 5.95M 5.91M–5.97M 7.42M 7.41M–7.43M
2 Barcelona Barcelona · See the rings · What’s around 1.73M 68.3K 27.3K–109K 1.3M 1.03M–1.57M 2.59M 2.35M–2.62M 4.35M 4.31M–4.37M 5.6M 5.59M–5.6M
3 Valencia Valencia · See the rings · What’s around 841K 79.8K 31.9K–128K 913K 733K–992K 1.43M 1.3M–1.46M 1.93M 1.92M–1.94M 2.46M 2.45M–2.46M
4 Sevilla Seville · See the rings · What’s around 689K 50.3K 20.1K–80.6K 606K 479K–728K 977K 883K–989K 1.43M 1.41M–1.44M 1.74M 1.73M–1.75M
5 Bilbao Bizkaia · See the rings · What’s around 351K 72.7K 29.1K–116K 420K 335K–431K 695K 672K–705K 1.09M 1.08M–1.09M 1.56M 1.54M–1.57M
6 Zaragoza Zaragoza · See the rings · What’s around 693K 55.1K 22.1K–88.2K 510K 403K–617K 667K 593K–715K 791K 733K–792K 876K 873K–877K
7 Málaga Málaga · See the rings · What’s around 599K 28.1K 11.2K–45K 380K 300K–460K 565K 503K–609K 953K 945K–960K 1.51M 1.5M–1.51M
8 Granada Granada · See the rings · What’s around 234K 46.8K 18.7K–74.9K 300K 242K–312K 496K 480K–503K 601K 596K–603K 844K 835K–852K
9 Murcia Murcia · See the rings · What’s around 479K 48.6K 19.4K–77.7K 274K 217K–332K 482K 429K–532K 787K 737K–797K 1.88M 1.85M–1.91M
10 Palma Balearic Islands · See the rings · What’s around 435K 40.9K 16.4K–65.4K 350K 276K–423K 461K 410K–486K 650K 607K–655K 854K 823K–858K
11 Alicante Alicante · See the rings · What’s around 366K 29.5K 11.8K–47.3K 257K 203K–311K 455K 405K–487K 824K 800K–844K 1.74M 1.73M–1.74M
12 Las Palmas de Gran Canaria Las Palmas · See the rings · What’s around 382K 45.3K 18.1K–72.5K 327K 258K–382K 412K 366K–419K 670K 667K–672K 871K 871K–871K
13 Pamplona Navarre · See the rings · What’s around 209K 42.6K 17K–68.1K 333K 318K–344K 375K 368K–377K 407K 405K–407K 558K 555K–560K
14 Valladolid Valladolid · See the rings · What’s around 303K 56.6K 22.6K–90.5K 281K 222K–308K 375K 337K–379K 435K 435K–436K 628K 627K–629K
15 Santa Cruz de Tenerife Santa Cruz de Tenerife · See the rings · What’s around 212K 46.5K 18.6K–74.5K 218K 172K–263K 355K 316K–372K 522K 519K–525K 699K 694K–699K
16 A Coruña A Coruña · See the rings · What’s around 252K 29.4K 11.8K–47K 254K 200K–269K 349K 339K–356K 595K 589K–600K 758K 755K–760K
17 San Sebastián Gipuzkoa · See the rings · What’s around 190K 25.8K 10.3K–41.3K 195K 154K–204K 318K 286K–320K 542K 537K–545K 1.07M 1.05M–1.09M
18 Córdoba Córdoba · See the rings · What’s around 323K 38.4K 15.4K–61.4K 239K 189K–290K 290K 258K–322K 354K 325K–356K 579K 572K–584K
19 Castellón de la Plana Castellón · See the rings · What’s around 184K 51.6K 20.6K–82.5K 179K 141K–203K 276K 249K–284K 460K 442K–463K 671K 659K–672K
20 Oviedo Asturias · See the rings · What’s around 224K 51.5K 20.6K–82.4K 208K 165K–226K 264K 235K–272K 751K 721K–773K 919K 917K–920K
21 Vitoria-Gasteiz Álava · See the rings · What’s around 261K 50.4K 20.1K–80.6K 230K 182K–262K 264K 235K–265K 301K 300K–302K 1.15M 1.13M–1.16M
22 Santander Cantabria · See the rings · What’s around 175K 36.6K 14.6K–58.6K 180K 142K–185K 256K 249K–258K 411K 406K–413K 566K 563K–568K
23 Tarragona Tarragona · See the rings · What’s around 144K 32.9K 13.1K–52.6K 137K 108K–150K 215K 193K–221K 525K 523K–527K 933K 928K–936K
24 Salamanca Salamanca · See the rings · What’s around 146K 54.2K 21.7K–86.8K 181K 143K–187K 204K 202K–205K 231K 231K–232K 279K 278K–279K
25 Huelva Huelva · See the rings · What’s around 143K 41K 16.4K–65.6K 139K 110K–148K 195K 173K–197K 309K 300K–312K 486K 483K–488K
26 Cádiz Cádiz · See the rings · What’s around 110K 26.3K 10.5K–42.1K 116K 91.6K–119K 195K 173K–204K 620K 597K–637K 893K 875K–896K
27 Burgos Burgos · See the rings · What’s around 177K 37.2K 14.9K–59.6K 165K 130K–181K 192K 171K–192K 206K 206K–206K 242K 241K–242K
28 León León · See the rings · What’s around 123K 42.5K 17K–68K 165K 130K–170K 190K 183K–192K 221K 220K–221K 303K 301K–303K
29 Logroño La Rioja · See the rings · What’s around 152K 43.7K 17.5K–69.9K 168K 133K–174K 187K 186K–188K 233K 232K–234K 693K 673K–706K
30 Girona Girona · See the rings · What’s around 109K 31.3K 12.5K–50.1K 158K 125K–160K 184K 181K–185K 340K 336K–343K 1.11M 1.11M–1.11M
31 Ceuta Autonomous city · See the rings · What’s around 83.6K 17.8K 7.11K–28.4K 83.1K 65.6K–84.1K 179K 169K–190K 285K 267K–304K 2.38M 2.24M–2.52M
32 Almería Almería · See the rings · What’s around 205K 18.6K 7.43K–29.7K 108K 85.5K–131K 179K 161K–197K 426K 406K–428K 592K 590K–594K
33 Lleida Lleida · See the rings · What’s around 146K 38.2K 15.3K–61.2K 133K 105K–147K 171K 153K–178K 285K 282K–288K 433K 430K–435K
34 Melilla Autonomous city · See the rings · What’s around 86.8K 27.7K 11.1K–44.3K 138K 130K–146K 164K 155K–172K 501K 463K–538K 724K 680K–769K
35 Albacete Albacete · See the rings · What’s around 175K 38.2K 15.3K–61.2K 133K 105K–161K 160K 142K–176K 187K 172K–189K 277K 275K–278K
36 Guadalajara Guadalajara · See the rings · What’s around 92.8K 34K 13.6K–54.4K 98.1K 77.5K–104K 139K 124K–142K 445K 429K–460K 3.63M 3.49M–3.76M
37 Ourense Ourense · See the rings · What’s around 106K 36.9K 14.8K–59K 112K 88.4K–119K 135K 120K–137K 208K 206K–210K 350K 347K–353K
38 Jaén Jaén · See the rings · What’s around 112K 26.3K 10.5K–42K 97.5K 77K–114K 131K 117K–137K 220K 205K–223K 545K 537K–550K
39 Pontevedra Pontevedra · See the rings · What’s around 83.3K 24.7K 9.87K–39.5K 85K 67.2K–101K 130K 117K–135K 578K 557K–595K 1.18M 1.17M–1.19M
40 Badajoz Badajoz · See the rings · What’s around 150K 27.3K 10.9K–43.7K 111K 87.5K–134K 127K 113K–141K 196K 180K–201K 312K 307K–317K
41 Toledo Toledo · See the rings · What’s around 87.2K 16.1K 6.43K–25.7K 61.5K 48.6K–74.5K 121K 108K–125K 200K 197K–201K 991K 966K–998K
42 Lugo Lugo · See the rings · What’s around 100K 23.5K 9.39K–37.6K 81.9K 64.7K–99.2K 99.4K 88.5K–102K 135K 134K–137K 253K 250K–255K
43 Ciudad Real Ciudad Real · See the rings · What’s around 76.2K 33.7K 13.5K–53.9K 85.5K 67.5K–92.2K 95K 84.5K–96.4K 140K 137K–142K 276K 274K–278K
44 Palencia Palencia · See the rings · What’s around 77.5K 31.2K 12.5K–50K 79.8K 63.1K–80.4K 93.1K 83K–93.7K 112K 112K–112K 529K 508K–534K
45 Cáceres Cáceres · See the rings · What’s around 96.7K 22.3K 8.91K–35.6K 84.9K 67.1K–96.7K 92.7K 82.5K–101K 116K 108K–118K 165K 164K–166K
46 Segovia Segovia · See the rings · What’s around 52.4K 11.4K 4.56K–18.2K 56.4K 44.6K–62.3K 74.4K 67.6K–75.7K 109K 107K–110K 589K 578K–595K
47 Zamora Zamora · See the rings · What’s around 59.8K 25K 9.98K–39.9K 59.9K 47.3K–61.7K 70.7K 63.2K–71K 84.1K 83.7K–84.3K 131K 130K–132K
48 Ávila Ávila · See the rings · What’s around 59.1K 18.1K 7.25K–29K 54.9K 43.3K–59.6K 61.1K 54.5K–61.6K 72.9K 72.4K–73.2K 217K 213K–219K
49 Huesca Huesca · See the rings · What’s around 55.5K 26K 10.4K–41.6K 54K 42.7K–57K 59.1K 52.9K–59.4K 70.2K 69.6K–70.5K 145K 141K–146K
50 Cuenca Cuenca · See the rings · What’s around 53.6K 11.7K 4.68K–18.7K 48.2K 38.1K–53.7K 55.9K 49.7K–57.8K 61.9K 57.4K–62.4K 83K 79.4K–83.2K
51 Soria Soria · See the rings · What’s around 41K 18K 7.21K–28.8K 41.5K 32.8K–43.1K 44.3K 39.4K–45.3K 49.8K 46.1K–50.1K 77.8K 77.4K–78.1K
52 Teruel Teruel · See the rings · What’s around 36.7K 12.3K 4.9K–19.6K 31.9K 25.2K–36.7K 36.2K 32.2K–37.2K 44.6K 44.1K–44.7K 63.5K 63.2K–63.6K

Municipality: register population of the capital’s municipality as of January 1, 2025. People at each distance: each municipality’s register population, spread with the GHS-POP grid where the circle cuts it, plus the GHS-POP grid outside Spain. 52 capitals.

Method

Which capitals, and which point

Spain’s 50 provincial capitals, plus Ceuta and Melilla. Each circle is centered on the point that the IGN’s national gazetteer of municipalities and settlements (NGMEP) uses for the city, usually in the old town. It’s the same point as on our place pages.

How people are counted

With the same data and the same code as our Population in a radius tool: every row in the table opens it with these rings, and an automated test checks that it gives the same figures. Each municipality adds its population from the official municipal register as of January 1, 2025: in full if it’s inside the circle (using IGN boundaries) and, if the circle cuts it, the share of its people living inside according to the GHS-POP grid, which shows where homes are in 1 km cells. Each municipality’s total is still the INE figure.

Across the border (Portugal, France, Andorra, Gibraltar and Morocco), population comes from the GHS-POP 2025 grid. 10 of the 52 capitals have people from another country within 50 km.

The low and high figures

Every figure comes with a range, the same as in the tool: municipalities entirely inside count in full, and what’s counted from those the circle cuts gets plus or minus the error that holds in 8 out of 10 circles checked against the 2021 census (60% for 1 km, 11% for 10 km and 6% for 50 km). For the median capital, the range spans 13% of the estimate at 10 km, and 120% at 1 km.

That’s why the order at 1 km is only a rough guide: Valencia (79,800), Madrid (76,500) and Bilbao (72,700) are within each other’s range.

What these figures don’t tell you

The circles are straight lines, not road distance: to see how many people live within a 20-minute drive, use the drive time map. The sea doesn’t count, only land, so coastal capitals have fewer people nearby. The register counts registered residents, not commuters or holidaymakers.

How we work with data across the site

Download the data

Download the CSV

52 rows · 11 KB · UTF-8, comma-separated, with a decimal point. The first two lines, starting with #, hold the license and the citation.

The data and maps in this study are published under a CC BY 4.0 license: you may use, publish and adapt them, including commercially, as long as you credit the source with a link to this page. License text.

Suggested citation

Source: All Map Tools, “Population within 1, 5, 10, 25 and 50 km of Spain’s provincial capitals” (2026), https://allmaptools.com/studies/population-within-1-5-10-km-of-spain-provincial-capitals/

With a link, for a website

Source: <a href="https://allmaptools.com/studies/population-within-1-5-10-km-of-spain-provincial-capitals/">All Map Tools, “Population within 1, 5, 10, 25 and 50 km of Spain’s provincial capitals”</a>

Sources and licenses

Frequently asked questions

How many people live within 50 km of Madrid?

About 7.42 million, measured from the gazetteer point in the city center. About 3.34 million live within 10 km, and 1.52 million within 5 km.

Which capital has the most people within 1 km?

Valencia, with about 79,800 people, ahead of Madrid (76,500) and Bilbao (72,700). But with such a small circle the range is wide and all three are within each other’s: at that distance, the order is only a rough guide.

Why does Guadalajara have so many people within 50 km?

Because a 50 km circle reaches Madrid and its suburbs: 3.63 million people, even though only 4% of them live within 10 km of the city.

Does it count people in Portugal, France or Morocco?

Yes, with the GHS-POP grid. It matters most in Ceuta (85% of the people within 50 km are in Morocco) and Melilla (88%), and also in San Sebastián, with 261,000 people in France within 50 km. The CSV lists the population outside Spain separately.

Can I get these figures for another place or other radii?

Yes: in Population in a radius, choose “Rings” and set any center and radii (1-5-10 km, 1-3-5 miles or your own). It gives the population of each ring and the cumulative total, with a range, and you can download it as CSV.

Writing about this?

If you are a journalist or a teacher and need a figure that is not in the table, or a map in another format, get in touch.

Contact us Spotted a mistake? Let us know

More studies

All studies

Check it yourself