MakeYourChart

Largest cities in Spain, 1975 to 2050

Madrid leads Spain with 5.58 million people in 2025, ahead of Barcelona at 3.98 million in the UN city ranking.

Free to edit and export · No signup to start

What the data shows

  • In 2025, Madrid ranks #1 with 5.58M, ahead of Barcelona (3.98M) and Valencia (1.39M).
  • By 2050, on the UN's projections, Madrid is projected to rank #1 with 5.59M, ahead of Barcelona (4.12M) and Valencia (1.38M).
  • Madrid holds #1 for the whole period, 1975 to 2025.
  • Biggest climber: Palma de Mallorca, from #11 in 1975 to #6 in 2050.
  • Madrid grew 1.9× between 1975 and 2025.

About this chart

Madrid and Barcelona head the 2025 ranking for Spain, at 5.58 million and 3.98 million people. Madrid also appears first in 1975, at 2.95 million, so the top position is unchanged between those two endpoints. Valencia occupies third place in 2025 at 1.39 million. These are populations of urban areas defined consistently by the UN, rather than administrative city limits.

The UN projects Madrid to lead in 2050 at 5.59 million people. The figures after 2025 are projections. The Degree of Urbanization identifies contiguous dense settlements, so these totals can differ from municipal and metropolitan statistics. The historical ranking is useful for comparing positions; changing settlement boundaries mean it should not be treated as a measure of growth within fixed city limits.

The data

Source: UN DESA, World Urbanization Prospects: The 2025 Revision (File 21), city population, millions, 1975–2050 (projected after 2025). Retrieved November 5, 2026. Cities as defined by the Degree of Urbanization (contiguous dense areas), so figures differ from city-proper or metro counts. Blank cells indicate that the source supplies no city value for that year, not zero population.

