EN RO

Distance from Madrid to Barcelona

Straight line

505 km
314 mi · 273 NM

By road

617 km
383 mi

Travel time

6 h 49 min
flight ≈ 1 h 8 min

Direction

ENE 76°
initial bearing

Open in the calculator (stops, directions, fuel cost) → Barcelona → Madrid

How far is Madrid from Barcelona?

Madrid (Spain) and Barcelona (Spain) are a medium distance apart: 505 km in a straight line, that is 314 miles or 273 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.

By road, Madrid to Barcelona is 617 km (383 miles), about 6 h 49 min by car on the fastest route, without traffic or stops. The road is 22% longer than the straight line.

From Madrid, Barcelona lies to the east (initial bearing 76°). Both cities are in Spain. The halfway point is at 40.9398°, -0.7933°.

A direct flight would take about 1 h 8 min (800 km/h cruise plus take-off and landing). The road distance and driving time are calculated on the map from OpenStreetMap roads.

Frequently asked questions

How far is Madrid from Barcelona?

By road it is 617 km (383 miles) from Madrid to Barcelona; in a straight line it is 505 km (314 miles).

How long is the drive from Madrid to Barcelona?

About 6 h 49 min on the fastest route (617 km), without traffic or stops.

In which direction is Barcelona from Madrid?

Barcelona is to the east of Madrid, at an initial bearing of 76°.

How long is the flight from Madrid to Barcelona?

A direct flight would take about 1 h 8 min at an average cruising speed of 800 km/h.

How is the distance calculated?

The straight-line distance is computed on the WGS84 ellipsoid with the Vincenty formula, accurate to the metre. The road distance comes from OpenStreetMap roads.