Standing Wave Calculator
- The fundamental is v / (2L) = 260 / (2 x 0.65) = 200.00 Hz.
- Harmonic 3 is 3 x 200.00 = 600.00 Hz, with wavelength 0.43 m.
A standing wave calculator finds the resonant frequencies and wavelengths of waves that form when a wave reflects between two boundaries and only certain wavelengths survive. For a string fixed at both ends or a pipe open at both ends, the allowed frequencies follow f_n = n v / (2L) for n = 1, 2, 3, ... A pipe closed at one end has a node at the closed end and an antinode at the open end, so only odd harmonics exist: f_n = n v / (4L) for n = 1, 3, 5, ... Enter the length and wave speed, choose the boundary type, and the calculator returns each harmonic's frequency and wavelength. For example, a 0.65 m string with wave speed 260 m/s has a fundamental of 200.00 Hz, a third harmonic of 600.00 Hz, and a wavelength of 1.30 m at the fundamental. An open pipe of 0.85 m in air at 343 m/s has a fundamental of 201.76 Hz and a second harmonic of 403.53 Hz. A closed pipe of 0.5 m has a fundamental of 171.50 Hz, a third harmonic of 514.50 Hz, and no second harmonic at all.
These formulas are the standard textbook method for standing waves because they follow directly from requiring a whole number of half wavelengths to fit the length. The wavelength of the nth harmonic on a string is 2L/n, while for a closed pipe it is 4L/n, which is why a closed pipe sounds an octave lower than an open pipe of the same length. This page presents the formula, step-by-step workings, worked examples, and sources so you can verify every result.
Worked examples
A string's third harmonic
Primary result: 600.00 Hz — a 200.00 Hz fundamental on a 0.65 m string with wave speed 260 m/s. (String fixed at both ends · 0.65 m · 260 m/s · 3)
| Harmonic 3 frequency | 600.00 Hz |
| Fundamental frequency | 200.00 Hz |
| Wavelength | 0.43 m |
An open pipe
Primary result: 403.53 Hz — twice the 201.76 Hz fundamental of a 0.85 m air column. (Pipe open at both ends · 0.85 m · 343 m/s · 2)
| Harmonic 2 frequency | 403.53 Hz |
| Fundamental frequency | 201.76 Hz |
| Wavelength | 0.85 m |
A closed pipe
Primary result: 514.50 Hz — the third harmonic, three times the 171.50 Hz fundamental; closed pipes have no even harmonics. (Pipe closed at one end · 0.5 m · 343 m/s · 3)
| Harmonic 3 frequency | 514.50 Hz |
| Fundamental frequency | 171.50 Hz |
| Wavelength | 0.67 m |
What a standing wave is
A standing wave forms when a wave reflects between two boundaries and only wavelengths that fit the length survive. Picture two travelling waves moving in opposite directions, bouncing back and forth between the ends of a string or the walls of a pipe. When the timing is right, those waves add together so that certain points along the medium never move at all. These fixed points are called nodes. Between them sit antinodes, the spots that swing widest as the waves reinforce each other. This pattern stays in place rather than traveling down the line, which is why the result is called a standing wave.
The key constraint is that the wave must fit perfectly between the boundaries. A string fixed at both ends must have a node at each end, so only specific wavelengths work. The allowed frequencies follow the formula f_n = n v / (2L) for n = 1, 2, 3, ..., where v is the wave speed and L is the length. The same formula applies to a pipe open at both ends. A verified example helps make this concrete: a 0.65 m string with a wave speed of 260 m/s has a fundamental of 200.00 Hz and a third harmonic of 600.00 Hz. At that fundamental, the wavelength is 1.30 m. An open pipe of 0.85 m in air, where sound travels at 343 m/s, produces a fundamental of 201.76 Hz and a second harmonic of 403.53 Hz.
A pipe closed at one end changes the rules. The closed end forces a node because air cannot move there, while the open end allows maximum motion, creating an antinode. This mismatch means only odd harmonics exist. The formula becomes f_n = n v / (4L) for n = 1, 3, 5, ... A closed pipe of 0.5 m illustrates this clearly: it has a fundamental of 171.50 Hz and a third harmonic of 514.50 Hz, but no second harmonic at all. The missing even harmonics give closed pipes their characteristic hollow tone compared with open pipes of similar length.
The wavelength of the nth harmonic on a string is 2L/n, while for a closed pipe it is 4L/n. This difference explains why a closed pipe sounds an octave lower than an open pipe of the same length. The closed pipe needs twice the distance to complete one full cycle of the wave, so its fundamental frequency is half that of the open pipe. A standing wave calculator uses these relationships to find the resonant frequencies for any length, wave speed, and boundary setup you enter.
The harmonic formulas
The harmonic formulas determine which frequencies a standing wave calculator will produce for any given setup. A standing wave forms when a wave reflects between two boundaries and only wavelengths that fit the length survive. The boundary conditions dictate the math: a string fixed at both ends and a pipe open at both ends behave the same way, while a pipe closed at one end follows a different rule.
For a string fixed at both ends or a pipe open at both ends, the allowed frequencies are f_n = n v / (2L) for n = 1, 2, 3, ... Here, v is the wave speed and L is the length. The wavelength of the nth harmonic on a string is 2L/n. To see this in practice, consider a verified case: a 0.65 m string with wave speed 260 m/s. The fundamental frequency is f_1 = (1)(260)/(2 × 0.65) = 200.00 Hz, with a wavelength of 1.30 m at the fundamental. The third harmonic is f_3 = (3)(260)/(2 × 0.65) = 600.00 Hz. The same formula applies to open pipes. A verified open pipe of 0.85 m in air at 343 m/s has a fundamental of 201.76 Hz and a second harmonic of 403.53 Hz.
A pipe closed at one end changes the picture. It has a node at the closed end and an antinode at the open end, so only odd harmonics exist: f_n = n v / (4L) for n = 1, 3, 5, ... The wavelength of the nth harmonic for a closed pipe is 4L/n. This is why a closed pipe sounds an octave lower than an open pipe of the same length. A verified closed pipe of 0.5 m has a fundamental of 171.50 Hz and a third harmonic of 514.50 Hz — and no second harmonic at all.
These distinctions matter because choosing the wrong formula will shift every result. A string and an open pipe share one equation, but swapping in the closed-pipe formula halves the fundamental and drops all even harmonics entirely. Any reliable standing wave calculator must ask whether the system is open at both ends or closed at one end before applying the corresponding harmonic formula.
Worked examples
The following three cases show how a standing wave calculator handles the most common configurations: a string fixed at both ends, a pipe open at both ends, and a pipe closed at one end. Each case applies a different formula because the boundary conditions determine which wavelengths survive between the two boundaries.
For a string fixed at both ends, the allowed frequencies follow f_n = n v / (2L) for n = 1, 2, 3, ... The verified case uses a 0.65 m string with a wave speed of 260 m/s. Plugging in n = 1 gives a fundamental of 200.00 Hz, and n = 3 gives a third harmonic of 600.00 Hz. The wavelength of the nth harmonic on a string is 2L/n, so at the fundamental the wavelength is 1.30 m.
An open pipe of 0.85 m in air (343 m/s) uses the same formula, f_n = n v / (2L), because both ends act as antinodes. The fundamental comes out to 201.76 Hz, and the second harmonic is 403.53 Hz. Note that this open pipe has nearly the same fundamental as the 0.65 m string, even though the pipe is longer, because sound travels slower in air than the wave speed on the string.
A pipe closed at one end is different. It has a node at the closed end and an antinode at the open end, so only odd harmonics exist: f_n = n v / (4L) for n = 1, 3, 5, ... The verified case uses a 0.5 m closed pipe, giving a fundamental of 171.50 Hz and a third harmonic of 514.50 Hz. There is no second harmonic at all. The wavelength of the nth harmonic for a closed pipe is 4L/n, which is why a closed pipe sounds an octave lower than an open pipe of the same length.
| Configuration | Length | Wave speed | Fundamental | Harmonic calculated | Frequency |
|---|---|---|---|---|---|
| String fixed at both ends | 0.65 m | 260 m/s | 200.00 Hz | Third harmonic | 600.00 Hz |
| Open pipe (both ends open) | 0.85 m | 343 m/s | 201.76 Hz | Second harmonic | 403.53 Hz |
| Closed pipe (one end closed) | 0.5 m | 343 m/s | 171.50 Hz | Third harmonic | 514.50 Hz |
Why closed pipes have no even harmonics
A standing wave calculator shows why a pipe closed at one end behaves so differently from a pipe open at both ends. When a wave reflects between two boundaries, only wavelengths that fit the length survive. For a string fixed at both ends or a pipe open at both ends, the allowed frequencies are f_n = n v / (2L) for n = 1, 2, 3, ... — every integer multiple of the fundamental is present. But a pipe closed at one end has a node at the closed end and an antinode at the open end, so only odd harmonics exist: f_n = n v / (4L) for n = 1, 3, 5, ...
That node-and-antinode requirement means the pipe can only hold a quarter wavelength at its fundamental, then three quarter wavelengths, then five, and so on. The even multiples simply cannot fit. The wavelength of the nth harmonic on a string is 2L/n; for a closed pipe it is 4L/n, which is why a closed pipe sounds an octave lower than an open pipe of the same length. A closed pipe of 0.5 m has a fundamental of 171.50 Hz and a third harmonic of 514.50 Hz — and no second harmonic at all.
You can hear this difference directly in real instruments. A clarinet, which is effectively closed at the mouthpiece end, produces a spectrum dominated by odd harmonics. A flute, which is open at both ends, produces both odd and even harmonics freely. That is why the clarinet's lowest register sounds darker and richer in a way the flute's does not, and why a clarinet overblows at the twelfth (an octave plus a fifth) rather than at the octave like a flute or recorder does. The missing even harmonics are not a defect — they define the instrument's voice.
The same physics also explains why two pipes of identical length can sit an octave apart in pitch. An open pipe of 0.85 m in air (343 m/s) has a fundamental of 201.76 Hz and a second harmonic of 403.53 Hz. Shorten that pipe and close one end, and the fundamental drops by an octave while the even harmonics vanish from the spectrum entirely. A 0.65 m string with wave speed 260 m/s has a fundamental of 200.00 Hz and a third harmonic of 600.00 Hz, with a wavelength of 1.30 m at the fundamental — a useful reminder that strings and open pipes share the same harmonic series, while closed pipes follow a sparser pattern all their own.
Wavelength of each harmonic
A standing wave calculator determines the wavelength of each harmonic by applying a simple rule: only wavelengths that fit exactly within the available length can survive. When a wave reflects between two boundaries, interference produces a stable pattern, but most wavelengths cancel out. The wavelengths that remain are those that divide the length into equal segments, with nodes and antinodes positioned according to the boundary conditions.
For a string fixed at both ends or a pipe open at both ends, the wavelength of the nth harmonic is 2L divided by n, where L is the length and n is 1, 2, 3, and so on. This means the fundamental has a wavelength of 2L, the second harmonic has a wavelength of L, the third harmonic has a wavelength of two-thirds of L, and the pattern continues. The verified data confirms this: a 0.65 m string with wave speed 260 m/s has a fundamental of 200.00 Hz and a third harmonic of 600.00 Hz, with a wavelength of 1.30 m at the fundamental. That value equals 2 times 0.65 m divided by 1, which is exactly 1.30 m. An open pipe of 0.85 m in air, where the wave speed is 343 m/s, has a fundamental of 201.76 Hz and a second harmonic of 403.53 Hz, and its fundamental wavelength is 1.70 m, which equals 2 times 0.85 m.
A pipe closed at one end follows a different rule because a node must form at the closed end and an antinode must form at the open end. The wavelength of the nth harmonic is 4L divided by n, but only odd values of n are allowed: 1, 3, 5, and so forth. The verified example shows a closed pipe of 0.5 m has a fundamental of 171.50 Hz and a third harmonic of 514.50 Hz, and no second harmonic at all. Its fundamental wavelength is 4.00 m, which equals 4 times 0.5 m. This is why a closed pipe sounds an octave lower than an open pipe of the same length: the fundamental wavelength is twice as long.
When you use a standing wave calculator, the wavelength values it returns depend on which boundary conditions you select. A string fixed at both ends and a pipe open at both ends share the same wavelength formula, 2L divided by n, and both support every harmonic. A closed pipe uses 4L divided by n and supports only odd harmonics, so the second, fourth, and all even harmonics are absent from the output.
Real-world corrections
A standing wave calculator gives you the ideal frequencies based on clean geometry — a string of length L fixed at both ends, or a pipe of length L that is open or closed. Real instruments, however, do not behave quite so perfectly. Two well-known corrections help explain why a measured frequency can drift from the value the formula predicts.
The first correction involves the open end of a pipe. The formulas f_n = n v / (2L) for an open pipe and f_n = n v / (4L) for a closed pipe assume the antinode sits exactly at the physical opening. In reality, the air just outside the opening also moves, so the effective acoustic length is slightly longer than the physical length L. This added distance is called the end correction. Because the pipe behaves as if it were longer, the actual fundamental drops a little below what the ideal formula gives. For example, an open pipe of 0.85 m in air at 343 m/s yields an ideal fundamental of 201.76 Hz, but the measured value will be marginally lower once end correction is applied. The effect is small, but it matters in organ pipe design and wind instrument tuning.
The second correction concerns strings. The formula f_n = n v / (2L) treats a string as perfectly flexible, so every harmonic lines up as an exact integer multiple of the fundamental. Real strings have stiffness — thicker and shorter strings are stiffer — and that stiffness pushes the higher harmonics slightly sharp. This effect is called inharmonicity. On a verified 0.65 m string with a wave speed of 260 m/s, the fundamental is 200.00 Hz and the third harmonic is 600.00 Hz exactly, but a real string of the same dimensions would show a third harmonic measurably above 600.00 Hz. The wavelength at the fundamental is 1.30 m, yet the upper harmonics do not divide that wavelength as cleanly as the ideal model predicts.
Inharmonicity is the reason piano tuners use stretched octaves. If a tuner simply matched each octave to the exact double of the lower note, the sharp upper harmonics of the lower strings would clash with the fundamentals of the higher strings. By tuning the upper octaves slightly sharp, the tuner aligns the fundamentals of high notes with the inharmonic overtones of the notes below them. The result sounds more in tune to the ear than a strict mathematical octave would. A standing wave calculator that ignores these corrections is still an excellent starting point, but the final tuning of any real instrument depends on understanding where the ideal model ends and the physics of real materials begins.
FAQs
How do you calculate the harmonics of a string?
Use the formula f_n = n v / (2L). For a 0.65 m string vibrating at 260 m/s, the fundamental frequency is 200.00 Hz. Each harmonic is an integer multiple of this fundamental, so the third harmonic equals 3 times 200.00 Hz, which is 600.00 Hz.
Why does a closed pipe have only odd harmonics?
The closed end must be a displacement node and the open end an antinode, so only odd multiples of a quarter wavelength fit. The verified closed pipe has harmonics at 171.50 and 514.50 Hz but none at 343 Hz, because even harmonics cannot form in this configuration.
What is the fundamental frequency of a 0.85 m open pipe?
The fundamental frequency is 201.76 Hz in air at 343 m/s. This is the verified example, whose second harmonic is 403.53 Hz. An open pipe supports all integer multiples of its fundamental, so each successive harmonic doubles, triples, or further multiplies the base frequency.
What is the wavelength of the third harmonic on a string?
The wavelength of the third harmonic is 2L/3, a third of the fundamental wavelength's 2L span. At the fundamental of the verified string, the wavelength is 1.30 m. The third harmonic compresses three half-wavelengths into the same string length, reducing the wavelength by a factor of three.
Why does a closed pipe sound lower than an open pipe of the same length?
Its fundamental wavelength is 4L instead of 2L, halving the frequency. This places the closed pipe an octave lower for the same tube length. The closed end forces a displacement node while the open end forms an antinode, requiring a longer wavelength and producing a lower pitch.
What wave speed should I use for air?
Use about 343 m/s at 20 degrees C. The verified pipe examples use 343 m/s as the wave speed for air. The speed rises roughly 0.6 m/s per degree of warming, so adjust upward or downward from 343 m/s when working at temperatures above or below 20 degrees C.