Music Theory Interval Calculator
Analyze musical distances between notes, identify interval names, and calculate frequency ratios instantly.
Select the base note of the interval.
Select the second note to find the distance.
Visual Frequency Comparison
Height represents relative frequency (Hz) comparison.
Distance = |(Octave2 × 12 + Note2) – (Octave1 × 12 + Note1)|
Frequency (f) = 440 × 2(n-69)/12, where n is the MIDI note number.
What is a Music Theory Interval Calculator?
A music theory interval calculator is an essential tool for musicians, composers, and students designed to measure the “space” or distance between two distinct pitches. In music theory, an interval is the difference in pitch between two sounds. This measurement can be vertical (harmonic), occurring simultaneously, or horizontal (melodic), occurring in sequence.
Using a music theory interval calculator allows users to quickly identify complex relationships like Major 7ths, Tritones, or Compound Intervals that span multiple octaves. This tool is frequently used by those studying ear training, harmony, and composition to verify their mathematical understanding of the 12-tone equal temperament system.
A common misconception is that intervals are only defined by the number of semitones. While semitones provide a physical distance, the name of the interval (e.g., Augmented 4th vs. Diminished 5th) depends heavily on the musical context and spelling within a scale. Our music theory interval calculator focuses on the primary semitone distance and the standard names used in Western music theory.
Music Theory Interval Calculator Formula and Mathematical Explanation
The calculation of musical intervals relies on a logarithmic scale. In Western music, the octave is divided into 12 equal parts called semitones. To calculate the distance between two notes, we first convert the note name and octave into a numeric value known as a MIDI note number.
Step-by-Step Derivation:
- Determine MIDI Note Number: For any note, the formula is:
N = (Octave + 1) * 12 + NoteValue
(Where C=0, C#=1, … B=11) - Calculate Difference: Subtract the starting note value from the target note value.
ΔN = N2 - N1 - Identify Interval Name: Use the absolute difference modulo 12 to find the basic interval name (Unison, Minor 2nd, etc.).
- Calculate Frequency: To find the actual physical frequency in Hertz (Hz), we use:
f = 440 * 2^((N-69)/12)
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| N1, N2 | MIDI Note Number | Integer | 0 to 127 |
| ΔN | Semitone Distance | Semitones | 0 to 120 |
| f | Frequency | Hertz (Hz) | 20 Hz to 20,000 Hz |
| Ratio | Frequency Ratio | Ratio (X:1) | 1:1 to 128:1 |
Practical Examples (Real-World Use Cases)
Example 1: The Perfect Fifth
Suppose you are analyzing a power chord. Your starting note is C4 (Middle C) and your target note is G4.
- C4 MIDI Number: (4+1)*12 + 0 = 60
- G4 MIDI Number: (4+1)*12 + 7 = 67
- Difference: 67 – 60 = 7 semitones.
- Result: This is a Perfect 5th. In a music theory interval calculator, the frequency ratio would show as approximately 1.498:1.
Example 2: Major Third Octave Displacement
If a bassist plays E1 and a guitarist plays G#3:
- E1 MIDI: (1+1)*12 + 4 = 28
- G#3 MIDI: (3+1)*12 + 8 = 56
- Difference: 56 – 28 = 28 semitones.
- Calculation: 28 / 12 = 2 octaves + 4 semitones.
- Result: This is a Major Third plus two octaves (a Compound Major 3rd).
How to Use This Music Theory Interval Calculator
- Select the Start Note: Choose the pitch from the first dropdown (e.g., “A”).
- Set the Start Octave: Enter the octave number. Octave 4 contains Middle C.
- Select the Target Note: Choose the second pitch (e.g., “E”).
- Set the Target Octave: Enter the octave for the second note. If it’s higher than the start octave, the interval is ascending.
- Read the Results: The calculator updates in real-time. Look at the large blue text for the specific interval name.
- Analyze the Chart: The SVG chart visually compares the frequencies of the two notes.
Key Factors That Affect Music Theory Interval Results
- Tuning System: This calculator uses Equal Temperament (12-TET). In “Just Intonation,” the ratios (like 3:2 for a 5th) are perfect integers, whereas in 12-TET they are slightly irrational.
- Octave Displacement: An interval like a “9th” is functionally a 2nd plus an octave. Understanding compound intervals is vital for orchestral arrangement.
- Enharmonic Equivalence: C# and Db are the same physical key on a piano. A music theory interval calculator often simplifies these for ease of use, though “spelling” matters in notation.
- Directionality: Intervals can be ascending (up) or descending (down). This changes the musical feel but not the semitone count.
- Reference Pitch: We assume A4 = 440Hz. If a group tunes to A=432Hz, the absolute frequencies change, though the intervals remain identical.
- Harmonic Overtones: Pure intervals sound “consonant” because their frequency ratios align with the harmonic series (e.g., Octave 2:1, Perfect 5th 3:2).
Frequently Asked Questions (FAQ)
A tritone is an interval of six semitones, exactly half an octave. It is also known as an Augmented 4th or Diminished 5th.
Hertz measures the vibration speed. It helps musicians understand how “low” or “high” a note is physically.
In Scientific Pitch Notation (SPN), Middle C is designated as C4.
There are exactly 12 semitones in a single octave.
A compound interval is any distance greater than an octave (12 semitones), such as a 9th, 11th, or 13th.
They are “inversions” of each other. If you move the bottom note of a Minor 2nd up an octave, it becomes a Major 7th.
Intervals are the building blocks of melodies and chords. They determine whether a sound is happy, sad, tense, or resolved.
This music theory interval calculator is specific to the 12-tone Western system. Microtonal music uses different math.
Related Tools and Internal Resources
- Chord Identifier Tool – Identify complex jazz and classical chords.
- Scale Degree Calculator – Find the position of notes within a specific key.
- Tempo BPM Counter – Calculate the speed of your musical compositions.
- Frequency to Note Converter – Convert any Hz value into its closest musical note.
- Circle of Fifths Interactive – Explore key relationships and modulations.
- Music Transposition Tool – Move entire melodies between different keys and intervals.