Harmonic Frequency Calculator

Calculate resonance frequencies for strings, open pipes, and musical instruments. Easy-to-use tool for physics students and acoustics engineering.

What Is a Harmonic Frequency?

A Harmonic Frequency is a natural frequency at which a system (like a guitar string or air column) vibrates. When you pluck a string or blow into a flute, you aren’t just creating one sound; you are creating a complex mix of the Fundamental Frequency and its multiples, known as Harmonics.

These vibrations form Standing Waves, which occur when waves traveling in opposite directions interfere constructively.

The Harmonic Frequency Formula

This calculator uses the standard physics formula for systems with identical boundary conditions (fixed-fixed or open-open):

$$f_n = \frac{n \cdot v}{2L}$$

Why Changing Units Does Not Affect the Result

This calculator internally converts all values into consistent SI units before applying the physical formula.

As a result, switching between m ↔ cm ↔ ft or m/s ↔ ft/s does not change the final frequency — only how the inputs are displayed. This ensures your scientific calculations remain accurate regardless of the measurement system used.

Visualizing Harmonics (Standing Waves)

The chart below shows how standing waves fit into a fixed length ($L$). Notice how higher harmonics ($n$) squeeze more “loops” (half-wavelengths) into the same space, resulting in higher pitch.

1st Harmonic (Fundamental, n=1) Length = 1/2 λ 2nd Harmonic (1st Overtone, n=2) Length = 1 λ 3rd Harmonic (2nd Overtone, n=3) Length = 3/2 λ

Fig 1. Standing wave patterns for the first three harmonics.

How to Use the Harmonic Frequency Calculator

Suppose you want to calculate the resonant frequency of a vibrating string or an open air column.

Example Problem

  • String Length ($L$): 1 meter
  • Wave Speed ($v$): 343 m/s
  • Goal: Find the fundamental frequency of the system.

Step-by-Step Instructions

  1. Select the Harmonic Number ($n$)

    • Enter 1 for the fundamental frequency.
    • Enter 2, 3, 4… for higher harmonics.
  2. Enter the Wave Speed ($v$)

    • For air at room temperature, use 343 m/s.
    • You may also switch units (e.g., ft/s); the calculator handles the conversion automatically.
  3. Enter the System Length ($L$)

    • Input the length of the string or pipe.
    • Supported units: meters (m), centimeters (cm), or feet (ft).
  4. View the Result

    • The calculator instantly displays the Resonant Frequency in Hz.

Result for the Example: For a 1-meter system with a wave speed of 343 m/s, the calculator returns: Resonant Frequency = 171.5 Hz

Variable Definitions:

SymbolMeaningTypical Unit
$f_n$Frequency of the n-th harmonicHz (Hertz)
$n$Harmonic Number (integer)1, 2, 3…
$v$Speed of the wavem/s
$L$Length of the systemmeters (m)

Note: The formula implies that the frequency is inversely proportional to the length. If you double the length of a string, the pitch drops by one octave (frequency is halved).

How to Get Accurate Results

1. Match Wave Speed to Temperature

For air columns (like organ pipes or flutes), the speed of sound ($v$) varies significantly with temperature.

  • 0 °C (32 °F): ~331 m/s
  • 20 °C (68 °F): ~343 m/s (Standard Room Temp)
  • 35 °C (95 °F): ~352 m/s

2. Understand Your Instrument (Boundary Conditions)

This calculator is valid for:

  • ✅ Strings: Guitar, Violin, Piano (Fixed at both ends).
  • ✅ Open Pipes: Flute, Organ pipes open at both ends.

It is NOT valid for:

  • ❌ Closed Pipes: Clarinet, Trumpet, or bottle resonance (Closed at one end). These utilize the formula $f = nv/4L$ and only produce odd harmonics ($n=1, 3, 5…$).

3. Advanced: End Correction

For precise engineering of open pipes, the “Effective Length” is slightly longer than the physical tube because air vibrates a little bit outside the opening. $$L_{\text{effective}} \approx L_{\text{physical}} + 0.6 \times \text{Radius}$$

Fundamental vs. Overtones

Confusion often arises between “Harmonics” and “Overtones”. Here is a quick reference:

Harmonic Number ($n$)Overtone NameDescription
1st HarmonicFundamentalThe lowest pitch you hear.
2nd Harmonic1st OvertoneOne octave higher ($2 \times f_1$).
3rd Harmonic2nd OvertonePerfect fifth above the 2nd harmonic.
4th Harmonic3rd OvertoneTwo octaves higher ($4 \times f_1$).

Real-World Applications

  1. Musical Instruments: Luthier’s use this to calculate string tension and fret placement.
  2. Audio Engineering: Identifying “room modes” where certain frequencies overlap and create unwanted booming sounds.
  3. Physics Lab: A standard experiment to determine the speed of sound in air by measuring the length of a resonating tube.

Frequently Asked Questions

Why does a guitar string’s pitch change when I press a fret?

Pressing a fret decreases the Length ($L$) of the vibrating part of the string. According to the formula $f = nv/2L$, reducing $L$ increases the frequency $f$, resulting in a higher pitch.

Can I use this for a closed pipe?

No. Closed pipes (like a bottle or clarinet) behave differently. They only support odd harmonics (1, 3, 5…) and resonate at lower frequencies for the same length. If you need to perform calculations, you can access our Closed Pipe Calculator.

What is “v” for a string instrument?

For strings, $v$ is not the speed of sound in air. It is the speed of the wave traveling on the string itself, which is determined by: $$v = \sqrt{\frac{\text{Tension}}{\text{Mass per unit length}}}$$ Tightening a tuning peg increases Tension, which increases $v$, and thus increases the pitch.

How does string tension affect frequency?

According to the wave speed formula $v = \sqrt{T/\mu}$, increasing the tension ($T$) makes the wave travel faster. Since frequency is directly proportional to speed ($f \propto v$), tightening a string increases the pitch, while loosening it lowers the pitch.

References

  • Halliday, D., Resnick, R., & Walker, J. Fundamentals of Physics. Wiley.
  • Rossing, T. D. The Science of Sound. Addison-Wesley.
  • Kinsler, L. E. et al. Fundamentals of Acoustics. Wiley.
  • OpenStax. University Physics (Volume 1: Waves and Acoustics).

Input Parameters

Result

0Hz

Updates in real-time as you type

Formula

(n * v) / (2 * L)

Note

Changing input units (m/s ↔ ft/s, m ↔ cm ↔ ft) does not affect the result, as all values are internally converted to consistent units before calculation.

Current Inputs

Harmonic Number (n):0
Wave Speed (v):0
Length (L):0