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.
| Indicator | Barcelona | Madrid | Difference |
|---|---|---|---|
| Mean daily temperature | 15.0 °C | 14.2 °C | -0.8 °C |
| Average daily high | 18.5 °C | 19.8 °C | +1.3 °C |
| Average daily low | 12.0 °C | 8.7 °C | -3.3 °C |
| Annual rainfall | 619 mm | 430 mm | -189 mm |
| Sunshine / day | 10.2 h | 10.3 h | negligible |
| Hot days (≥ 30 °C) | 3 d/yr | 65 d/yr | +62 d/yr |
| Frost days (< 0 °C) | 2 d/yr | 39 d/yr | +37 d/yr |
| Rainy days (≥ 1 mm) | 95 d/yr | 72 d/yr | -23 d/yr |
| Mean relative humidity | 78 % | 61 % | -17 % |
| Average peak wind | 15.5 km/h | 13.5 km/h | negligible |
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.