Understanding Musical Intervals
An interval describes the pitch distance between two sounds. In Western music, we measure this distance using semitones — the smallest units of pitch in chromatic scales. Each piano key, whether black or white, represents one semitone apart from its neighbor.
The chromatic scale contains twelve semitones: C, C♯/D♭, D, D♯/E♭, E, F, F♯/G♭, G, G♯/A♭, A, A♯/B♭, and B. This twelve-tone sequence repeats across octaves, with each octave doubling the frequency of the previous one. For example, A4 vibrates at 440 Hz, while A5 vibrates at 880 Hz — twice the frequency.
Intervals carry both numeric names (second, third, fourth) and quality descriptors (major, minor, perfect, diminished, augmented). This dual naming system allows musicians to communicate precisely about harmonic relationships and voice leading.
Accidentals and Enharmonic Equivalents
Sharp (♯) symbols raise a note by one semitone, while flat (♭) symbols lower it by one semitone. The black key between C and D can be labeled either C♯ or D♭ — they produce identical pitches but serve different harmonic functions depending on context.
These alternative names, called enharmonic equivalents, matter in music notation and theory. A composer might write C♯ in one key but D♭ in another, even though a pianist plays the same physical key. Understanding which name applies depends on the surrounding musical context and the scale being used.
The calculator recognizes these distinctions, allowing you to explore how accidentals modify interval quality. A diminished interval spans fewer semitones than expected, while an augmented interval spans more. For instance, C to F♯ is an augmented fourth (6 semitones), whereas C to F is a perfect fourth (5 semitones).
Interval Calculation Mathematics
The calculator derives intervals by first determining the total semitone distance between two notes, then converting that distance into interval names and qualities.
Semitones = |note₂ + (octave₂ × 12) − note₁ − (octave₁ × 12)|
Tones = Semitones ÷ 2
note₁— Pitch value of the first note (0–11, where C=0, C♯=1, D=2, etc.)octave₁— Octave number for the first notenote₂— Pitch value of the second note (0–11)octave₂— Octave number for the second note
Common Pitfalls When Identifying Intervals
Musicians often stumble when naming intervals because the process requires both counting steps and evaluating semitone distance.
- Forgetting to count the starting note — When determining interval number, always count the starting note as step one. From C to G: C (1), D (2), E (3), F (4), G (5) — this is a fifth, not a fourth. Skipping the first note is the most frequent error beginners make.
- Ignoring accidentals prematurely — Remove accidentals only when determining the interval number, not when counting semitones. For G♯ to E, first establish it's a sixth (G–A–B–C–D–E), then count 9 semitones to determine the quality is diminished.
- Confusing tritones and their names — The tritone (6 semitones) has two correct names: augmented fourth or diminished fifth. Both are enharmonically identical but used differently depending on harmonic function. In isolation, tritones sound tense and dissonant — medieval musicians famously called them diabolus in musica.
- Overlooking octave boundaries — Intervals larger than an octave become compound intervals but follow the same logic. A ninth is an octave plus a second, a tenth is an octave plus a third. The calculator handles both simple (within an octave) and compound intervals automatically.
The Tritone: History and Harmony
The tritone occupies a unique place in Western music history. Its stark, unsettling sound led medieval and Renaissance clergy to ban it from sacred music, calling it the diabolus in musica (the devil in music). When played in isolation, the tritone's 6 semitones create maximum tension without resolving naturally.
Despite its sinister reputation, the tritone appears constantly in modern harmony. Dominant seventh chords contain tritones, as do half-diminished sevenths. Blues and rock music embrace tritones for their edgy character. The key difference is context: surrounded by other intervals and chord tones, the tritone loses its stark dissonance and becomes integral to the harmonic fabric.
Recognizing tritones in analysis helps explain why certain chord progressions feel tense or resolved. This tension–and–release dynamic remains one of music's most powerful compositional tools.