Largest cities in Spain, Population in millions, 1975–2050; projected after 2025, 1975–2050
Date🇪🇸 Madrid🇪🇸 Barcelona🇪🇸 Valencia🇪🇸 Bilbao🇪🇸 Seville🇪🇸 Zaragoza🇪🇸 Málaga🇪🇸 Las Palmas de Gran Canaria🇪🇸 Granada🇪🇸 Valladolid🇪🇸 Alicante🇪🇸 Palma de Mallorca
19752.95M2.23M0.94M0.90M0.58M0.45M0.38M0.27M0.27M0.26M0.17M0.22M
19763.01M2.25M0.95M0.90M0.59M0.46M0.39M0.27M0.27M0.27M0.18M0.23M
19773.07M2.27M0.96M0.90M0.60M0.46M0.40M0.28M0.28M0.28M0.18M0.24M
19783.13M2.29M0.98M0.91M0.61M0.47M0.41M0.29M0.29M0.29M0.19M0.24M
19793.19M2.31M0.99M0.91M0.62M0.48M0.42M0.29M0.30M0.31M0.19M0.25M
19803.25M2.33M1.01M0.91M0.63M0.49M0.44M0.30M0.31M0.32M0.20M0.25M
19813.27M2.35M1.01M0.90M0.63M0.50M0.44M0.30M0.31M0.32M0.21M0.26M
19823.29M2.36M1.02M0.90M0.64M0.50M0.44M0.30M0.32M0.32M0.22M0.26M
19833.31M2.38M1.02M0.89M0.65M0.50M0.45M0.30M0.32M0.32M0.23M0.26M
19843.34M2.40M1.03M0.88M0.65M0.51M0.45M0.30M0.32M0.33M0.24M0.26M
19853.36M2.42M1.04M0.88M0.66M0.51M0.46M0.30M0.33M0.33M0.26M0.26M
19863.37M2.43M1.04M0.87M0.66M0.51M0.46M0.30M0.33M0.33M0.26M0.26M
19873.38M2.45M1.04M0.86M0.67M0.52M0.46M0.30M0.33M0.33M0.26M0.26M
19883.39M2.47M1.05M0.85M0.68M0.52M0.47M0.30M0.34M0.33M0.26M0.26M
19893.40M2.49M1.05M0.84M0.68M0.52M0.47M0.30M0.34M0.33M0.26M0.26M
19903.41M2.50M1.06M0.83M0.69M0.52M0.47M0.30M0.34M0.34M0.27M0.26M
19913.45M2.55M1.07M0.82M0.69M0.52M0.47M0.30M0.34M0.33M0.27M0.26M
19923.50M2.60M1.09M0.82M0.69M0.52M0.47M0.30M0.34M0.33M0.27M0.27M
19933.54M2.65M1.10M0.82M0.69M0.52M0.47M0.30M0.34M0.33M0.27M0.27M
19943.58M2.70M1.12M0.81M0.68M0.52M0.47M0.30M0.34M0.33M0.27M0.27M
19953.62M2.75M1.13M0.81M0.68M0.52M0.47M0.30M0.34M0.33M0.27M0.27M
19963.68M2.76M1.15M0.80M0.68M0.52M0.47M0.30M0.34M0.32M0.27M0.27M
19973.74M2.78M1.16M0.80M0.68M0.52M0.47M0.30M0.33M0.32M0.27M0.28M
19983.80M2.80M1.17M0.79M0.68M0.52M0.46M0.30M0.33M0.32M0.27M0.28M
19993.86M2.81M1.19M0.79M0.68M0.52M0.46M0.30M0.32M0.31M0.27M0.28M
20003.92M2.83M1.20M0.79M0.68M0.51M0.46M0.30M0.32M0.31M0.27M0.28M
20013.99M2.87M1.21M0.79M0.68M0.52M0.47M0.30M0.33M0.31M0.28M0.29M
20024.05M2.92M1.23M0.79M0.68M0.52M0.47M0.31M0.33M0.31M0.29M0.29M
20034.12M2.96M1.24M0.79M0.68M0.52M0.47M0.31M0.34M0.31M0.30M0.29M
20044.19M3.01M1.25M0.80M0.68M0.52M0.47M0.32M0.35M0.30M0.31M0.30M
20054.25M3.05M1.27M0.80M0.68M0.52M0.47M0.32M0.35M0.30M0.32M0.30M
20064.32M3.09M1.28M0.80M0.68M0.52M0.47M0.32M0.36M0.31M0.32M0.31M
20074.39M3.13M1.29M0.80M0.68M0.53M0.48M0.33M0.36M0.31M0.33M0.31M
20084.45M3.18M1.31M0.80M0.68M0.53M0.48M0.33M0.37M0.32M0.34M0.32M
20094.52M3.22M1.32M0.81M0.68M0.53M0.48M0.33M0.38M0.32M0.34M0.32M
20104.59M3.26M1.33M0.81M0.68M0.53M0.48M0.34M0.38M0.33M0.35M0.33M
20114.67M3.32M1.33M0.80M0.68M0.54M0.49M0.34M0.38M0.32M0.35M0.34M
20124.75M3.38M1.34M0.79M0.68M0.54M0.49M0.34M0.38M0.32M0.35M0.34M
20134.84M3.44M1.34M0.78M0.68M0.55M0.49M0.35M0.37M0.32M0.36M0.35M
20144.92M3.49M1.34M0.78M0.68M0.55M0.49M0.35M0.37M0.32M0.36M0.35M
20155.00M3.55M1.34M0.77M0.69M0.55M0.50M0.35M0.37M0.32M0.37M0.36M
20165.10M3.62M1.34M0.77M0.69M0.56M0.50M0.36M0.37M0.32M0.37M0.37M
20175.20M3.68M1.35M0.76M0.69M0.57M0.51M0.36M0.37M0.32M0.38M0.38M
20185.29M3.75M1.35M0.76M0.70M0.58M0.51M0.37M0.37M0.32M0.38M0.39M
20195.39M3.81M1.36M0.76M0.70M0.59M0.52M0.37M0.37M0.32M0.39M0.40M
20205.49M3.88M1.37M0.75M0.70M0.59M0.52M0.38M0.37M0.32M0.39M0.41M
20215.51M3.90M1.37M0.75M0.70M0.59M0.52M0.38M0.37M0.32M0.39M0.42M
20225.53M3.92M1.38M0.75M0.70M0.59M0.52M0.38M0.37M0.32M0.40M0.44M
20235.55M3.94M1.38M0.75M0.70M0.59M0.52M0.38M0.37M0.32M0.40M0.45M
20245.56M3.96M1.39M0.74M0.70M0.59M0.52M0.38M0.37M0.32M0.40M0.46M
20255.58M3.98M1.39M0.74M0.70M0.59M0.52M0.38M0.37M0.32M0.40M0.47M
20265.59M4.00M1.39M0.74M0.70M0.58M0.52M0.38M0.37M0.32M0.40M0.48M
20275.60M4.01M1.39M0.74M0.70M0.58M0.52M0.38M0.37M0.32M0.40M0.48M
20285.61M4.02M1.39M0.73M0.69M0.58M0.52M0.38M0.36M0.33M0.40M0.49M
20295.62M4.04M1.40M0.73M0.69M0.57M0.52M0.38M0.36M0.33M0.40M0.50M
20305.62M4.05M1.40M0.73M0.69M0.57M0.52M0.38M0.36M0.33M0.40M0.50M
20315.63M4.06M1.40M0.72M0.69M0.57M0.52M0.38M0.36M0.33M0.40M0.50M
20325.63M4.06M1.40M0.72M0.68M0.57M0.52M0.38M0.36M0.33M0.40M0.51M
20335.63M4.07M1.40M0.72M0.68M0.56M0.51M0.38M0.36M0.33M0.40M0.51M
20345.64M4.08M1.40M0.71M0.68M0.56M0.51M0.38M0.36M0.33M0.40M0.52M
20355.64M4.08M1.40M0.71M0.68M0.56M0.51M0.38M0.36M0.33M0.40M0.52M
20365.64M4.09M1.40M0.71M0.68M0.56M0.51M0.38M0.36M0.33M0.40M0.52M
20375.64M4.10M1.40M0.70M0.67M0.55M0.51M0.38M0.36M0.33M0.40M0.53M
20385.64M4.10M1.40M0.70M0.67M0.55M0.51M0.38M0.36M0.33M0.40M0.53M
20395.64M4.11M1.40M0.70M0.67M0.55M0.51M0.38M0.36M0.33M0.40M0.54M
20405.64M4.11M1.39M0.70M0.67M0.55M0.51M0.38M0.35M0.33M0.40M0.55M
20415.64M4.11M1.39M0.69M0.67M0.54M0.51M0.38M0.35M0.33M0.40M0.55M
20425.64M4.12M1.39M0.69M0.66M0.54M0.50M0.38M0.35M0.33M0.40M0.55M
20435.63M4.12M1.39M0.69M0.66M0.54M0.50M0.38M0.35M0.33M0.40M0.55M
20445.63M4.12M1.39M0.68M0.66M0.54M0.50M0.38M0.34M0.33M0.40M0.55M
20455.63M4.12M1.39M0.68M0.66M0.53M0.50M0.38M0.34M0.33M0.40M0.55M
20465.62M4.12M1.39M0.68M0.65M0.53M0.50M0.38M0.34M0.33M0.39M0.56M
20475.61M4.12M1.38M0.67M0.65M0.53M0.50M0.38M0.34M0.33M0.39M0.56M
20485.60M4.12M1.38M0.67M0.65M0.53M0.50M0.37M0.34M0.32M0.39M0.56M
20495.60M4.12M1.38M0.66M0.65M0.52M0.49M0.37M0.33M0.32M0.39M0.56M
20505.59M4.12M1.38M0.66M0.64M0.52M0.49M0.37M0.33M0.32M0.39M0.57M

