Madrid to Lima distance
Madrid and Lima are 9,502 km (5,904 mi) apart in a straight line, the shortest route and the closest to what planes fly. There’s no road between them: the straight line crosses 6,028 km of sea, 63% of the way. A direct flight would take about 12 hr 25 min. Below you’ll find the map, what lies under the route, the halfway point, the time difference, the arrival time and the constant-bearing route, and where every figure comes from.
By the All Map Tools Team
- Straight line
- 9,502 km (5,904 mi)
- Approximate flight
- 12 hr 25 min
- Time difference (Jan / Jul)
- 6 / 7 hours behind
- Straight line
- Constant bearing (rhumb line)
- Straight-line midpoint
Lambert azimuthal equal-area projection centered on the midpoint. Straight line (geodesic) and rhumb line on the WGS84 ellipsoid; countries from Natural Earth.
The figures
| Figure | Value |
|---|---|
| Straight line | 9,502 km (5,904 mi) geodesic on the WGS84 ellipsoid: the shortest route |
| Approximate flight | 12 hr 25 min estimate: 30 min + the straight line at 800 km/h |
| Time difference | 6 hours behind in January · 7 hours behind in July Lima compared with Madrid |
| Bearing | 250° (west) leaving Madrid; it reaches Lima on 227° |
| Constant bearing | 9,563 km (5,942 mi) rhumb line, bearing 233°: 0.6% longer |
| Over the sea | 6,028 km (3,746 mi) 63% of the straight line |
| Flies over | Spain, Portugal, Guyana, Brazil, and Peru countries under the straight line, in order (Natural Earth) |
| Midpoint | 17.4786° N, 45.6390° W at sea, 1,558 km from Sinnamary (Guyane) |
| Population | Madrid: 3,506,730 · Lima: 7,737,002 INE population register, January 1, 2025; GeoNames |
Madrid to Lima in a straight line
In a straight line, the shortest distance over the Earth’s surface, Madrid and Lima are 9,502 km (5,904 mi) apart, 24% of the way around the Earth at the equator. That’s the geodesic on the WGS84 ellipsoid, the distance “as the crow flies”. There’s no road between them: the straight line crosses 6,028 km of sea, 63% of the way.
From Madrid, Lima lies to the west (bearing 250°), and from Lima, Madrid lies to the northeast. The straight line reaches Lima on a bearing of 227°: the bearing keeps turning along the way (23° in all), which is why the shortest route looks curved on a flat map.
If the plane kept the same bearing all the way (233°, to the southwest), it would follow the rhumb line, the one that looks straight on a Mercator map: 9,563 km (5,942 mi), 61.2 km more (0.6% longer).
What the route flies over
Under the straight line there are 6,028 km of sea (63%) and 3,474 km of land. In order, from Madrid: 335 km over Spain, 175 km over Portugal, 330 km over Guyana, 2,079 km over Brazil, and 555 km over Peru.
It crosses the equator. Planes don’t follow the line exactly: they fly along airways, chase tailwinds and avoid closed airspace, but on long flights they stay close to it.
Halfway between Madrid and Lima
Halfway along the straight line, 4,751 km (2,952 mi) from each city, is the point 17.4786° N, 45.6390° W. It falls at sea; the nearest town is Sinnamary (Guyane, pop. 3,180), 1,558 km away.
Time difference and flight
A direct flight would take about 12 hr 25 min. That’s an estimate: 30 minutes for takeoff, climb, descent and landing, plus the 9,502 km straight line at 800 km/h (about 497 mph), a typical airliner cruising speed. Real schedules depend on wind, routing and airports, and not every pair has a direct flight. Westbound flights usually take a little longer than eastbound ones because of high-altitude winds (the jet stream).
In January, Lima is 6 hours behind Madrid; in July, 7 hours behind Madrid. It changes because they don’t switch to summer time together (in the Southern Hemisphere, summer is in January).
With that flight time, if you leave Madrid at 10:00, you land in Lima around 16:25 (Lima time) in January and around 15:25 in July.
The two cities
Lima is 52.5° farther south than Madrid and 73.3° farther west. Madrid has 3.5 million people (INE population register, January 1, 2025) and Lima 7.7 million people (GeoNames).
Frequently asked questions
How many kilometers is it from Madrid to Lima?
9,502 km (5,904 mi) in a straight line, the shortest route. There’s no road between them: the straight line crosses 6,028 km of sea, 63% of the way.
How long is the flight from Madrid to Lima?
About 12 hr 25 min, estimated from the straight-line distance (9,502 km): 30 minutes for takeoff and landing plus the trip at 800 km/h. Real flight times vary with wind and routing.
What’s the time difference between Madrid and Lima?
It depends on the season: 6 hours behind in January and 7 hours behind in July (Lima compared with Madrid).
Where is the halfway point between Madrid and Lima?
At 17.4786° N, 45.6390° W, 4,751 km from each city: at sea, 1,558 km from Sinnamary (Guyane).
Can you drive from Madrid to Lima?
No: the straight line crosses 6,028 km of sea, 63% of the way. You have to fly or go by sea.
Measure it yourself on the map
The same two cities, already set up in the tools: move the points, find the midpoint or compare the time.
- Distance between two points Measure the distance between any two places or points on the map, in miles or kilometers.
- Halfway point Find the exact halfway point between two places and see it on the map, ready to share.
- Time difference calculator Compare the time in two or more places and find a good hour to call or meet across time zones.
Similar pairs
The ones in this series whose cities are closest to these two, in case another one suits you better.
More distances from Madrid
All distances- Madrid to Buenos Aires 10,022 km straight line · 13 hr flight
- Madrid to Santiago de Chile 10,682 km straight line · 13 hr 50 min flight
- Madrid to Tokyo 10,785 km straight line · 14 hr flight
- Madrid to Barcelona 506 km straight line · 617 km by road · 6 hr 50 min
- Madrid to Valencia 302 km straight line · 355 km by road · 3 hr 55 min
- Madrid to Seville 391 km straight line · 534 km by road · 5 hr 55 min
Sources
- Straight line, bearings and midpoint (geodesics on the WGS84 ellipsoid) · GeographicLib (C. F. F. Karney)
- Countries and sea under the straight line · Natural Earth (public domain)
- Location and elevation of Spanish cities (gazetteer and DEM) · Instituto Geográfico Nacional (CC BY 4.0)
- Location and population of cities outside Spain and the US · GeoNames (CC BY 4.0)
- Population register, January 1, 2025 · INE (Spain)
- Places near the midpoints: All Map Tools gazetteer (GeoNames, INE, IGN and Census) · All Map Tools
- Time zones (timezone-boundary-builder outlines and the IANA database) · © OpenStreetMap contributors (ODbL)
- Map: provinces (IGN), states (US Census Bureau) and countries (Natural Earth) · IGN, Census and Natural Earth
- Methodology