Music Theory Interval Calculator

Precisely determine the musical distance and quality between any two notes.

Calculate Your Musical Interval

Select the first note's name and octave.

Select the second note's name and octave.

Calculation Results

Select notes to calculate

Semitones: N/A

Diatonic Steps: N/A

Direction: N/A

The interval is determined by the number of semitones and diatonic steps between the two chosen notes. This calculator assumes standard 12-tone equal temperament.

Interval Visualization

A visual representation of the semitone distance between the notes.

What is a Music Theory Interval Calculator?

A music theory interval calculator is a digital tool designed to determine the musical distance between any two given notes. In music theory, an interval refers to the difference in pitch between two sounds. This difference can be described in two ways: its quality (e.g., Major, Minor, Perfect, Augmented, Diminished) and its number (e.g., a Second, a Third, a Fifth). This calculator helps musicians, students, and composers quickly identify these properties without manual counting.

Who should use it? Anyone studying music theory basics, ear training, composition, or simply trying to understand the structure of chords and scales will find this tool invaluable. It removes the guesswork and speeds up the learning process.

Common misunderstandings often arise when dealing with enharmonic equivalents (e.g., C# vs. Db) or understanding how interval quality relates to semitone count. For instance, a Major Third and a Diminished Fourth both span 4 semitones, but their diatonic context and musical function are different. This calculator clarifies these distinctions by providing both semitone count and the proper interval name.

Music Theory Interval Formula and Explanation

The calculation of a musical interval primarily relies on two components: the absolute semitone difference and the diatonic step difference. While there isn't a single "formula" in the algebraic sense, the process involves a series of logical steps based on musical principles.

Core Principles:

  1. Semitone Count: Each note on a piano keyboard (including sharps and flats) represents one semitone. An octave is 12 semitones. The calculator determines the total number of semitones between Note 1 and Note 2 by converting each note into a numerical value (often based on its MIDI number, where C0 = 12, C1 = 24, etc.).
  2. Diatonic Steps: This refers to the number of scale degrees between the two notes, counting alphabetically (C to D is a 2nd, C to E is a 3rd, etc.). This count ignores accidentals (sharps/flats) and is crucial for determining the interval's number (e.g., "a Third").
  3. Interval Quality: The combination of semitones and diatonic steps determines the interval's quality. For example, a Major Third is always 4 semitones and spans three diatonic steps (e.g., C to E). A Minor Third is 3 semitones spanning three diatonic steps (e.g., C to Eb). Perfect intervals (Unison, Fourth, Fifth, Octave) have a unique set of rules for their qualities (Perfect, Augmented, Diminished), while other intervals (Seconds, Thirds, Sixths, Sevenths) are typically Major, Minor, Augmented, or Diminished.

Variables Used in Calculation:

Key Variables for Interval Calculation
Variable Meaning Unit Typical Range
Note Name The letter name of the note (C, D, E, F, G, A, B) with optional accidental (# or b). Musical Note C0 to B8
Octave The octave number associated with the note. Octave Number 0 to 8
Semitones The smallest interval in Western music; the distance between adjacent notes. Semitones 0 to 108+
Diatonic Steps The number of steps in a diatonic scale between the two notes, including the starting note. Diatonic Steps 1st to 15th+

Practical Examples

Example 1: A Common Consonant Interval

Input Notes: Note 1: C4, Note 2: E4

Calculation:

  • C4 (Note 1) is 48 semitones from C0.
  • E4 (Note 2) is 52 semitones from C0.
  • Semitone Difference: 52 - 48 = 4 semitones.
  • Diatonic Steps: C to E is 3 diatonic steps (C, D, E).

Result: Major Third (Ascending)

This is a fundamental interval in major chords and melodies, often perceived as bright and stable.

Example 2: A Dissonant Interval (Tritone)

Input Notes: Note 1: F4, Note 2: B4

Calculation:

  • F4 (Note 1) is 53 semitones from C0.
  • B4 (Note 2) is 59 semitones from C0.
  • Semitone Difference: 59 - 53 = 6 semitones.
  • Diatonic Steps: F to B is 4 diatonic steps (F, G, A, B).

Result: Augmented Fourth (Ascending)

Alternatively, if Note 2 were spelled 'Cb5' (enharmonically equivalent to B4), the diatonic interval would be a Diminished Fifth. Both span 6 semitones, highlighting the importance of diatonic context.

Example 3: A Compound Interval

Input Notes: Note 1: C4, Note 2: D5

Calculation:

  • C4 (Note 1) is 48 semitones from C0.
  • D5 (Note 2) is 62 semitones from C0.
  • Semitone Difference: 62 - 48 = 14 semitones.
  • Diatonic Steps: C4 to D5 covers C,D,E,F,G,A,B (7 steps for the octave) then C,D (2 steps). Total 7+2 = 9 diatonic steps.

Result: Major Ninth (Ascending)

A Major Ninth is a compound interval, meaning it spans more than an octave. It's equivalent to a Major Second plus an octave.

How to Use This Music Theory Interval Calculator

Using this music theory interval calculator is straightforward and designed for efficiency:

  1. Select Note 1: Use the first set of dropdowns to choose the letter name (e.g., 'C', 'F#') and the octave number (e.g., '4' for middle C's octave) for your first note.
  2. Select Note 2: Similarly, use the second set of dropdowns to specify your second note. This note will be analyzed relative to Note 1.
  3. Automatic Calculation: As soon as you change either note or octave, the calculator will automatically update the results. You can also click the "Calculate Interval" button.
  4. Interpret Results: The results section will display the primary interval name (e.g., "Major Third"), the total semitones, the diatonic steps, and the direction (ascending or descending).
  5. Visualize: The chart below the results provides a simple visual representation of the semitone distance.
  6. Reset: Click the "Reset" button to clear all selections and return to the default notes (C4 and E4).
  7. Copy Results: Use the "Copy Results" button to quickly copy all calculated information to your clipboard for easy sharing or documentation.

This tool is ideal for ear training exercises, analyzing compositions, or understanding chord voicings.

Key Factors That Affect Musical Intervals

Understanding musical intervals goes beyond just counting semitones. Several factors influence their perception, naming, and musical function:

Frequently Asked Questions (FAQ)

Q: What is the difference between a Major and a Minor interval?

A: Major and Minor qualities apply to Seconds, Thirds, Sixths, and Sevenths. A Minor interval is always one semitone smaller than its Major counterpart (e.g., Major Third = 4 semitones, Minor Third = 3 semitones). Perfect intervals (Unison, Fourth, Fifth, Octave) do not have Major/Minor forms.

Q: Why are some intervals called "Perfect"?

A: Unisons, Fourths, Fifths, and Octaves are considered "Perfect" due to their strong, consonant sound and their fundamental importance in acoustics and early music theory. Their intervallic ratios are simple and acoustically pure. They are also unique in that they only have Perfect, Augmented, or Diminished forms, not Major/Minor.

Q: What is a compound interval?

A: A compound interval is any interval larger than an octave (12 semitones). For example, a Ninth is a compound interval (an octave plus a second), an Eleventh is an octave plus a fourth, and a Thirteenth is an octave plus a sixth.

Q: How does enharmonic spelling (e.g., C# vs. Db) affect the interval?

A: While C# and Db sound the same (they are enharmonic equivalents), their spelling changes their diatonic step count. This means the interval's *number* and *quality* will change. For example, C to C# is an Augmented Unison (1 diatonic step, 1 semitone), while C to Db is a Minor Second (2 diatonic steps, 1 semitone).

Q: Can this calculator determine intervals for chords?

A: This calculator is designed for two-note intervals. To analyze chords, you would typically break them down into individual intervals from the root note (e.g., for a C Major chord - C, E, G - you'd calculate C-E and C-G). For full chord analysis, consider a dedicated chord calculator.

Q: What's the smallest possible interval?

A: The smallest possible interval is typically a "Diminished Second" (0 semitones, e.g., C to Db) or an "Augmented Unison" (1 semitone, e.g., C to C#). A "Perfect Unison" (0 semitones, same note) is also an interval, representing no distance.

Q: Does the order of notes matter (Note 1 vs. Note 2)?

A: Yes, the order determines the direction (ascending or descending). While the absolute semitone count and interval quality remain the same, the direction is an important musical attribute. For example, C up to G is an Ascending Perfect Fifth, while G down to C is a Descending Perfect Fifth.

Q: What does "Doubly Augmented" or "Doubly Diminished" mean?

A: These are extreme interval qualities. A "Doubly Augmented" interval is two semitones larger than a Perfect or Major interval (e.g., C to F## is a Doubly Augmented Fourth). A "Doubly Diminished" interval is two semitones smaller than a Perfect or Minor interval (e.g., C to Fbb is a Doubly Diminished Fourth). They are less common but exist in advanced theory.

Related Tools and Internal Resources

Expand your music theory knowledge and practice with our other helpful tools:

🔗 Related Calculators