The semitone interval calculator tells you everything about the relationship between any two pitches: how many semitones and cents separate them, the equal-temperament frequency ratio, both note frequencies in Hz, the classical interval name (Perfect 5th, Major 3rd, Tritone, etc.), and exactly how far the equal-temperament tuning deviates from a pure just-intonation ratio.
How it works
Every note in Western 12-tone equal temperament (12-TET) is assigned a MIDI note number. The formula is straightforward:
MIDI = (octave + 1) × 12 + pitch-class-index
where C = 0, C# = 1, D = 2, D# = 3, E = 4, F = 5, F# = 6, G = 7, G# = 8, A = 9, A# = 10, B = 11. A4 (concert A) = MIDI 69.
The semitone distance is simply MIDI2 − MIDI1. Multiply by 100 to get cents. The equal-temperament frequency ratio for n semitones is:
ratio = 2^(n / 12)
And the frequency of any note is:
f = A4_ref × 2^((MIDI − 69) / 12)
The default A4 reference is 440 Hz (ISO 16), but you can enter 432 Hz (popular alternative tuning), 415 Hz (Baroque pitch), 443 Hz (some European orchestras), or anything else.
Worked example
C4 to G4 (Perfect 5th)
- MIDI(C4) = (4 + 1) × 12 + 0 = 60
- MIDI(G4) = (4 + 1) × 12 + 7 = 67
- Semitones = 67 − 60 = 7
- Cents = 7 × 100 = 700 ¢
- ET ratio = 2^(7/12) = 1.498307
- f(C4) = 440 × 2^((60−69)/12) = 261.63 Hz
- f(G4) = 440 × 2^((67−69)/12) = 392.00 Hz
- Just ratio: 3:2 = 1.5 (pure fifth)
- ET vs just: 700 − 701.96 = −1.96 ¢ (ET is 1.96 cents flat of pure)
Understanding the ET vs Just deviation
The ‘ET vs Just intonation’ readout shows how many cents the equal-temperament version of the interval differs from the nearest pure harmonic ratio. Key figures:
- Perfect 5th: −1.96 ¢ (barely noticeable)
- Major 3rd: +13.69 ¢ (clearly audible — ET thirds sound noticeably wide)
- Minor 3rd: −15.64 ¢ (also significant)
- Perfect 4th: +1.96 ¢ (almost pure)
- Tritone: +9.78 ¢ relative to 45:32
Differences below about 5 cents are generally imperceptible to untrained listeners; above 10 cents, they are audible even to casual listeners. Choir directors, string-quartet coaches, and early-music performers regularly ask players to adjust by these amounts when tuning sustained chords.
Interval quality and consonance
The calculator colour-codes intervals by consonance:
- Green (perfect): unison, octave, perfect 4th, perfect 5th — the most stable, used as resolution points in harmony.
- Blue (consonant): major/minor 3rds and 6ths — the building blocks of triads and rich chords.
- Amber (dissonant): major/minor 2nds and 7ths, tritone — create tension that resolves to consonances.
This classification derives from Western common-practice harmony; in jazz and contemporary music, dissonances are often left unresolved deliberately.