Madrid to Andorra la Vella distance
Madrid and Andorra la Vella are 493 km (307 mi) apart in a straight line and 608 km (378 mi) apart by road: about 7 hr 20 min of driving without stops, mostly on the A-2 and the AP-2. Below you’ll find the route map, both halfway points, the bearing and where every figure comes from.
By the All Map Tools Team
- By road
- 608 km (378 mi)
- Driving time
- 7 hr 20 min
- Straight line
- 493 km (307 mi)
- Driving route
- Straight line
- Straight-line midpoint
- Halfway by road
Lambert azimuthal equal-area projection centered on the midpoint. Route: FOSSGIS OSRM with data © OpenStreetMap contributors, calculated on November 1, 2026; simplified line.
The figures
| Figure | Value |
|---|---|
| Straight line | 493 km (307 mi) geodesic on the WGS84 ellipsoid |
| By road | 608 km (378 mi) fastest driving route (OSRM) |
| Driving time | 7 hr 20 min no stops, no traffic |
| Road detour | +23% 1.23 times the straight line |
| Average speed | 83 km/h (51 mph) along the route, without stops |
| Bearing | 60° (northeast) leaving Madrid toward Andorra la Vella |
| Midpoint | 41.4930° N, 1.1273° W near Muel (Zaragoza) |
| Halfway by road | Near Cuarte de Huerva (Zaragoza) 304 km from each city by road |
| Time difference | None both share the same time |
| Population | Madrid: 3,506,730 · Andorra la Vella: 20,430 INE population register, January 1, 2025; GeoNames |
Madrid to Andorra la Vella by road
The fastest driving route is 608 km (378 mi) long and takes about 7 hr 20 min without stops or traffic. It runs mostly on the A-2 (340 km), the AP-2 (109 km), and the C-14 (67.1 km).
Of the 608 km, 597 km are in Spain and 11.0 km are in Andorra. That’s an average of 83 km/h (51 mph). Spain’s traffic authority (DGT) recommends a break every two hours or 200 km: with 3 stops of 20 minutes, the trip takes about 8 hr 20 min. The time is OSRM’s estimate with OpenStreetMap data: no traffic and speeds somewhat below the limits, so real trips can differ.
Straight-line distance and bearing
In a straight line, the shortest distance over the Earth’s surface, Madrid and Andorra la Vella are 493 km (307 mi) apart. That’s the geodesic on the WGS84 ellipsoid, the distance “as the crow flies”.
The road is 23% longer: for every 100 km in a straight line you drive 123. That’s a normal detour between two cities. Of the 34 Spain–Europe driving pairs in this series, it ranks 24th for detour (the average is 31%).
From Madrid, Andorra la Vella lies to the northeast (bearing 60°), and from Andorra la Vella, Madrid lies to the southwest. The straight line reaches Andorra la Vella on a bearing of 64°: on a sphere the bearing keeps changing along the way, which is why the shortest route looks slightly curved on a flat map.
Halfway between Madrid and Andorra la Vella
Halfway along the straight line, 247 km (153 mi) from each city, is the point 41.4930° N, 1.1273° W. It falls near Muel (Zaragoza, pop. 1,540), 4.6 km away. The nearest town of 20,000 people or more is Zaragoza (pop. 693,091), 27.6 km away.
By road, the halfway point is 304 km (189 mi) from each city, near Cuarte de Huerva (Zaragoza, pop. 15,408), 7.0 km away. The nearest town of 20,000 people or more is Zaragoza (pop. 693,091), 7.0 km away. The two midpoints are 22.3 km apart: if you want to meet halfway, the one on the road is the useful one.
Time zone and flight
Madrid and Andorra la Vella share the same time all year: both are on Central European Time.
No flight time is given: under 500 km (311 miles) in a straight line, time at the airport outweighs time in the air.
The two cities
Madrid has 3.5 million people (INE population register, January 1, 2025) and Andorra la Vella 20,430 people (GeoNames).
Frequently asked questions
How many kilometers is it from Madrid to Andorra la Vella?
493 km (307 mi) in a straight line and 608 km (378 mi) by road on the fastest route (mostly on the A-2 and the AP-2).
How long is the drive from Madrid to Andorra la Vella?
About 7 hr 20 min without stops or traffic, according to OSRM with OpenStreetMap data; with 3 stops of 20 minutes, about 8 hr 20 min.
Where is the halfway point between Madrid and Andorra la Vella?
In a straight line, near Muel (Zaragoza). By road, 304 km from each city, near Cuarte de Huerva (Zaragoza).
Are Madrid and Andorra la Vella in the same time zone?
Yes: both are on Central European Time all year.
Which direction is Andorra la Vella from Madrid?
Northeast: the straight line leaves Madrid on a bearing of 60° (0° is north and 90° is east).
Measure it yourself on the map
The same two cities, already set up in the tools: move the points, get the route by bike or on foot and download the map.
- Distance between two points Measure the distance between any two places or points on the map, in miles or kilometers.
- Straight line vs driving distance Compare the as-the-crow-flies distance with the real driving distance and see how much the road adds.
- Halfway point Find the exact halfway point between two places and see it on the map, ready to share.
Similar pairs
The ones in this series whose cities are closest to these two, in case another one suits you better.
- Madrid to Toulouse 553 km straight line · 798 km by road · 8 hr 40 min Toulouse, 122 km from Andorra la Vella
- Madrid to Girona 573 km straight line · 686 km by road · 7 hr 35 min Girona, 122 km from Andorra la Vella
- Madrid to Lleida 387 km straight line · 460 km by road · 5 hr 5 min Lleida, 124 km from Andorra la Vella
- Madrid to Barcelona 506 km straight line · 617 km by road · 6 hr 50 min Barcelona, 136 km from Andorra la Vella
More distances from Madrid
All distances- Madrid to Faro 527 km straight line · 722 km by road · 7 hr 50 min
- Madrid to New York 5,783 km straight line · 7 hr 45 min flight
- Madrid to Miami 7,104 km straight line · 9 hr 25 min flight
- Madrid to Mexico City 9,078 km straight line · 11 hr 50 min flight
- Madrid to Cancún 7,953 km straight line · 10 hr 25 min flight
- Madrid to Havana 7,454 km straight line · 9 hr 50 min flight
More distances from Andorra la Vella
Sources
- Driving route: FOSSGIS OSRM, car profile (calculated on November 1, 2026) · FOSSGIS e.V.
- Roads, streets and places · © OpenStreetMap contributors (ODbL)
- Straight line, bearings and midpoint (geodesics on the WGS84 ellipsoid) · GeographicLib (C. F. F. Karney)
- 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