The calculated distance (air line) between Cosmópolis and Sorocaba is approximately 61 miles respectively 99 kilometers.
By car or train, the actual journey to Sorocaba is certainly longer, as only the direct route (as the crow flies) between Cosmópolis and Sorocaba has been calculated here.
Air line (approximately)
99 kilometers
53 nautical miles