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