The calculated distance (air line) between Herzberg am Harz and Berlin is approximately 144 miles respectively 231 kilometers.
By car or train, the actual journey to Berlin is certainly longer, as only the direct route (as the crow flies) between Herzberg am Harz and Berlin has been calculated here.
Air line (approximately)
231 kilometers
125 nautical miles