📣

Acoustic Resonance Frequency Calculator

Calculate resonant frequencies for cylindrical tubes and cavities with three end conditions — open–open, open–closed, and closed–closed. Includes Levine–Schwinger end correction, 7 medium presets, and mode-shape diagrams for the first 10 harmonics.

Input

Common Tubes & Cavities

Result

Fundamental frequency (f₁)
Wavelength of f₁
Nearest note
Effective length (L_eff)
Sound speed (v)
Formulas
Open – Open: f_n = n · v / (2 · L_eff) ; L_eff = L + 2 · δ
Open – Closed: f_n = (2n − 1) · v / (4 · L_eff) ; L_eff = L + δ (odd harmonics only)
Closed – Closed: f_n = n · v / (2 · L) (no end correction)
End correction δ ≈ 0.6 · r (Levine–Schwinger, unflanged open end)

First 10 Resonant Modes

n Harmonic Frequency Wavelength Mode shape (pressure |envelope|)

About Tube & Cavity Resonance

A tube of length L filled with a fluid of sound speed v supports a discrete set of standing-wave resonances. The boundary conditions at each end — open (free air, pressure node) or closed (rigid wall, pressure antinode) — determine which harmonics are present and at what frequencies. This calculator covers the three classic cases plus the Levine–Schwinger end correction that all serious tube acoustics work needs.

Open – Open tube (e.g. flute, organ flue pipe)

Both ends are pressure nodes (open to atmosphere). Standing waves fit an integer number of half-wavelengths in the tube: L = n·λ/2, giving f_n = n·v/(2L). All integer harmonics are present: 1×, 2×, 3×, … the fundamental. The fundamental wavelength is twice the tube length.

Open – Closed tube (e.g. clarinet body, bottle, organ stopped pipe)

One open end (pressure node) and one closed end (pressure antinode). Standing waves fit an odd number of quarter-wavelengths: L = (2n−1)·λ/4, giving f_n = (2n−1)·v/(4L). Only odd harmonics exist: 1×, 3×, 5×, … the fundamental. The fundamental wavelength is four times the tube length — so a closed pipe sounds an octave lower than an open pipe of the same length. This is why the clarinet (effectively closed at the reed) overblows at 3× (a twelfth) rather than 2× (an octave) like the flute.

Closed – Closed tube (e.g. enclosed cavity, exhaust resonator)

Both ends are pressure antinodes (rigid walls). Same formula as open–open (f_n = n·v/(2L)) but with pressure nodes/antinodes swapped. No end correction applies — there's no open end to "see" beyond.

End correction (Levine–Schwinger, ~0.6·r)

An open end behaves as if the tube were slightly longer than its physical length. The air column "bulges" out beyond the rim a small distance — the end correction δ. For an unflanged circular open end, δ ≈ 0.6133·r (Levine & Schwinger 1948). For a flanged open end (e.g. a tube ending in a baffle), δ ≈ 0.85·r. This calculator uses the unflanged value. Without end correction, predicted frequencies are systematically too high — typically by a few percent for a typical instrument tube radius.

Frequently Asked Questions

Why does a closed pipe sound an octave lower than an open pipe of the same length?
A closed pipe has its fundamental at λ = 4L (quarter-wavelength fits in the tube), while an open pipe has its fundamental at λ = 2L (half-wavelength fits). Same v, so f_closed = v/(4L) and f_open = v/(2L) — closed is half the frequency = one octave down. A stopped organ pipe at 16 cm sounds at the same pitch as an open organ pipe at 32 cm. Builders use this to save space in the bass range.
Why does a clarinet overblow a twelfth instead of an octave?
The clarinet body acts as an open–closed tube — closed at the reed (pressure antinode), open at the bell (pressure node). Only odd harmonics are present, so the next available register after the fundamental is the 3rd harmonic (3 × f₁), not the 2nd. A twelfth (octave + fifth) is the 3rd harmonic interval, so overblowing jumps a twelfth. The flute, oboe, and saxophone all overblow an octave because they behave as open–open tubes (the conical bore of oboe/sax makes them behave that way despite physical closure at the reed).
How much does end correction change the frequency?
For an open–open tube with L=50 cm and r=2 cm, the bare-formula f₁ = v/(2L) = 343 m/s / 1.0 m = 343 Hz. With end correction, L_eff = 50 + 2×1.2 = 52.4 cm, so f₁ = 343/1.048 = 327 Hz. That's about a 5% drop — perceptually almost a semitone. For thinner tubes (r small relative to L), the correction matters less; for wide flutes or organ pipes it's substantial. Toggle the checkbox to compare.
Does this work in water or other fluids?
Yes. The math is purely v/L, where v is the sound speed in the medium. In fresh water v ≈ 1480 m/s (about 4.3× air), so a 50 cm tube filled with water resonates 4.3× higher than the same tube in air. This matters for marine acoustics, ultrasonic transducers, and pipe organs with non-air fills (rare, but tested). The end-correction factor is the same shape function (~0.6·r) but with much smaller absolute effect because λ is longer relative to r in dense media.
Why are there only odd harmonics for open–closed tubes?
A closed end forces the pressure to be a maximum (antinode), an open end forces it to be a minimum (node). The boundary conditions together force the standing wave to start at a node, end at an antinode, and fit cleanly between — which requires an odd number of quarter-wavelengths. Even multiples of f₁ can't satisfy these conditions because they'd put a node where there must be an antinode. This is why a stopped pipe's spectrum is "hollower" — it lacks the even-harmonic richness of an open pipe.
Where do real instruments deviate from these idealized formulas?
Many places. Tone holes, mouth-hole geometry, bell flare, internal taper (conical vs cylindrical bore), reed compliance, and player lip pressure all modify the effective acoustic length and which harmonics dominate. The Levine–Schwinger correction is an idealized rigid-walled unflanged termination — actual instruments need corrections of 0.6 r to 0.85 r depending on bell shape, plus a "register-hole" correction when you uncover holes. Use this calculator for first-order estimates and resonator design; for instrument design, you'll want NMM (network model) software like OpenWInD.