The calculated distance (air line) between Pirot and Šabac is approximately 181 miles respectively 292 kilometers.
By car or train, the actual journey to Šabac is certainly longer, as only the direct route (as the crow flies) between Pirot and Šabac has been calculated here.