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