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