UTILS.
100% in-browser
〰️

Cents & Frequency Ratio Calculator

Convert between cents, frequency ratios and detune in Hz — get cents from two frequencies, a ratio from cents, or a detuned pitch.

About this tool

Convert between cents, frequency ratios and pitch detuning in your browser. Pick what you want to solve for: the cents between two frequencies, the frequency ratio for a given number of cents, or a detuned frequency from a base pitch plus a cents offset. It also reports the equivalent in semitones. Nothing is sent anywhere.

The core formula is cents = 1200 × log2(f2 / f1). Rearranged, a frequency ratio for a number of cents is 2^(cents / 1200), and a base frequency detuned by some cents becomes f × 2^(cents / 1200), with the hertz difference shown alongside. Because an equal-tempered semitone is exactly 100 cents, semitones = cents / 100.

For example, A4 at 440 Hz compared with 466.16 Hz is 100 cents, or one semitone. Use it to measure how flat or sharp two pitches are, set precise detune amounts on a synth or sampler, or convert a tuning ratio into cents.

Frequently asked questions

How are cents calculated from two frequencies?
Cents = 1200 × log base 2 of (f2 ÷ f1). A positive result means the second frequency is higher; 1200 cents is one octave and 100 cents is one semitone.
How do I turn cents into a frequency ratio?
The ratio is 2 raised to the power of (cents ÷ 1200). For 100 cents that is about 1.05946, the equal-tempered semitone ratio.
How does the detune mode work?
It multiplies your base frequency by 2^(cents ÷ 1200) to get the new pitch, then shows the difference in hertz — handy for tuning oscillators or checking beat rates.
How do cents relate to semitones?
In 12-tone equal temperament one semitone is exactly 100 cents, so semitones = cents ÷ 100 and a whole octave is 1200 cents.

More tools