Skip to content
Navo24Navo24
SpainSpain

Madrid to Barcelona shipping route.

661 km by rail, about 22 h in transit.

Distance661 km505 km straight line
Transit time22 h30 km/h average freight speed
FromMadridSpain
ToBarcelonaSpain

Rail Distance Between Cities: Madrid and Barcelona

Rail Freight Distance on the map, along the rail network.

MadridRailBarcelona

Rail freight transit time

MeasureValue
Rail Freight Distance661 km (411 mi)
Straight line505 km
Transit time22 h
Assumption30 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 Madrid

Ship Madrid to Barcelona with Navo

Navo apps for this route: rates, schedules, tracking and AI.

Track the shipment

Live position and arrival forecast for containers on 240+ carriers.

  • Vessel positionAIS, live
  • Arrival in BarcelonaETA with delay alerts
  • Free timeCounted per box

Plan the load

Fit pallets and boxes into a container before it leaves Madrid.

Ask Navo AI

Ask about this route in plain words: rates, sailings, transit, free time. Navo AI answers from live data.

Navo Mesh marketplace

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).

Madrid to Barcelona by road

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

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.

Track a container

Container, B/L or booking number. 240+ carriers, live status and ETA.