UTILS.
Private by default
♪Δ

Music Interval Calculator

Get semitones, cents, ratio and interval name between two notes.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

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.

Frequently asked questions

How do I enter notes?
Use a letter A to G, an optional # for sharp or b for flat, then the octave number, for example C4, F#3 or Bb5. Case does not matter. Double accidentals and note names without an octave are not accepted.
What tuning is used?
Twelve-tone equal temperament with A4 = 440 Hz. The ratio shown is the equal-tempered ratio, which differs slightly from just-intonation ratios such as 3:2.
Does the order of the notes matter?
The interval name ignores direction, but the semitones and cents become negative and the ratio falls below 1 when the second note is lower than the first.
Are C# and Db treated differently?
No. The tool works by pitch, so enharmonic spellings give the same semitone count. It cannot tell an augmented 4th from a diminished 5th; both show as a tritone.

More tools