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