Helmholtz Resonator Simulator Back
Acoustics Simulator

Helmholtz Resonator Simulator — Acoustic Resonance

Compute the Helmholtz resonant frequency in real time from cavity volume, neck diameter, neck length, and sound speed. The same physics behind the tone of a blown bottle, mufflers, and bass-reflex speaker ports.

Parameters
Cavity volume V
L
Neck diameter d_n
mm
Neck length L
mm
Sound speed c
m/s

The end correction assumes flanged ends (L_eff = L + 1.7 r). The model is valid in the long-wavelength limit f < c / (2 pi d_n).

Results
Resonant frequency f_H
Effective neck length L_eff
Resonant wavelength λ
Period T
Helmholtz resonator schematic

Bottom: cavity of volume V / Top: neck of cross-section A and geometric length L / Arrow: oscillating air slug in the neck / Yellow labels: current resonant frequency and parameters

Cavity volume V vs resonant frequency f_H

X = V [L] (log) / Y = f [Hz] (log) / f proportional to 1 / sqrt(V), slope -1/2 line (yellow dot = current value)

Theory & Key Formulas

A Helmholtz resonator is a lumped acoustic system of a closed cavity (volume V) connected to a short neck (cross-section A, geometric length L). The air slug in the neck acts as the mass, the cavity air as the spring, producing a sharp resonance.

Resonant frequency (with end correction):

$$f_H = \frac{c}{2\pi}\sqrt{\frac{A}{V\,L_{\mathrm{eff}}}},\qquad A = \pi r_n^{2}$$

Effective neck length for flanged ends:

$$L_{\mathrm{eff}} = L + 1.7\,r_n$$

Wavelength and period at resonance:

$$\lambda_H = \frac{c}{f_H},\qquad T_H = \frac{1}{f_H}$$

Here $V$ is the cavity volume [m^3], $L$ the geometric neck length [m], $r_n$ the neck radius [m], $A$ the neck cross-section [m^2], and $c$ the speed of sound in air [m/s]. For air at 20 C, $c \approx 343$ m/s and $\rho \approx 1.2$ kg/m^3.

What is the Helmholtz Resonator Simulator?

🙋
When you blow across the mouth of a juice bottle you get a low "boooop" tone. What is actually vibrating?
🎓
That is a Helmholtz resonance. The slug of air in the bottle neck acts as the mass, and the air inside the bottle acts as a spring, oscillating like a spring-mass system. The formula is $f_H = (c/2\pi)\sqrt{A/(V\,L_{\mathrm{eff}})}$. With the defaults V=1 L, neck diameter 20 mm, neck length 50 mm, c=343 m/s, you get about 118 Hz — right in the bass range of a loudspeaker.
🙋
Why does a bigger bottle give a lower note? It feels like bigger should be higher.
🎓
Counterintuitive, right? In a spring-mass system "softer spring means slower oscillation, lower frequency." Increasing V makes the cavity-air spring weaker (k proportional to 1/V), so the resonance drops. Specifically f is proportional to 1/sqrt(V), which on the log-log plot on the right shows up as a straight line of slope -1/2. Slide V from 1 L to 100 L in the simulator — the frequency drops by roughly a factor of 10.
🙋
It says the "effective" neck length is longer than the geometric one. What does that mean?
🎓
It is called the end correction. At each end of the neck, the air just outside is dragged along with the slug, so the oscillating air column behaves as if it were slightly longer than the geometric L. For flanged openings the standard correction is 0.85 r per end, about 1.7 r total. With the default neck radius r=10 mm, that adds 17 mm: L_eff = 50 + 17 = 67 mm. Forget the correction and you overestimate the resonant frequency by 14% — a critical error in muffler design.
🙋
So where does Helmholtz resonance show up in real life?
🎓
All over. The bass-reflex port on a loudspeaker deliberately uses Helmholtz resonance to boost the low end. A car muffler embeds Helmholtz chambers tuned to absorb specific exhaust harmonics. In architectural acoustics, "resonance absorbers" suppress unwanted room modes at chosen frequencies. Even ocarinas and Japanese shinobue flutes are essentially Helmholtz resonators. As you slide V, you cover everything from juice bottles (a few hundred mL) through wine cellars (tens of L) up to room-sized cavities (a few cubic meters).

Frequently Asked Questions

