San Juan, Puerto Rico → Madrid, Spain · ✈ 8h 28min · 🚗 103h 35min
3,442 nautical miles · Time difference: +4h ahead · Direction: northeast
The distance from San Juan to Madrid is 6,374 km (3,961 miles). The fastest way to travel is by flight. A direct flight takes approximately 8h 28min.
The straight-line distance from San Juan, Puerto Rico to Madrid, Spain is approximately 6,374 kilometers (3,961 miles or 3,442 nautical miles). This measurement uses the Haversine formula, computing the great-circle distance — the shortest path between two points on Earth's surface.
Madrid is located northeast of San Juan. San Juan is in North America, in the San Juan region of Puerto Rico, while Madrid is in Europe, in Community of Madrid, Spain. This intercontinental route spans from North America to Europe.
| Mode | Distance | Est. Time | Best For |
|---|---|---|---|
| ✈️ Flight | 6,374 km | ~8h 28min | Best option for speed |
Our recommendation: flight is typically the best way to travel from San Juan to Madrid. For 6,374 km, flying saves significant time and is usually the most practical choice.
San Juan sits at 18.4655°N, 66.1057°W, while Madrid is located at 40.4168°N, 3.7038°W. The initial compass bearing from San Juan to Madrid is 53° (NE), so a great-circle flight path leaves San Juan heading roughly NE. Because the Earth is curved, the actual heading shifts gradually along the route — pilots and navigation systems update it continuously instead of holding a single fixed compass bearing.
The latitude difference is 21.95° and the longitude difference is 62.40°. Each degree of latitude represents about 111 km, which is one reason cross-latitude routes feel longer even when the map looks similar to east–west journeys.
The geographic midpoint between San Juan and Madrid is approximately 33.3616°N, 38.6977°W. This is the great-circle halfway position — the spot where you would be exactly 3,187 km from each city. On long-haul flights this point usually falls over open ocean or remote terrain, which is why in-flight maps often look "empty" mid-route.
Madrid is roughly 4 hours ahead of San Juan. When it is 09:00 in San Juan, it is approximately 13:00 in Madrid. A 4-hour shift is small enough that most travelers adjust within a day. Daylight saving time can shift the offset by an hour during certain months, so confirm the exact difference for your specific travel dates.
San Juan is a major city in Puerto Rico with a population of approximately 318,441. Located in the San Juan region, it is an important hub in North America. Despite its smaller size, San Juan plays an important regional role in Puerto Rico and attracts visitors year-round.
→ See all distances from San Juan
Madrid is a notable city in Spain with a population of approximately 3,223,334. Situated in the Community of Madrid region, it serves as a key destination in Europe. Madrid offers solid transport connections and a variety of arrival options as a major city in Spain.
→ See all distances from Madrid
At 6,374 km, this is one of the longer routes on the globe, spanning from North America to Europe. For comparison, London to Sydney is about 17,000 km — roughly half the circumference of the Earth.
At 6,374 km, San Juan to Madrid is one of the world's longer routes, covering 15.9% of Earth's circumference (40,075 km).
This route crosses from North America to Europe, spanning 4 timezones.
The straight-line distance from San Juan to Madrid is approximately 6,374 kilometers (3,961 miles, 3,442 nautical miles).
A direct flight takes approximately 8h 28min, based on 800 km/h cruising speed plus 30 minutes for takeoff and landing.
Estimated driving time is approximately 103h 35min, based on 80 km/h average speed and roads being ~30% longer than straight-line distance.
Madrid is approximately +4h ahead compared to San Juan.
The estimated road distance is approximately 8,286 km, which is about 30% longer than the 6,374 km straight-line distance.
📍 Data: Coordinates from OpenStreetMap contributors. Distances calculated using the Haversine formula. Travel times are estimates only. Last verified: April 21, 2026.