Music TheoryPrintFree music theory tools and printable worksheets

Free online tool

Interval Calculator

Interval calculator: pick two notes to get the interval name, semitones and inversion, or add an interval to a note. Hear it, see it, print the table.

Note 1
Note 2

On the staff and the keyboard

Interval reference table

Every interval up to the octave, the augmented and diminished spellings, and the compound intervals up to the fifteenth. Examples start on C4 (middle C).

Intervals with name, semitones and an example above C4
Short nameNameSemitonesExample from C
Simple intervals up to the octave
P1perfect unison0C4–C4
m2minor second1C4–Db4
M2major second2C4–D4
m3minor third3C4–Eb4
M3major third4C4–E4
P4perfect fourth5C4–F4
A4augmented fourth6C4–F#4
d5diminished fifth6C4–Gb4
P5perfect fifth7C4–G4
m6minor sixth8C4–Ab4
M6major sixth9C4–A4
m7minor seventh10C4–Bb4
M7major seventh11C4–B4
P8perfect octave12C4–C5
Augmented and diminished intervals
A1augmented unison1C4–C#4
d2diminished second0C4–Dbb4
d3diminished third2C4–Ebb4
A2augmented second3C4–D#4
d4diminished fourth4C4–Fb4
A3augmented third5C4–E#4
d6diminished sixth7C4–Abb4
A5augmented fifth8C4–G#4
d7diminished seventh9C4–Bbb4
A6augmented sixth10C4–A#4
d8diminished octave11C4–Cb5
A7augmented seventh12C4–B#4
Compound intervals up to the fifteenth
m9minor ninth13C4–Db5
M9major ninth14C4–D5
m10minor tenth15C4–Eb5
M10major tenth16C4–E5
P11perfect eleventh17C4–F5
A11augmented eleventh18C4–F#5
d12diminished twelfth18C4–Gb5
P12perfect twelfth19C4–G5
m13minor thirteenth20C4–Ab5
M13major thirteenth21C4–A5
m14minor fourteenth22C4–Bb5
M14major fourteenth23C4–B5
P15perfect fifteenth24C4–C6

About the Interval Calculator

The Interval Calculator finds the interval between two notes. Enter two notes and it names the interval, such as perfect fifth (P5) or augmented fourth (A4), and shows its size in semitones, direction, inversion and frequency ratios. It runs in the web browser, is free, and needs no sign-up. It also works in reverse: give it a starting note and an interval to find the note above or below, or give it a number of semitones to list the interval names of that size. Nothing you enter is uploaded. Use it as an interval identifier for music theory homework, a semitone calculator for checking distances, or a half step calculator for finding the exact gap between two keys.

How to use the Interval Calculator

  1. The tool starts in the two-notes mode, with Note 1 set to C4 and Note 2 set to G4.
  2. In the Note 1 group, choose a Letter (C to B), an Accidental (double flat (bb) to double sharp (##)) and an Octave (1 to 7).
  3. Set Note 2 the same way. To reverse the two notes, press Swap notes.
  4. Read the result. The heading, such as “Perfect fifth (P5)”, is followed by one sentence and rows labelled Interval, Semitones, Direction, Compound interval, Inversion, Consonant or dissonant, Same sound, other spelling, and the frequency and just-intonation ratios.
  5. Check the staff and keyboard. If the staff is in the wrong clef, change the Clef drop-down to Treble or Bass.
  6. Press ▶ Play one after the other to hear note 1 then note 2, or ▶ Play together to hear both at once. Sound starts after your first click.
  7. To find a note from a starting note, switch to the note plus interval mode. Set the Start note group (Letter, Accidental, Octave), then set the Interval group: Quality, Number (1 to 15) and Direction (Up or Down). The heading reads like “C4 up a perfect fifth (P5) = G4”.
  8. To list the interval names for one size, switch to the semitones mode and set Number of semitones (0 to 36).

The address bar updates as you change settings, and Copy link copies the current address so you can share the exact setup. The Print button (or Ctrl+P) prints the result, staff and keyboard, then the Interval reference table on separate pages.

How do you find the interval between two notes#

Count the letter names from the lower note to the higher one, including both ends. C to G is a fifth because C, D, E, F and G are five letters. That gives the number. Next, count the semitones (half steps) between the two keys to get the size, then compare that size with the major or perfect size of the same number to get the quality.

One semitone smaller than major is minor. One semitone smaller again is diminished. One semitone larger than major or perfect is augmented. C to F sharp and C to G flat both measure 6 semitones and sound the same on a piano. They are still different intervals: C to F sharp is an augmented fourth, and C to G flat is a diminished fifth. This is why the tool asks for letter names and accidentals rather than only keys.

Direction comes from the letters first. G4 to C4 is descending. For two notes with the same letter, the pitch decides, so C#4 to C4 is a descending augmented unison.

How many semitones are in each interval#

A semitone is one half step: the distance from a key to the next key, black or white. Measured upward from the lower note, the sizes are: minor second 1, major second 2, minor third 3, major third 4, perfect fourth 5, perfect fifth 7, minor sixth 8, major sixth 9, minor seventh 10, major seventh 11 and octave 12.

Augmented and diminished intervals move one step away from these sizes. An augmented fourth and a diminished fifth both have 6 semitones. Compound intervals add 12 semitones for each octave: a major tenth has 16 (a major third of 4 plus 12), and a perfect fifteenth has 24.

Semitones mode works from the other side. For 7 semitones it lists P5 and d6. For 6 it lists A4 and d5, with the rarer AA3 and dd6 shown beneath.

Frequently asked questions

Is the Interval Calculator free, and does it need an account?

Yes. The tool is free and runs in your web browser with no sign-up. Nothing you enter is uploaded.

Can I use it on a phone?

Yes. The page works in a phone browser at narrow widths, and every setting is a drop-down or button you can tap. Nothing needs to be installed.

What is a tritone (augmented fourth or diminished fifth)?

A tritone is an interval of 6 semitones, which is three whole steps. C to F sharp (augmented fourth) and C to G flat (diminished fifth) are both tritones. The tool treats every augmented or diminished interval as a dissonance, so tritones count as dissonant.

What is a compound interval?

A compound interval is larger than an octave. The tool finds its simple form by taking away 7 from the number for each octave, so C4 to E5 is a major tenth, which is a major third plus one octave. Its name keeps the full number, so it is a tenth rather than a third.

How do you invert an interval?

Invert the simple form of the interval. The new number is 9 minus the original number, and the new size is 12 minus the original size. Major becomes minor, augmented becomes diminished, and perfect stays perfect. A perfect fifth inverts to a perfect fourth, and a major third inverts to a minor sixth. For a compound interval, invert its simple form, so a major tenth inverts to a minor sixth.

Why does the tool say "No spelling for that note"?

The tool writes notes with at most a double sharp or a double flat. In the note plus interval mode, some answers would need a triple sharp or a triple flat on the right letter, for example a doubly augmented interval up from a note that already has a double sharp. The tool then shows “No spelling for that note” instead of a wrong letter name.