The calculated distance (air line) between Baghdad and Khānaqīn is approximately 90 miles respectively 145 kilometers.
By car or train, the actual journey to Khānaqīn is certainly longer, as only the direct route (as the crow flies) between Baghdad and Khānaqīn has been calculated here.