Music & audio

Musical interval calculator

Compare two notes in semitones, octaves and frequency ratio.

Musical interval calculator
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Uses chromatic pitch distance in twelve-tone equal temperament. Reports signed semitones, absolute octave-plus-semitone distance and frequency ratio. Interval labels describe semitone distance; enharmonic spelling can give a different diatonic interval name. Notes require octaves and must lie in MIDI range 0–127.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

First note
C4
Second note
G4

Example result

Signed semitones
7
Chromatic interval
Perfect fifth
Direction
Ascending
Frequency ratio (second / first)
1.49830707688