Calculators.Life Calculator
Math

Music Interval Calculator

Input Parameters

Scenarios
Scientific octave designation (e.g., 4 for middle C)
Scientific octave designation (e.g., 4 for middle C)

Computed Results

Interval Name
Perfect unison
Semitones (Half Steps)0
Frequency Ratio (12-TET)1
Note 1 Frequency (Hz)261.63
Note 2 Frequency (Hz)261.63

The music interval calculator determines the musical distance between two notes. By entering the starting and ending notes along with their octaves, you can quickly find the interval name, the number of semitones (half steps), and the exact frequency ratio between the pitches.

How to Use the Music Interval Calculator

Follow these steps to calculate the interval between two musical notes:

  1. Select Note 1: Choose the starting pitch (e.g., C, D#, Eb).
  2. Enter Note 1 Octave: Input the scientific octave number (e.g., 4 for middle C).
  3. Select Note 2: Choose the ending pitch.
  4. Enter Note 2 Octave: Input the scientific octave number for the second note.
  5. Choose Direction: Select "auto" to calculate the absolute distance, or "ascending" to force the calculation upward from Note 1.

Formula & Calculation Method

The calculator uses the 12-tone equal temperament (12-TET) system, where an octave is divided into 12 equal semitones. The standard reference pitch is A4 = 440 Hz.

The frequency of any note is calculated using its MIDI note number:

Frequency = 440 × 2^((MIDI Note − 69) ÷ 12)

The frequency ratio between two notes is determined by the number of semitones separating them:

Ratio = 2^(Semitones ÷ 12)

Inputs & Outputs

Input/OutputDescription
Note 1 & OctaveThe starting pitch and its scientific octave designation.
Note 2 & OctaveThe ending pitch and its scientific octave designation.
DirectionDetermines how the distance is measured (auto or ascending).
Interval NameThe standard musical name for the distance (e.g., Perfect fifth, Major tenth).
SemitonesThe total number of half steps between the two notes.
Frequency RatioThe mathematical ratio of the two frequencies in 12-TET.
Frequencies (Hz)The calculated pitch in Hertz for both notes.

Verified Scenario Walkthroughs

Here are examples of how the calculator determines intervals based on different note combinations:

Basic Minor Second Interval

If you start on C4 and move to Db4 (auto direction), the calculator identifies a distance of 1 semitone. This is a Minor second, with a frequency ratio of 1.0595. The frequencies are 261.63 Hz and 277.18 Hz.

Compound Major Tenth Interval

Moving from C3 to E4 spans 16 semitones. The calculator names this a Major tenth. The frequency ratio is 2.5198, with frequencies of 130.81 Hz and 329.63 Hz.

Descending Octave Boundary Test

Calculating the distance from B8 down to C0 (auto direction) results in a massive span of 107 semitones. The interval is named Major seventh + 8 octaves, with a frequency ratio of 483.2636. The frequencies are 7902.13 Hz and 16.35 Hz.

Practical Use Cases

This calculator is useful for musicians, audio engineers, and music theory students. It helps in understanding the mathematical relationship between pitches, tuning synthesizers, or analyzing chord structures and melodic leaps across multiple octaves.

Frequently Asked Questions

What is a semitone?

A semitone, or half step, is the smallest musical interval commonly used in Western music. It is the distance between two adjacent keys on a piano.

How does the octave number work?

The calculator uses scientific pitch notation, where C4 represents middle C on a piano. Each new octave starts on C, so B3 is just below C4.

What does the frequency ratio mean?

The frequency ratio shows the mathematical relationship between the two pitches. For example, a perfect octave has a ratio of exactly 2, meaning the higher note vibrates twice as fast as the lower note.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.