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