Madrid to Porto distance
Madrid and Porto are 423 km (263 mi) apart in a straight line and 555 km (345 mi) apart by road: about 6 hr 20 min of driving without stops, mostly on the A4 and the A-6. Below you’ll find the route map, both halfway points, the bearing, the time difference and where every figure comes from.
By the All Map Tools Team
- By road
- 555 km (345 mi)
- Driving time
- 6 hr 20 min
- Straight line
- 423 km (263 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 October 31, 2026; simplified line.
The figures
| Figure | Value |
|---|---|
| Straight line | 423 km (263 mi) geodesic on the WGS84 ellipsoid |
| By road | 555 km (345 mi) fastest driving route (OSRM) |
| Driving time | 6 hr 20 min no stops, no traffic |
| Road detour | +31% 1.31 times the straight line |
| Average speed | 88 km/h (55 mph) along the route, without stops |
| Bearing | 283° (west) leaving Madrid toward Porto |
| Midpoint | 40.8100° N, 6.1380° W near San Muñoz (Salamanca) |
| Halfway by road | Near Muelas del Pan (Zamora) 278 km from each city by road |
| Time difference | 1 hour behind Porto compared with Madrid |
| Population | Madrid: 3,506,730 · Porto: 252,687 INE population register, January 1, 2025; GeoNames |
Madrid to Porto by road
The fastest driving route is 555 km (345 mi) long and takes about 6 hr 20 min without stops or traffic. It runs mostly on the A4 (215 km), the A-6 (110 km), and the N-122 (73.1 km).
Of the 555 km, 334 km are in Spain and 221 km are in Portugal. That’s an average of 88 km/h (55 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 7 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 Porto are 423 km (263 mi) apart. That’s the geodesic on the WGS84 ellipsoid, the distance “as the crow flies”.
The road is 31% longer: for every 100 km in a straight line you drive 131. That’s a big detour: the fastest route strays quite far from the straight line. Of the 34 Spain–Europe driving pairs in this series, it ranks 15th for detour (the average is 31%).
From Madrid, Porto lies to the west (bearing 283°), and from Porto, Madrid lies to the east. The straight line reaches Porto on a bearing of 279°: 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 Porto
Halfway along the straight line, 211 km (131 mi) from each city, is the point 40.8100° N, 6.1380° W. It falls near San Muñoz (Salamanca, pop. 192), 3.2 km away. The nearest town of 20,000 people or more is Salamanca (pop. 146,110), 43.6 km away.
By road, the halfway point is 278 km (173 mi) from each city, near Muelas del Pan (Zamora, pop. 592), 3.3 km away. The nearest town of 20,000 people or more is Zamora (pop. 59,815), 21.4 km away. The two midpoints are 81.7 km apart: if you want to meet halfway, the one on the road is the useful one.
Time difference and flight
Porto is 1 hour behind Madrid all year (Western European Time versus Central European Time): when it’s 12:00 in Madrid, it’s 11:00 in Porto.
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 Porto 252,687 people (GeoNames).
Frequently asked questions
How many kilometers is it from Madrid to Porto?
423 km (263 mi) in a straight line and 555 km (345 mi) by road on the fastest route (mostly on the A4 and the A-6).
How long is the drive from Madrid to Porto?
About 6 hr 20 min without stops or traffic, according to OSRM with OpenStreetMap data; with 3 stops of 20 minutes, about 7 hr 20 min.
Where is the halfway point between Madrid and Porto?
In a straight line, near San Muñoz (Salamanca). By road, 278 km from each city, near Muelas del Pan (Zamora).
What’s the time difference between Madrid and Porto?
Porto is 1 hour behind Madrid all year: when it’s 12:00 in Madrid, it’s 11:00 in Porto.
Which direction is Porto from Madrid?
West: the straight line leaves Madrid on a bearing of 283° (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.
- 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.
- Madrid to Vigo 467 km straight line · 593 km by road · 6 hr 40 min Vigo, 121 km from Porto
- Madrid to Pontevedra 471 km straight line · 595 km by road · 6 hr 45 min Pontevedra, 143 km from Porto
- Madrid to Ourense 409 km straight line · 502 km by road · 5 hr 35 min Ourense, 146 km from Porto
- Madrid to Santiago de Compostela 488 km straight line · 593 km by road · 6 hr 40 min Santiago de Compostela, 192 km from Porto
More distances from Madrid
All distances- Madrid to Paris 1,052 km straight line · 1,268 km by road · 13 hr 25 min
- Madrid to Albacete 223 km straight line · 255 km by road · 2 hr 50 min
- Madrid to Almería 411 km straight line · 543 km by road · 6 hr 15 min
- Madrid to Ávila 89.4 km straight line · 113 km by road · 1 hr 30 min
- Madrid to Cáceres 252 km straight line · 300 km by road · 3 hr 20 min
- Madrid to Castellón 315 km straight line · 423 km by road · 4 hr 40 min
More distances from Porto
Sources
- Driving route: FOSSGIS OSRM, car profile (calculated on October 31, 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