Post it

Suggested caption: “Madrid: 5.58 million people, 1.40 times Barcelona.” Credit the source in your caption; it heads off the 'source?' comments.

Make it yours

  • Switch between bar, line, column and donut races with one click.
  • Pick 9:16 for Reels and TikTok, 4:5 for the feed or 16:9 for YouTube.
  • Change the theme, font, colors and race length, and add your own captions.
  • Paste your own numbers from Excel or Google Sheets. See the bar chart race maker for tips.

Frequently asked questions

What is the largest city in Spain?

Madrid is the largest city in Spain in the UN 2025 series, with about 5.58 million people. Barcelona follows at 3.98 million. These figures use the UN Degree of Urbanization definition, not municipal boundaries.

Which city is projected to be largest in Spain in 2050?

The UN projects Madrid to rank first in 2050, with about 5.59 million people. This is a projection, not an observed population count.

Was Madrid also the largest city in 1975?

The 1975 ranking was led by Madrid, with 2.95 million people. The table preserves every city that reached the top ten in any year shown, including cities outside the top ten today.

Where does this data come from?

UN DESA, World Urbanization Prospects: The 2025 Revision (File 21), city population, millions, 1975–2050 (projected after 2025). Retrieved November 5, 2026. Cities as defined by the Degree of Urbanization (contiguous dense areas), so figures differ from city-proper or metro counts. Blank cells indicate that the source supplies no city value for that year, not zero population. You can download the full table as a CSV from this page.

Can I turn this chart into a video?

Yes. Open it in the editor, change the title, theme, colors or format (9:16 for Reels and TikTok, 16:9 for YouTube), and export an MP4. Free exports are 720p with a small watermark; Pro ($11.99/month) removes it and adds 1080p, 4K and 60 fps.

Related data

All cities charts