The frequency of the first harmonic in the pipe is

and the speed of sound in the pipe is

So the wavelength of the first harmonic in the pipe is

For a closed-end pipe, the wavelength of the first harmonic is four times the length of the pipe:

Therefore, the length of the pipe is
