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