Advertisement
Advertisement
PHYSICS

Helmholtz Resonator Calculator — cavity resonant frequency

Work out the resonant frequency of any Helmholtz resonator from its cavity volume, neck area and neck length, with the end correction that a bare geometric length always leaves out.

Volume is the enclosed air space, not the container's outside size. Neck diameter is the internal bore of the opening; a non-circular opening should be entered as the diameter of a circle with the same area.
Geometric length of the tube only. A plain hole in a thin wall has a length near zero, and the end correction below is then the whole of the effective length.
Air just outside each end is dragged along with the plug in the neck, so the neck behaves as if it were longer than it is. Ignoring this is the single biggest source of error in the whole calculation.
Both defaults describe dry air near twenty degrees Celsius. Sound speed rises roughly 0.6 m/s per degree, and the frequency follows it directly.
Resonant frequency
 
 
0
Effective neck length
0
Wavelength at resonance
0
Air mass in the neck
0
Wavelength ÷ cavity size
Tip: a Helmholtz resonator is a mass on a spring. The air in the neck is the mass, the air in the cavity is the spring, and the frequency depends only on those two. The shape of the cavity does not matter at all, provided it is small compared with the wavelength.
Advertisement

The Helmholtz resonator calculator above gives the resonant frequency of a cavity connected to the outside world through a short neck. Blow across a bottle and you hear it; that note is a Helmholtz resonance, and it is set by three numbers only — the volume of air in the cavity, the cross-sectional area of the neck and the effective length of the neck. Nothing about the shape of the bottle enters into it.

Arb Digital publishes free physics calculators that each own one job. This page owns the general resonator, whatever it is made of and whatever it is for: a bottle, a guitar body, a subwoofer cabinet, a perforated absorber in a studio wall, a duct silencer, an intake tract. The live speaker port length calculator owns the loudspeaker application of the same relation, and it runs the algebra the other way: you give it a box volume and a target tuning frequency and it returns the port length you must cut, with a port air-velocity check for chuffing. If you are building a vented enclosure, use that page. If you have a cavity and want to know what note it sounds at, use this one.

What This Helmholtz Resonator Calculator Does

It computes the resonant frequency, and it does the part that most quick calculations skip: the end correction. The plug of air that oscillates in the neck is not confined to the neck. Air just outside each opening is dragged along with it, which adds to the moving mass and lowers the frequency. The correction is proportional to the neck radius, and for a short neck it can easily exceed the physical length.

Alongside the frequency the tool reports the effective neck length it actually used, the wavelength at resonance, the mass of air oscillating in the neck, and a validity ratio comparing that wavelength with the cavity's own size. That last figure matters more than it looks: the whole lumped mass-spring model only holds while the cavity is acoustically small, and the ratio tells you whether you are still inside that assumption.

Multiple identical necks are handled as well, since arrays of holes are how perforated absorbers and many silencers are built. Adding necks adds area and raises the frequency.

How to Use It

  1. Enter the enclosed air volume. Litres are convenient; one litre is 0.001 cubic metres. Use the internal volume, and subtract anything solid sitting inside it.
  2. Enter the internal bore of the neck. For a non-circular opening, enter the diameter of a circle with the same area, which the surface area calculator will help you find.
  3. Enter the geometric neck length. Zero is legitimate: a hole drilled in a thin panel has essentially no neck, and the end correction supplies the entire effective length.
  4. Choose the end correction that matches your geometry. A neck opening onto a large flat surface is flanged; one sticking out into free air is not.
  5. Check the wavelength-to-cavity ratio. Below about five the lumped model is losing its grip and the answer should be treated as indicative only.

The Formula: How Helmholtz Resonance Is Calculated

The resonant frequency of a Helmholtz resonator is

f = (c ÷ 2π) × √(S ÷ VLeff)

where c is the speed of sound, S the neck cross-sectional area, V the cavity volume and Leff the effective neck length. The University of New South Wales physics page on Helmholtz resonance derives it from the mass-spring picture and gives the end correction guidance this tool implements: about 0.6 times the radius at a free outside end and about one radius at an end opening into the cavity, and about 0.85 times the radius at each end of a flanged hole such as a guitar sound hole, giving roughly 1.7 radii in total. Georgia State University's HyperPhysics page on cavity resonance presents the same quantitative expression, and the UNSW basics in music acoustics index puts it in the wider context of how instrument bodies resonate.

