HomeMusic › Interval

Interval Calculator

Interval Name
Semitones
Frequency Ratio
Cents
Show the math
Enter values to see the worked formula.

What Your Result Means

How This Calculator Works

You pick two notes with their octave numbers. The tool converts each to a MIDI number (octave × 12 + note index), subtracts to find the semitone distance, and maps the result modulo 12 to a standard interval name. The just-intonation ratio is a reference lookup for each interval, and cents are computed as semitones × 100. All calculations use 12-tone equal temperament note numbering.

Quick Questions

What is the difference between just intonation and equal temperament?

Just intonation tunes intervals to exact whole-number frequency ratios (e.g., 3:2 for a perfect 5th), which sound pure but only work in one key. Equal temperament divides the octave into 12 equal semitones, each a ratio of 2^(1/12) ≈ 1.0595, allowing free modulation between keys at the cost of slightly impure intervals.

What is a cent in music?

A cent is 1/100 of a semitone, or 1/1,200 of an octave. It's a logarithmic unit: each semitone in equal temperament is exactly 100 cents. Musicians use cents to describe tuning deviations — for example, a note that is 15 cents sharp is slightly above the equal-tempered pitch.

Why does the octave number matter?

The octave determines the absolute pitch. C4 is middle C (261.63 Hz), while C5 is one octave higher (523.25 Hz). The interval name repeats every octave, but the semitone count increases — C4 to C5 is 12 semitones, C4 to C6 is 24.

Can I use this for guitar or other instruments?

Yes. Musical intervals are universal across instruments. Each fret on a guitar equals one semitone, so the semitone count tells you exactly how many frets apart two notes are on the same string.

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.