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