The driving distance is approximately 504-625 km (313-385 miles). Tolls apply on several Spanish motorways (AP-2, AP-7, AP-68, AP-6, R-2, R-4, R-5) between Barcelona and Madrid, adding to the overall cost. Fuel costs are an estimate and can vary based on vehicle efficiency and current fuel prices.