Helmholtz Resonator Calculator — The Hum

Blow across a bottle and it sings one note — the air in the neck bouncing on the air in the body. Enter the cavity’s volume and the neck’s size, and this calculator returns that note’s frequency: the Helmholtz resonance behind ocarinas, bass traps, exhaust drone and the hum of an empty room’s vents.







A Mass on a Spring, Made of Air

The Helmholtz resonator is acoustics' simplest oscillator: the air in the neck moves as one plug (the mass), and the air in the cavity compresses and rarefies as one spring. Their ratio sets the note — f = (v ÷ 2π) √(A ÷ (V × Leff)) — where A is the neck's area, V the cavity's volume, Leff the neck's effective length and v the speed of sound. The model's charm is its scale blindness: the same line prices a wine bottle's hum, a concert hall's bass trap, a car's cabin drone and the intake silencer of an industrial compressor, because the oscillator has no parts to scale — only geometry. Helmholtz built banks of tuned brass resonators in the 1860s to analyse sound by ear, spectrum analysers made of exactly this formula; the calculator is his laboratory, arithmetised.

Worked Example: A Fifty-Litre Cavity

The defaults price a room-correction bass trap or a generous subwoofer port: V = 50 litres, a port of 10 cm diameter (A = 78.5 cm²) and 5 cm length. The end correction lengthens the neck to 5 + 0.85 × 10 = 13.5 cm of effective air plug, and f = (343 ÷ 2π) × √(0.00785 ÷ (0.05 × 0.135)) = 58.9 Hz — deep bass, the neighbourhood of the room modes and exhaust drones these devices are built to absorb. The note's scaling law is the design tool: halve the volume and the resonance climbs by √2 to about 83 Hz; double the port's area and it climbs by √2 as well. Every adjustment is a square root away, which is why resonator tuning is done in bold steps and trimmed with the neck length, the one nearly-linear knob.

The End Correction: Air Beyond the Tube

The formula's subtlety lives in Leff: the oscillating plug does not stop dead at the tube's ends — the air just outside each opening is entrained, moving with the plug and adding its inertia, which acoustics prices as an extra length of about 0.85 diameters for an unflanged opening (0.6 radii per end in the common bookkeeping). Ignoring the correction overstates the frequency by a musically obvious margin (in the worked example, using the bare 5 cm would claim 96 Hz against the honest 59) — the single most common error in hobbyist port calculations, and the reason this page states its convention in the widget's own note. Precision here is not pedantry: a bass trap mistuned by a third of an octave is furniture, not treatment.

The Car Cabin Hum, Deleted

One of this formula's best-paid jobs is invisible: at certain speeds many cars develop a booming drone when a rear window is cracked — the cabin is a Helmholtz resonator of some thousands of litres, the open window its neck, and the note (typically 15–20 Hz) is felt in the ears as pressure more than heard. Manufacturers now tune it away in development, reshaping the opening's aerodynamics or adding deflectors that spoil the neck plug's coherence — deliberate sabotage of the oscillator this page models. The calculator prices the family honestly at cabin scale only in spirit (its wavelength assumption strains at such volumes), but the mechanism it teaches is the very one the wind-tunnel team is paid to break.

The Sea in a Shell, Audited

The "ocean in a seashell" is this resonator with good marketing: the shell's cavity and aperture form a Helmholtz pair tuned somewhere in the low hundreds of hertz, and what it amplifies is the room's ambient noise at that frequency — broadband hush, sculpted into a band that the ear reads as surf. The calculator can nearly reproduce the trick: a shell's few tens of millilitres with a centimetre-scale opening price out, by this formula, in the same band your ear reports. The poetry survives the audit — the ocean you hear is real air in real resonance; only the attribution was romantic. Physics loses nothing by the correction: a formula that explains even the souvenirs is a formula in full possession of its subject.

Buildings That Hum

