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