music interval calculator
Music Interval Calculator guide
Enter two pitch names such as C4 and G4. The calculator measures the chromatic distance in twelve-tone equal temperament and reports whether the second note is higher or lower.
Play the instrument ↑- Example
- C4 to G4 is an ascending perfect fifth of seven semitones. G4 to C4 is the same distance descending. C4 to E5 spans one octave plus a major third, sixteen semitones.
Formula and units
Convert both notes to MIDI, subtract the first from the second, and use the absolute difference for interval size. Distances of at least twelve semitones are shown as full octaves plus a remaining interval.
Worked examples
C4 to G4 is an ascending perfect fifth of seven semitones. G4 to C4 is the same distance descending. C4 to E5 spans one octave plus a major third, sixteen semitones.
How to use the result
Written interval quality depends on letter spelling. C4 to F♯4 and C4 to G♭4 both span six semitones and are shown as a tritone here. In notation those names are augmented fourth and diminished fifth respectively.
Perfect Fifth Interval → · GestureSynth music theory tools →
Compare direction, size, and register
Play a first note of G4 and a second note of C4. The tool shows a descending perfect fifth. Reverse the entries and it becomes an ascending perfect fifth, with the same seven-semitone distance. The first note is your reference; the second determines direction. In a transcription, keep the order if you want to describe a melody and retain only the absolute distance if you are comparing shapes without direction.
Now keep G as the second pitch class and raise it an octave. C4 to G5 is nineteen semitones, shown as one octave plus a perfect fifth. A listener may hear a related interval class, but the register change affects how the notes sit in a chord or arrangement. Write down the actual octaves when practicing a leap or placing voices in a score so the exercise does not accidentally turn into its simple interval.
Compare a spelled interval with what you hear
A written interval can be named by counting note letters as well as semitones. C to E spans three letters, while C to F♭ spans four. In twelve-tone equal temperament the two target pitches coincide. The calculator describes the shared four-semitone sound as a major third. A notation question can still require the more specific written name diminished fourth for C to F♭. The choice affects analysis and reading even though the equal-tempered preview sounds the same.
For the same reason, C♯4 and D♭4 produce a zero-semitone reading. Try the two previews, then look at where each spelling might belong in a key. The page is useful for checking a semitone count. When the task is writing harmony, use the written names and scale context to identify the interval quality the score expects.
Make a short ear-training exercise
Pick an anchor such as C4 and compare it with E♭4, E4, and F4. Read the output for the first comparison. For the next comparisons, listen before looking at the result and decide whether the distance got larger. Move the anchor to F4 and repeat an equivalent minor third, major third, and perfect fourth. You are comparing spacing, so the names remain stable even as the absolute frequencies move. Keep the playback volume low before trying widely separated notes.
For a guitar or sampler exercise, compare notes in the written order and record both the direction and distance. B3 to C4 is an ascending minor second, even though the octave number changes at C. F4 to E4 is descending by the same distance. An octave number change therefore does not imply a twelve-semitone leap. Check B3 to B4 as the contrasting full octave, and compare both notes by ear on the preview.
Answers before you play
Common questions
Why must I include the octave?
C4 to C4 is a unison, but C4 to C5 is an octave. Letter names alone cannot distinguish the two.
Does the tool play an interval as a simultaneous chord?
The preview buttons play each of the two notes separately. Use the two buttons in sequence for melodic ear training. A chord player is better suited to hearing the same pitches together.
How do I enter a sharp or flat?
Enter a letter with an optional sharp or flat and an octave, such as F#4 or Bb3. Unicode accidentals F♯4 and B♭3 are also accepted.
What is the valid note range?
The parser accepts notes that map to MIDI numbers 0 through 127. Playback is offered for the subset of results in the preview frequency range.