How We Hear in 3D: The Science of Spatial Sound

How We Hear in 3D: The Science of Spatial Sound

Spatial9 Team ·

Lesson 1 of 14 in Spatial9 Academy, module 1: Foundations. Practice in the demo: Music Transformation.

Close your eyes for a moment. You can still tell where the door is when someone opens it. You know the car is behind you and to the left. You can hear that the rain is above you, on the roof, and not in front of you on the floor.

You do all of this with just two small openings on the sides of your head. No cameras, no sensors, no extra hardware. Your brain reads tiny differences between your two ears and builds a 3D world from them, every waking second.

Every immersive mix you will ever make, for music, film, games or virtual reality, works because of this machinery. When you understand how people hear in 3D, you stop guessing about spatial audio. You start designing for the brain that will actually listen to your work.

This is the first lesson of Spatial9 Academy, and it is the foundation for everything that follows.

What you will learn

Two ears, two clues: time and level

Imagine a guitarist standing directly to your right. The sound leaves the guitar and reaches your right ear first. To reach your left ear, it has to travel further, around your head. That extra journey takes time.

That delay is the interaural time difference, or ITD. For a human head, the largest possible delay is less than one millisecond. It sounds impossibly small. Yet your auditory system detects differences far smaller than that, and it uses them to place sounds left or right with real precision.

Your head is also an obstacle. High frequencies have short wavelengths, and they cannot bend around the head easily. So the far ear sits in an acoustic shadow and receives a quieter, duller copy of the sound. That is the interaural level difference, or ILD.

Head seen from above with a sound source on the right, showing the direct path to the near ear and the longer path around the head to the far ear
Two clues for left and right: the near ear hears the sound first (ITD) and louder (ILD), while the far ear sits in the head shadow.

The two cues share the work. Time differences are most useful for low frequencies, where the waveform is long enough for the brain to compare its phase at each ear. Level differences are most useful for high frequencies, where the head shadow is strongest. This division of labor is known as the duplex theory, and it was first described more than a century ago by Lord Rayleigh.

For you as a mixer, this explains something practical. A classic stereo pan pot changes only level. It uses one clue out of several. That is why a panned sound can feel like it sits on a line between two speakers rather than out in the room around you.

Your outer ear is a filter: the HRTF

Time and level tell you left from right. They do not tell you much about front versus back or up versus down. For that, your body has another trick.

The folds of your outer ear, called the pinna, reflect and delay incoming sound in tiny ways. Those reflections combine with the direct sound and create peaks and notches in the frequency spectrum. The pattern changes with direction. A sound from above gets a different spectral fingerprint than a sound from behind. Your head, shoulders and torso add their own small reflections too.

All of this filtering, for one direction and one ear, can be measured and described as a head-related transfer function, or HRTF. A full HRTF set contains measurements for many directions around the head. It is, in a very real sense, the acoustic signature of a person.

You have spent your whole life learning your own HRTF. Your brain knows that a certain notch around the upper frequencies means "this sound is above me". Because every ear is shaped differently, HRTFs differ from person to person. This is one reason binaural audio sounds astonishing to some listeners and a little less convincing to others.

The cone of confusion and the power of a head turn

Here is a puzzle. A sound directly in front of you and a sound directly behind you reach both ears at the same time and at the same level. The ITD and ILD are identical. The same is true for many pairs of points around you.

In fact, for any given ITD and ILD there is a whole cone of possible directions that produce the same values. Scientists call it the cone of confusion. Spectral cues from the pinna help, but they can be ambiguous, especially for unfamiliar sounds.

So the brain uses movement. Turn your head slightly to the left. If the sound is in front, it now moves toward your right ear. If it is behind, it moves toward your left ear. One small turn, and the confusion disappears. You do this constantly without noticing.

Comparison of a sound scene with and without head tracking as the listener turns their head
With head tracking, the sound scene stays fixed in the room while you turn, just as real sound does.

This is why head tracking matters so much in headphone listening. Without it, the whole sound scene turns with your head, which never happens in real life. With it, sounds stay anchored in space. Front and back become clearer, and the mix often feels like it lives outside your head.

Elevation and distance

Elevation is mostly a job for the pinna. Sounds above and below you get different spectral shapes, and your brain has learned to read them. Elevation perception is usually less precise than left-right perception. That is worth remembering when you place height elements in a mix: they need clear, bright content to read as "up".

Distance is not one cue but a bundle of them. Every immersive engineer should know these by heart.

A sphere around a listener showing azimuth as an angle on the horizontal plane, elevation as an angle above ear level, and distance as the length of a line to the sound source
Three numbers describe any position around you: azimuth, elevation and distance.

These three numbers, azimuth, elevation and distance, are the coordinates of the listener sphere. You will meet them again in every lesson. Object-based formats describe sounds with positions like these, and Spatial9's AI model, GravityLLM, generates spatial arrangements in exactly these terms: where each source sits, how far away it is, how high it is, and how it moves.

The first sound wins: the precedence effect

In a real room, you hear a direct sound followed by many reflections from walls, floor and ceiling. Each reflection comes from a different direction. So why does a voice not seem to come from everywhere at once?

Because of the precedence effect. When the same sound arrives from several directions within a short window, roughly a few tens of milliseconds, your brain places it where the first arrival came from. The later copies add loudness and a sense of space, but they do not pull the location away.

