Barcelona or Madrid: which is better?

World city: head-to-head comparison

Barcelona
4.0
points out of 5
Winner
Madrid
4.4
points out of 5

Madrid wins on total points: 4.4 vs 4.0 out of 5.

  • Climate and risks: Madrid 4.0:4.4

All indicators weigh the same. The better value in a pair gets 1 point, the other gets its share of the better one (for "lower is better" indicators the better value is divided by the worse). This is a score based on data, not advice on where to live: different people have different circumstances.

Biggest differences

IndicatorBarcelonaMadridMargin
Distance to the seakm430376×
Muggy days (dew point ≥ +20 °C)days per year360+36
Air humidity%7159+20%
City populationpeople1,621,5373,255,9442×
Urban centre areakm²438680+55%
All 19 indicators ↓

Differences are picked by how far apart the two places rank among the 81 places in the set. This compares against the rest of the set; it is not a rating of how suitable a place is to live in.

Barcelona
Madrid

Population

no winner
City population
neutral indicator: higher does not mean better
1,621,537 people
GeoNames snapshot (all-the-cities 3.1.0 package, 2022), exact date not stated
3,255,944 people
GeoNames snapshot (all-the-cities 3.1.0 package, 2022), exact date not stated
Urban centre population
neutral indicator: higher does not mean better
3,908,362 people
2025
5,680,137 people
2025
Urban centre area
neutral indicator: higher does not mean better
438 km²
2025
680 km²
2025
Urban centre density
neutral indicator: higher does not mean better
8,923 people per km²
2025
8,353 people per km²
2025
Urban centre population growth, 2015–2025
neutral indicator: higher does not mean better
11.7 %
2015–2025
12.3 %
2015–2025

Climate and risks

Better: Madrid (4.0 : 4.4)
Hot days (max ≥ +30 °C)
lower is better
✓34 days per year
2016-202558% lower
✗81 days per year
2016-2025139% higher
Frost days (min ≤ −10 °C)
tie
0 days per year
2016-2025
0 days per year
2016-2025
Severe frost (min ≤ −20 °C)
tie
0.0 days per year
2016-2025
0.0 days per year
2016-2025
Ice days (max ≤ 0 °C)
neutral indicator: higher does not mean better
0 days per year
2016-2025
0 days per year
2016-2025
Heating degree days
neutral indicator: higher does not mean better
783 °C·days per year
2016-2025
1,587 °C·days per year
2016-2025
Cooling degree days
neutral indicator: higher does not mean better
1,058 °C·days per year
2016-2025
952 °C·days per year
2016-2025
Rainy days
neutral indicator: higher does not mean better
52 days per year
2016-2025
63 days per year
2016-2025
Annual precipitation
neutral indicator: higher does not mean better
551 mm per year
2016-2025
472 mm per year
2016-2025
Daylight on December 21
neutral indicator: higher does not mean better
9.2 hours
December 21 and June 21 (does not depend on the year)
9.3 hours
December 21 and June 21 (does not depend on the year)
Daylight on June 21
neutral indicator: higher does not mean better
15.2 hours
December 21 and June 21 (does not depend on the year)
15.1 hours
December 21 and June 21 (does not depend on the year)
Air humidity
neutral indicator: higher does not mean better
71 %
2021-2025
59 %
2021-2025
Muggy days (dew point ≥ +20 °C)
lower is better
✗36 days per year
2021-2025
✓0 days per year
2021-2025
Distance to the sea
neutral indicator: higher does not mean better
4 km
2006-2025
303 km
2006-2025
Earthquakes M4.5+ within 100 km
tie
0.00 per year
2006-2025
0.00 per year
2006-2025

A winner is named only for indicators with a known “better / worse” direction. Population and other neutral indicators are shown without a winner. Outdated and missing values are not counted. Details for each place: Barcelona, Madrid.

More comparisons