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