Music Theory Interval Calculator






Music Theory Interval Calculator – Professional Music Analysis Tool


Music Theory Interval Calculator

Analyze musical distances between notes, identify interval names, and calculate frequency ratios instantly.


Select the base note of the interval.


Please enter an octave between 0 and 8.


Select the second note to find the distance.


Please enter an octave between 0 and 8.

Perfect 5th
Semitones: 7 semitones
Frequency Ratio: 1.498:1 (Equal Temperament)
Direction: Ascending
Frequencies: 261.63 Hz to 392.00 Hz

Visual Frequency Comparison

Note 1 Note 2

Height represents relative frequency (Hz) comparison.

Formula Used:
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:

  1. Determine MIDI Note Number: For any note, the formula is:
    N = (Octave + 1) * 12 + NoteValue
    (Where C=0, C#=1, … B=11)
  2. Calculate Difference: Subtract the starting note value from the target note value.
    ΔN = N2 - N1
  3. Identify Interval Name: Use the absolute difference modulo 12 to find the basic interval name (Unison, Minor 2nd, etc.).
  4. Calculate Frequency: To find the actual physical frequency in Hertz (Hz), we use:
    f = 440 * 2^((N-69)/12)
Variables Used in Interval Calculation
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

  1. Select the Start Note: Choose the pitch from the first dropdown (e.g., “A”).
  2. Set the Start Octave: Enter the octave number. Octave 4 contains Middle C.
  3. Select the Target Note: Choose the second pitch (e.g., “E”).
  4. Set the Target Octave: Enter the octave for the second note. If it’s higher than the start octave, the interval is ascending.
  5. Read the Results: The calculator updates in real-time. Look at the large blue text for the specific interval name.
  6. 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)

What is a Tritone?

A tritone is an interval of six semitones, exactly half an octave. It is also known as an Augmented 4th or Diminished 5th.

Why does the calculator show Hertz (Hz)?

Hertz measures the vibration speed. It helps musicians understand how “low” or “high” a note is physically.

What is Middle C’s octave?

In Scientific Pitch Notation (SPN), Middle C is designated as C4.

How many semitones are in an octave?

There are exactly 12 semitones in a single octave.

What is a compound interval?

A compound interval is any distance greater than an octave (12 semitones), such as a 9th, 11th, or 13th.

Is a Minor 2nd the same as a Major 7th?

They are “inversions” of each other. If you move the bottom note of a Minor 2nd up an octave, it becomes a Major 7th.

Why do intervals matter?

Intervals are the building blocks of melodies and chords. They determine whether a sound is happy, sad, tense, or resolved.

Can I use this for non-Western music?

This music theory interval calculator is specific to the 12-tone Western system. Microtonal music uses different math.

© 2023 Music Theory Analytics. All rights reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *