🎵

Interval Calculator

This interval calculator and musical interval finder doubles as a handy music theory calculator: find the musical interval between any two notes and see the interval name, the number of semitones between notes, cents, frequency ratio, consonance rating, and listen with melodic or harmonic playback.

Select Two Notes

261.63 Hz
392.00 Hz
Or click two notes on the keyboard
Click the first note
Playback

Interval Result

Perfect 5th
P5
Semitones
7
Cents
700
Frequency Ratio
3:2
Quality
Perfect
Consonance
Perfect consonance
Inversion: P5 inverts to P4
Note 1: C4 (261.63 Hz)
Note 2: G4 (392.00 Hz)
Direction: Ascending

Complete Interval Reference Table

Interval Name Short Semitones Cents Ratio Quality Consonance

How to Use the Interval Calculator

Step 1: Select Two Notes
Use the dropdown selectors to choose a note name and octave for each note, or click two notes on the interactive piano keyboard. The first note you select becomes Note 1, the second becomes Note 2.
Step 2: Read the Result
The result panel instantly shows the interval name, semitone distance, cent value, frequency ratio, quality (perfect, major, minor, augmented, diminished), and consonance/dissonance classification.
Step 3: Listen and Explore
Use the playback buttons to hear the interval melodically (notes played one after the other, ascending or descending) or harmonically (both notes sounding together). Check the inversion and compound interval info below the result.

Understanding Musical Intervals

A musical interval is the distance in pitch between two notes. Intervals are measured in semitones (half steps) and can be described by their quality (perfect, major, minor, augmented, diminished) and their numerical size (unison, 2nd, 3rd, etc.). The frequency ratio between two notes determines the interval's acoustic character and its perceived consonance or dissonance. Understanding intervals is foundational to music theory: they are the building blocks of chords, scales, and harmonic progressions. For example, stacking a major 3rd (4 semitones) on top of a minor 3rd (3 semitones) produces a major triad — the most common chord structure in Western music. You can hear real-world interval relationships at any reference pitch by generating a pure tone with the online tone generator and comparing it against a second note to listen for beat frequencies.

Semitones and Cents
cents = semitones x 100
One semitone equals 100 cents in 12-tone equal temperament. An octave spans 12 semitones (1200 cents). Cents allow precise measurement of intervals smaller than a semitone.
Interval Inversion
inversion = 12 - semitones
Every interval within an octave has a complementary inversion that sums to 12 semitones. A perfect 5th (7 semitones) inverts to a perfect 4th (5 semitones). Major inverts to minor and vice versa.

Consonance and Dissonance

  • Perfect consonance — Unison, perfect 4th, perfect 5th, and octave. These intervals have the simplest frequency ratios (1:1, 4:3, 3:2, 2:1) and sound the most stable.
  • Imperfect consonance — Major and minor 3rds and 6ths. These intervals are pleasing but have a warmer, more complex quality than perfect consonances.
  • Mild dissonance — Major 2nd and minor 7th. These intervals create gentle tension that is common in many musical styles.
  • Sharp dissonance — Minor 2nd, major 7th, and tritone. These intervals produce strong tension and are often used for dramatic effect or to create a sense of instability.

Equal Temperament vs Just Intonation

The frequency ratios shown in this calculator are the just intonation ratios — pure mathematical relationships between harmonics that sound most "in tune" acoustically. However, modern Western instruments are tuned to 12-tone equal temperament (12-TET), where every semitone is exactly 21/12 times the previous one. This means equal temperament intervals are slight approximations of the just ratios: a 12-TET perfect 5th is 700 cents, very close to the just ratio of 701.96 cents, but a 12-TET major 3rd at 400 cents is noticeably wider than the just 3rd at 386.31 cents. The cents column in the reference table reflects 12-TET values; pure just intonation intervals would differ slightly. If you want to compare the exact frequency of a specific note in equal temperament, the note-to-Hz converter gives you the precise Hz value for any note in any octave.

Why are pianos not perfectly in tune?

In just intonation (JI), intervals are built from small whole-number ratios: the perfect fifth is 3:2 and the major third is 5:4. Those ratios produce pure, beatless chords in one key, but when you stack them across all 12 keys the errors accumulate and some intervals end up badly out of tune. Equal temperament resolves this by making every semitone an identical ratio of 21/12 (about 1.0595), so every key is equally usable. The cost is a slight compromise on purity: the ET major third lands at 400 cents, roughly 14 cents sharper than the pure JI major third at 386 cents, which is enough to produce audible beating when held as a sustained chord. The ET perfect fifth, at 700 cents, is only about 2 cents flat of the pure 3:2 ratio, so it remains nearly beatless in practice. Pianos are not "out of tune" in a haphazard sense; they are deliberately tempered so that every key sounds equally acceptable. To hear the effect of individual cent deviations for yourself, explore the chromatic tuner or experiment with specific pitches using the note-to-Hz converter.

