ThisCalculator

Everyday

Interval Calculator Music: Find Notes in Any Key

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Interval Calculator Music: Find Notes in Any Key

An interval calculator for music tells you the distance between two notes, naming the interval (like a perfect fifth or minor third) and often showing how many semitones it spans. You enter two note names or pitches, and the calculator returns the interval name, the semitone count, and sometimes the ratio or an example melody. This is essential for composers, improvisers, and music theory students who need to identify or construct intervals quickly.

Formula

The interval is determined by two components: the letter distance (how many letter names apart, counting the starting note as 1) and the semitone distance (the number of half steps between the notes). The formula is:

Interval = (Letter Distance, Semitone Count)

Where:

  • Letter Distance = number of letter names from the first note to the second, inclusive (e.g., C to G = 5).
  • Semitone Count = absolute number of half steps between the two pitches (e.g., C to G = 7).

The combination of these two numbers gives the interval quality (major, minor, perfect, augmented, diminished) and number (unison, second, third, etc.). For example, a letter distance of 5 and 7 semitones is a perfect fifth; a letter distance of 3 and 3 semitones is a minor third.

Worked Example

Using the default values: First note = C, Second note = G.

  1. Count letter names: C (1), D (2), E (3), F (4), G (5). Letter distance = 5.
  2. Count semitones from C to G: C→C# (1), →D (2), →D# (3), →E (4), →F (5), →F# (6), →G (7). Semitone count = 7.
  3. With letter distance 5 and 7 semitones, the interval is a perfect fifth.

The calculator returns “Perfect Fifth� and “7 semitones�, matching the result above.

How to Use the Interval Calculator

Enter any two note names (using sharps or flats, e.g., F# or Bb). The calculator will output the interval name and the semitone distance. You can use this to:

  • Identify intervals in a melody or chord you’re analyzing.
  • Transpose music by knowing the interval between original and target keys.
  • Build chords by stacking intervals (e.g., major third + minor third = major triad).
  • Practice ear training by checking your guesses against the calculator.

Remember that the calculator assumes an equal-tempered tuning system (the standard for most Western music). If you’re working with just intonation or microtonal music, the semitone counts may not apply directly.

Common Mistakes and Misconceptions

One common mistake is confusing interval names with semitone counts alone. For example, both C to E (major third) and C to Fb (diminished fourth) have 4 semitones, but they are different intervals because the letter distance differs. The calculator correctly names intervals based on both letter and semitone distance, so you avoid this error.

Another misconception is that an octave is always 12 semitones. In equal temperament, yes, but in other tuning systems, an octave can be slightly different. The calculator uses 12 semitones per octave, which is standard for modern instruments.

Also, note that intervals can be compound (greater than an octave). For example, C to D an octave up is a major ninth, not a major second. The calculator will show the compound name if you enter notes that span more than an octave.

Choosing the Right Interval Calculator

Not all interval calculators are the same. Some only accept note names, while others allow MIDI note numbers or frequencies. Consider what you need:

  • If you’re a composer working with sheet music, a note-name calculator is most convenient.
  • If you’re a producer using MIDI, a calculator that accepts MIDI numbers (where C4 = 60) might be faster.
  • If you’re studying acoustics, you might want a calculator that shows frequency ratios.

Our calculator accepts note names (with sharps/flats) and gives you both the interval name and semitone count, which covers most needs.

Limitations and Accuracy

This calculator is accurate for equal-tempered tuning. It does not account for enharmonic spelling preferences (e.g., whether you intend C# or Db), but the interval name will be correct based on the letters you enter. If you enter two notes that are not in the same octave, the calculator will still compute the correct compound interval.

For microtonal music, you’ll need a more specialized tool that can handle quarter tones or other divisions of the octave. Additionally, the calculator assumes a standard 12-note chromatic scale; if you’re using a different scale system, the results may not apply.

Alternatives to a Calculator

If you don’t have access to a calculator, you can identify intervals manually using the following method:

  1. Count the letter names (including the starting note) to get the interval number.
  2. Determine the quality by comparing the semitone count to the major or perfect interval for that number.

For example, to identify C to E: letter distance = 3 (third). A major third has 4 semitones, so C to E is a major third. This method works for any interval but is slower for complex ones.

Frequently Asked Questions

What is the difference between a major and minor interval?

Major and minor are qualities that apply to seconds, thirds, sixths, and sevenths. A major interval is one semitone larger than the minor interval of the same number. For example, a major third is 4 semitones, while a minor third is 3 semitones.

How do I calculate intervals in a different tuning system?

This calculator uses equal temperament. For other tunings, you’d need to know the specific semitone distances, which can vary. Most modern music uses equal temperament, so this calculator is sufficient for general use.

Can I use this calculator for chord construction?

Yes, you can use it to find the intervals between any two notes in a chord. For example, to build a major chord, you need a major third (4 semitones) and a perfect fifth (7 semitones) above the root.

Why does C to Fb show as a diminished fourth instead of a major third?

Because the letter distance is 4 (C, D, E, F), but the semitone count is 4 (same as a major third). The interval is named based on the letter distance, so it’s a fourth, but with 4 semitones it’s diminished.

What is a tritone?

A tritone is an interval of 6 semitones, also known as an augmented fourth or diminished fifth. It’s the midpoint of the octave and has a distinctive dissonant sound.

Related

Formula used
in a | First note (C, D#, etc.) | - | C | 0
in b | Second note (C, D#, etc.) | - | G | 0
out interval | Interval name | - | interval_name(a,b) | 0
out semitones | Semitones | - | semitone_distance(a,b) | 0

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.