Madrid to Guadalajara distance
Madrid and Guadalajara are 50.4 km (31.3 mi) apart in a straight line and 56.6 km (35.2 mi) apart by road: about 44 min of driving without stops, mostly on the A-2 and the M-23. 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
- 56.6 km (35.2 mi)
- Driving time
- 44 min
- Straight line
- 50.4 km (31.3 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 | 50.4 km (31.3 mi) geodesic on the WGS84 ellipsoid |
| By road | 56.6 km (35.2 mi) fastest driving route (OSRM) |
| Driving time | 44 min no stops, no traffic |
| Road detour | +12% 1.12 times the straight line |
| Average speed | 76 km/h (47 mph) along the route, without stops |
| Bearing | 62° (northeast) leaving Madrid toward Guadalajara |
| Midpoint | 40.5266° N, 3.4301° W near Daganzo de Arriba (Madrid) |
| Halfway by road | Near Alcalá de Henares (Madrid) 28.3 km from each city by road |
| Time difference | None both share the same time |
| Elevation | Madrid: 645 m (2,116 ft) · Guadalajara: 692 m (2,270 ft) IGN (Spain) |
| Population | Madrid: 3,506,730 · Guadalajara: 92,834 INE population register, January 1, 2025 |
Madrid to Guadalajara by road
The fastest driving route is 56.6 km (35.2 mi) long and takes about 44 min without stops or traffic. It runs mostly on the A-2 (42.0 km), the M-23 (4.7 km), and the M-40 (3.0 km).
It goes through 2 autonomous communities: the Community of Madrid (40.4 km) and Castilla–La Mancha (16.2 km). That’s an average of 76 km/h (47 mph), and at under two hours you can do it without stopping. 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 Guadalajara are 50.4 km (31.3 mi) apart. That’s the geodesic on the WGS84 ellipsoid, the distance “as the crow flies”.
The road is 12% longer: for every 100 km in a straight line you drive 112. That’s a normal detour between two cities. Of the 120 Spanish driving pairs in this series, it ranks 112th for detour (the average is 24%).
From Madrid, Guadalajara lies to the northeast (bearing 62°), and from Guadalajara, Madrid lies to the southwest.
Halfway between Madrid and Guadalajara
Halfway along the straight line, 25.2 km (15.7 mi) from each city, is the point 40.5266° N, 3.4301° W. It falls near Daganzo de Arriba (Madrid, pop. 10,764), 3.1 km away. The nearest town of 20,000 people or more is Alcalá de Henares (Madrid, pop. 203,208), 7.4 km away.
By road, the halfway point is 28.3 km (17.6 mi) from each city, near Alcalá de Henares (Madrid, pop. 203,208), 3.2 km away. The two midpoints almost coincide (5.6 km apart), because the road doesn’t stray far from the straight line.
The two cities
Madrid sits at 645 m (2,116 ft) and Guadalajara at 692 m (2,270 ft), 47 m (154 ft) higher.
Madrid has 3.5 million people and Guadalajara 92,834 people (INE population register, January 1, 2025).
Frequently asked questions
How many kilometers is it from Madrid to Guadalajara?
50.4 km (31.3 mi) in a straight line and 56.6 km (35.2 mi) by road on the fastest route (mostly on the A-2 and the M-23).
How long is the drive from Madrid to Guadalajara?
About 44 min without stops or traffic, according to OSRM with OpenStreetMap data.
Where is the halfway point between Madrid and Guadalajara?
In a straight line, near Daganzo de Arriba (Madrid). By road, 28.3 km from each city, near Alcalá de Henares (Madrid).
Which direction is Guadalajara from Madrid?
Northeast: the straight line leaves Madrid on a bearing of 62° (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 Segovia 69.4 km straight line · 97.2 km by road · 1 hr 20 min Segovia, 88.1 km from Guadalajara
- Madrid to Cuenca 138 km straight line · 168 km by road · 2 hr Cuenca, 108 km from Guadalajara
- Madrid to Toledo 68.6 km straight line · 74.7 km by road · 1 hr Toledo, 113 km from Guadalajara
- Madrid to Ávila 89.4 km straight line · 113 km by road · 1 hr 30 min Ávila, 130 km from Guadalajara
More distances from Madrid
All distances- Madrid to Huelva 451 km straight line · 616 km by road · 6 hr 40 min
- Madrid to Huesca 335 km straight line · 384 km by road · 4 hr 15 min
- Madrid to Jaén 295 km straight line · 334 km by road · 3 hr 50 min
- Madrid to Lleida 387 km straight line · 460 km by road · 5 hr 5 min
- Madrid to Logroño 250 km straight line · 327 km by road · 3 hr 55 min
- Madrid to Lugo 431 km straight line · 500 km by road · 5 hr 35 min
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)
- 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