Share or embed this tool

Free to use on your own website — WordPress, Wix, or any platform. Paste one line and it works instantly, resizing to fit.


Frequently Asked Questions

What is a musical interval?
A musical interval is the difference in pitch between two notes. It is measured in semitones (half steps) and described by a quality (perfect, major, minor, augmented, diminished) and a numeric size (unison, 2nd, 3rd, 4th, etc.). For example, the interval from C to G is a perfect 5th, spanning 7 semitones.
What is the difference between a melodic and a harmonic interval?
A melodic interval occurs when two notes are played one after another in sequence. A harmonic interval occurs when two notes are played simultaneously. The same two notes produce the same interval name either way, but the musical effect is different: melodic intervals create a sense of motion, while harmonic intervals create a sense of color or texture.
What is interval inversion?
Interval inversion is the process of flipping an interval by moving the lower note up an octave (or the upper note down an octave). The inversion of any simple interval sums to 12 semitones with the original. For example, a perfect 5th (7 semitones) inverts to a perfect 4th (5 semitones), and a major 3rd (4 semitones) inverts to a minor 6th (8 semitones).
What is a compound interval?
A compound interval spans more than one octave. For example, a minor 9th (13 semitones) is an octave plus a minor 2nd. Compound intervals have the same quality and consonance characteristics as their simple counterparts but with a wider, more spacious sound. This calculator identifies compound intervals and shows their octave-plus-simple-interval equivalents.
Why does the tritone have two names (A4/d5)?
The tritone (6 semitones) sits exactly in the middle of the octave and can be spelled as either an augmented 4th (A4) or a diminished 5th (d5), depending on the musical context. Both names refer to the same pitch distance. Historically called "diabolus in musica" (the devil in music), the tritone is the most dissonant interval within the octave and has a uniquely restless, unstable quality.
What do the frequency ratios mean?
Frequency ratios describe the mathematical relationship between two pitches. A perfect 5th has a ratio of 3:2, meaning the higher note vibrates 1.5 times as fast as the lower note. Simpler ratios (like 2:1 for an octave or 3:2 for a perfect 5th) produce more consonant-sounding intervals, while complex ratios (like 16:15 for a minor 2nd) produce dissonance. These ratios come from just intonation; equal temperament approximates them.
What is the difference between enharmonic intervals?
Enharmonic intervals have the same number of semitones but different names depending on musical context. For example, an augmented 2nd (3 semitones) and a minor 3rd (3 semitones) sound identical in equal temperament but are written differently in music notation and function differently in harmony. An augmented 2nd typically appears in the harmonic minor scale, while a minor 3rd is the standard spelling in diatonic contexts. This calculator shows the most common enharmonic name for each semitone count.
How do intervals relate to building chords and scales?
Intervals are the fundamental building blocks of both chords and scales. A major triad consists of a major 3rd (4 semitones) plus a minor 3rd (3 semitones) stacked above it. A minor triad reverses that order: minor 3rd then major 3rd. A major scale is defined by the interval pattern W-W-H-W-W-W-H (whole and half steps), while a natural minor scale uses W-H-W-W-H-W-W. Understanding intervals lets you construct any chord or scale in any key — which is why interval recognition is a core skill in ear training and music theory study.
How many semitones is a perfect 4th, and why is it sometimes called dissonant?
A perfect 4th spans 5 semitones with a frequency ratio of 4:3. In classical counterpoint, the perfect 4th is treated as dissonant when it appears between the bass and an upper voice — this is because in that context it creates a strong desire for resolution. However, when the perfect 4th appears between two upper voices, it is treated as a consonance. In modern music theory and in this calculator, the perfect 4th is classified as a perfect consonance based on its simple frequency ratio. Context always matters for how an interval functions in actual music.
Can I use this to practice interval ear training?
Yes — the melodic and harmonic playback buttons let you listen to any interval you select, which is exactly how interval ear training works. A common method is to associate each interval with a familiar song: a perfect 5th sounds like the opening of "Twinkle Twinkle Little Star," a minor 3rd like the opening of "Smoke on the Water." Use the playback repeatedly while reading the interval name to build the mental link between the sound and its label. For a structured drill that tests recognition of chords and harmonic patterns, try the chord recognition trainer.