Music Interval Calculator

Calculate frequencies, semitones, cents, frequency ratio, direction, and interval name based on starting and ending notes, octaves, and tuning. Music Interval Calculator helps musicians, composers, producers, educators, and students analyze pitch relationships accurately.

Highlights

  • Calculate the distance between any two musical notes.
  • View precise frequencies using your chosen A4 tuning reference.
  • Measure intervals in semitones and cents.
  • Identify interval names and ascending or descending direction.
  • Compare frequency ratios and MIDI note numbers.

Table of Contents

  1. How Music Interval Calculator Works?
  2. Practical Use Cases
  3. Accuracy and Limitations
  4. Quick Examples
  5. Frequently Asked Questions (FAQs)
  6. Cite This Calculator

How Music Interval Calculator Works?

The Music Interval Calculator represents each chromatic pitch with a pitch-class number and combines it with the selected octave. The pitch classes are assigned as C = 0, C♯/D♭ = 1, D = 2, and so on through B = 11. A MIDI-style note number is then calculated from the pitch class and octave:

N=12(O+1)+P

Here, N is the note number, O is the octave, and P is the chromatic pitch-class number. A4 is assigned note number 69, so the frequency of either selected note is calculated from the chosen A4 reference frequency:

f=fA4⁢2(N−69)/12

The signed semitone distance preserves direction:

s=Nend−Nstart

The absolute semitone distance ignores direction, while the cents result expresses the same equal-temperament distance at finer resolution:

a=|s|,c=100s

The frequency ratio compares the ending frequency with the starting frequency:

r=fendfstart=2s/12

A positive signed value produces an ascending or higher result, a negative value produces a descending or lower result, and zero indicates identical pitch. The interval name is selected from the chromatic semitone distance, using the nearest standard interval designation.


SemitonesInterval name
0Unison
1Minor second
2Major second
3Minor third
4Major third
5Perfect fourth
6Tritone
7Perfect fifth
8Minor sixth
9Major sixth
10Minor seventh
11Major seventh
12Octave

Practical Use Cases

Musicians and performers: Musicians can compare two notes to identify the interval, direction, and exact semitone distance when checking melodies, harmonies, vocal jumps, or instrumental intonation.

Composers and arrangers: Composers can use the calculator to verify melodic leaps, harmonic spacing, octave displacement, and the frequency relationship between notes while developing arrangements.

Music producers and sound designers: Producers can calculate the pitch relationship between two synthesizer tones, samples, or tuned layers and use the cents result to diagnose small tuning differences.

Music educators: Teachers can demonstrate how pitch names, octave numbers, MIDI note numbers, frequencies, semitones, cents, and interval names describe the same musical relationship.

Music students: Students can enter familiar note pairs and observe how ascending and descending intervals differ, reinforcing ear-training, keyboard theory, and equal-temperament calculations.

Accuracy and Limitations

The calculator uses the twelve-tone equal-temperament formula with the selected A4 reference between 400 and 480 Hz, so its frequency, ratio, semitone, and cents results are mathematically consistent with that tuning model. It treats enharmonic choices such as C♯ and D♭ as the same chromatic pitch class and identifies intervals from chromatic semitone distance rather than spelling-based theory; therefore, it does not distinguish theoretically different names such as an augmented second and a minor third. Octaves are limited to -1 through 9, and the selected notes are restricted to the listed twelve chromatic pitch classes. The interval name is based on the calculator's standard chromatic mapping, while the frequency outputs are rounded for display.

Quick Examples

Example #1: Perfect Fifth

Analyze the interval from middle C to G in standard tuning.

Example #2: Octave Comparison

Measure the frequency relationship between A4 and the A one octave above it.

Example #3: Descending Minor Third

Evaluate a descending interval from E5 to C5 using a slightly lowered tuning reference.

Frequently Asked Questions

A musical interval is the distance in pitch between two notes. It can be described by its note-name relationship, such as a third or fifth, and by its chromatic distance in semitones.

A semitone is the smallest standard step in Western equal temperament. Each semitone contains 100 cents, allowing pitch differences to be described with greater precision.

The A4 reference frequency sets the tuning standard for calculating note pitches. A value of 440 Hz is the most common modern reference, though orchestras and ensembles may use other values.

Direction shows whether the second note is higher or lower than the first. The same pair of pitch classes can represent different ascending or descending distances depending on their octaves.

MIDI note numbers assign integer values to pitches, with each increase of one representing a semitone. Octave placement and note selection together determine the corresponding MIDI value.

Cite This Calculator