Pipe Length Calculator – Length of Open & Closed Pipes for a Resonant Frequency

Use this free Pipe Length Calculator to find how long an organ pipe, flute or tube must be to resonate at a chosen frequency — for both open pipes (open at both ends) and closed pipes (closed at one end).

open pipe: L = λ/2 closed pipe: L = λ/4

Formula

Open pipe L = v / (2f)  •  Closed pipe L = v / (4f)  •  the wavelength is λ = v / f in both cases

How to use

Worked example

How long must a pipe be to play 440 Hz with v = 343 m/s?
Open pipe: L = 343 / (2 × 440) = 0.39 m.
Closed pipe: L = 343 / (4 × 440) = 0.19 m.
A closed pipe needs only half the length of an open one for the same note.

FAQ

Why is a closed pipe half as long?
A closed end must be a node and the open end an antinode, so only a quarter of a wavelength fits in the pipe (L = λ/4). An open pipe fits half a wavelength (L = λ/2).

Can a closed pipe play even harmonics?
No. A closed pipe only resonates at odd multiples of its fundamental (f, 3f, 5f…), which is why a clarinet sounds "hollower" than a flute.

Is the real pipe exactly this length?
Slightly shorter in practice — the air just outside the open end also vibrates (the "end correction", about 0.6 × the pipe radius per open end). Makers trim the pipe a little to compensate.