This matters in production. Short delays between speakers can shift where a sound appears to come from. Early reflections in a reverb can add size without blurring position. When delays get longer, the echoes start to separate and are heard as distinct repeats.

Why headphones can recreate 3D sound

Everything you hear arrives at just two points: your left and right eardrums. If you could deliver exactly the right signal to each eardrum, with the right timing, level and spectral filtering, your brain would have no way to tell it apart from a real sound in a real place.

That is the idea behind binaural rendering. A renderer takes a sound and a desired direction, applies the HRTF for that direction to create a left and a right signal, and plays them over headphones. Add the right distance cues and some head tracking, and sounds can appear in front of you, behind you and above you, using nothing but ordinary headphones.

Generic HRTFs are not a perfect match for every ear, so results vary from person to person. Even so, binaural is the most accessible way for most listeners to experience immersive sound today. If you want to go deeper, read our guide to binaural versus spatial audio and the overview What is spatial audio?.

Try it in the demo

Put on headphones before you start. Over speakers, binaural cues are smeared by the room and the effect largely disappears. The page itself shows the notice "Best Experienced with Headphones" for exactly this reason. Music Transformation carries the status badge Live, so everything below runs for real in your browser.

  1. Open /demo/music. Under "Choose a mode", select the tile "3D Spatial Audio".
  2. Find the main panel "3D Spatial Audio Engine". It shows "23 stems · 125 BPM · Real-time 3D positioning" and an "Electronic Dance Music" track.
  3. In "Master Controls", keep "Volume" at a comfortable level and press play. Listen for 30 seconds with your eyes closed. Try to point to where individual sounds sit.
  4. Switch the "Spatial Audio" toggle off. Now you hear the stems without 3D positioning. Notice how the sound collapses toward the inside of your head. Switch it back on and listen for the space opening up again.
  5. In "Stems (23)", use the speaker icons to mute everything except "Reese Bass". Listen to where it sits. Then solo "Synth Arp" the same way, then "Impact 1". Compare their positions. Which one feels highest? Which feels furthest away?
  6. Click a stem to select it and use its own volume slider. Lower it gradually and notice whether it feels further away or just quieter. Level alone is only one distance cue.
  7. Try the head tracking control below "Master Controls". Turn your head slowly and listen for whether sounds stay anchored in space.
  8. Find the "Hearing Accessibility" banner and press "Configure". Build a personalized hearing compensation profile, then use the Active/Inactive toggle and "Edit Profile" to compare. Hearing is personal, and good spatial audio should respect that.

Key terms

TermMeaning
ITDInteraural time difference: the arrival time difference between the two ears.
ILDInteraural level difference: the level difference between the ears, caused mainly by the head shadow.
PinnaThe visible outer ear, whose folds filter sound differently for each direction.
HRTFHead-related transfer function: how head, ears and torso filter sound from a given direction.
Cone of confusionThe set of directions that produce identical ITD and ILD values.
Direct-to-reverberant ratioThe balance of direct sound to room reflections, a strong distance cue.
Precedence effectThe brain localizes a sound by its first arrival and suppresses the direction of early echoes.
Binaural renderingCreating a two-channel headphone signal that carries 3D cues, usually by applying HRTFs.

Check your understanding

  1. Which cue is most useful for low frequencies, and which for high frequencies?
  2. Why can the ITD and ILD alone not tell front from back?
  3. Name three cues the brain uses to judge distance.
  4. What does the precedence effect predict when the same sound arrives from two directions 5 ms apart?
  5. Why does head tracking make binaural audio more convincing?

Answers

Assignment

Make a "spatial listening diary". Record a two-minute binaural or stereo field recording somewhere busy, such as a station, cafe or park, or use the demo track if you cannot record. Then write a one-page analysis that lists at least eight sounds and describes for each one its azimuth, elevation and distance, plus the cue you think you relied on most (ITD, ILD, spectral, level, reverb or movement). Finish with three sentences on which positions were hardest to judge and why. Deliver it as a PDF with a sketch of the listener sphere and your sounds marked on it.

Frequently asked questions

How do humans hear sound in 3D with only two ears?

The brain compares the signals at both ears for time differences (ITD) and level differences (ILD), reads the direction-dependent filtering of the outer ear (the HRTF), uses distance cues such as level and reverb, and refines everything with small head movements.

What is an HRTF in simple terms?

A head-related transfer function describes how your head, outer ears and torso change a sound arriving from a particular direction before it reaches your eardrum, and binaural renderers use HRTFs to make headphone audio sound like it comes from that direction.

Why does spatial audio sometimes sound like it is inside my head?

This usually happens when the cues do not match your own ears closely enough, when there are few room or distance cues, or when there is no head tracking, so trying a different renderer, adding head tracking or listening to content with natural reverb often helps sounds move outside the head.

Do I need special headphones for binaural audio?

No, any decent pair of stereo headphones or earbuds can play binaural audio, because the 3D cues are already encoded in the two channels, although head tracking requires a device and app that support it.

Next step

You now know how the brain builds a 3D world from two ears. In the next lesson, From Mono to Immersive: A Short History of Spatial Audio, you will see how engineers spent more than a century learning to recreate that world, one barrier at a time. You can always return to the Spatial9 Academy course home to see the full path.

Try Spatial9 free