Barcelona or Madrid: which climate?

Barcelona (Spain) has a humid subtropical climate, whereas Madrid (Spain) has a hot-summer mediterranean climate, according to the Köppen-Geiger classification.

The values compared here are normals computed over 86 complete calendar years, from 1940 to 2025, using ERA5 reanalysis data from the Copernicus programme. The same method and the same period apply to Barcelona and to Madrid.

Barcelona is warmer than Madrid by 0.8 °C in annual average: 15.0 °C against 14.2 °C.

Barcelona gets more rain than Madrid: 619 mm per year against 430 mm.

Madrid has warmed by +2.4 °C between 1940 and 2025, against +2.0 °C in Barcelona. Madrid is therefore warming faster than Barcelona. Both trends are statistically significant.

Barcelona averages 3 hot days (≥ 30 °C) and 2 frost days per year; Madrid averages 65 and 39.

Data from ERA5 reanalysis (Copernicus Climate Change Service), redistributed under a CC-BY 4.0 licence. Normals are recomputed whenever the archive is updated.

IndicatorBarcelonaMadridDifference
Mean daily temperature15.0 °C14.2 °C-0.8 °C
Average daily high18.5 °C19.8 °C+1.3 °C
Average daily low12.0 °C8.7 °C-3.3 °C
Annual rainfall619 mm430 mm-189 mm
Sunshine / day10.2 h10.3 hnegligible
Hot days (≥ 30 °C)3 d/yr65 d/yr+62 d/yr
Frost days (< 0 °C)2 d/yr39 d/yr+37 d/yr
Rainy days (≥ 1 mm)95 d/yr72 d/yr-23 d/yr
Mean relative humidity78 %61 %-17 %
Average peak wind15.5 km/h13.5 km/hnegligible

A difference is only reported when it exceeds the resolution of the data. ERA5 is a reanalysis on a grid of about 31 km: two nearby cities often fall in the same cell, and below half a degree you are reading the grid, not the climate.

Temperature month by month

Rainfall month by month

Barcelona climateMadrid climate