This calculator estimates the resonant frequency of a simple Helmholtz resonator: an enclosed air cavity with a neck or port. Typical examples include blowing across the top of a bottle, the bass-reflex port on a loudspeaker box, or a side branch cavity used for noise control in ducts and exhaust systems. By entering the neck diameter, neck length, cavity volume, and speed of sound, you can predict the main resonance frequency in hertz (Hz).
The tool is aimed at audio hobbyists, loudspeaker designers, acoustic engineers, and students who want a quick way to connect geometry (dimensions and volume) to the sound that a cavity will naturally emphasize or suppress.
A Helmholtz resonator behaves like a mass on a spring. The air in the neck acts as an oscillating mass, while the air trapped in the cavity behaves like a spring that is compressed and expanded. When the system is excited near its natural frequency, the air in the neck moves strongly in and out, creating a clear tonal response.
When you blow across a bottle, turbulent airflow at the mouth perturbs the air in the neck. If that excitation contains energy at or near the resonant frequency, the bottle “sings” loudly at that pitch. The same physical principle is used deliberately in devices that either enhance certain frequencies (like speaker ports that boost bass) or attenuate unwanted tones (like side-branch resonators in exhaust systems).
The fundamental approximation for the resonance frequency of a simple Helmholtz resonator is:
where:
The calculator assumes a circular neck, so the area is computed from the radius r as:
A = π r2
Because air motion at the open ends of the neck extends slightly beyond the physical tube, the effective length L is a bit longer than the measured neck length. A common approximation for a neck with one free end and one flush end is:
L = Lphysical + 1.6r
This basic model gives surprisingly accurate predictions for many practical bottle, port, and cavity designs, especially when the neck is not extremely wide or short compared to its diameter.
The input fields in the calculator use convenient laboratory and workshop units, while the formula itself is evaluated in SI base units. Internally, the following conversions are applied:
r = (diameter / 2) / 100.Lphysical = length / 100.V = volume × 1×10-3.The result is the resonant frequency in hertz, i.e., cycles per second. For example, a value of 100 Hz means the air in the neck and cavity completes 100 oscillations every second at resonance.
Follow these steps to estimate the resonance of your bottle, speaker port, or cavity:
c ≈ 331 + 0.6 × T (m/s), where T is air temperature in °C.The output frequency tells you the single dominant Helmholtz resonance of the neck-cavity system, under the simplifying assumptions listed below. You can use it in several ways:
Keep in mind that many practical systems have additional resonances (for example, standing waves inside a long box, or vibration modes of the walls). The Helmholtz frequency describes only the specific “breathing” mode of the neck and cavity, not every possible resonance in the system.
Suppose you have a small bottle and want to estimate its resonance when you blow across the opening. You measure:
Step 1: Convert units.
r = (2.0 / 2) / 100 = 0.01 mLphysical = 2.5 / 100 = 0.025 mV = 0.75 × 10-3 = 7.5 × 10-4 m3Step 2: Compute neck area and effective length.
A = π r2 = π × (0.01)2 ≈ 3.14 × 10-4 m2L = Lphysical + 1.6r = 0.025 + 1.6 × 0.01 = 0.041 mStep 3: Plug into the Helmholtz formula.
First compute the ratio inside the square root:
A / (V × L) ≈ (3.14 × 10-4) / [(7.5 × 10-4) × 0.041]
The denominator is approximately 3.075 × 10-5, so:
A / (V × L) ≈ (3.14 × 10-4) / (3.075 × 10-5) ≈ 10.2
The square root is then √(10.2) ≈ 3.19.
Now compute the prefactor c / (2π):
c / (2π) ≈ 343 / (6.283) ≈ 54.6
Finally:
f ≈ 54.6 × 3.19 ≈ 174 Hz
The bottle should strongly resonate at around 170–180 Hz. A quick experiment with a microphone and spectrum app would typically show a peak in this range.
The formula shows how each parameter influences the resonance:
This makes intuitive sense: a large, deep bottle with a long narrow neck sounds lower in pitch than a small, squat bottle with a wide opening.
The table below summarizes how different neck and cavity combinations lead to different resonance frequencies (assuming c = 343 m/s and including a simple end correction):
| Scenario | Neck diameter (cm) | Neck length (cm) | Cavity volume (L) | Approx. frequency (Hz) |
|---|---|---|---|---|
| Small bottle or lab vial | 2 | 2 | 0.5 | ~180 |
| Medium bottle or small speaker port | 3 | 3 | 1.0 | ~150 |
| Speaker port on compact subwoofer | 4 | 2 | 3.0 | ~100 |
| Large cavity for low-frequency tuning | 5 | 5 | 10 | ~60 |
Use this as a guide to sanity-check your design. If you intend to tune a loudspeaker to 40 Hz but your inputs look more like the first row, you are probably using the wrong volume or port dimensions.
This calculator uses a simplified Helmholtz model that is appropriate for many educational and design tasks, but it has important limitations:
Because of these assumptions, the computed frequency should be treated as an estimate rather than an exact prediction. In high-stakes engineering applications, it is good practice to verify results with measurements or more detailed simulations.
For simple bottle-like shapes, straight speaker ports, and reasonably rigid cavities, the estimate is often within a few percent of measured values. More complex geometries, large flares, or strong damping can introduce larger discrepancies. Use the results as a design guide and confirm important designs experimentally.
Increasing neck length lowers the resonance, while increasing neck diameter raises it. If you want to move the resonance down without changing the box volume, you can usually lengthen the port or narrow it (within practical limits for airflow and noise).
The formula itself is general, but the default speed of sound value is for air. For other gases, you would need to enter the appropriate speed of sound. For water-filled cavities or systems dominated by liquid motion, very different models apply, so this calculator would not be suitable.
In most everyday situations the orientation (upright, sideways, etc.) has little effect on the Helmholtz resonance, as long as the neck remains open and the cavity is filled with air. Orientation can matter if liquid partially fills the cavity or if gravity significantly alters the boundary conditions at the opening.