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