Music Theory, Audio Engineering & Instruments Pitch, Tuning & Theory Ellis cent, 1200 per octave; 12-tone equal temperament

Cents & Interval Calculator (Frequency Ratio)

A cent is one hundredth of an equal-tempered semitone and one twelve-hundredth of an octave, defined logarithmically so that the same number of cents means the same musical distance anywhere in the range. Give this calculator two frequencies and it returns the interval between them in cents, in semitones and as a frequency ratio, names the nearest interval, and tells you how far that interval sits from its just-intonation or Pythagorean version. That last number is where every argument about tuning starts: the equal-tempered major third is 13.69 cents wider than the pure 5:4, and you can hear it.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
What are you starting fromUse two frequencies to measure something you have; use a named interval to look up its size in each tuning system.Two frequencies
Lower or reference frequencyThe pitch you are measuring from. Middle C in equal temperament at A440 is 261.6256 Hz.261.6256 Hz
Upper or measured frequencyThe pitch you are measuring to. A value below the reference gives a negative cents figure.329.6276 Hz
IntervalThe equal-tempered interval to size up. The upper frequency is derived from the reference.Major 3rd
Compare againstJust intonation uses small whole-number ratios up to 5; Pythagorean builds every interval from stacked perfect fifths.Just intonation (5-limit)

It returns

  • Interval size — Positive means the second frequency is higher; 1200 cents is one octave.
  • In equal-tempered semitones
  • Frequency ratio
  • Nearest simple ratio
  • Nearest named interval
  • Deviation from equal temperament
  • Deviation from the comparison tuning

The formula

c=1200log2(f2f1)
f2f1=2c1200

In plain text: cents = 1200 x log2(f2 / f1)

  • cInterval size (cents)
  • f1Reference frequency (Hz)
  • f2Measured frequency (Hz)

The cent is logarithmic, so intervals add while ratios multiply. Stacking a 3:2 fifth on a 4:3 fourth multiplies the ratios to 2:1 and adds the cents to 701.955 + 498.045 = 1200.

Updated Category Pitch, Tuning & Theory Verified against published test cases Reading time 11 min

Why tuning is measured in cents rather than hertz

Pitch perception is ratio-based. Doubling a frequency always sounds like an octave, whether you go from 55 Hz to 110 Hz or from 1760 Hz to 3520 Hz, even though one of those spans 55 Hz and the other 1760 Hz. Any unit that measures musical distance must therefore be logarithmic, and the cent is the one the world settled on: 1200 cents to the octave, so 100 cents to an equal-tempered semitone.

Alexander Ellis introduced the unit in the 1880s, in his appendices to the English edition of Helmholtz's work on tone sensation, specifically so that tuning systems from different cultures could be compared on one scale. It works because logarithms turn multiplication into addition. Two intervals stacked on top of each other multiply their frequency ratios, and adding their cent values gives the same answer. A perfect fourth of 498.045 cents plus a perfect fifth of 701.955 cents is 1200 cents, and 4/3 x 3/2 is exactly 2.

The practical payoff is that a single number describes tuning error everywhere in the range. A tuner reading −6 cents means the same amount of flatness on a bass string as on a piccolo, which a reading in hertz never does. Five cents is the usual working threshold for an audible error against another instrument; twenty cents is unmistakable.

The formula, and how to reverse it

Divide the upper frequency by the lower one, take the base-2 logarithm to get the interval in octaves, and multiply by 1200 to get cents. If your calculator has no log base 2, use ln(x) / ln(2) or log(x) / log(2); both give the same answer.

Reversing it is just as important. Given a deviation in cents, the frequency ratio is 2 raised to cents over 1200. So a source 10 cents sharp is running at 210/1200 = 1.005793 times its nominal frequency, and A440 measured 10 cents sharp reads 442.55 Hz. A source 1 cent sharp is a factor of 1.000578, which is 0.0578% - a useful figure to remember when you need to convert between cents and the parts-per-million language that clock and sample-rate specifications use.

Signs matter and are easy to lose. A ratio greater than one gives a positive cent value and means the second frequency is higher. A ratio below one gives a negative value. Halving a frequency gives log2(0.5) = −1, so −1200 cents, one octave down. The calculator keeps that sign rather than reporting a magnitude, because in tuning work the direction of an error is exactly what you need to know.

To name an interval, the calculator reduces the cent value into a single octave by subtracting whole multiples of 1200, then rounds to the nearest hundred to find the equal-tempered semitone count. What is left over is the deviation from equal temperament. It then looks up that same interval in the comparison tuning system and reports the deviation from it separately. Those two deviations answer different questions: the first says how far you are from a keyboard, the second says how far you are from a pure ratio.

Worked example: how sharp is the equal-tempered major third

