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