Skip to content

How far is Madrid from Barcelona? 313 miles in a straight line

Barcelona to Madrid is 313 miles (504 km) as the crow flies, in a straight line between the city centres.

Barcelona to Madrid

313 miles

504 km · 272 nautical miles

BarcelonaMadrid

Barcelona and Madrid joined by a straight line, with the midpoint halfway along it.

Direction from Barcelona
W, 260°
Direction from Madrid
ENE, 76°
Midpoint
40.94° N, 0.79° W
Nearest listed city: Zaragoza, Spain
Estimated flight time
1 h 10 min
At 800 km/h plus 30 min

How it compares

FromAmong its routesShortestLongest
BarcelonaShortest of 5Barcelona to Madrid, 313 miles (504 km)Barcelona to London, 708 miles (1,139 km)
Madrid2nd shortest of 4Madrid to Lisbon, 313 miles (503 km)Madrid to London, 785 miles (1,263 km)

Questions

How far is Madrid from Barcelona as the crow flies?

Madrid is 313 miles (504 km, 272 nautical miles) from Barcelona in a straight line. That is 1.3% of the way round the Earth. It is not a road distance.

How long is the flight from Barcelona to Madrid?

About 1 h 10 min. That is an estimate: 504 km at 800 km/h plus 30 minutes for take-off and landing. Real flight times depend on the route, winds and any stops.

Which direction is Madrid from Barcelona?

Starting from Barcelona, Madrid lies W (260° from north). Starting from Madrid, Barcelona lies ENE (76°). The two differ because the shortest path curves across the globe.

What is halfway between Barcelona and Madrid?

The point halfway along the shortest line is at 40.94° N, 0.79° W, 252 km from each city. The nearest city in our list is Zaragoza, Spain.

City names and positions: GeoNames (geonames.org), licence CC BY 4.0, read 2026-11-30. Distance is the great-circle line between the two city centres, from the haversine formula on a sphere of radius 6,371 km, so expect a kilometre or so of rounding either way. Flight time, where shown, is an estimate of the distance at 800 km/h plus 30 minutes for take-off, climb and landing, rounded to five minutes; real flights follow air routes, winds and slots. Everything is calculated by EcoGPT.

Planning this trip?

Ask about the route, how people usually travel it, or how far other cities are from either end.

Ask EcoGPT