Calculate Wavelength for Open and Closed Pipe Resonance
Use this premium acoustics calculator to find wavelength, resonant frequency, harmonic order, effective pipe mode, and temperature-adjusted sound speed for open pipes, closed pipes, and custom resonance studies.
Pipe Wavelength Calculator
Expert Guide: How to Calculate Wavelength in Open and Closed Pipes
When people search for how to calculate wavelength open closed pipe, they are usually trying to solve one of two physics problems. The first is a direct wave question: if the frequency of sound is known, what is the wavelength in air? The second is a resonance question: if a pipe has a given length and boundary condition, which wavelengths fit inside it, and what frequencies do those wavelengths produce? These are related ideas, but they are not identical. A wavelength is a property of the wave in the medium. Resonance conditions describe which wavelengths can exist as standing waves in a pipe of a certain length.
In acoustics, standing waves form because reflected sound waves interfere with incoming waves. The pattern depends on whether the end of the pipe behaves like an open end or a closed end. Open ends act approximately as displacement antinodes and pressure nodes. Closed ends act as displacement nodes and pressure antinodes. That simple difference changes the allowed resonant wavelengths dramatically. Once you understand that geometry, the formulas become easy to use and the physical meaning becomes much clearer.
Basic wavelength formula
The general equation for a wave is:
λ = v / f
- λ is the wavelength in meters
- v is the speed of sound in the medium, in meters per second
- f is the frequency in hertz
For dry air near room temperature, the speed of sound is often approximated as 343 m/s at 20 degrees Celsius. A more temperature sensitive expression is v = 331.3 + 0.606T, where T is in degrees Celsius. This matters because a warmer room slightly raises the speed of sound, which slightly increases wavelength at the same frequency.
Open pipe resonance formula
An open pipe has both ends open. In the simplest model, the pipe supports standing waves where an integer number of half wavelengths fits inside the effective length of the pipe:
L = nλ / 2, where n = 1, 2, 3, 4, …
Solving for wavelength gives:
λ = 2L / n
The corresponding resonant frequencies are:
fn = nv / 2L
This means open pipes support the full harmonic series. If the fundamental is f, then the next resonances occur at 2f, 3f, 4f, and so on. This behavior is one reason open cylindrical air columns have a harmonic structure that is easier to connect to many musical instruments and textbook wave diagrams.
Closed pipe resonance formula
A pipe that is closed at one end and open at the other has a different standing wave pattern. The closed end must be a displacement node and the open end a displacement antinode. The smallest pattern that fits is a quarter of a wavelength, not a half wavelength. The allowed resonance condition becomes:
L = nλ / 4, where n = 1, 3, 5, 7, …
Only odd harmonic indices are valid in the ideal model. Solving for wavelength gives:
λ = 4L / n, with n odd
The resonant frequencies are:
fn = nv / 4L, with n odd
This means a closed pipe does not support the even harmonics in the ideal approximation. If the fundamental is f, the next resonances occur at 3f, 5f, 7f, and so on. That missing even series strongly affects timbre, instrument design, and the shape of resonance peaks in laboratory demonstrations.
Why effective length matters
In real acoustics, the pressure node is not located exactly at the physical end of an open pipe. The standing wave extends a short distance beyond the opening, so the pipe acts slightly longer than its measured length. This is called end correction. A common first approximation is about 0.6r per open end, where r is the pipe radius. For an open-open pipe, the total correction is roughly 1.2r. For an open-closed pipe, there is one open end, so the total correction is roughly 0.6r. The calculator above includes this as an optional simplified adjustment.
Step by step method to calculate wavelength in a pipe
- Identify the pipe type: open-open or open-closed.
- Measure or enter the physical length of the pipe.
- Decide whether to apply end correction using the pipe radius.
- Determine the harmonic number. For open pipes use 1, 2, 3, 4, … . For closed pipes use 1, 3, 5, 7, … .
- Use the correct resonance equation to find wavelength.
- Use the temperature adjusted sound speed to convert between wavelength and frequency if needed.
Worked example: open pipe
Suppose an open pipe has a length of 0.85 m at 20 degrees Celsius. With no end correction, the fundamental wavelength is:
λ = 2L = 2(0.85) = 1.70 m
If the speed of sound is about 343.4 m/s, the fundamental frequency is:
f = v / λ = 343.4 / 1.70 ≈ 202.0 Hz
The second harmonic has wavelength 0.85 m and frequency about 404 Hz. The third harmonic has wavelength about 0.567 m and frequency about 606 Hz.
Worked example: closed pipe
Now consider the same 0.85 m pipe but closed at one end. The fundamental standing wave occupies one quarter wavelength in the pipe, so:
λ = 4L = 4(0.85) = 3.40 m
At 20 degrees Celsius, the fundamental frequency becomes:
f = 343.4 / 3.40 ≈ 101.0 Hz
The next allowed resonance is the third harmonic, not the second. Its wavelength is:
λ = 4L / 3 = 1.133 m
Its frequency is about 303 Hz. The fifth harmonic would occur near 505 Hz.
| Pipe length | Pipe type | Mode index | Resonant wavelength | Approx. frequency at 20 degrees C |
|---|---|---|---|---|
| 0.85 m | Open-open | 1 | 1.70 m | 202.0 Hz |
| 0.85 m | Open-open | 2 | 0.85 m | 404.0 Hz |
| 0.85 m | Open-open | 3 | 0.567 m | 606.0 Hz |
| 0.85 m | Open-closed | 1 | 3.40 m | 101.0 Hz |
| 0.85 m | Open-closed | 3 | 1.133 m | 303.0 Hz |
| 0.85 m | Open-closed | 5 | 0.680 m | 505.0 Hz |
Open versus closed pipe comparison
The most important comparison point is not just the formula, but what the formula implies. Open pipes resonate at frequencies spaced by the entire harmonic series. Closed pipes resonate at odd multiples only. For the same physical length, a closed pipe has a lower fundamental than an open pipe because its fundamental wavelength is twice as long. That is why a stopped organ pipe can produce a lower pitch than an open pipe of the same length.
| Feature | Open-open pipe | Open-closed pipe |
|---|---|---|
| Boundary pattern | Antinode at both ends | Node at closed end, antinode at open end |
| Fundamental relation | L = λ/2 | L = λ/4 |
| Fundamental wavelength for same L | 2L | 4L |
| Allowed harmonics | 1, 2, 3, 4, … | 1, 3, 5, 7, … |
| Fundamental frequency for same L | v / 2L | v / 4L |
| Typical musical implication | Full harmonic series | Odd harmonic emphasis |
Common mistakes students make
- Using the direct wave formula λ = v / f without checking whether the question is actually asking about a resonant mode of a pipe.
- Forgetting that closed pipes use only odd harmonic indices in the ideal model.
- Using room temperature 343 m/s automatically even when a different temperature is given.
- Confusing diameter and radius when applying end correction.
- Mixing units such as centimeters for length and meters per second for sound speed.
Real statistics and measured values relevant to pipe calculations
Accurate wavelength calculations depend on realistic sound speed data. A standard educational approximation is 343 m/s at 20 degrees Celsius, but laboratory values vary with temperature, humidity, and gas composition. The U.S. National Institute of Standards and Technology and multiple university physics departments publish values near 331 m/s at 0 degrees Celsius and about 343 m/s at 20 degrees Celsius for dry air at atmospheric pressure. That increase of roughly 12 m/s across a 20 degree range changes wavelength by around 3.6% at fixed frequency, which is large enough to matter in classroom experiments, tuning studies, and precision acoustics.
Likewise, introductory physics labs at universities often report measurable end correction on the order of 0.3r to 0.8r per open end depending on geometry and method, with 0.6r used as a common approximation for cylindrical tubes. That means a pipe with radius 1.5 cm can gain an effective extra length of about 0.9 cm per open end. For a short tube, this is not negligible. The correction can noticeably shift the predicted resonant frequencies compared with a simple ideal model.
When to use direct frequency to wavelength conversion
If you already know the frequency of a sound wave in air and simply want its wavelength, use λ = v / f. For example, an A4 tone at 440 Hz in air at 20 degrees Celsius has a wavelength of about 343.4 / 440 = 0.780 m. This number is true regardless of whether the sound comes from a tuning fork, loudspeaker, flute, or organ pipe. However, if you want to know whether that wavelength corresponds to a standing wave in a specific pipe, you must compare it with the pipe resonance conditions above.
Applications in science and engineering
Open and closed pipe calculations are not just school physics exercises. They are used in musical acoustics, muffler design, HVAC duct noise analysis, organ pipe construction, ultrasonic tube studies, and resonance demonstrations in laboratories. In each case, the engineer or scientist is asking the same question: what wavelengths can fit under the boundary conditions of this air column, and what frequencies do those wavelengths correspond to? Once that answer is known, it becomes possible to predict resonance peaks, suppress unwanted noise, or design an instrument to produce a target pitch.
Authoritative sources for deeper study
- National Institute of Standards and Technology for physical constants, measurements, and acoustics reference context.
- The Physics Classroom is educational but not .gov or .edu, so for official academic reading use university notes such as LibreTexts Physics, which is supported by academic institutions.
- NASA Glenn Research Center for the speed of sound background and wave propagation concepts.
- OpenStax University Physics for formal derivations of standing waves and resonance in air columns.
Final takeaway
To calculate wavelength in an open or closed pipe correctly, first separate the wave relation from the resonance condition. The universal wave relation is λ = v / f. For an open pipe, resonant wavelengths satisfy λ = 2L / n. For a closed pipe, resonant wavelengths satisfy λ = 4L / n with odd n only. If higher accuracy is needed, use a temperature adjusted sound speed and include end correction. Those four ideas solve most practical pipe resonance problems quickly and correctly.