The effective length is Leff = L + k r, where r is the neck radius and k is the end-correction factor from the selector. With n identical necks, the area used is nS.

Work the defaults by hand. A two-litre cavity is 0.002 m³. A 30 mm neck has a radius of 0.015 m and an area of π × 0.015² = 7.0686 × 10−4 m². The geometric neck length is 0.05 m, and with both ends flanged the correction is 1.7 × 0.015 = 0.0255 m, so the effective length is 0.0755 m. Then S ÷ VLeff = 7.0686 × 10−4 ÷ (0.002 × 0.0755) = 4.6812, whose square root is 2.1636. Multiply by 343 ÷ 2π = 54.590 and the frequency is 118.1 Hz. The wavelength there is 343 ÷ 118.1 = 2.904 m, and the oscillating air mass is 1.204 × 7.0686 × 10−4 × 0.0755 = 6.42 × 10−5 kg, or 0.064 grams.

Advertisement

The End Correction Is Not A Refinement

People often treat the end correction as a small polish on a mostly-correct answer. In this geometry it frequently dominates. The correction is 1.7 times the neck radius for a flanged hole, which for a 30 mm neck is 25.5 mm — half again as much as a 50 mm neck and infinitely more than a hole in sheet metal.

Run the defaults with the correction switched off and the effective length drops from 75.5 mm to 50 mm. Frequency goes as one over the square root of the length, so the predicted note rises by a factor of √(75.5/50) = 1.229, from 118 Hz to 145 Hz. That is more than three semitones, which is not a rounding error in any context where the number matters.

For a plain hole in a thin panel the situation is starker still: the geometric length is essentially zero, so without a correction the formula predicts an infinite frequency. Perforated panel absorbers are exactly this case, and their tuning is entirely governed by the correction term. The frequency and period calculator and the note frequency converter are useful for turning the result into a period or a musical pitch.

Why The Cavity Shape Does Not Matter

Only the volume appears in the formula, not the shape, and this surprises people. A two-litre sphere, a two-litre cube and a two-litre irregular blob with the same neck all resonate at the same frequency. The reason is that the cavity is acting purely as a spring: the air inside is being compressed and rarefied more or less uniformly, and how much pressure a given displacement produces depends on how much air there is, not on how it is arranged.

That uniformity is exactly the assumption behind the model, and it is why the wavelength-to-cavity-size ratio in the results matters. At 118 Hz the wavelength is 2.9 metres and the cavity is about 13 centimetres across, a ratio above twenty, so the pressure really is essentially uniform throughout. Shrink the wavelength or grow the cavity until the ratio falls towards two or three and the air inside can no longer be treated as a single spring; standing waves appear in the cavity and the lumped model stops describing what happens.

This is the boundary between Helmholtz resonance and ordinary pipe or room resonance. A long tube open at one end resonates at a quarter wavelength and its frequency depends on its length; a Helmholtz resonator does not resonate at any wavelength related to its own size. The wavelength calculator and the speed of sound calculator handle the wave side of that comparison.

Sharpness, Damping And Real Absorbers

This page gives the frequency, not the bandwidth, and for many applications the bandwidth is the point. An undamped Helmholtz resonator has a high quality factor: it responds strongly over a narrow band and does almost nothing outside it. That is useful when you have a single tone to attack and useless when you have a broad rumble.

Acoustic absorbers therefore add loss on purpose, usually by placing fabric or mineral wool across the neck or inside the cavity. The damping broadens the response and lowers the peak absorption, trading depth for coverage. It also shifts the resonance slightly downward, so a measured absorber rarely peaks exactly where the undamped formula predicts.

Temperature is the other practical variable. Sound speed in air rises about 0.6 metres per second per degree Celsius, and frequency is directly proportional to it, so a resonator tuned in a cold workshop will sit a little sharp in a warm room. Around a 1.7 per cent shift per ten degrees is the rough scale, which is about a quarter of a semitone. The sound attenuation calculator and the sound level converter cover the level side of acoustic work.

