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