Madrid, Spain → San Juan, Puerto Rico · ✈ 8h 28min · 🚗 103h 35min
3,442 nautical miles · Time difference: -4h behind · Direction: southwest
The distance from Madrid to San Juan 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 Madrid, Spain to San Juan, Puerto Rico 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.
San Juan is located southwest of Madrid. Madrid is in Europe, in the Community of Madrid region of Spain, while San Juan is in North America, in San Juan, Puerto Rico. This intercontinental route spans from Europe to North America.
| 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 Madrid to San Juan. For 6,374 km, flying saves significant time and is usually the most practical choice.
Madrid sits at 40.4168°N, 3.7038°W, while San Juan is located at 18.4655°N, 66.1057°W. The initial compass bearing from Madrid to San Juan is 267° (W), so a great-circle flight path leaves Madrid heading roughly W. 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 Madrid and San Juan 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.
San Juan is roughly 4 hours behind Madrid. When it is 09:00 in Madrid, it is approximately 05:00 in San Juan. 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.
Madrid is a major city in Spain with a population of approximately 3,223,334. Located in the Community of Madrid region, it is an important hub in Europe. Madrid is a significant metropolitan area in Spain with good domestic and international transport connections.
→ See all distances from Madrid
San Juan is a notable city in Puerto Rico with a population of approximately 318,441. Situated in the San Juan region, it serves as a key destination in North America. San Juan is a popular destination in the San Juan region of Puerto Rico, known for its unique character and attractions.
→ See all distances from San Juan
At 6,374 km, this is one of the longer routes on the globe, spanning from Europe to North America. For comparison, London to Sydney is about 17,000 km — roughly half the circumference of the Earth.
At 6,374 km, Madrid to San Juan is one of the world's longer routes, covering 15.9% of Earth's circumference (40,075 km).
This route crosses from Europe to North America, spanning 4 timezones.
The straight-line distance from Madrid to San Juan 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.
San Juan is approximately -4h behind compared to Madrid.
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.