About this tool
Interval Calculator measures the musical distance between two notes. Type each note as a letter A to G, an optional # (sharp) or b (flat), and an octave number, such as C4, F#3 or Bb5. Four results appear: the interval name, the distance in semitones, the distance in cents and the frequency ratio.
Notes are placed in twelve-tone equal temperament with A4 at 440 Hz and C4 as middle C. Cents are simply semitones times 100, and the ratio is the second note's frequency divided by the first, shown to four decimals, so C4 to G4 gives a perfect 5th, 7 semitones, 700 cents and 1.4983 : 1. The name ignores direction, so G4 to C4 is also a perfect 5th, but the semitone and cent values turn negative and the ratio drops below 1. Intervals wider than an octave are shown as the simple interval plus extra octaves, for example Major 2nd +1 oct, and exact octaves read as Octave.
Because pitches are by number, enharmonic spellings give identical results: C#4 to F4 and Db4 to F4 both report 4 semitones. Double sharps and flats are not accepted, and invalid input shows an error. The maths runs in your browser.