Metronomes, tuners and practice tools

Pro Pro is active in this browser. Open your Pro accountPro free trial is active. Open your Pro accountPro is active but will not renew. Open your Pro account

Musical Cents Calculator

This free cents calculator converts frequencies in Hz to musical cents (100 cents = one equal-tempered semitone). In tab 1, an empty or zero field reads as 1 Hz.

Free · runs in your browser · nothing is uploaded

Open on TempoWren

This embed was switched off for this website. Open on TempoWren

Add this tool to your siteFree embed code, no sign-up. Keep the credit link.

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Optional settings, added to the address after embed=1: &accent=0f6b5c (colour, 3 or 6 hex digits). Other parameters are ignored.

Please keep the credit link below the tool.

Say you are checking a drone note against a tuner reading of 445 Hz and want to know how far off it is from A440 before you retune. Hz alone does not answer that, because equal steps in Hz are not equal steps in pitch, so a cents calculator gives the clearer measure. This cents calculator converts between frequencies and musical cents, where 100 cents is one equal-tempered semitone and 1,200 cents is one octave. It has three tabs: two frequencies to cents, a base Hz plus a cents offset to a target Hz, and a comparison of concert pitch standards such as A440, A432, and A415. Each result also names the nearest 12-TET interval. All of the arithmetic runs in the page itself.

Enter your own two frequencies in the calculator and read both the Cents Difference line and the Nearest Interval line.

At a glance

A cents calculator measures the musical distance between two frequencies in cents, where 100 cents is one equal-tempered semitone and 1,200 cents is one octave. It uses cents = 1200 × log2(f2 / f1) to return that value.

  • 100 cents is one equal-tempered semitone, and 1,200 cents is one octave.
  • In tab 1, the frequency fields start at 440.0 and 660.0 Hz, and an empty or zero field reads as 1 Hz.
  • The Cents Difference line shows two decimals and a sign, and its default reads +701.96 cents.
  • The concert pitch tab defaults to comparing A4 = 440 Hz with A4 = 432 Hz, which gives -31.77 cents.
  • The Copy button sits beside the Cents Difference line in tab 1, and tabs 2 and 3 have no Copy button.

Last checked:

How to Calculate Cents Between Two Frequencies

  1. Pick a tab. The calculator opens on “1. Two Frequencies ➔ Cents”. For other tasks, use “2. Base Hz + Cents ➔ Target Hz” or “3. Concert Pitch Standards”.
  2. Enter frequencies. Enter values in “Base frequency f1 (Hz)” and “Target frequency f2 (Hz)”. Fields start at 440.0 and 660.0. An empty or zero field reads as 1 Hz; confirm both.
  3. Read the Cents Difference line. It shows two decimals and a sign. The default “+701.96 cents” means f2 is above f1; a minus sign means below.
  4. Check “Nearest Interval”. It shows name, semitones, and four-decimal ratio. Defaults: Perfect Fifth (7 semitones), ratio 1.5000.
  5. Review the formula box. It shows your calculation, e.g. cents = 1200 × log2(660 / 440) = 701.96.
  6. Switch to tab 2 for a target. Set “Base Frequency (Hz)” and “Cents Offset (+/- cents)”. The default offset 100.0 gives 466.16 Hz. Enter a negative number to go down.
  7. Compare standards in tab 3. Choose “Standard Reference A4” (default 440) and “Comparison Pitch A4” (default 432). The default “-31.77 cents” is roughly 32 cents flat.
  8. Copy the number. The Copy button sits right next to that cents result. Paste it into your synth or DAW.
  9. Check your work. Edit any field and read both results again, so you can compare a few candidate frequencies before you settle on one.

Logarithmic Pitch, Cents, and Equal Temperament Math

Why does a cents calculator use logarithms instead of Hz differences?

Doubling a frequency raises pitch by one octave, but the gap in Hz doubles too. The octave between A1 (55 Hz) and A2 (110 Hz) spans 55 Hz, while the octave between A4 (440 Hz) and A5 (880 Hz) spans 440 Hz. A linear Hz difference therefore changes meaning from one register to another. Alexander Ellis, a British phonetician and mathematician, proposed the cent in the 1880s to fix this. The tool uses his base-2 logarithm form:

cents = 1200 × log2(f2 / f1)

Using base-10 logarithms gives the same result: cents = 1200 × (log10(f2 / f1) / log10(2)), which is about 3986.3137 × log10(f2 / f1).

