505 km apart · 2h 30min by train
Barcelona vs Madrid
Barcelona or Madrid? Here is how they compare on weather, size, sights and study, using the same data for both.
Our verdict
Choose Barcelona for milder winters, more museums, more castles nearby. Choose Madrid for warmer summers, fewer rainy days, a bigger city, more UNESCO sites nearby.
At a glance
Weather month by month
| Month | High in Barcelona | High in Madrid | Rainy days in Barcelona | Rainy days in Madrid |
|---|---|---|---|---|
| January | 13.6°C | 10.4°C | 4.3 | 6.2 |
| February | 15.6°C | 14.8°C | 4.0 | 4.5 |
| March | 16.4°C | 16.7°C | 6.8 | 8.5 |
| April | 17.9°C | 19.3°C | 9.2 | 9.7 |
| May | 21.3°C | 25.0°C | 7.7 | 5.3 |
| June | 25.7°C | 29.4°C | 7.0 | 4.7 |
| July | 28.8°C | 34.9°C | 4.7 | 0.5 |
| August | 29.1°C | 33.8°C | 6.0 | 1.8 |
| September | 25.6°C | 26.2°C | 10.3 | 7.3 |
| October | 22.3°C | 21.6°C | 9.2 | 9.0 |
| November | 17.9°C | 14.6°C | 7.7 | 7.7 |
| December | 15.3°C | 11.5°C | 4.5 | 8.2 |
Best weather
Top sights in Barcelona
Top sights in Madrid
Getting between Barcelona and Madrid
The two cities are about 505 km apart in a straight line. The fastest trains take about 2h 30min (Renfe (AVE), Iryo, Ouigo). Train details
Questions travellers ask
Is Barcelona or Madrid warmer in summer?
Madrid is warmer in July, with an average high of 34.9°C against 28.8°C in Barcelona.
Which is better in winter, Barcelona or Madrid?
Barcelona is milder in January (average high 13.6°C, against 10.4°C in Madrid).
How far is Barcelona from Madrid?
About 505 km in a straight line. The fastest trains take about 2h 30min.
When is the best time to visit Barcelona and Madrid?
For Barcelona: June. For Madrid: May.
More comparisons
Barcelona vs Lisbon Barcelona vs Palma Barcelona vs Rome Barcelona vs Toulouse Barcelona vs Valencia Barcelona vs Zaragoza Madrid vs Bilbao Madrid vs Lisbon Madrid vs Valencia Madrid vs Zaragoza
About this data: Climate figures are long-term monthly averages from Open-Meteo. Counts of museums, castles, UNESCO sites and universities come from Wikidata and include places within reach of each city, so they are best used to compare, not as exact totals.