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