Calculate the harmonic frequencies and wavelengths of a standing wave on a string or in a pipe (open or closed), from the length and wave speed.
Inputs
m
Length of the string or pipe.
m/s
Speed of the wave in the medium — 340 m/s for sound in air, much lower for a stretched string.
1 = fundamental, 2 = second harmonic, and so on.
Harmonic Frequency
—
Choose a system and enter length, wave speed, and a harmonic number above.
Inputs
m
Length of the string or pipe.
m/s
Speed of the wave in the medium.
Fundamental Frequency
—
Choose a system and enter length and wave speed above to see the first 8 harmonics.
Harmonic (n)
Overtone
Frequency (Hz)
Wavelength (m)
Inputs
m
Length of the string or pipe.
m/s
Speed of the wave in the medium.
1 = fundamental, 2 = second harmonic, and so on.
Harmonic Wavelength
—
Choose a system and enter length, wave speed, and a harmonic number above.
5 min read3 steps7 terms3 examples6 FAQsfn = n · v / (2L), n = 1, 2, 3, 4, …
A guitar string, a flute, and an organ pipe all make sound the same fundamental way: a wave reflects back on itself inside a fixed length, and only specific frequencies fit that length without canceling themselves out.
📋
Walk-through
How to Use This Calculator
3 steps▸
1
Pick a system and enter length and wave speed
On the Harmonic tab, choose whether you're modeling a string fixed at both ends, a pipe open at both ends, or a pipe closed at one end. Enter the length of the string or pipe (in meters) and the wave speed (in m/s — 340 m/s for sound in air at room temperature, or a lower value calculated from a string's tension and mass per unit length). The calculator updates instantly as you type.
2
Choose a harmonic number to see its frequency and wavelength
Enter a harmonic number n (1 = fundamental, 2 = second harmonic, and so on). The calculator returns that harmonic's frequency and wavelength immediately. Closed pipes only support odd harmonics (1st, 3rd, 5th…) — if you enter an even number for a closed pipe, the calculator snaps to the nearest valid odd harmonic and shows a note explaining why.
3
Switch to Overtone Series for the full harmonic-series chart
The Overtone Series tab shows the first 8 valid harmonics for the selected system as a bar chart and a table, without needing to pick a specific harmonic number. Use the Wavelength tab when you want to lead with wavelength instead of frequency for the same inputs.
⚡
Reference
Formula & Methodology
3 formulas▸
String (fixed both ends) or open pipe (both ends open)
fn = n · v / (2L), n = 1, 2, 3, 4, …
Every positive integer n is a valid harmonic. fn is the frequency of the nth harmonic in hertz (Hz), v is the wave speed in meters per second (m/s), and L is the length of the string or pipe in meters (m). A string fixed at both ends and a pipe open at both ends share the same formula because both boundary conditions force an antinode-to-antinode (or node-to-node) pattern that fits a whole number of half-wavelengths into the length.
Closed pipe (one end closed, one end open)
fn = n · v / (4L), n = 1, 3, 5, 7, … (odd only)
Only odd harmonics exist for a pipe closed at one end. The closed end must be a node (zero displacement) and the open end must be an antinode, which only fits a quarter-wavelength (plus whole half-wavelengths) into the pipe — so the 2nd, 4th, 6th, etc. harmonics are physically impossible. At the same length and wave speed, a closed pipe's fundamental is exactly half the frequency of an open pipe's fundamental.
Harmonic wavelength
λn = 2L / n (string/open pipe) or λn = 4L / n (closed pipe, odd n)
The wavelength of the nth harmonic follows directly from the same length-and-boundary-condition relationship used for frequency — it does not depend on the wave speed at all, only on the system, the length, and the harmonic number.
📖
Glossary
Key Terms Explained
7 terms▸
Standing wave ↗A wave pattern that appears stationary, formed when two waves of the same frequency travel in opposite directions and interfere — typically a wave reflecting off a fixed or open boundary and interfering with itself. The result is a fixed pattern of nodes and antinodes rather than a wave that visibly travels.
Harmonic ↗One of the discrete frequencies at which a system naturally forms a standing wave, numbered n = 1, 2, 3, … (or n = 1, 3, 5, … for a closed pipe). Each harmonic fits a specific whole or half number of wavelengths into the length of the string or pipe.
Fundamental ↗The first harmonic (n = 1) — the lowest possible frequency at which a standing wave can form on a given string or in a given pipe. It's the lowest, and usually loudest, pitch the system produces.
Overtone ↗Any harmonic above the fundamental. The 2nd harmonic is the 1st overtone, the 3rd harmonic is the 2nd overtone, and so on — for a closed pipe (odd harmonics only), the 3rd harmonic is the 1st overtone, the 5th harmonic is the 2nd overtone, etc.
Node ↗A fixed point along the standing wave where the displacement is always zero. A string fixed at both ends has a node at each end; a pipe closed at one end has a node at the closed end.
Antinode ↗A fixed point along the standing wave where the displacement oscillates with maximum amplitude. An open end of a pipe is always an antinode, as is the midpoint of a string vibrating in its fundamental mode.
Open vs. closed pipe ↗An open pipe has both ends open to the air (both ends are antinodes) and behaves like a string fixed at both ends — all integer harmonics exist. A closed pipe has one end sealed (a node) and one end open (an antinode), which restricts it to odd harmonics only and halves its fundamental frequency compared to an open pipe of the same length.
👥
Scenarios
Real-World Examples
3 worked examples▸
🎻
Music student
Fundamental frequency of a 1-meter string
System String (fixed both ends)Length 1 mWave speed 340 m/sHarmonic number 1
f1 = 1 × 340 / (2 × 1) = 170 Hz. This is the fundamental — the lowest note the string can produce at this length and wave speed. Doubling the wave speed (by increasing tension) or halving the length would each double the fundamental frequency.
🎺
Band instrument builder
Closed-pipe harmonics only come in odd numbers
System Closed pipe (one end closed)Length 1 mWave speed 340 m/sHarmonic number 3
The fundamental is f1 = 1 × 340 / (4 × 1) = 85 Hz — half the string/open-pipe fundamental at the same length, because the closed end forces a longer effective wavelength. The 3rd harmonic (the first overtone this pipe can actually produce) is f3 = 3 × 340 / (4 × 1) = 255 Hz. There is no 2nd harmonic at 170 Hz for a closed pipe — entering an even harmonic number snaps to the next odd one.
📐
Physics student
Solving for wavelength instead of frequency
System String (fixed both ends)Length 1 mHarmonic number 2
λ2 = 2 × 1 / 2 = 1 m. The second harmonic on a 1-meter string has a wavelength equal to the full string length — one complete wave cycle fits along the string, with a node at each end and one in the middle.
🔗
Reference
Cite This Calculator
APA & MLA▸
Use either format to cite this calculator in a paper, report, or resource list.
APA
MLA
📄
Deep Dive
Why standing waves only ring at certain frequencies
A guitar string, a flute, and an organ pipe all make sound the same fundamental way: a wave reflects back on itself inside a fixed length, and only specific frequencies fit that length without canceling themselves out. This calculator finds those frequencies — the harmonics — for a string fixed at both ends, a pipe open at both ends, or a pipe closed at one end, and shows how the closed-pipe case differs from the other two.
Boundary conditions decide which frequencies survive
▸
A wave traveling along a string or down a pipe reflects when it hits a boundary. If the reflected wave and the original wave line up perfectly — crest matching crest, trough matching trough — they reinforce each other into a stable, stationary pattern: a standing wave. If they don't line up, the wave interferes with itself destructively and dies out. Whether a frequency lines up depends entirely on the boundary conditions at each end. A string fixed at both ends and a pipe open at both ends share the same rule: both ends must be nodes (string) or antinodes (open pipe), which only happens when the length equals a whole number of half-wavelengths — L = n·λ/2, giving fn = n·v/(2L) for every positive integer n.
Why a closed pipe only produces odd harmonics
▸
A pipe closed at one end has mismatched boundary conditions: the closed end must be a node (the air can't move there) and the open end must be an antinode (the air moves freely). That combination only fits a quarter-wavelength, plus any whole number of additional half-wavelengths, into the pipe's length — L = n·λ/4 for odd n only. Even values of n would require the open end to be a node too, which contradicts the physical boundary condition, so those frequencies simply never form. The practical result: a closed pipe's fundamental is exactly half the frequency of an identical-length open pipe or string, and it skips every even harmonic entirely — which is part of why clarinets (largely closed-pipe behavior) sound different from flutes (open-pipe behavior) even when built to a similar length.
Reading nodes, antinodes, and overtones together
▸
Every harmonic above the fundamental is called an overtone, and each one adds another node-antinode pair along the length. The fundamental (n=1) has the simplest pattern — a single antinode at the middle of a string, or at the open end of a pipe. Real instruments rarely produce a pure single harmonic; they produce a mix dominated by the fundamental with progressively quieter overtones layered on top, and the relative strength of those overtones is a big part of what makes a violin sound different from a flute playing the exact same fundamental pitch. This calculator's Overtone Series tab shows the full stack of harmonic frequencies your system can produce, which is the starting point for understanding that richer, real-world sound.
❓
Questions
Frequently Asked Questions
6 questions▸
What is the fundamental frequency?+
The fundamental is the first harmonic, n = 1 — the lowest frequency at which a standing wave can form on a given string or in a given pipe. Every other harmonic is a whole-number multiple of the fundamental for a string or open pipe, or an odd whole-number multiple for a closed pipe.
What's the formula for a string or open pipe?+
fn = n·v/(2L), where n is any positive integer (1, 2, 3, …), v is the wave speed, and L is the length. A string fixed at both ends and a pipe open at both ends use the identical formula because both boundary conditions require the same node/antinode spacing.
Why does a closed pipe only have odd harmonics?+
A pipe closed at one end must have a node at the closed end and an antinode at the open end. That mismatched boundary condition only fits an odd number of quarter-wavelengths into the pipe's length, so the formula is fn = n·v/(4L) restricted to n = 1, 3, 5, 7, … — even harmonics are physically impossible for this configuration.
What are nodes and antinodes?+
A node is a fixed point on the standing wave where the displacement is always zero (like the two fixed ends of a guitar string). An antinode is a fixed point where the displacement oscillates at maximum amplitude (like the open end of a pipe, or the middle of a string vibrating at its fundamental).
What units does this calculator use?+
Length is in meters (m), wave speed is in meters per second (m/s), frequency results are in hertz (Hz), and wavelength results are in meters (m). Use 340 m/s as a reasonable default for the speed of sound in air at room temperature if you're modeling a wind instrument or pipe.
What's the difference between a harmonic and an overtone?+
Harmonics are numbered starting from the fundamental as harmonic 1. Overtones are numbered starting from the first frequency above the fundamental — so the 2nd harmonic is the 1st overtone, the 3rd harmonic is the 2nd overtone, and so on (for a closed pipe's odd-only sequence, the 3rd harmonic is the 1st overtone, the 5th is the 2nd overtone).
📄
Save & share
Get a branded PDF of your results
Download a one-page PDF of your numbers instantly. Add your email to also get our occasional calculator tips — no spam, unsubscribe anytime. Privacy.