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 note
  • note₂ — 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Frequently Asked Questions

What is the smallest interval in music?

The semitone represents the smallest interval in Western music systems. It spans just one key on a piano or one fret on a guitar. Musicians call the semitone interval a minor second. In the chromatic scale, semitones occur between every adjacent note: C to C♯, C♯ to D, D to D♯, and so forth. All other intervals are built by combining multiple semitones.

How do I find the interval number between two notes?

Remove any accidentals (sharps and flats) from both notes, then count the letter names as steps. From E to B♭, first ignore the flat and count E (1), F (2), G (3), A (4), B (5). This makes it a sixth. Then count the actual semitones between E and B♭ to determine whether the sixth is major, minor, diminished, or augmented. Only after establishing the number and measuring semitones can you apply the quality.

What makes enharmonic equivalents important in music theory?

Enharmonic equivalents like C♯ and D♭ have identical pitches but different notational meanings. A composer writes C♯ in a sharp key and D♭ in a flat key, even though a pianist plays the same physical key. This affects how musicians read intervals and understand harmonic function. Using the wrong enharmonic name can make a chord progression's voice leading confusing or suggest incorrect harmonic analysis.

Why does an octave double the frequency?

The octave's frequency relationship is logarithmic rather than linear. Each octave represents a doubling of frequency: A4 at 440 Hz, A5 at 880 Hz, A6 at 1,760 Hz. This doubling produces a sound that humans perceive as "the same note but higher" — so familiar that we use the same letter name. This unique perceptual property makes the octave the most consonant interval after the unison itself.

How many semitones are in a major sixth?

A major sixth contains 9 semitones. For example, the interval from C to A is a sixth (counting C–D–E–F–G–A), and since there are 9 semitones between them, it qualifies as major. A minor sixth contains 8 semitones, making it one semitone smaller. The difference between major and minor intervals is always exactly one semitone.

What is a compound interval?

A compound interval spans more than one octave. Instead of naming it simply as the interval within an octave (like a third or fifth), musicians add eight to its number. An interval of 9 semitones within an octave is a major second, but the same interval spanning upward from one octave becomes a major ninth. Compound intervals follow the same quality rules (major, minor, perfect) as their simple counterparts.

More other calculators (see all)