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