Distance from Madrid to Shanghai
Straight line
By road
Travel time
Direction
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.
Other distances from Madrid
- Madrid – Ciudad Lineal 5 km
- Madrid – Móstoles 17 km
- Madrid – Alcalá de Henares 30 km
- Madrid – Valladolid 162 km
- Madrid – Zaragoza 274 km
- Madrid – Gasteiz / Vitoria 284 km
- Madrid – Córdoba 296 km
- Madrid – Valencia 302 km
- Madrid – Bilbao 323 km
Other distances from Shanghai
- Shanghai – Kunshan 51 km
- Shanghai – Suzhou 83 km
- Shanghai – Changshu City 83 km
- Shanghai – Wuxi 118 km
- Shanghai – Ningbo 150 km
- Shanghai – Hangzhou 161 km
- Shanghai – Puyang 247 km
- Shanghai – Nanjing 270 km
- Shanghai – Hefei 402 km
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.