The calculated distance (air line) between Ajka and Pécs is approximately 78 miles respectively 125 kilometers.
By car or train, the actual journey to Pécs is certainly longer, as only the direct route (as the crow flies) between Ajka and Pécs has been calculated here.