Music interval calculator

Type two notes, such as C4 and G4 or F#3 and D4. The calculator names the interval from how the notes are spelled (C–E is a major third, C–F♭ a diminished fourth), counts the semitones and gives the frequency ratio in equal temperament and in just intonation.

Letter, optional ♯ (#) or ♭ (b), and octave: C4 is middle C. Without octaves the second note is taken above the first.
IntervalPerfect fifth
Short name
P5
Semitones
7
Cents (equal temperament)
700 ¢
Frequency ratio, equal temperament
1.4983
Just ratio
3:2 (701.96 ¢)
Inversion
Perfect fourth (P4)
Direction
Ascending: C4 → G4

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type the first note with its octave, for example C4, Bb3 or F#5.
  2. Type the second note. If you leave out both octaves, the second note is taken above the first.
  3. Read the interval name, its short form (P5, M3, m7), the semitones, cents and ratios.

How it works

  • Number: letters from the lower to the higher note, both counted (C → G: C D E F G = 5).
  • Quality: semitones compared with the major or perfect interval of that number. One semitone more than major or perfect is augmented; one less than minor or perfect is diminished.
  • Equal-tempered ratio: 2^(semitones ÷ 12); cents = semitones × 100.
  • Just ratio: the usual five-limit ratios (1:1, 16:15, 9:8, 6:5, 5:4, 4:3, 45:32 or 64:45, 3:2, 8:5, 5:3, 9:5, 15:8, 2:1), doubled for each octave.

Worked example

C4 to G4:

  • letters C D E F G → a fifth;
  • 7 semitones, the same as a perfect fifth → Perfect fifth (P5);
  • 700 cents; equal-tempered ratio 2^(7/12) = 1.4983; just ratio 3:2 = 701.96 ¢;
  • inversion: G to C, a Perfect fourth (P4).

Tips

  • Use the spelling from the score: E–G♯ (major third) and E–A♭ (diminished fourth) read differently.
  • Compound intervals keep their full name up to a double octave: C4–E5 is a Major tenth.
  • To go from cents to frequencies and back, use the cents calculator.

Frequently asked questions

How are intervals named?

The number comes from the letter names: count both notes, so C to E (C, D, E) is a third and C to G a fifth. The quality comes from the semitones: unisons, fourths, fifths and octaves are perfect, augmented or diminished; seconds, thirds, sixths and sevenths are major, minor, augmented or diminished.

Why is C–F♯ different from C–G♭?

Both are 6 semitones, but C–F♯ spans four letters (an augmented fourth) and C–G♭ five letters (a diminished fifth). They sound the same on a piano but play different roles in harmony, so the spelling you type decides the name.

What is the frequency ratio?

In equal temperament each semitone multiplies the frequency by 2^(1/12) ≈ 1.0595, so a fifth is 2^(7/12) = 1.4983. Just intonation uses whole-number ratios instead: 3:2 for a fifth, 5:4 for a major third. The just ratio is also shown in cents, so you can see how far it is from the tempered interval (a just fifth is 701.96 ¢, about 2 cents wider).

What is an inversion?

Moving the lower note up an octave. The numbers add up to 9 and the quality flips: a major third becomes a minor sixth, a perfect fifth a perfect fourth, an augmented fourth a diminished fifth.

Which octave numbers are used?

Scientific pitch notation: middle C is C4 and the A above it, at 440 Hz, is A4. The octave number changes between B and C, so B3 is just below C4.

More in Device tests

All tools in this category: Device tests ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.