This interactive calculator determines resonant frequencies and harmonic modes for acoustic waves in pipes with open or closed ends. Whether designing exhaust systems, musical instruments, HVAC ducts, or laboratory acoustic experiments, understanding pipe resonance is essential for controlling sound amplification, preventing destructive vibrations, and optimizing acoustic performance.
Pipe resonance occurs when standing waves form at specific frequencies determined by pipe length, boundary conditions, and the speed of sound in the medium. Engineers and acousticians use these calculations to predict natural frequencies, design noise control systems, and optimize acoustic chambers across automotive, architectural, and industrial applications.
📐 Browse all free engineering calculators
Table of Contents
Pipe Resonance Diagram
Resonance in Pipes Calculator
Equations & Formulas
Both Ends Open (Open-Open Pipe)
fn = n · v / (2L)
where n = 1, 2, 3, 4... (all harmonics present)
One End Closed (Closed-Open Pipe)
fn = n · v / (4L)
where n = 1, 3, 5, 7... (only odd harmonics present)
Wavelength Relationship
λ = v / f
Both ends open: L = n · λ / 2
One end closed: L = n · λ / 4
End Correction (Open Ends)
ΔL ≈ 0.6d
Effective length: Leff = L + 2ΔL (both open)
or Leff = L + ΔL (one open)
Temperature-Dependent Speed of Sound (Air)
v = 331.3 + 0.606T
where T is temperature in °C
Variable Definitions:
- fn = resonant frequency for harmonic n (Hz)
- n = harmonic number (dimensionless integer)
- v = speed of sound in the medium (m/s, typically 343 m/s in air at 20°C)
- L = physical length of the pipe (m)
- λ = wavelength of the sound wave (m)
- d = internal diameter of the pipe (m)
- ΔL = end correction factor (m)
- T = temperature (°C)
Theory & Engineering Applications
Fundamental Physics of Pipe Resonance
Acoustic resonance in pipes occurs when longitudinal pressure waves establish standing wave patterns at frequencies where the pipe length matches integer multiples of half-wavelengths (open pipes) or quarter-wavelengths (closed pipes). At these resonant frequencies, incident and reflected waves interfere constructively, producing pressure nodes and antinodes that remain stationary in space. The boundary conditions—whether an end is open (pressure node, displacement antinode) or closed (pressure antinode, displacement node)—determine which harmonic series can exist within the structure.
A critical but often overlooked aspect is that the speed of sound varies significantly with temperature, approximately 0.606 m/s per degree Celsius in air. For a 0.50 m open pipe, the fundamental frequency at 0°C (331.3 m/s) is 331.3 Hz, but at 30°C (349.5 m/s) it rises to 349.5 Hz—a 5.5% shift that can move a system from optimal performance into resonance-induced failure. This temperature dependency affects exhaust systems on cold starts, HVAC resonances across seasons, and acoustic instrument tuning in different climates. Engineers designing critical acoustic systems must account for the full operational temperature range, not just nominal conditions.
Boundary Conditions and Harmonic Structure
Open-open pipes support the complete harmonic series (n = 1, 2, 3...) because both ends permit pressure nodes. The fundamental frequency corresponds to a half-wavelength fitting within the pipe length, and each subsequent harmonic adds another half-wavelength. In contrast, closed-open pipes support only odd harmonics (n = 1, 3, 5...) due to the requirement for a pressure antinode at the closed end and a node at the open end, accommodating only odd quarter-wavelengths.
This difference has profound implications. A 2.0-meter organ pipe open at both ends produces a fundamental at 85.75 Hz (assuming v = 343 m/s) with harmonics at 171.5 Hz, 257.25 Hz, 343 Hz, and so on—creating a rich, full tone. The same pipe closed at one end produces a fundamental at 42.875 Hz with harmonics only at 128.625 Hz, 214.375 Hz, 300.125 Hz—creating a hollow, nasal tone lacking even harmonics. Automotive exhaust designers exploit this by strategically placing closed chambers to suppress specific frequency bands while allowing desired harmonics to pass.
End Correction and Real-World Deviations
The idealized equations assume infinitesimally thin pipe walls and abrupt transitions at boundaries, but real pipes exhibit end effects where the acoustic pressure field extends slightly beyond the physical opening. The Rayleigh end correction approximates this as ΔL ≈ 0.6d for unflanged circular openings, where d is the pipe diameter. For a 50 mm diameter pipe, this adds 30 mm per open end—a 6% length increase for a 0.50 m pipe that shifts the fundamental from 343 Hz to 323.2 Hz.
This correction becomes increasingly significant for short, wide pipes (where d/L is large) and negligible for long, narrow tubes. Laboratory precision measurements and musical instrument design require end correction for accuracy within 1%, while industrial applications with length-to-diameter ratios exceeding 10:1 can often neglect it. Flanged openings reduce the correction to approximately 0.82 times the pipe radius due to altered radiation patterns, while unflanged openings in free space follow the 0.6d approximation.
Worked Example: HVAC Duct Resonance Analysis
An HVAC contractor investigating a 400 Hz hum in a commercial building discovers a 1.70-meter rectangular supply duct section with one end terminating in a closed plenum and the other open to a diffuser. The building temperature averages 22°C. Determine whether this duct is resonating and identify the harmonic number.
Given:
- Pipe length: L = 1.70 m
- Pipe configuration: closed-open (one end closed)
- Observed frequency: f = 400 Hz
- Temperature: T = 22°C
Step 1: Calculate speed of sound at operating temperature
v = 331.3 + 0.606 × 22 = 331.3 + 13.332 = 344.632 m/s
Step 2: Calculate theoretical harmonic number
For closed-open pipes: fn = n × v / (4L)
Rearranging: n = 4Lf / v
n = (4 × 1.70 × 400) / 344.632 = 2720 / 344.632 = 7.893
Step 3: Identify nearest odd harmonic
Since closed-open pipes support only odd harmonics, the nearest odd integer is n = 7.
Step 4: Calculate actual resonant frequency for n = 7
f7 = 7 × 344.632 / (4 × 1.70) = 2412.424 / 6.8 = 354.77 Hz
Step 5: Check n = 9 harmonic
f9 = 9 × 344.632 / (4 × 1.70) = 3101.688 / 6.8 = 456.13 Hz
Analysis: The calculated harmonic number (7.893) falls between the 7th harmonic (354.77 Hz) and 9th harmonic (456.13 Hz). The 400 Hz observed frequency is 12.7% above the 7th harmonic and 12.3% below the 9th harmonic, suggesting the duct is operating near resonance but not precisely at a harmonic frequency. However, real ductwork has damping and imperfect boundary conditions. The quality factor Q of typical HVAC ducts ranges from 10-50, meaning resonance peaks have finite width. A frequency 45 Hz away from the 9th harmonic (11% deviation) could still drive significant resonance if the Q-factor is approximately 9-10.
Practical recommendation: The duct is likely resonating at the 9th harmonic with slight detuning from ideal conditions. Solutions include: (1) changing duct length by 10-15 cm to shift resonance away from 400 Hz, (2) adding acoustic liner to increase damping, (3) installing a helmholtz resonator tuned to 400 Hz, or (4) modifying the plenum opening from fully closed to partially open, converting the system to an open-open configuration that would eliminate odd-harmonic-only restriction and potentially detune the resonance. If the noise source produces broadband excitation, option (2) provides the most robust solution across multiple frequencies.
Industrial and Acoustic Applications
Automotive exhaust systems leverage pipe resonance to control backpressure and noise signatures. Performance headers use tuned-length primary pipes to establish negative pressure waves that enhance cylinder scavenging at target RPM ranges. A 650 mm primary tube with an open-closed configuration resonates at 131.8 Hz (343 m/s), corresponding to 3,954 RPM for a four-stroke engine firing once per two revolutions. Engineers design primary lengths to optimize mid-range torque, with stepped diameters and merge collectors introducing deliberate impedance mismatches that tune the resonant response across the RPM band.
Architectural acoustics uses pipe resonance principles in room air supply diffusers, where incorrect duct termination lengths can amplify specific frequencies, creating tonal noise complaints. Concert hall organ builders exploit harmonic content differences between open and closed pipes to create timbral variety across stops. Laboratory acoustic measurement systems use precision-machined resonance tubes to calibrate microphones and validate theoretical models, with temperature-controlled environments maintaining frequency accuracy to 0.1 Hz.
For those designing acoustic systems, comprehensive calculation tools are available through engineering calculator libraries that allow rapid parameter exploration across temperature ranges, boundary conditions, and dimensional tolerances without manual recalculation.
Practical Applications
Scenario: Automotive Exhaust System Optimization
Marcus, a performance tuning engineer at a motorsports shop, is designing a custom exhaust system for a naturally aspirated 2.4L four-cylinder race engine that produces peak power at 8,200 RPM. He needs to determine the optimal primary tube length to create a resonant scavenging effect that pulls exhaust gases out during valve overlap. Using the calculator with a closed-open configuration (closed at valve, open at collector), he calculates that a 548 mm primary tube resonates at 156.4 Hz at 400°C exhaust gas temperature (v ≈ 514 m/s at elevated temperature). This frequency corresponds to 8,200 RPM for a four-stroke engine (4,100 power pulses per minute = 68.3 Hz fundamental, with the 3rd harmonic matching his target). The calculator helps him verify that temperature variations from cold start (100°C, v ≈ 387 m/s) to full load won't shift the resonance outside his usable RPM range. By comparing multiple tube lengths, Marcus optimizes for a 5% power gain in the 7,500-8,500 RPM range where the car operates most frequently on track.
Scenario: HVAC Duct Resonance Troubleshooting
Jennifer, a mechanical engineer for a hospital facilities department, receives complaints about a loud 320 Hz tone in the ICU caused by new HVAC ductwork. She measures a problematic 2.68-meter vertical supply duct that runs from a closed plenum to an open ceiling diffuser. Using the calculator's harmonic mode with closed-open configuration and ambient temperature of 21°C (v = 344 m/s), she determines the duct is resonating at its 5th harmonic (n = 5, calculated frequency 320.9 Hz—nearly exact match to the complaint). The calculator shows that shortening the duct by just 134 mm would shift the 5th harmonic to 343 Hz, but space constraints prevent modification. Instead, she uses the calculator to design a 6.8 cm diameter side-branch resonator tuned to 320 Hz that acts as an acoustic short circuit at the problem frequency. After installation, sound pressure level measurements confirm a 28 dB reduction at 320 Hz, bringing the ICU environment back into acoustic compliance. The calculator allowed her to quickly identify the resonance mechanism and calculate the exact branch length needed for cancellation without trial-and-error testing in a critical patient care area.
Scenario: Musical Instrument Design Verification
David, a luthier building custom pan flutes for professional musicians, needs to precisely calculate tube lengths for a chromatic scale spanning two octaves from C4 (261.63 Hz) to C6 (1046.50 Hz). Each tube is closed at the bottom and open at the top (closed-open configuration, fundamental mode n = 1). Using the calculator with room temperature 20°C (v = 343 m/s) and accounting for 0.6d end correction with his 15 mm bore tubes (9 mm correction per tube), he calculates the C4 tube requires an effective length of 328.1 mm, meaning he must cut the physical tube to 319.1 mm to achieve correct pitch after end correction. He systematically calculates all 25 tubes in the chromatic range, discovering that his initial rough calculations were off by 3-8 mm on shorter, higher-pitched tubes where the 9 mm end correction represents a larger percentage of total length. The calculator's temperature mode also helps him predict how summer performances at outdoor festivals (30°C) will shift pitch upward by approximately 32 cents (3.5%), informing his decision to tune tubes slightly flat at room temperature to reach concert pitch under typical performance conditions. This precision calculation prevents costly material waste and ensures the instrument meets professional intonation standards.
Frequently Asked Questions
▼ Why do closed pipes only support odd harmonics while open pipes support all harmonics?
▼ How does temperature affect pipe resonance and when does it matter?
▼ What is end correction and when must it be included in calculations?
▼ How do I prevent unwanted resonance in pipes and ducts?
▼ Can pipe resonance occur in liquids or must the medium be gas?
▼ How accurate are the ideal pipe resonance equations for real-world systems?
Free Engineering Calculators
Explore our complete library of free engineering and physics calculators.
Browse All Calculators →🔗 Explore More Free Engineering Calculators
About the Author
Robbie Dickson — Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.