Barcelona or Mexico City: which climate?

Barcelona (Spain) has a humid subtropical climate, whereas Mexico City (Mexico) has a temperate oceanic 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 Mexico City.

Barcelona is warmer than Mexico City by 1.1 °C in annual average: 15.0 °C against 13.9 °C.

Mexico City gets more rain than Barcelona: 909 mm per year against 619 mm.

Mexico City gets 10.5 hours of sunshine per day on average, against 10.2 hours in Barcelona.

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

Barcelona averages 3 hot days (≥ 30 °C) and 2 frost days per year; Mexico City averages 1 and 2.

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

IndicatorBarcelonaMexico CityDifference
Mean daily temperature15.0 °C13.9 °C-1.1 °C
Average daily high18.5 °C20.9 °C+2.4 °C
Average daily low12.0 °C8.0 °C-4.0 °C
Annual rainfall619 mm909 mm+290 mm
Sunshine / day10.2 h10.5 h+0.3 h
Hot days (≥ 30 °C)3 d/yr1 d/yrnegligible
Frost days (< 0 °C)2 d/yr2 d/yrnegligible
Rainy days (≥ 1 mm)95 d/yr139 d/yr+44 d/yr
Mean relative humidity78 %67 %-11 %
Average peak wind15.5 km/h12.1 km/h-3.4 km/h

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 climateMexico City climate