EN RO

Distance from Madrid to Shanghai

Straight line

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

By road

12,384 km
7,695 mi

Travel time

144 h 35 min
flight ≈ 13 h 21 min

Direction

NE 44°
initial bearing

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

How far is Madrid from Shanghai?

Madrid (Spain) and Shanghai (China) 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, Madrid to Shanghai is 12,384 km (7,695 miles), about 144 h 35 min by car on the fastest route, without traffic or stops. The road is 21% longer than the straight line.

From Madrid, Shanghai lies to the north-east (initial bearing 44°). The route crosses from Spain into China. 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 Madrid from Shanghai?

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

How long is the drive from Madrid to Shanghai?

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

In which direction is Shanghai from Madrid?

Shanghai is to the north-east of Madrid, at an initial bearing of 44°.

How long is the flight from Madrid to Shanghai?

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.