Ventilation shafts, lift wells and the gaps between tower blocks are this formula at civic scale: a courtyard volume with a narrow entrance is a Helmholtz cavity awaiting a breeze of the right rhythm, and more than one modern plaza has acquired an eerie moan that acoustic consultants traced, with this exact arithmetic, to a slot whose effective neck length nobody had priced. The remedies are the formula read backwards — widen the neck, partition the volume, spoil the coherence with absorbent lining — each a term of A, V or Leff adjusted until the note leaves the audible (or the annoying) band. The calculator's domestic numbers scale to architecture unchanged, which is either the formula's triumph or the architect's warning, depending on who ran it first.

Related Tools

More from the Physics Calculators hub: the Circular Motion Calculator — oscillation's rotational cousin — and the Velocity Calculator, since the speed of sound in this formula is a velocity with a famous value.

Frequently Asked Questions

Why does the pitch drop as a bottle empties out?

It rises, actually — the pub trick's direction is worth getting right: drinking the liquid shrinks the air cavity? No — drinking lowers the liquid, enlarging the air volume above it, and since f falls as V grows (f ∝ 1 ÷ √V), the note drops as the bottle empties and climbs as you fill it. The calculator verifies the intuition quantitatively: fill the worked example's cavity down to 25 litres of air and the note rises from 58.9 to about 83 Hz. Wind players and bottle-band percussionists tune by water level with this square root as their only sheet music.

What is a Helmholtz trap in a recording studio?

A sealed box with a tuned neck or porthole, placed where a room mode misbehaves: at its resonant frequency the trap's neck air oscillates violently and converts the mode's energy to heat through friction — a narrow, deep notch of absorption exactly where broadband foam is useless (foam cannot touch 59 Hz). Studios build them from this page's arithmetic, volume by the tens of litres, tuned to the measured room mode; cars carry the same device as the quarter-wave and Helmholtz chambers tee'd into intake and exhaust plumbing to delete a drone at one engine speed. The formula's career in noise control is as honourable as its career in music.

How accurate is the formula for odd shapes?

Surprisingly far: the model asks only that the cavity's dimensions be small against the wavelength (at 59 Hz the wavelength is 5.8 m, so almost any box qualifies) and that the neck be a distinct constriction. Spherical, cubical and wildly irregular cavities all obey while those hold, because the spring only cares about volume and the mass only about the neck. It fails gracefully at the edges — very large ports (the "neck" becomes the cavity), very long necks (the plug stops moving as one) — and the end-correction convention is where honest calculators declare their assumptions, as this one does in its note.

What about an ocarina or a flute — same physics?

The ocarina is a pure Helmholtz instrument: its pitch is set by cavity volume and the total area of open finger holes (the neck's A is the sum of whichever holes are uncovered), which is why ocarina fingering is about area, not position — a fact that astonishes flutists, whose instrument is a pipe resonator (length-priced, the hub's other acoustic family) where hole position rules. The calculator prices the ocarina family directly: enter the vessel's volume and the open holes' combined area as an equivalent diameter, and the note emerges. Two instrument families, two formulas, one page each in the acoustics wing of this hub.

Does temperature change the resonance much?

Through the speed of sound, yes: v rises about 0.6 m/s per degree Celsius, and f follows it proportionally (f ∝ v) — a trap tuned to 58.9 Hz at 20 °C sits near 60.5 Hz at 35 °C, a 3% wander that matters to precision absorbers and barely to bottles. The calculator standardises on 343 m/s (20 °C air); for hot exhaust applications the speed at temperature should be recomputed and the formula's other terms left alone — the geometry is temperature-stable, the medium is not, and the distinction is exactly the kind this hub exists to keep straight.

Who was Helmholtz?

Hermann von Helmholtz — physician, physicist, and the 19th century's one-man acoustics institute — published the resonator analysis in his 1863 On the Sensations of Tone, the book that put music's physics on a scientific footing (consonance, timbre and temperament all pass through it). His resonator bank analysed complex tones by sympathetic resonance decades before electronics, each brass sphere a single-frequency detector tuned by this page's formula. That the same arithmetic now sizes subwoofer ports and silences SUV drone is the standard afterlife of a great formula: it leaves the laboratory and takes work wherever oscillation needs pricing.