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