← Vibe Coding Lab

Bat Echolocation

A hunting bat shouts as loud as a smoke alarm, about ten times a second, and listens to the echoes to find a moth in the dark. You never hear it, because the calls are pitched far above the top of human hearing. Here you can hear them, slowed down or shifted the way bat detectors do. This page explains how the echoes become a picture of the world, and which other animals do the same.

Listen to a bat

Pick an animal and press play. Every call is made at its true frequency, with the shape it has in recordings, then made audible by one of the three methods real bat detectors use. The upper picture shows the call as the bat makes it; the lower one shows what reaches your ears. Try No conversion first: that is what a bat sounds like to you.

What the bat sends out · ultrasound, kHz
What you hear · kHz

Time runs left to right, pitch goes up. The dashed line is 20 kHz, the top of human hearing; everything above it is silent to you.

Animal
What to play
Insect distance
Make it audible
Slow down by
Divide frequency by
Tuned to

Time expansion

Record the call and play it back 10 times slower. Every frequency drops ten times (a 45 kHz call becomes 4.5 kHz) and every sound lasts ten times longer, so the shape of the call, its harmonics and the gap to the echo all survive. The price: you cannot listen live, because one second of bat takes ten seconds to play.

Frequency division

Count the vibrations and output one for every ten. The pitch drops ten times but nothing is slowed, so you hear the true rhythm of calls and echoes as it happens. The result is a buzzy square wave: harmonics and fine detail are lost, and the loudness is only roughly kept.

Heterodyne

Mix the sound with a tone, as a radio does, and keep only the difference. Tuned to 43 kHz, a call at 46 kHz comes out at 3 kHz. Live and sensitive, but you only hear the slice within about 5 kHz of the tuning. Bat workers learn species by ear: the wet "plop" of a pipistrelle, the dry "tick" of a Myotis, the warble of a horseshoe.

A sound that comes back

Sound travels about 343 metres a second in air. An insect one metre away sends the echo back after 5.8 thousandths of a second, so every millisecond of delay is 17 cm of distance. A bat measures that delay to within about a millionth of a second in laboratory tests, and its two ears, 1–2 cm apart, add direction. Drag the moth and the tree, then send a call. The waves are slowed down 100 times so you can follow them.

Why so high?

A sound wave bounces well only off things at least about as large as its wavelength. At 20 kHz the wavelength is 17 mm; at 50 kHz it is 7 mm; at 100 kHz, 3.4 mm. A bat hunting mosquitoes needs short waves. But air swallows high frequencies: at 100 kHz a call loses about 3 dB every metre on top of spreading out, so high calls do not reach far. Each species settles on a trade-off. Big bats of open sky call low and far; small bats in cluttered forest call high and close.

How far can a bat detect it?

Range at which the echo is still above the bat's hearing threshold, for a 120 dB call (measured 10 cm in front of the bat) in air at 20 °C and 50 % humidity. Targets are modelled as spheres; ones much smaller than the wavelength echo weakly.
Call frequency

Three kinds of call

FM sweeps (frequency modulated) drop through an octave or more in a few milliseconds. Each frequency in the sweep times the echo separately, so the bat gets a sharp distance and a rich, textured echo. Myotis and big brown bats use them, especially near vegetation. Quasi-constant-frequency calls start with a sweep and settle into a nearly flat tail, a longer, narrower call that carries further: pipistrelles and noctules hunting in the open. Constant-frequency calls are long, pure tones with a short sweep at each end. Horseshoe bats use them to notice a beating insect wing: each wingbeat flashes a bright "glint" in the echo and shifts its pitch a little, so a horseshoe bat can tell a flying insect from a leaf even among branches.

Because a horseshoe bat flies towards what it hears, every echo comes back Doppler-shifted upward. Its ear has a narrow, super-sensitive band, an "acoustic fovea", just above its resting call frequency. Instead of re-tuning the ear, the bat lowers its call by just the right amount, so the echo lands in the fovea. Hans-Ulrich Schnitzler discovered this Doppler shift compensation in 1968.

Doppler shift compensation of a greater horseshoe bat

Flight speedtowards a still target

The hunt: search, approach, buzz

