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