Skip to content
K Knidox Search…
Music & Audio · Theory

Musical Interval Calculator

Find the frequency ratio, cents, and name of any interval — from a semitone count or from two frequencies.

Calculate from
Distance between the two notes; 12 = one octave.
Common intervals — tap to try
Frequency ratio
1.4983 (≈ 3:2)
Cents
700
Interval
perfect fifth
Frequency ratio vs semitones (2× at the octave)
Frequency ratio 2^(semitones/12) growing exponentially from 1.0 at unison to 2.0 at the octave (12 semitones)2.01.00 (unison)12 (octave)

A musical interval’s size is a frequency ratio: ratio = 2^(semitones ÷ 12). A perfect fifth spans 7 semitones, so its equal-tempered ratio is 2^(7 ÷ 12) ≈ 1.4983 — very close to the pure 3:2. In cents, that’s 700 cents, since every equal-tempered semitone equals exactly 100 cents.

What a musical interval is

An interval is the distance in pitch between two notes. Because we hear pitch on a ratio scale, an interval is best described not by a difference in hertz but by the ratio of the two frequencies. In twelve-tone equal temperament (12-TET) — the tuning of a standard piano — the octave is split into twelve equal semitones, and every semitone multiplies the frequency by the same factor, the twelfth root of two (about 1.0595).

Musicians measure fine differences in pitch using cents: 100 cents to a semitone, 1200 cents to an octave. Cents are logarithmic, so equal steps in cents sound like equal musical steps, which is why they add up neatly where ratios multiply.

ratio = 2^(semitones ÷ 12) · cents = 1200 × log(f₂ ÷ f₁)

From a semitone count use the left form; from two frequencies use the right. Semitones = cents ÷ 100.

Worked example

Two notes at 440 Hz and 660 Hz — what interval is that?

  1. 1
    Form the frequency ratio. Divide the higher frequency by the lower: 660 ÷ 440 = 1.5.
  2. 2
    Convert the ratio to cents. 1200 × log₂(1.5) = 1200 × 0.58496 ≈ 701.96 cents.
  3. 3
    Convert cents to semitones. 701.96 ÷ 100 ≈ 7.02 semitones — or directly, 12 × log₂(1.5) ≈ 7.02.
  4. 4
    Round to the nearest named interval. 7 semitones is a perfect fifth, so 440 Hz to 660 Hz is a perfect fifth.
  5. 5
    Compare with the pure ratio. 3:2 = 1.5 exactly (701.96 cents); the equal-tempered fifth is 2^(7 ÷ 12) ≈ 1.4983 (700 cents) — about 2 cents narrower.

Intervals within one octave (12-TET)

Equal-tempered frequency ratios rounded to four places; cents = 100 × semitones. The ratio column is the exact equal-tempered value, which for many intervals sits close to a simple whole-number ratio.

SemitonesIntervalRatioCents
0Unison1.00000
1Minor second1.0595100
2Major second1.1225200
3Minor third1.1892300
4Major third1.2599400
5Perfect fourth1.3348500
6Tritone1.4142600
7Perfect fifth1.4983700
8Minor sixth1.5874800
9Major sixth1.6818900
10Minor seventh1.78181000
11Major seventh1.88771100
12Octave2.00001200

Equal-tempered vs. just ratios

The simple whole-number ratios — 3:2 for a fifth, 5:4 for a major third, 2:1 for an octave — come from just intonation, where intervals are tuned to pure harmonics and sound perfectly consonant. Equal temperament trades that purity for flexibility: every key is equally in tune, at the cost of small deviations. A tempered fifth is 2^(7 ÷ 12) ≈ 1.4983 rather than the pure 3:2 = 1.5 — about 2 cents flat, too small to notice. The tempered major third, at 1.2599 versus the pure 5:4 = 1.25, is about 14 cents sharp, which trained ears can hear.

Only the octave is pure in equal temperament: 2^(12 ÷ 12) = 2, exactly 2:1. Everything in between is a compromise. Cents make the size of that compromise easy to read — 100 cents per semitone, 1200 per octave — so a 14-cent error is simply 14 hundredths of a semitone.

What is a cent?
A cent is one hundredth of an equal-tempered semitone, so there are 1200 cents in an octave. Cents are a logarithmic unit: equal steps in cents sound like equal musical steps, which makes them the standard way to measure small tuning differences. Around 5 cents is roughly the smallest pitch change most listeners can detect.
Why isn’t a tempered fifth exactly 3:2?
Equal temperament divides the octave into twelve identical semitones, so every interval is a power of the twelfth root of two. A fifth is 2^(7 ÷ 12) ≈ 1.4983, not the pure 3:2 = 1.5. The small 2-cent gap is the price of making every key equally in tune on one fixed instrument like a piano.
How do I turn two frequencies into an interval?
Divide the higher frequency by the lower to get the ratio, then take 1200 × log₂(ratio) for cents or 12 × log₂(ratio) for semitones. For example, 660 ÷ 440 = 1.5, and 12 × log₂(1.5) ≈ 7.02 semitones — a perfect fifth.
What ratio corresponds to one semitone?
One equal-tempered semitone multiplies the frequency by the twelfth root of two, 2^(1 ÷ 12) ≈ 1.0595, which equals exactly 100 cents. Stacking twelve of them multiplies the frequency by 2, returning an octave.
Why are octaves the only pure interval in equal temperament?
Equal temperament is built by forcing twelve semitones to fill exactly one 2:1 octave, so the octave is tuned pure by construction: 2^(12 ÷ 12) = 2. Every other interval is a root-of-two value that only approximates its just ratio, so it carries a small deviation in cents.
How are compound intervals handled?
A compound interval is larger than an octave. Add 1200 cents (12 semitones) for each octave beyond the first: a perfect twelfth is a perfect fifth plus an octave, 7 + 12 = 19 semitones, ratio 2^(19 ÷ 12) ≈ 2.9966, close to the pure 3:1.