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