A searching pipistrelle calls about ten times a second, often once per wingbeat, which saves energy because the flight muscles also push air through the larynx. When an echo says "insect", the bat switches to approach: shorter, broader calls, faster and quieter as the target gets closer. In the last few tenths of a second comes the terminal buzz: up to 150–200 calls a second, each shorter than a millisecond. The bat cannot call again before the last echo is back, so the rate is set by the distance. The buzz needs the fastest muscles known in any mammal (Elemans and colleagues, 2011). Choose A hunt in the player above to hear the whole sequence; frequency division keeps its true rhythm.

Bats call loudly: up to 140 dB measured 10 cm from the mouth in some open-air hunters, louder than a jet engine at a distance. To avoid deafening themselves, a small muscle in the middle ear clamps the ear bones during each call and lets go in time for the echo.

Who can hear what

Hearing ranges (blue) and the frequencies of the calls on this page (orange), on a scale where each step is ten times higher. Hearing data are approximate behavioural ranges (Heffner and Heffner for dog and cat). Young people hear to about 20 kHz; most adults over 40 stop well below.

Other animals that echolocate

Echolocation evolved several times. About a thousand of the 1,400 or so bat species use it; the fruit bats (Pteropodidae) mostly do not, except Rousettus, which clicks its tongue. Toothed whales found it independently, and so did two groups of cave-nesting birds.

AnimalHowFrequencies
Dolphins, porpoises, sperm whales (toothed whales)Short broadband clicks made in the nasal passages, focused forward by the fatty "melon" in the forehead; echoes are picked up through the lower jaw. A bottlenose dolphin can find a golf ball 70 m away. Sound travels 4.4 times faster in water, so the delays are shorter.Bottlenose dolphin clicks peak around 100–130 kHz, tens of microseconds long.
Oilbird (South America)Audible clicks for flying inside pitch-black caves where it roosts; Donald Griffin showed it in 1953. Low clicks only reveal larger obstacles, so it navigates rather than hunts by sound; it eats fruit.About 1–15 kHz, mostly around 2 kHz.
Swiftlets (Southeast Asia)Clicks to find their nests in dark caves; their saliva nests are the "bird's nest" of the soup.About 2–10 kHz, audible.
Shrews and tenrecsQuiet ultrasonic twitters at close range, probably to explore their surroundings and burrows.Roughly 30–60 kHz, weak.
Egyptian fruit bat (Rousettus)Clicks its tongue instead of using its larynx, the only fruit bat that echolocates well.Broadband clicks, about 10–60 kHz.
PeopleSome blind people learn to click their tongue and read the echoes; Daniel Kish rides a bicycle this way. Brain scans show the echoes are processed in the visual cortex (Thaler and colleagues, 2011).Palatal clicks around 2–5 kHz.

The moths answer back

Bats and moths have been in an arms race for about 50 million years. Many moths have simple ears tuned to bat calls: Kenneth Roeder found that a noctuid moth's ear has just two sensory cells. A faint call makes the moth turn away; a loud one, meaning a bat close by, makes it fold its wings and dive or spiral erratically. Tiger moths click back: some warn that they taste bad, and Bertholdia trigona jams the bat's sonar during the buzz (Corcoran, Barber and Conner 2009). Moths without ears use stealth: their wing scales and body fur absorb ultrasound, making them acoustic camouflage (Neil and colleagues, 2020). And the long tails of luna moths spin in flight and draw the bat's attack away from the body. Some bats answer in turn: the barbastelle whispers its calls, about 100 times quieter than other aerial hunters, so moths hear it too late.

How it was found out

In 1793 Lazzaro Spallanzani noticed that blinded bats flew and caught insects as well as before, and the Swiss surgeon Louis Jurine found that bats with plugged ears crashed into things. Neither could explain what the bats were hearing, and the "Spallanzani bat problem" was laughed at for a century. In 1938 the Harvard student Donald Griffin brought bats to the physicist George Washington Pierce, who had built one of the few devices that could pick up ultrasound. The machine crackled with calls nobody could hear. Griffin and Robert Galambos then showed in 1941 that bats needed both their mouths and their ears to avoid wires, and in 1944 Griffin named it echolocation.

What this page simplifies

Sources and further reading