Active sonar: timing an echo
Active sonar (SOund Navigation And Ranging) works on the same principle as radar, substituted into water: emit a short, powerful pulse (ping) of sound, listen for the echo reflected off any object in the pulse's path, and measure the round-trip travel time to compute range. Because the pulse travels to the target and back, the range calculation divides by two:
R = c · t / 2 R = range to target c = speed of sound in water (≈ 1500 m/s, varies with temperature, salinity, depth) t = round-trip travel time of the echo
The 1500 m/s figure is roughly 4.3× the speed of sound in air, which is precisely why sound rather than light or radio is used underwater at all — electromagnetic waves attenuate catastrophically fast in seawater (a conductive medium), while sound propagates for kilometres with modest loss, making acoustic echo-ranging the only practical remote-sensing method underwater over any serious distance.
Bearing: sweeping the beam
Range alone only tells you how far, not which direction. A rotating or electronically steered directional transducer restricts the emitted pulse (and the listening sensitivity) to a narrow beam width, and sweeping that beam through a full circle — exactly what this simulation's rotating sweep animates — lets the system associate each detected echo with the bearing the beam was pointed at when the echo arrived, building up a full picture of range and bearing to every reflecting object around the sonar platform, the same way a rotating radar dish builds a plan-position display.
Resolution and the frequency trade-off
Sonar frequency is chosen as a deliberate trade-off. Higher frequency sound has a shorter wavelength, giving finer angular and range resolution (smaller objects and closer-together objects can be distinguished) but attenuates faster in water — high-frequency sound is absorbed and scattered over shorter distances, capping its useful range. Lower frequency sound travels much further with less attenuation but has coarser resolution, since resolving power is fundamentally limited by wavelength. This is why hull-mounted navigation and fish-finding sonars typically use higher frequencies (tens to hundreds of kHz) for detailed short-range imaging, while long-range military and submarine-detection sonars push down toward a few kHz or even lower, trading detail for reach.
Passive sonar: listening instead of asking
Passive sonar never transmits — it only listens, detecting the sound a target itself radiates (engine noise, propeller cavitation, biological sound). It cannot directly measure range from a single hydrophone the way active sonar's round-trip timing does (there's no known emission time to time against), but it has the decisive tactical advantage of not revealing the listener's own position, since transmitting nothing means there is no ping to be detected by the target in turn. Range can still be estimated passively with multiple hydrophones via triangulation (comparing bearing from separated sensors) or time-difference-of-arrival techniques, at the cost of needing an array rather than a single transducer.
Biological echolocation: the same physics, evolved
Toothed whales (dolphins, sperm whales, porpoises) and many bats independently evolved active biosonar systems that work on exactly this active-sonar principle: emit a directional click or chirp, time and analyse the returning echo, and extract range, size, texture, and even internal structure of a target from the echo's timing, intensity and spectral content. Dolphin echolocation clicks reach frequencies up into the hundreds of kilohertz, well above human hearing, trading range for the fine resolution needed to discriminate small prey items in murky water — the same frequency/resolution trade-off engineers face when choosing a sonar's operating frequency, arrived at independently by natural selection tens of millions of years before humans built the first sonar sets in World War I.
Frequently asked questions
Why does the sonar range formula divide by 2?
Because the measured time is the full round trip: the pulse has to travel from the sonar out to the target, and the echo has to travel all the way back before it's detected. Dividing the total travel time by 2 (after multiplying by the speed of sound) gives the one-way distance, which is the actual range to the target.
Why do some sonars use high frequency and others low frequency?
It's a direct trade-off between resolution and range. Higher-frequency sound has a shorter wavelength and resolves finer detail and closer-together objects, but attenuates quickly in water, limiting its useful range. Lower frequencies travel much farther with less absorption but can't resolve fine detail — long-range sonars accept coarser resolution in exchange for reach.
What's the difference between active and passive sonar?
Active sonar transmits a pulse and times the echo to measure range directly, but the transmission also reveals the sonar's own position to anything listening. Passive sonar only listens for sounds a target itself makes, staying covert, but it can't get range from a single sensor the way active sonar's round-trip timing does — it typically needs multiple hydrophones and triangulation or time-difference techniques to estimate range.
Try it live
Everything above runs in your browser — open Sonar & Echolocation and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Sonar & Echolocation simulation