The calculated distance (air line) between Sarnen and Schaffhausen is approximately 58 miles respectively 94 kilometers.
By car or train, the actual journey to Schaffhausen is certainly longer, as only the direct route (as the crow flies) between Sarnen and Schaffhausen has been calculated here.
Air line (approximately)
94 kilometers
51 nautical miles