Cost to drive from Madrid to Barcelona
Driving from Madrid to Barcelona covers 617 km (383 miles) and takes about 6h 51min without stops. At Spain's current fuel prices (week of 2026-07-20), the fuel for the trip costs about €68.33 in a typical petrol car — here's the full breakdown for petrol, diesel and electric.
Enter your fuel economy and see stops along the way.
How this cost is calculated
We take the real driving distance between Madrid and Barcelona (617 km) from OpenStreetMap routing, then multiply by a typical car's fuel use and Spain's current average pump price. The petrol figure assumes 7 L/100km · 34 MPG; diesel and EV use 6 L/100km · 39 MPG and 18 kWh/100km. Your real cost depends on your car, traffic, driving style and the stations you pick — use the planner for your exact numbers, and check live prices on the Spain fuel prices page.
Related routes
Frequently asked questions
How much does it cost to drive from Madrid to Barcelona?
The drive is 617 km (383 miles) and takes about 6h 51min without stops. Fuel costs roughly €68.33 in an average petrol car, €60.05 in a diesel, and €23.32 in an electric car, using Spain's current fuel prices.
How far is it from Madrid to Barcelona in miles and km?
About 383 miles or 617 kilometres by road — roughly 6h 51min of driving.
Is it cheaper to fill up in Madrid or Barcelona?
Both ends use the same regional prices on this route.
How do I get the exact cost for my car?
Open the FuelWide route planner, enter your car's fuel economy, and it prices the trip on live data — and shows fuel or charging stops along the way.
Driving distance via OSRM / OpenStreetMap. Fuel prices are Spain's current official averages; efficiency and electricity rate are typical estimates. Your figure will vary — use the planner for an exact result.
