Semitone & Cents Interval Calculator

Calculate frequency ratios, semitones, and cents between two pitches

Ad placeholder (leaderboard)

Cents and semitones are the universal language of tuning. This tool measures the interval between any two pitches, reporting the frequency ratio, the number of equal-tempered semitones, and the precise value in cents, plus the nearest named interval.

How it works

Pitch perception is logarithmic: doubling the frequency always sounds like the same interval, an octave. So intervals are measured on a log scale. The octave is divided into 1200 cents, and the conversion from a frequency ratio is:

cents = 1200 x log2(f2 / f1)

Semitones are simply cents divided by 100, since there are 100 cents in each of the twelve equal-tempered semitones:

semitones = cents / 100 = 12 x log2(f2 / f1)

Worked example

For f1 = 440 Hz (concert A) and f2 = 660 Hz:

  • Ratio = 660 / 440 = 1.5
  • Cents = 1200 x log2(1.5) = 701.96 cents
  • Semitones = 7.02

That is a perfect fifth — 660 Hz is very close to the just-intonation fifth above A, just under the 700-cent equal-tempered fifth by about 2 cents.

Reference intervals

IntervalEqual-tempered centsSemitones
Unison00
Minor third3003
Major third4004
Perfect fifth7007
Octave120012

Tips and notes

  • A negative cent value means the second frequency is lower than the first; the tool handles either order.
  • Use the cent figure directly when detuning an oscillator or planning a pitch-shift — most plugins accept cents as a parameter.
  • For just-intonation work, compare your measured cents against the pure ratios (fifth 701.96, major third 386.31) to see how far equal temperament strays. All calculations run locally in your browser.
Ad placeholder (rectangle)