Need a website that loads fast and actually works?

Arb Digital builds free tools like this one because useful pages earn attention. If you want tools, calculators or content built for your own audience, we can help.

Browse All Free Tools Talk to Arb Digital

Common Mistakes to Avoid

  • Omitting the end correction — it is comparable to the neck length in most real resonators and larger than it in a thin panel, so leaving it out puts the answer several semitones sharp.
  • Using the container's outside volume — only the enclosed air acts as the spring. Anything solid inside the cavity reduces the effective volume and raises the frequency.
  • Assuming the cavity shape changes the note — it does not, as long as the cavity is small compared with the wavelength. Only the volume enters the formula.
  • Applying the model to a large cavity or a high frequency — once the wavelength is no longer much bigger than the cavity, standing waves form inside and the lumped mass-spring picture fails.
  • Expecting the undamped frequency from a damped absorber — adding fabric or wool broadens the response and shifts the peak slightly downward, so a measurement will not match this figure exactly.

Related Free Tools From Arb Digital

For the loudspeaker version of this relation, where you know the tuning and want the port length, use the speaker port length calculator. The speed of sound calculator supplies the sound speed for your temperature, the wavelength calculator converts frequency to wavelength, and the frequency and period calculator gives the period. Use the note frequency converter to turn the result into a musical pitch, the LC resonant frequency calculator for the exact electrical analogue of a mass on a spring, and the sound attenuation calculator or sound level converter for level work. Everything Arb Digital publishes is on the free online tools hub.

Frequently Asked Questions

What is a Helmholtz resonator?

It is a cavity of air connected to the outside through a short neck, which behaves as a mass on a spring. The air in the neck is the mass and the air in the cavity is the spring, and together they resonate at one frequency set by the volume, the neck area and the neck's effective length.

What is the Helmholtz resonance formula?

The frequency equals the speed of sound divided by two pi, multiplied by the square root of the neck area divided by the product of cavity volume and effective neck length. The effective length is the geometric length plus an end correction proportional to the neck radius.

Why does the neck need an end correction?

Because the oscillating plug of air extends beyond the tube at both ends. Air just outside each opening is dragged along with the plug, adding to the moving mass, so the neck behaves as if it were longer. The correction is roughly 0.85 radii at each flanged end.

Does the shape of the cavity matter?

No, only its volume. The cavity acts purely as a spring, and how much pressure a given displacement produces depends on how much air is enclosed rather than how it is arranged. This holds as long as the cavity is small compared with the wavelength.

What happens if the neck length is zero?

A plain hole in a thin panel has essentially no neck, so the entire effective length comes from the end correction. Without that correction the formula would predict an infinite frequency, which is why perforated panel absorbers are governed almost completely by the correction term.

How does temperature change the frequency?

Frequency is directly proportional to the speed of sound, which rises by roughly 0.6 metres per second per degree Celsius. That works out at about 1.7 per cent per ten degrees, or roughly a quarter of a semitone, so a resonator tuned cold will sit slightly sharp when warm.

Does adding more holes raise or lower the frequency?

It raises it. More necks mean more total area, and frequency rises with the square root of area, so doubling the number of identical holes multiplies the frequency by about 1.41 provided the holes stay far enough apart not to interact.

When does this model stop working?

When the cavity is no longer acoustically small. Once the wavelength at resonance is only a few times the cavity's own dimension, standing waves form inside and the air can no longer be treated as a single uniform spring, so the lumped mass-spring result stops describing the behaviour.

This tool is provided for educational and study use. It implements the undamped lumped-element Helmholtz relation with a radius-proportional end correction, and it does not model damping, viscous or thermal losses at the neck wall, interaction between closely spaced holes, or cavity standing waves, so treat its output as a physics result rather than a measured or design-grade value.

Advertisement
Advertisement

Take it further

Need something more advanced? Try the free AI Website Audit & Keyword Research tools, or browse our free WordPress plugins.