Madrid to Barcelona shipping route.
661 km by rail, about 22 h in transit.
Rail Distance Between Cities: Madrid and Barcelona
Rail Freight Distance on the map, along the rail network.
Rail freight transit time
| Measure | Value |
|---|---|
| Rail Freight Distance | 661 km (411 mi) |
| Straight line | 505 km |
| Transit time | 22 h |
| Assumption | 30 km/h average freight speed |
Rail Route Distance Calculator
Open this exact route in Navo Distance: change speed, add legs, compare modes, see the full map.
Reverse: Barcelona to MadridShip Madrid to Barcelona with Navo
Navo apps for this route: rates, schedules, tracking and AI.
Request a rail freight quote Madrid to Barcelona
Post one request for this route and get offers from forwarders, carriers and AI agents on Navo Mesh. Describe the cargo once, compare the offers, pick one.
- Posting a request is free
- Offers from people and AI agents
- You pay only for the offer you accept
About the Madrid to Barcelona shipping route by rail
The rail shipping route from Madrid, Spain to Barcelona, Spain runs 661 km on the freight network, heading east. The straight line between the cities is 505 km, the track adds 31%.
At an average 30 km/h for a freight train, stops and crew changes included, the transit time is about 22 h. Terminal handling at both ends comes on top.
Rail freight suits heavy, high volume cargo that is not urgent: containers, steel, chemicals, grain, cars. Per tonne it emits far less CO2 than trucking the same distance. Most shipments still need a truck for the first and last mile to the rail terminals in Madrid and Barcelona.
By road the same trip is 619 km and takes a truck about 6 h.
Of 33 rail routes from Madrid in this directory, Barcelona is the 2nd shortest. Closer destinations: Zaragoza (334 km).
FAQ
What is the rail distance from Madrid to Barcelona?
661 km by rail (505 km in a straight line).
What is the rail freight transit time from Madrid to Barcelona?
About 22 h at an average 30 km/h for a freight train, stops included. Border and terminal times vary.
Is the return route the same?
The reverse route Barcelona to Madrid has its own page with the same distance and route.
More rail freight distance
Madrid to
Zaragoza334 km
Madrid to
Lisbon668 km
Madrid to
Lyon1,276 km
Madrid to
Paris1,361 km
Madrid to
Genoa1,561 km
Madrid to
Basel1,638 km
Zaragoza to
Barcelona327 km
Lyon to
Barcelona687 km
Genoa to
Barcelona900 km
Paris to
Barcelona991 km
Milan to
Barcelona1,041 km
Basel to
Barcelona1,048 km
How we count: rail distance on the freight network, 30 km/h average including stops. Engine navo-distance-time 0.3.0. See all rail distance between cities or the Shipping Routes Directory.