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