Skip to content
Distance between cities

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 Mapsfera Team

Map from Madrid to Porto: the straight line and the driving route
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
Straight line vs driving distance

Lambert azimuthal equal-area projection centered on the midpoint. Route: FOSSGIS OSRM with data © OpenStreetMap contributors, calculated on October 31, 2026; simplified line.

Missing a road? Fix it on OpenStreetMap

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 10 cross-border pairs in this series, it ranks 5th 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.

More distances from Madrid

All distances

More distances from Porto

Sources