The calculated distance (air line) between Barañáin and Tolosa is approximately 30 miles respectively 49 kilometers.
By car or train, the actual journey to Tolosa is certainly longer, as only the direct route (as the crow flies) between Barañáin and Tolosa has been calculated here.