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