Take middle C at 261.6256 Hz and the E above it as a piano plays it, at 329.6276 Hz, and compare it against the pure 5:4 third a singer or a brass section would gravitate toward.

  1. Form the ratio. 329.6276 / 261.6256 = 1.259921. That is the cube root of two, which is what four equal-tempered semitones must be.
  2. Take the logarithm. log2(1.259921) = 0.333333 octaves - exactly a third of an octave.
  3. Convert to cents. 0.333333 x 1200 = 400.00 cents. Four semitones of 100 cents each, as equal temperament defines them.
  4. Size the just third. The pure major third is the ratio 5:4 = 1.25. log2(1.25) = 0.3219281, and 0.3219281 x 1200 = 386.314 cents.
  5. Take the difference. 400.000 − 386.314 = 13.686 cents. The equal-tempered third is that much wider than the pure one.
  6. Hear it as beating. The fifth harmonic of C4 sits at 5 x 261.6256 = 1308.128 Hz. The fourth harmonic of the tempered E4 sits at 4 x 329.6276 = 1318.510 Hz. Those two differ by 10.38 Hz, so a sustained tempered major third in this octave beats about ten times a second - the roughness you hear on a piano and not in a barbershop quartet.

Run the same arithmetic on the fifth and the picture reverses. The equal-tempered fifth is 700 cents against the pure 701.955, so it is only 1.955 cents narrow. Its third harmonic against the second harmonic of the upper note beats slowly enough that most listeners never notice. That asymmetry - fifths nearly pure, thirds noticeably wide - is the defining sound of equal temperament.

What a given number of cents means

Below about five cents, a discrepancy is inaudible in isolation and produces beating too slow to notice on most sustained notes. This is the region tuners work in when they claim an instrument is in tune. From five to fifteen cents you hear beating between simultaneous notes long before you hear either note as wrong on its own, which is why unisons and octaves are tuned by counting beats rather than by ear-matching pitch. Above twenty cents most listeners describe a note as out of tune, and near fifty cents the note has no clear identity at all, sitting halfway between two semitones.

Some named quantities are worth memorising. The syntonic comma is 21.51 cents, the gap between four stacked pure fifths and a pure major third; it is the amount by which just intonation and Pythagorean tuning disagree about a third. The Pythagorean comma is 23.46 cents, the amount by which twelve pure fifths overshoot seven octaves - the error that every keyboard temperament exists to hide. A schisma is about 1.95 cents, which happens to be the amount an equal-tempered fifth is narrowed. These are the constants the whole history of temperament is built on.

Instrument context changes what counts as acceptable. Fretted instruments are locked to equal temperament by their geometry, so a guitar cannot play a pure third even in principle; the fret spacing calculator shows exactly where those frets have to sit. Wind and brass players bend pitch continuously and unconsciously tune thirds toward just when sustaining chords. Piano tuners deliberately stretch octaves well beyond 1200 cents at the extremes, because string stiffness pushes the overtones sharp - the harmonic series calculator shows where those partials land.

Interval sizes in three tuning systems

All values in cents, computed as 1200 x log2 of the ratio. Positive differences mean the tuned interval is wider than the equal-tempered one.
IntervalEqualJust ratioJust centsJust − equalPythagorean ratioPyth. cents
Unison01:10.000.001:10.00
Minor 2nd10016:15111.73+11.73256:24390.22
Major 2nd2009:8203.91+3.919:8203.91
Minor 3rd3006:5315.64+15.6432:27294.13
Major 3rd4005:4386.31−13.6981:64407.82
Perfect 4th5004:3498.04−1.964:3498.04
Tritone60045:32590.22−9.78729:512611.73
Perfect 5th7003:2701.96+1.963:2701.96
Minor 6th8008:5813.69+13.69128:81792.18
Major 6th9005:3884.36−15.6427:16905.87
Minor 7th100016:9996.09−3.9116:9996.09
Major 7th110015:81088.27−11.73243:1281109.78
Octave12002:11200.000.002:11200.00

The tritone and the minor seventh have no single agreed just ratio; 45:32 and 16:9 are used here, while 7:5 (582.51) and 7:4 (968.83) are common septimal alternatives. Note that just and Pythagorean thirds sit on opposite sides of equal temperament, differing from each other by the syntonic comma of 21.51 cents.

Pitfalls when working in cents

  • Cents add, ratios multiply. Stacking two intervals means multiplying their ratios, never adding them. 3/2 stacked on 3/2 is 9/4, not 3.
  • Percent is not cents. One cent is a factor of 1.000578, so it is 0.0578%, not 1%. A 1% frequency error is 17.3 cents.
  • A deviation near 50 cents has no reliable name. The nearest-interval label becomes arbitrary, and the usual cause is that a tuner has locked onto an overtone rather than the fundamental.
  • Just intonation has no single answer for every interval. The tritone and the sevenths depend on which prime limit you accept, and the choices differ by tens of cents. State which ratio you mean.
  • A pure ratio in one key is not pure in another. Fixing a keyboard in just intonation makes one key beautiful and remote keys unusable, which is the entire reason equal temperament exists.
  • Beat rate is not proportional to cents alone. The same cent error produces faster beating at higher frequencies, because beat rate depends on the absolute frequency difference between the coinciding partials.

