The calculated distance (air line) between Andrychów and Kraków is approximately 30 miles respectively 49 kilometers.
By car or train, the actual journey to Kraków is certainly longer, as only the direct route (as the crow flies) between Andrychów and Kraków has been calculated here.