The Helmholtz approximation is valid in the long-wavelength limit, when the resonant wavelength lambda is much larger than the cavity dimensions (lambda much greater than V^(1/3) and d_n). In that regime the cavity air can be treated as a uniformly compressed/expanded volume so the pressure variation inside is negligible, and the air slug in the neck moves rigidly back and forth rather than as a propagating wave. With the defaults V=1 L and d_n=20 mm, lambda is 2.9 m while V^(1/3) is 10 cm and d_n is 2 cm, so the approximation is excellent. Make V very large and lambda will approach the cavity size; the lumped model then breaks down and you need a full wave-equation modal analysis instead.
This tool only computes the loss-less resonant frequency. The actual Q (sharpness of the peak) is set by three loss channels: (1) viscous loss on the neck wall, (2) radiation loss out of the open end, and (3) absorption on the cavity walls. For rigid bottles or metal mufflers Q is typically 30 to 100, giving a sharp peak a few to a few tens of Hz wide. Stuff felt or porous material into the opening and the radiation loss rises, dropping Q to 2 to 5 — useful as a broadband absorber. In bass-reflex speaker design, minimizing neck friction to keep Q high is the key to strong low-end output.
In leading order only the cross-sectional area A matters, so for rectangular or elliptical necks you can plug A directly into the formula and get a good approximation. The end correction 0.85 r is shape-dependent though — you should use an effective radius based on equal area. For long thin slits the viscous boundary layer further increases the effective length. The tool assumes a circular neck, but you can use it for non-circular cross sections as a first-order estimate by setting $r_n = \sqrt{A/\pi}$.
Coupling two or more resonators in series or parallel produces a coupled-oscillator system with two or more peaks near the individual resonances. Automotive mufflers chain multiple chambers and pipes to attack specific engine harmonics. The whole thing is exactly equivalent to series/parallel LC circuits in electrical engineering and can be analyzed as a one-port or two-port acoustic-impedance network. This tool only handles a single resonator, but its output is the building block for the equivalent-circuit simulations used in muffler and exhaust design.

Real-World Applications

Automotive mufflers (silencers): Engine exhaust noise contains strong harmonics at tens to hundreds of Hz. Embedding Helmholtz chambers tuned to those harmonics inside the muffler strongly attenuates exactly those frequencies through resonant absorption. Modern passenger-car mufflers usually chain several such chambers to cover a wide band — the so-called multi-chamber muffler.

Loudspeaker bass-reflex ports: A sealed-box speaker drilled with a cylindrical port (duct) on the front face is called a bass-reflex enclosure. That is exactly a Helmholtz resonator: the port + box volume sets the resonant frequency, and at that frequency the port reinforces the cone motion, lifting the low-end efficiency by 6 to 10 dB. The designer aims f_H near the driver's resonant frequency f_s and tunes the port diameter and length. The formula in this tool is the standard starting point for bass-reflex design.

Architectural acoustics and room absorbers: Concert halls and recording studios sometimes need to selectively absorb specific low-frequency room modes (the "booming" frequencies excited by the room geometry). Perforated wood panels backed by an air gap and rectangular slit absorbers are both Helmholtz-resonator devices. The tool gives a first cut at the dimensions for the target frequency.

Musical instruments — ocarinas, transverse flutes, bottle whistles: The ocarina is essentially a pure Helmholtz resonator, and you change the pitch by opening or closing finger holes that change the effective neck area A. A "bottle whistle" works the same way — pour water in to reduce V and the pitch goes up. Concert flutes and shinobue are mainly tube resonators, but the lip plate and internal cavity also include a Helmholtz-like component.

Common Misconceptions and Pitfalls

The most common misconception is that "a bigger cavity should give a higher pitch." In a spring-mass picture you might expect "stiffer/heavier means faster oscillation," but Helmholtz resonance has bigger V mean softer spring, so the oscillation slows down. Slide V from 0.01 L to 100 L in the tool and the resonant frequency drops smoothly from about 1100 Hz to 12 Hz — that single cavity covers from low piano to high violin range, with slope -1/2 on the log-log plot.

The next pitfall is to forget the end-correction term. The shorter the neck (L < r_n), the more the end correction dominates. With L=10 mm and r_n=10 mm, the ratio L_eff/L is about 2.7 — almost a factor of 3. A neck reduced to a thin "hole" leaves only the 1.7 r correction term, which is the standard model for perforated-panel absorbers. The tool returns a finite resonant frequency even at L=0 thanks to the correction term alone.

Finally, do not consider the design done after computing the resonant frequency only. Real acoustic response depends on the resonant frequency f_H, the Q factor (peak width), and the resonance strength (coupling efficiency to the input pressure) in equal measure. Because this tool computes a loss-less f_H, in real hardware viscous and radiation losses lower Q and broaden the peak. Muffler and absorber design always need either measurement or an electrical-circuit analog that includes acoustic impedance for verification. Treat the simulator as a first-cut estimate and validate experimentally.