EN RO

Distance from Shanghai to Madrid

Straight line

10,277 km
6,386 mi · 5,549 NM

By road

12,388 km
7,697 mi

Travel time

144 h 37 min
flight ≈ 13 h 21 min

Direction

NW 321°
initial bearing

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

How far is Shanghai from Madrid?

Shanghai (China) and Madrid (Spain) are very far apart: 10,277 km in a straight line, that is 6,386 miles or 5,549 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.

By road, Shanghai to Madrid is 12,388 km (7,697 miles), about 144 h 37 min by car on the fastest route, without traffic or stops. The road is 21% longer than the straight line.

From Shanghai, Madrid lies to the north-west (initial bearing 321°). The route crosses from China into Spain. The halfway point is at 57.2983°, 65.2605°.

A direct flight would take about 13 h 21 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 Shanghai from Madrid?

By road it is 12,388 km (7,697 miles) from Shanghai to Madrid; in a straight line it is 10,277 km (6,386 miles).

How long is the drive from Shanghai to Madrid?

About 144 h 37 min on the fastest route (12,388 km), without traffic or stops.

In which direction is Madrid from Shanghai?

Madrid is to the north-west of Shanghai, at an initial bearing of 321°.

How long is the flight from Shanghai to Madrid?

A direct flight would take about 13 h 21 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.