Because the function uses a ratio, the answer is the same whichever octave you are in. Two frequencies with the same ratio always return the same cents value.

How do you convert cents back into a frequency?

Tab 2 runs the reverse calculation. It takes a base frequency f1 and a cents offset and returns f2:

f2 = f1 × 2^(cents / 1200)

With the default base of 440 Hz and offset of 100 cents, the result is 440 × 2^(1/12), which is about 466.16 Hz, the pitch a semitone above A4. A negative offset returns a frequency below the base. An offset of 0 returns the base frequency unchanged.

How far apart are 12-TET and just intonation intervals?

Equal temperament divides the octave into twelve equal steps of 100 cents each. Just intonation uses simple whole-number frequency ratios, so some of its intervals differ from the equal-tempered version. The nearest-interval table in the engine lists both values. Some examples:

  • Perfect Fifth (3:2): 701.96 cents in just intonation, 700 cents in 12-TET, a difference of 1.96 cents.
  • Major Third (5:4): 386.31 cents in just intonation, 400 cents in 12-TET, a difference of 13.69 cents.
  • Minor Third (6:5): 315.64 cents in just intonation, 300 cents in 12-TET, a difference of 15.64 cents.

The cents result gives the measured value, and the nearest-interval line tells you which 12-TET step it is closest to. The gap between the two is the deviation you see in the numbers.

How does the nearest-interval line decide what to name?

The engine first reduces the cents value into a single octave, then picks the standard interval whose 12-TET value is closest. Panel 1 passes the absolute value, so a downward interval such as -701.96 cents is still named Perfect Fifth. Because the value is reduced within one octave, a span of more than 1,200 cents is named by its position inside the octave. Read the signed cents figure for direction, and the interval name for the nearest musical step.

What does the Concert Pitch Standards tab compare?

Tab 3 takes two A4 references and returns the cents difference between them. Its formula is the same as tab 1, using 440 and 432 as the defaults. A comparison of 432 against 440 gives -31.77 cents, which means the second reference is lower. The result is a distance, not a claim about any particular ensemble. Use it to see how far one reference sits from another.

IntervalJust intonation (cents)12-TET (cents)Difference (cents)
Perfect Fifth (3:2)701.967001.96
Major Third (5:4)386.3140013.69
Minor Third (6:5)315.6430015.64

Frequently asked questions

What is 1 cent in music theory and acoustics?

One cent is one-hundredth of an equal-tempered semitone, and an octave spans exactly 1,200 cents. The unit is logarithmic, so a given number of cents means the same musical distance in any register. The Cents Difference line shows this value for any two frequencies you enter.

What is the cents difference between A=440 Hz and A=432 Hz?

Tab 3 gives -31.77 cents at its defaults, calculated as 1200 × log2(432 / 440). The minus sign means 432 Hz is lower than 440 Hz. The result is about one-third of a semitone.

How do I convert cents back into a frequency?

Use tab 2, “Base Hz + Cents ➔ Target Hz”, and enter a base frequency and an offset. The formula behind it is Ratio = 2^(cents / 1200), so an offset of 702 cents gives a ratio of about 1.500, the 3:2 ratio of a perfect fifth. The page reports the result in Hz.

Does the calculator name the nearest interval?

Yes, tab 1 names the nearest 12-TET interval with its semitone count and ratio. A measurement of 701.96 cents is named Perfect Fifth, 7 semitones. The name refers to the closest standard step, not an exact match.

Can I copy the result?

The Copy button appears in tab 1 beside the Cents Difference line. The tab 2 and tab 3 panels, as built here, do not include a Copy button, so copy those values by hand.

What happens if a frequency field is empty or zero?

The page reads an empty or zero value as 1 Hz, which can produce a result that looks plausible but is wrong. Check both fields before you use a number. A value of 0 or below in the engine returns 0 cents.

How different are just intonation and 12-TET intervals?

Equal temperament gives 100 cents per step, while just intonation uses simple whole-number ratios, so some intervals differ. A perfect fifth is 701.96 cents in just intonation and 700 cents in 12-TET, a gap of 1.96 cents. A major third is 386.31 cents against 400, a gap of 13.69 cents.

What does the Concert Pitch Standards tab compare?

Tab 3 takes two A4 references and returns the cents difference between them. Its formula is the same as tab 1, using 440 and 432 as the defaults. The result is a distance, not a claim about any particular ensemble. Use it to see how far one reference sits from another.