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