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