Music Theory Interval Calculator
Precisely calculate and understand musical intervals between notes with our comprehensive interval calculator. Essential for musicians, composers, and students.
Interval Calculator
Choose the first note in your interval.
Choose the second note in your interval.
Enter the octave for the starting note (e.g., 4 for middle C).
Enter the octave for the ending note. Can be the same or different from the start.
Interval Calculation Results
Interval Name
Semitones
Diatonic Interval
| Interval Name | Abbreviation | Semitones | Common Quality |
|---|---|---|---|
| Unison | U | 0 | Perfect |
| Minor Second | m2 | 1 | Minor |
| Major Second | M2 | 2 | Major |
| Minor Third | m3 | 3 | Minor |
| Major Third | M3 | 4 | Major |
| Perfect Fourth | P4 | 5 | Perfect |
| Tritone | TT | 6 | Augmented/Diminished |
| Perfect Fifth | P5 | 7 | Perfect |
| Minor Sixth | m6 | 8 | Minor |
| Major Sixth | M6 | 9 | Major |
| Minor Seventh | m7 | 10 | Minor |
| Major Seventh | M7 | 11 | Major |
| Octave | O | 12 | Perfect |
What is a Musical Interval?
A musical interval is the fundamental building block of harmony and melody in music theory. It represents the difference in pitch between two musical notes. Whether played simultaneously (harmonic interval) or sequentially (melodic interval), the relationship between these two notes defines the interval. Understanding intervals is crucial for ear training, composition, improvisation, and comprehending harmonic progressions.
Who should use an interval calculator? Musicians of all levels, including students learning music theory, composers crafting melodies and harmonies, improvisers seeking to expand their vocabulary, and producers analyzing existing music, will find an interval calculator invaluable. It serves as a quick reference and learning tool.
Common misconceptions about intervals often revolve around their naming and quality. For instance, people might confuse the number of the interval (e.g., a third) with its quality (e.g., major or minor). Also, the concept of “enharmonic equivalents” (like C# and Db) can sometimes lead to confusion, though in terms of pitch class, they are the same. The calculator helps clarify these distinctions.
{primary_keyword} Formula and Mathematical Explanation
The calculation of a musical interval involves determining the number of semitones between two notes and then classifying that interval based on its numerical distance and quality. This process can be broken down into steps.
Step 1: Determine the Pitch Class Numerical Value
We assign a numerical value to each pitch class within an octave, typically starting with C=0. This allows for mathematical comparison.
- C = 0
- C# / Db = 1
- D = 2
- D# / Eb = 3
- E = 4
- F = 5
- F# / Gb = 6
- G = 7
- G# / Ab = 8
- A = 9
- A# / Bb = 10
- B = 11
Step 2: Calculate the Total Semitones
The total number of semitones is calculated by considering both the pitch class values and the octave difference. The formula is:
Total Semitones = (Ending Note Pitch Class Value - Starting Note Pitch Class Value) + (Ending Octave - Starting Octave) * 12
For example, from C4 to G4:
- C pitch class value = 0
- G pitch class value = 7
- Starting Octave = 4
- Ending Octave = 4
Total Semitones = (7 - 0) + (4 - 4) * 12 = 7 + 0 * 12 = 7
From C4 to C5:
- C pitch class value = 0
- C pitch class value = 0
- Starting Octave = 4
- Ending Octave = 5
Total Semitones = (0 - 0) + (5 - 4) * 12 = 0 + 1 * 12 = 12
Step 3: Determine the Diatonic Interval Number
This is the numerical part of the interval name (e.g., the ‘3rd’ in a ‘Major Third’). It’s determined by counting the letter names from the starting note to the ending note, inclusive. If the notes are in different octaves, we count across the octave boundary.
Example: C to G. Counting C, D, E, F, G gives us 5. So it’s a 5th.
Example: C4 to C5. Counting C gives us 1 (unison/octave). Since it’s across an octave, it’s an Octave.
Step 4: Determine the Interval Quality
The quality (Perfect, Major, Minor, Augmented, Diminished) is determined by comparing the calculated total semitones to the expected number of semitones for the diatonic interval number in a major scale context. We use the diatonic interval number derived in Step 3 and the total semitones from Step 2.
- Perfect (P): Unisons (0 semitones), Fourths (5), Fifths (7), Octaves (12).
- Major (M): Seconds (2 semitones), Thirds (4), Sixths (9), Sevenths (11).
- Minor (m): A Major interval lowered by one semitone (e.g., M2 = 2 semitones, m2 = 1 semitone).
- Augmented (A): A Perfect or Major interval raised by one semitone.
- Diminished (d): A Perfect or Minor interval lowered by one semitone.
The calculator uses these rules to map the total semitones and diatonic number to the correct interval name.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Note 1 (Pitch Class) | The starting note’s letter name (e.g., C, F#). | String (Note Name) | C to B |
| Note 2 (Pitch Class) | The ending note’s letter name. | String (Note Name) | C to B |
| Octave 1 | The octave number for the starting note. | Integer | 0-8 |
| Octave 2 | The octave number for the ending note. | Integer | 0-8 |
| Pitch Class Value | Numerical representation of a note within an octave (C=0). | Integer | 0-11 |
| Total Semitones | The total number of half-steps between the two notes. | Integer | Variable (e.g., 0 to 96 for C0 to B8) |
| Diatonic Interval Number | The numerical count of letter names from start to end note. | Integer | 1+ |
| Interval Name | The full name of the interval (e.g., Major Third). | String | Varies |
| Interval Quality | The classification of the interval (Perfect, Major, Minor, etc.). | String | Perfect, Major, Minor, Augmented, Diminished |
Practical Examples (Real-World Use Cases)
Example 1: Identifying a Melody Fragment
Imagine you heard a short melody played on a piano, starting on Middle C (C4) and the next note is E4. You want to know the interval.
- Input: Starting Note = C, Starting Octave = 4; Ending Note = E, Ending Octave = 4.
- Calculation:
- Pitch Class Values: C=0, E=4.
- Total Semitones = (4 – 0) + (4 – 4) * 12 = 4.
- Diatonic Interval Number: C, D, E = 3rd.
- Quality: 4 semitones for a 3rd is a Major interval.
- Output: The interval is a Major Third (4 semitones).
- Interpretation: This is a very common and consonant interval, often forming the basis of major chords (e.g., C Major triad: C-E-G). Knowing this helps in transcribing music or understanding basic harmony.
Example 2: Analyzing a Chord Voicing
A guitarist plays a chord where the lowest note is G3 and the highest note is D4. What is the interval between these two specific notes?
- Input: Starting Note = G, Starting Octave = 3; Ending Note = D, Ending Octave = 4.
- Calculation:
- Pitch Class Values: G=7, D=2.
- Total Semitones = (2 – 7) + (4 – 3) * 12 = -5 + 1 * 12 = 7.
- Diatonic Interval Number: G, A, B, C, D = 5th.
- Quality: 7 semitones for a 5th is a Perfect interval.
- Output: The interval is a Perfect Fifth (7 semitones).
- Interpretation: The Perfect Fifth is a highly consonant interval and a fundamental component of most chords, including the G Major chord (G-B-D). Identifying this interval helps analyze chord structure and voicing choices in guitar playing or other instruments. This is a core part of understanding music harmony.
How to Use This Interval Calculator
Using our Music Theory Interval Calculator is straightforward. Follow these steps to quickly determine any musical interval:
- Select Starting Note: Choose the first note of your interval (e.g., ‘A’) from the ‘Starting Note’ dropdown.
- Select Ending Note: Choose the second note of your interval (e.g., ‘F#’) from the ‘Ending Note’ dropdown.
- Enter Octaves: Input the octave number for both the starting and ending notes. Use ‘4’ for Middle C’s octave. If the notes span multiple octaves, ensure the octave numbers reflect this (e.g., C4 to C5).
- Calculate: Click the “Calculate Interval” button.
Reading the Results:
- Primary Result (Interval Name): This is the main output, displaying the full name of the interval (e.g., “Minor Sixth”).
- Semitones: Shows the exact number of half steps between the two notes.
- Diatonic Interval: Indicates the numerical distance (e.g., “6th”).
- Formula Explanation: Provides a brief summary of how the result was derived.
Decision-Making Guidance: Use the results to identify intervals in music you’re learning, check your own compositions, or practice ear training. For example, recognizing a dissonant interval like a diminished fifth can help you understand tension in a piece of music, while identifying consonant intervals like perfect fifths helps you understand stable harmonic foundations.
Key Factors That Affect Interval Results
While the calculation itself is precise, several factors in music theory and practice relate to how intervals are perceived and used:
- Pitch Class vs. Specific Pitch: The calculator primarily uses pitch class (e.g., ‘C’, ‘G#’). However, the octave significantly changes the *specific pitch*. C4 is different from C5. Our calculator accounts for this by including octave inputs, resulting in intervals like a ‘Major Third’ (C4-E4) versus an ‘Octave’ (C4-C5).
- Enharmonic Equivalence: Notes like C# and Db represent the same pitch but are spelled differently. Our calculator treats them as equivalent pitch classes (value 1) for simplicity in calculation, but context might dictate one spelling over another in musical notation (relevant for music notation software).
- Diatonic Context: Whether an interval is Major, Minor, or Perfect depends heavily on the scale being used. For instance, ‘A’ to ‘C’ is a minor third (3 semitones), while ‘A’ to ‘C#’ is a major third (4 semitones). The calculator identifies the interval based on the notes provided, assuming standard chromatic semitone differences.
- Compound Intervals: Intervals larger than an octave (e.g., a Tenth) are called compound intervals. Our calculator determines the simple interval (e.g., a Third) and the total semitones. To get the compound interval name, you add ‘octave’ to the simple interval name (e.g., C4 to E5 is a Major Tenth).
- Microtonal Music: Standard Western music theory and this calculator operate within a 12-semitone system. Microtonal music uses intervals smaller than a semitone, which this calculator does not address.
- Temperament: While this calculator measures intervals in pure semitones, how those intervals sound in practice depends on tuning systems (e.g., Equal Temperament, Just Intonation). Equal temperament divides the octave into 12 precisely equal semitones, which is the standard for most modern instruments like pianos and guitars.
Frequently Asked Questions (FAQ)
A harmonic interval involves two notes played simultaneously, while a melodic interval involves two notes played sequentially. The calculation of semitones and the interval name remains the same, but the perceptual effect differs.
Count the letter names inclusively from the starting note to the ending note. For example, from C4 to G5: C, D, E, F, G counts as a 5th. The calculator handles this logic internally.
Enharmonic means two different names for the same pitch (e.g., C# and Db). Our calculator uses a standardized pitch class value, so C# and Db will yield the same results. The choice between them depends on the musical context and key signature.
Yes. Based on the number of semitones and the diatonic interval number, the calculator will correctly identify augmented or diminished intervals if they fall outside the standard major/minor/perfect definitions (e.g., 6 semitones from C to F# is an Augmented Fourth).
Ensure you have entered the correct starting note, ending note, and importantly, the correct octaves. Intervals spanning more than an octave are called compound intervals, and this calculator provides the basic interval name (e.g., “Major Third”) and semitones. You can derive the compound name by adding “octave” (e.g., “Major Tenth” for C4 to E5).
The most consonant intervals are generally considered the Perfect Unison (0 semitones), Perfect Octave (12 semitones), and Perfect Fifth (7 semitones). The Perfect Fourth (5 semitones) is also highly consonant. Major and minor thirds/sixths are considered consonant but less so than perfect intervals.
Intervals like the augmented second (3 semitones), diminished seventh (9 semitones), and particularly the tritone (6 semitones, e.g., C to F# or C to Gb) are traditionally considered dissonant, creating musical tension that often resolves to more consonant intervals.
Intervals are the building blocks of chords. A triad, for instance, is typically built using a root, a third, and a fifth. Understanding these basic intervals is fundamental to constructing and analyzing any chord.
Related Tools and Internal Resources
Explore these related resources to deepen your understanding of music theory and related concepts:
- Music Scale Generator: Discover and build various musical scales.
- Chord Calculator: Analyze and construct musical chords.
- Key Signature Finder: Identify the key signature of a piece of music.
- Music Note Frequency Calculator: Calculate the precise frequencies of musical notes.
- Basic Music Theory Guide: An introductory overview of music theory concepts.
- Understanding Rhythm: Learn about note durations and time signatures.