A vibrating string or air column sounds at its fundamental frequency and at whole-number multiples of it, called harmonics. The harmonic series calculator takes a fundamental frequency, a harmonic number and the speed of sound and gives the frequency of that harmonic, its wavelength in air, its pitch in cents above the fundamental, its distance from the nearest equal-tempered note and the number of harmonics below 20 kHz.
How the calculation works
- Frequency of the harmonic: f(n) = n × f₁. The second harmonic is twice the fundamental, the third three times, and so on.
- Wavelength in air: λ = c ÷ f(n), where c is the speed of sound. Higher harmonics have shorter wavelengths.
- Pitch in cents: 1200 × log₂(n). An octave is 1200 cents and each equal-tempered semitone is 100 cents.
- Distance from equal temperament: the pitch in cents minus the nearest multiple of 100. It shows how far a natural harmonic sits from the piano note closest to it.
- Harmonics below 20 kHz: the whole number part of 20 000 ÷ f₁, a rough count of the harmonics a young ear could still hear.
Example
A low A string at 110 Hz and harmonic 5 at 343 m/s: the frequency is 5 × 110 = 550 Hz and the wavelength is 343 ÷ 550 = 0.6236 m. The pitch is 1200 × log₂(5) = 2 786.3 cents, which is 13.7 cents flat of the nearest equal-tempered note (2 800 cents, two octaves plus a major third). Up to 20 kHz the string can produce 181 harmonics.
Why it matters
The harmonic series explains why a note on a guitar can be played as a ringing harmonic at the twelfth fret, why a brass player can play a bugle call without valves, and why chords built on simple ratios sound smooth. Tuners, synth designers and acoustic engineers all use the same numbers.
Good to know
The calculator assumes ideal harmonics, which are exact multiples of the fundamental. Stiff strings, such as the low strings of a piano, are slightly inharmonic, and their upper partials are sharp. The cents values are relative to the fundamental and the equal-tempered comparison does not depend on the reference pitch of A4.
Related tools
The music interval calculator converts a ratio of frequencies into semitones and cents and the speed of sound calculator gives the speed used here for the wavelength.