An interval is the distance between two notes. Musicians name it from the letters (C to G spans five letters, so it is a fifth) and qualify it from the exact number of semitones (seven semitones make it a perfect fifth). Acousticians describe the same distance as a frequency ratio, and tuners measure it in cents, hundredths of an equal-tempered semitone.
This calculator does all three at once. Pick two notes with their accidentals and octave numbers and you get the interval’s full name and abbreviation, the direction (ascending or descending), the number of semitones, the frequencies of both notes and the ratio between them in twelve-tone equal temperament (12-TET), the tuning of pianos and fretted instruments. For the common intervals it also gives the just-intonation ratio, such as 3/2 for a fifth or 5/4 for a major third, and how many cents the tempered interval is off from that pure ratio.
Because the name comes from the letters, enharmonic spellings are handled properly: C to F♯ is an augmented fourth, while C to G♭ is a diminished fifth, even though both are six semitones. The reference pitch is adjustable for orchestras that tune to 442 Hz or for historical pitch.
How to use this calculator
- Choose the first note (letter, accidental, octave). Middle C is C4.
- Choose the second note the same way. If it is lower than the first, the interval is reported as descending.
- Keep A4 = 440 Hz or enter your orchestra’s or instrument’s reference pitch.
- Read the interval name, the semitones and cents, and the frequency ratios. Open the steps to see the arithmetic.
The formula
With MIDI-style numbering ( for A4, one unit per semitone), a note’s equal-tempered frequency is
Two notes semitones apart therefore have the ratio
A just interval with ratio measures cents. The interval number is the count of letter names from the lower note to the upper one, inclusive; the quality (perfect, major, minor, augmented, diminished) compares the actual semitones with the major or perfect interval of that number.
Worked example
C4 to G4. C, D, E, F, G is five letters, so it is a fifth; it spans 7 semitones, which makes it a perfect fifth (P5).
- Frequencies with A4 = 440 Hz: C4 = 261.63 Hz and G4 = 392 Hz
- Equal-tempered ratio: , exactly 700 cents
- Just ratio: , which measures cents
The piano’s fifth is therefore 1.955 cents narrower than a pure fifth, too little for most listeners to notice. The major third C4–E4 (E4 = 329.63 Hz) is a different story: it is 13.69 cents wider than the pure 5/4 third.
Common intervals at a glance
| Semitones | Interval | Example from C | Just ratio |
|---|---|---|---|
| 0 | Perfect unison | C–C | 1/1 |
| 1 | Minor second | C–D♭ | 16/15 |
| 2 | Major second | C–D | 9/8 |
| 3 | Minor third | C–E♭ | 6/5 |
| 4 | Major third | C–E | 5/4 |
| 5 | Perfect fourth | C–F | 4/3 |
| 6 | Augmented fourth / diminished fifth | C–F♯ / C–G♭ | 45/32 / 64/45 |
| 7 | Perfect fifth | C–G | 3/2 |
| 8 | Minor sixth | C–A♭ | 8/5 |
| 9 | Major sixth | C–A | 5/3 |
| 10 | Minor seventh | C–B♭ | 9/5 (or 16/9) |
| 11 | Major seventh | C–B | 15/8 |
| 12 | Perfect octave | C–C | 2/1 |
Intervals larger than an octave are compound: a major ninth is an octave plus a major second, a perfect twelfth an octave plus a fifth.
Equal temperament versus just intonation
Just intervals use small whole-number ratios and sound beat-free, but a keyboard tuned purely in one key goes badly out of tune in others. Equal temperament divides the octave into twelve identical semitones so that every key works, at the cost of small compromises: fifths are about 2 cents narrow, major thirds about 14 cents wide and minor thirds about 16 cents narrow. Singers, string players and brass players often adjust towards just intervals in chords, which is one reason a cappella choirs can sound so resonant.
Frequently asked questions
How many semitones are in a perfect fifth?
Seven. A perfect fourth has five, a major third four, a minor third three and an octave twelve.
Why are C–F♯ and C–G♭ named differently if they sound the same?
Interval names come from the letter names. C to F covers four letters, so C–F♯ is an augmented fourth; C to G covers five, so C–G♭ is a diminished fifth. On a piano both are six semitones (the tritone), but they behave differently in harmony.
What is a cent?
One hundredth of an equal-tempered semitone, so an octave is 1,200 cents. Trained ears can notice differences of about 5 cents between successive notes; tuners usually display deviations in cents.
Which octave numbers does the calculator use?
Scientific pitch notation: middle C is C4 and the 440 Hz A is A4. Some traditions number differently; in France, the same A is called la3, which is why the French page adds the French numbering below the result.
Does changing the reference pitch change the interval?
No. Moving A4 to 442 Hz shifts both frequencies by the same proportion, so the ratio, the semitones and the name stay the same; only the absolute frequencies change.
Sources
- ISO 16:1975, Acoustics — Standard tuning frequency (A = 440 Hz)
- D. J. Benson, Music: A Mathematical Offering, Cambridge University Press (2006)
- HyperPhysics (Georgia State University) — Equal temperament and just intervals
Last updated: