HomeArticlesHelmholtz Resonator

The Helmholtz Resonator: How a Bottle Turns Your Breath Into a Note

Why the air in a bottle's neck behaves like a mass on a spring, the resonance formula and its often-overlooked end correction, and where the same trick shows up in mufflers and speaker cabinets.

mysimulator teamUpdated June 2026≈ 6 min read▶ Open the simulation

A mass on a spring, made of air

Blow gently across the mouth of an empty bottle and you hear a single clear pitch, no matter how messy and turbulent your breath was going in. That pitch comes from a Helmholtz resonator: a rigid cavity of volume V connected to the outside through a narrow neck of length L and cross-sectional area A. The air plug sitting in the neck behaves like a lumped mechanical mass; the much larger body of air in the cavity behaves like a spring, compressing and rarefying as the neck-plug moves in and out. Push the plug in and the cavity pressure rises, pushing back — a textbook mass-spring oscillator, just built entirely out of air instead of metal.

live demo · neck geometry and cavity volume tuning the resonance● LIVE

Because it reduces to a mass-spring system, it has a single, sharply defined resonance frequency depending only on the geometry, not on how hard or how turbulently you blow — which is exactly why a wobbly human breath still produces one clean note.

The resonance formula

Treating the neck's air as a rigid mass and the cavity as adiabatic compression gives the classic result:

f0 = (c / 2*pi) * sqrt( A / (V * Leff) )
c    = speed of sound in air (~343 m/s at room temperature)
A    = cross-sectional area of the neck
V    = volume of the cavity
Leff = L + end-correction  (neck length, plus ~1.6*sqrt(A/pi) to account for air dragged along just outside each opening)

The end correction matters more than it looks: the oscillating air plug does not stop cleanly at the geometric mouth of the neck, it drags a bit of the surrounding open air along with it at each end, effectively lengthening the neck a little beyond its measured physical length. Skip this term and the predicted frequency for a short, wide neck (a bottle, a ported speaker cabinet) can be off by a large margin, because the correction is comparable in size to the physical neck length itself when the neck is short.

Notice what is not in the formula: the shape of the cavity, and the amplitude or waveform of your breath. Only the neck's area and effective length, and the cavity's volume, set the pitch — pour water into the bottle to shrink V and the pitch rises exactly as predicted, regardless of the bottle's shape.

Why blowing across the top excites it at all

Blowing steadily across an opening sheds a turbulent, unstable jet of air right at the neck — an edge tone, closely related to how a flute or a whistle is excited. This turbulence contains energy spread broadly across many frequencies. The Helmholtz cavity, like any resonator, responds strongly only to the narrow slice of that broadband noise that happens to sit at its own resonance frequency, and damps out everything else; the result is that a chaotic, broadband breath gets filtered down to one clean tone, the same principle by which any resonant cavity turns noise into a note.

From bottles to cars to concert halls

The identical physics governs an automotive muffler's resonator chamber, tuned to cancel a specific troublesome engine-noise frequency; a ported (bass-reflex) loudspeaker cabinet, where the cabinet volume and port dimensions are deliberately tuned as a Helmholtz resonator to reinforce low bass the driver alone could not produce efficiently; and architectural acoustic panels with an array of small holes backed by an air cavity, tuned to absorb a specific troublesome room resonance rather than deadening the whole spectrum. In every case the same three knobs — neck area, neck length, cavity volume — are the entire design space.

Frequently asked questions

Does the shape of the bottle change the pitch?

No, only its internal volume matters, along with the neck's cross-sectional area and effective length. Two very differently shaped bottles with the same neck and the same internal volume produce the same resonance frequency.

Why does the pitch rise when you pour water into the bottle?

Adding water reduces the cavity's air volume V. Since the resonance frequency is proportional to 1/sqrt(V), a smaller air volume raises the pitch, exactly as the Helmholtz formula predicts.

Why is the 'end correction' term necessary in the formula?

The oscillating air plug in the neck drags a small volume of air just outside each opening along with it, effectively behaving as if the neck were longer than its physical length. For short, wide necks this correction can be comparable to the physical neck length, so omitting it gives a noticeably wrong frequency.

Try it live

Everything above runs in your browser — open Helmholtz Resonator and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Helmholtz Resonator simulation

What did you find?

Add reproduction steps (optional)