How sonar measures distance with echoes | Club Charlie
A transmitter sends a short sound pulse through water. Part of the pulse reflects from the seafloor or another object and returns to a receiver. Multiplying the sound speed by the round-trip travel time and dividing by two estimates the distance. The returning echo has travelled to the object and back, which is why the calculation halves the total journey. The result also depends on the sound speed used. Following both legs of the trip turns an unfamiliar instrument into a straightforward question about speed, elapsed time and distance.
Multiplying the sound speed by the round-trip travel time and dividing by two estimates the distance.