Temperament: what the cent numbers are really measuring

The central problem of tuning is that pure intervals do not close. Stack twelve pure 3:2 fifths and you land 23.46 cents - the Pythagorean comma - above seven pure octaves. There is no way to keep every fifth pure and still return to the note you started on, because no power of 3/2 is ever a power of 2. Every tuning system is a decision about where to hide that discrepancy.

Pythagorean tuning keeps eleven fifths pure and dumps the whole comma into the twelfth, producing the notorious wolf fifth. Its thirds come out at 407.82 cents, wider than equal temperament, which suited medieval music where thirds were not treated as consonances. Just intonation instead prioritises thirds at 5:4 and sixths at 5:3, giving beatless triads in one key at the cost of unusable ones elsewhere. Quarter-comma meantone narrows each fifth by a quarter of the syntonic comma to make eight major thirds exactly pure, and dominated European keyboard music for two centuries. Equal temperament spreads the error perfectly evenly: every fifth 1.955 cents narrow, every third 13.686 cents wide, every key equally usable and equally impure.

That last figure is the price of modulation. It is also why choral and brass ensembles sound different from a piano on the same chord - free-pitch ensembles drift toward just ratios automatically, because the beating disappears there, while the piano cannot. When you measure a real performance and find thirds sitting 10 cents below the tempered value, you are not finding an error; you are finding musicians tuning by ear.

To go from cents back to actual pitches, the note to frequency calculator converts any note and detune into hertz, and the transposition calculator handles the key arithmetic that only equal temperament makes safe.

Frequently asked questions

How many cents are in a semitone?

Exactly 100 cents in an equal-tempered semitone, and 1200 in an octave. The definition is deliberate: the cent was created so that the equal-tempered semitone would be a round number. Semitones in other tuning systems are not 100 cents - the just minor second is 111.73 cents and the Pythagorean one is 90.22 cents, and the difference between them is audible.

How do I convert cents to hertz?

You cannot convert directly, because cents are a ratio and hertz are an absolute rate; you need a starting frequency. Multiply your reference by 2^(cents/1200). Ten cents above 440 Hz is 440 x 2^(10/1200) = 440 x 1.005793 = 442.55 Hz, so ten cents there is 2.55 Hz. The same ten cents at 110 Hz is only 0.64 Hz.

Why is the equal-tempered major third so sharp?

Because equal temperament optimises for the fifth, and a stack of four fifths overshoots a pure third. Four pure fifths reduced by two octaves give 407.82 cents, and the pure third is 386.31 cents; the 21.51-cent gap is the syntonic comma. Equal temperament splits the difference nearer the Pythagorean end, landing at 400 cents, which is 13.69 cents above pure.

What is a comma?

A comma is a small residual interval left over when two chains of pure intervals fail to meet. The Pythagorean comma, 23.46 cents, is the amount by which twelve pure fifths exceed seven octaves. The syntonic comma, 21.51 cents, is the gap between four pure fifths and a pure major third. Both are around a fifth of a semitone - small individually, unmissable when they accumulate.

How many cents of error can a listener hear?

Around five cents against a simultaneous reference, and rather more for a note heard alone. Beating is the giveaway: two notes a few cents apart produce a slow pulsation whose rate equals the frequency difference between their coinciding partials, and human hearing is far better at detecting that pulsation than at judging absolute pitch. Melodic intervals played in sequence tolerate perhaps fifteen cents before sounding wrong.

Is just intonation better than equal temperament?

It is purer within a single key and unusable across many. Just intonation makes triads on the tonic beatless, but the same fixed pitches produce badly out-of-tune chords in remote keys, and modulation becomes impossible without retuning. Equal temperament trades a little purity everywhere for complete freedom of key, which is what nineteenth-century music demanded and what fixed-pitch instruments still need.

Why does the calculator sometimes disagree with my tuner about the interval name?

Because a deviation near 50 cents makes the nearest-interval label arbitrary, and because tuners often lock onto a strong overtone rather than the fundamental. If the result is roughly 700, 1200 or 1900 cents from what you expect, you are measuring the third, fourth or sixth partial. Filter the source or play the note more softly and re-measure.

What is the ratio for a 1-cent difference?

2^(1/1200) = 1.0005778, or about 0.0578%. That makes 1 cent equal to roughly 578 parts per million, which is a handy bridge to clock and sample-rate tolerances: a sample-rate error of 1000 ppm shifts pitch by 1.73 cents, and a 0.1% tape speed error shifts it by 1.73 cents as well.

References

  • On the Sensations of Tone (trans. Alexander J. Ellis, with appendices defining the cent) — Hermann von Helmholtz, Dover Publications
  • Tuning and Temperament: A Historical Survey — J. Murray Barbour, Michigan State College Press / Dover
  • The Physics of Musical Instruments, 2nd ed. — Neville H. Fletcher and Thomas D. Rossing, Springer