Barcelona is 0.9°C (1.6°F) warmer by day, Barcelona has 7.2°C (13°F) warmer nights, Barcelona gets 67 mm (2.6 in) more rain a year.
Barcelona is at its warmest in August and coolest in January, while Madrid peaks in July and bottoms out in January. Month for month, Barcelona is the warmer of the two in 12 of 12 months.
Barcelona is the wetter of the two, collecting 519 mm (20.4 in) of rain a year against 452 mm (17.8 in) in Madrid. The most comfortable time to visit is June, September and October in Barcelona and June, August and September in Madrid.
| Barcelona | Metric | Madrid |
|---|---|---|
| 🌡️ Temperature | ||
| 21°C | 🌡️Average daytime high | 20.1°C |
| 14.4°C | 🌙Average nighttime low | 7.2°C |
| August | 🔥Hottest month | July |
| January | ❄️Coldest month | January |
| 🌧️ Rain | ||
| 519 mm | 🌧️Annual rainfall | 452 mm |
| October | ☔Wettest month | October |
| July | 🏜️Driest month | July |
| 💨 Climate | ||
| 70% | 💧Average humidity | 63% |
| 2.4 m/s | 💨Average wind speed | 2.3 m/s |
Overnight, Barcelona typically falls to around 14.4°C (57.9°F) while Madrid settles near 7.2°C (45°F).
Barcelona is hottest in August and coldest in January, whereas Madrid peaks in July and is coolest in January.
Barcelona sees the most rain in October and the least in July; Madrid is wettest in October and driest in July.
Barcelona feels the more humid of the two, averaging 70% relative humidity against 63%.
For Madrid, the pick of the year is June, August and September.
Month by month, here is the coldest night, the average day and the hottest afternoon each city can expect. Switch Compare to read rainfall, humidity, wind or solar instead, and Period to move between the long-term 45-year average and any single year — the shading is a quick warm-to-cool guide.
| Month | Barcelona | Madrid | ||||
|---|---|---|---|---|---|---|
| Min | Avg | Max | Min | Avg | Max | |
| January | 7.7 | 10.9❄️ | 14.1 | -0.4 | 4.5❄️ | 9.3 |
| February | 8.1 | 11.4 | 14.7 | 0.2 | 5.8 | 11.3 |
| March | 9.4 | 12.9 | 16.4 | 2.2 | 8.5 | 14.8 |
| April | 11.5 | 15 | 18.5 | 4.4 | 10.9 | 17.5 |
| May | 14.9 | 18.4 | 21.8 | 8.3 | 15.2 | 22.2 |
| June | 19.1 | 22.5 | 25.9 | 13.2 | 20.9 | 28.6 |
| July | 22.1 | 25.5 | 28.9 | 16.4 | 24.8🔥 | 33.2 |
| August | 22.8 | 26.1🔥 | 29.4 | 16.5 | 24.6 | 32.7 |
| September | 20 | 23.2 | 26.3 | 12.9 | 20 | 27 |
| October | 16.6 | 19.6 | 22.6 | 8.3 | 14.4 | 20.5 |
| November | 11.9 | 14.9 | 17.9 | 3.4 | 8.6 | 13.7 |
| December | 9 | 12 | 15 | 0.8 | 5.5 | 10.1 |
| Annual Avg | 14.4 | 17.7 | 21 | 7.2 | 13.6 | 20.1 |
Min / mean / max temperature (°C). 🔥 marks each city's hottest month, ❄️ its coldest; shading runs cool blue to warm red.
The same figures plotted out, so the shape of a typical year is easier to see than in a grid. Where the two lines run close together Barcelona and Madrid feel alike; where they separate, they are genuinely different places to be.
Hover or tap any point to read the exact figures. Barcelona Madrid
Choose which city to keep, then search for any other city in our database — we'll build the comparison for you.
Quick answers to the questions people ask most when comparing Barcelona and Madrid — each drawn straight from the climate figures above.
Barcelona is the warmer of the two. It averages daytime highs of 21°C (69.8°F) against 20.1°C (68.2°F) in Madrid — roughly 0.9°C (1.6°F) warmer by day. Nights are milder in Barcelona, with average lows of 14.4°C (57.9°F) versus 7.2°C (45°F).
Barcelona is hottest in August, averaging highs of about 29.4°C (84.9°F), while Madrid peaks in July at around 33.2°C (91.8°F). That makes Madrid the hotter of the two at the height of summer.
Madrid gets colder. In its coldest month (January) overnight lows average about -0.4°C (31.3°F), compared with 7.7°C (45.9°F) at the low point of the year in Barcelona.
Barcelona is the wetter city, collecting about 519 mm (20.4 in) of rain a year versus 452 mm (17.8 in) in Madrid. Barcelona is wettest in October and driest in July; Madrid is wettest in October and driest in July.
Barcelona is the more humid of the two, averaging 70% relative humidity over the year against 63% in Madrid.
The most comfortable months in Barcelona are June, September and October, when average temperatures are at their mildest.
Madrid is at its most pleasant around June, August and September, based on the mildest average temperatures of the year.
Barcelona is the warmer city in all 12 months of the year. The gap is widest in December, about 6.5°C (11.7°F), and narrowest in July, about 0.7°C (1.3°F).
Madrid has the bigger seasonal swing, about 20.3°C (36.5°F) between its coldest and hottest months versus 15.2°C (27.4°F) in Barcelona — so Barcelona has the steadier, more even climate.
It depends what matters most to you: choose Barcelona for warmer weather, pick Madrid if you prefer drier conditions and go for Madrid if you want lower humidity. There is no single "better" climate — it comes down to whether you value warmth, dryness or comfort most.
Every figure on this page is calculated from NASA POWER satellite climate data spanning 1981–2025 (45 years). The averages describe the long-term climate of Barcelona and Madrid, not a single year's weather or a short-range forecast.