BarcelonaMadrid

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

FactBarcelonaMadrid
CountrySpainSpain
Population1.7 million3.5 million
July high28.8°C34.9°C
January high13.6°C10.4°C
Rainy days a year8173
Sunshine10.2 h a day10.0 h a day
Daylight in June15h 12min15h 06min
Best time to visitJuneMay
Museums9890
UNESCO sites nearby37
Universities1226
CurrencyEUREUR

Weather month by month

MonthHigh in BarcelonaHigh in MadridRainy days in BarcelonaRainy days in Madrid
January13.6°C10.4°C4.36.2
February15.6°C14.8°C4.04.5
March16.4°C16.7°C6.88.5
April17.9°C19.3°C9.29.7
May21.3°C25.0°C7.75.3
June25.7°C29.4°C7.04.7
July28.8°C34.9°C4.70.5
August29.1°C33.8°C6.01.8
September25.6°C26.2°C10.37.3
October22.3°C21.6°C9.29.0
November17.9°C14.6°C7.77.7
December15.3°C11.5°C4.58.2

Best weather

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.