Distance from Madrid to Shanghai

Madrid (Spain) and Shanghai (China) are 10,255 km apart — that's 6,372 miles or 5,537 nautical miles, measured along the great circle (the shortest path over the Earth's surface).

The numbers
Great-circle distance
10,255 km · 6,372 mi · 5,537 nmi
Initial bearing Madrid → Shanghai
44° (NE)
Initial bearing Shanghai → Madrid
321° (NW)
Nonstop flight (rough estimate)
≈ 12 h 43 min
Time zones
Madrid UTC+02:00 · Shanghai UTC+08:00 (+6 h)
Sunrise gap today
484 min — the sun rises later in Madrid

Flight time is a cruise-speed approximation (no routing/wind); driving distance depends on roads and is typically 20–40% longer than great-circle.

The two cities
Madrid
40.4165, -3.7026
Sunrise / sunset today
05:19 UTC / 19:23 UTC
Shanghai
31.2222, 121.4581
Sunrise / sunset today
21:16 UTC / 10:46 UTC

Open in the distance calculator Find the halfway point

Distances here are straight-line (great-circle). Road routes typically run 1.2–1.4× longer — here's why, with the visual.