ThisCalculator

Everyday

Interval Identification Calculator: Find Musical Intervals

Updated · Standard formula, shown below

Interval size 7 semitones
Octave span
0.58 octaves
Result
Lower note position
0 semitones
You entered
Upper note position
7 semitones
You entered

Interval Identification Calculator: Find Musical Intervals

An interval identification calculator finds the musical interval between two notes, such as a minor third or a perfect fifth. Enter the lower and upper note as semitone positions relative to the same reference, and it returns the interval size in semitones and its common name.

Formula

The calculator finds the absolute difference between the two note positions:

Interval size in semitones = |upper position − lower position|

  • a is the lower note’s position, measured in semitones from a chosen reference pitch.
  • b is the upper note’s position, measured in semitones from that same reference.
  • Octave span is the semitone difference divided by 12. One octave contains 12 semitones in standard equal temperament.

For example, you could use C4 as position 0: C4 is 0, C♯4 is 1, D4 is 2, and so on. The reference itself does not affect the interval as long as both notes use the same reference and system. This calculation gives the size of the gap, not its full spelled name: note letters and accidentals are needed to distinguish enharmonic intervals.

Worked Example

Using the calculator’s default values, the lower note position is 0 semitones and the upper note position is 7 semitones.

  1. Subtract the positions: 7 − 0 = 7.
  2. Take the absolute value: |7| = 7 semitones.
  3. Convert to octaves: 7 ÷ 12 = 0.5833… octaves, or 0.58 when rounded to two decimal places.

The result is 7 semitones, which is the size of a perfect fifth in common musical spelling. The calculator reports the number, rather than determining whether the written interval is, for example, a perfect fifth or a diminished sixth.

What an Interval Identification Calculator Can Tell You

In music, an interval is the distance between two pitches. A semitone is the smallest standard step between adjacent keys on a piano, such as C to C♯. Two semitones make a whole tone. Counting semitones is a convenient way to measure pitch distance, especially when working with a keyboard, a MIDI note number, or a tuning system based on equal temperament.

The calculator’s first result is a numerical interval size. To attach a familiar name, compare that number with a basic interval pattern:

  • 0 semitones: unison, or the same pitch
  • 1: minor second; 2: major second
  • 3: minor third; 4: major third
  • 5: perfect fourth; 6: augmented fourth or diminished fifth
  • 7: perfect fifth; 8: minor sixth; 9: major sixth
  • 10: minor seventh; 11: major seventh; 12: perfect octave

These examples describe common interval spellings within an octave. Larger gaps can be treated as compound intervals: add an octave to a third, for instance, and the result is a tenth. The semitone count still measures the total distance.

How to Enter Notes Correctly

The calculator accepts numbers rather than note names. Assign each input a position in semitones from a shared reference. A standard MIDI note number can also serve as a position because subtracting two MIDI note numbers gives their semitone distance. For instance, if one note is 60 and another is 67, the difference is 7 semitones.

For notes entered by name, convert both notes using the same convention. With C4 set to 0, an ascending chromatic sequence gives C♯4 = 1, D4 = 2, D♯4 = 3, E4 = 4, F4 = 5, F♯4 = 6, G4 = 7, and so forth. Accidentals matter: F♯ and G♭ have the same equal-tempered pitch on many instruments, but their written interval names can differ.

Input order does not change the reported size because the formula uses an absolute difference. If the second note is lower, the calculator still returns a positive distance. To describe direction, note separately whether the movement is ascending or descending.

Interval Size Versus Interval Name

A frequent misconception is that a semitone count uniquely identifies a musical interval. It does not. In equal temperament, an augmented fourth and a diminished fifth both span six semitones, though their note-letter spelling and musical function differ. Likewise, a note may have different names on paper while sounding at the same pitch on a conventional keyboard.

To identify an interval’s full name, count the note letters as well as the semitones. For example, C to E spans three letter names (C, D, E) and four semitones, making it a major third. C to F♭ also spans four semitones in equal temperament, but the letter count gives a fourth, and its quality is diminished. A calculator based only on numeric pitch positions cannot infer that spelling information.

The interval table above assumes the familiar 12-tone equal-tempered system. In other tuning systems, the actual frequency ratio or cents distance may differ, even when notes are described with similar names. The calculator’s semitone result is therefore a standardized pitch-step count, not a measurement of acoustic frequency ratio.

Common Errors and Limits

  • Using different references: Both values must use the same zero point. Mixing a C-based count with an unrelated note-number system produces a meaningless difference.
  • Mixing units: Enter semitone positions for both notes, not one frequency in hertz and one semitone count. If using frequencies, a different calculation is needed.
  • Ignoring octave numbers: C4 to C5 is 12 semitones, while C4 to C4 is zero. Note names without octave information may be ambiguous.
  • Expecting the enharmonic spelling: A numerical result cannot decide between names such as augmented fourth and diminished fifth.
  • Rounding too early: Standard note positions are whole semitones. If you are working with measured pitches or cents, keep the precision needed for that task; this calculator is not a cents or frequency analyzer.

The model also assumes a linear semitone scale. It is useful for comparing note positions in equal temperament, but it does not account for instrument-specific tuning, expressive bends, just intonation, or the perceptual effects of timbre and context.

Frequently Asked Questions

How do I calculate the interval between two notes?
Represent each note as a semitone position from one shared reference, then subtract the positions and take the absolute value. The result is the interval size in semitones.

How many semitones are in an octave?
In standard 12-tone equal temperament, an octave contains 12 semitones. A gap of 24 semitones is two octaves.

Can a calculator identify a perfect fifth?
A seven-semitone result matches the size of a perfect fifth in common spelling. To confirm the full written interval, check the note letters as well as the semitone count.

Why can two interval names have the same number of semitones?
Enharmonic intervals can share a pitch distance but use different note-letter spellings. For example, an augmented fourth and a diminished fifth both span six semitones in equal temperament.

Does the order of the notes matter?
Not for interval size: the calculator returns a positive distance either way. The order matters if you also want to describe the interval as ascending or descending.

Related

Formula used
in a | Lower note position | semitones | 0 | 0
in b | Upper note position | semitones | 7 | 0
out semitones | Interval size | semitones | abs(b - a) | 0
out octaves | Octave span | octaves | abs(b - a) / 12 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.