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