A logbook for curious waters
← All Reckonings

The Daily Reckoning

Why Don’t Twelve Perfect Fifths Close the Circle?

A pure musical fifth has the ratio 3:2, but twelve such jumps overshoot seven octaves. That tiny mismatch explains why tuning is a choice rather than a solved equation.

Difficulty
Intermediate
Area
Mathematics of music and number theory
Reading time
9 minutes
Prerequisites
Ratios and exponents · Prime factorization · Logarithms as inverse exponents
A dark maritime blueprint shows twelve cyan tuning beacons around a sonar-like circle; an acid-green spiral nearly returns to its first beacon but leaves a small magenta gap.

Tune one string to 256256 hertz. Tune a second string a pure perfect fifth above it, then another pure fifth above that, and keep going. After twelve fifths, music notation says that you have returned to the same named note, seven octaves higher.

The frequencies disagree.

Twelve pure fifths reach 33,215.062533{,}215.0625 hertz. Seven exact octaves reach 32,76832{,}768 hertz. The difference is too large to dismiss as rounding, because neither calculation used a rounded number.

The near miss is the Pythagorean comma. It is one reason a piano cannot make every interval acoustically pure in every key.

Two clean ratios that refuse to cooperate

A sound’s frequency counts pressure-wave cycles per second. If one note has frequency ff, the note one octave above it has frequency 2f2f. An exact octave therefore has the frequency ratio

2:1.2:1.

An exact perfect fifth has the ratio

3:2.3:2.

The ratio 3:23:2 appears naturally between the second and third harmonics of many vibrating systems. The University of New South Wales introduction to musical acoustics illustrates the relationship with the harmonic series.

Ratios multiply when intervals stack. Twelve perfect fifths multiply a starting frequency by

(32)12.\left(\frac{3}{2}\right)^{12}.

Seven octaves multiply it by

27.2^7.

If the circle of fifths closed exactly, those two multipliers would be equal. Calculate each one:

(32)12=312212=531,4414,096≈129.7463379,\left(\frac{3}{2}\right)^{12} =\frac{3^{12}}{2^{12}} =\frac{531{,}441}{4{,}096} \approx129.7463379,

while

27=128.2^7=128.

The first multiplier is slightly larger. Dividing one route by the other isolates the mismatch:

(3/2)1227=312219=531,441524,288≈1.0136433.\frac{(3/2)^{12}}{2^7} =\frac{3^{12}}{2^{19}} =\frac{531{,}441}{524{,}288} \approx1.0136433.

Twelve pure fifths overshoot seven octaves by about 1.364%1.364\%.

The interactive diagram below folds every result back into one octave so that the first and last notes can be compared. Use the slider or buttons to follow the accumulating error.

Circle-of-fifths drift lab

Walk by pure fifths and watch the circle miss its starting point

Twelve pure fifths finish 23.46 cents above the starting pitch classA solid green path takes twelve jumps around a twelve-part pitch clock. Its last point sits slightly clockwise from the dashed magenta starting target.
Raw multiplier129.746338
Octaves removed7
Folded ratio1.013643
Pitch-class drift+23.460 cents

Twelve pure fifths land 23.460 cents above seven exact octaves.

What to notice: the solid green path uses exact 3:2 fifths. The dashed magenta cross marks where twelve-tone equal temperament expects the current pitch class. Each pure fifth is only about 1.955 cents wider, but twelve small differences accumulate to 23.460 cents. The endpoint scale enlarges that gap; the circular positions retain the true angular proportions.

The circular plot uses cents, a logarithmic unit for musical distance. One octave contains 1,2001{,}200 cents. If two frequencies have ratio rr, the interval between them is

c=1200log⁡2(r),c=1200\log_2(r),

where log⁡2(r)\log_2(r) is the power to which 22 must be raised to produce rr. Substituting the comma ratio gives

1200log⁡2(531,441524,288)≈23.460 cents.1200\log_2\left(\frac{531{,}441}{524{,}288}\right) \approx23.460\text{ cents}.

The University of New South Wales circle-of-fourths demonstration reaches the same 1.3%1.3\% mismatch acoustically and compares several ways of distributing it.

The circle can never close exactly

Perhaps a different number of pure fifths could meet a different number of octaves exactly. Suppose mm fifths equaled nn octaves, where mm and nn are positive whole numbers. Then

(32)m=2n.\left(\frac{3}{2}\right)^m=2^n.

Multiply both sides by 2m2^m:

3m=2m+n.3^m=2^{m+n}.

The number on the left has only 33 as a prime factor. The number on the right has only 22 as a prime factor. The fundamental theorem of arithmetic says that a positive integer has one prime factorization, apart from the order of its factors. The two sides cannot be equal.

No finite sequence of exact 3:23:2 fifths can meet a finite sequence of exact 2:12:1 octaves. Twelve and seven merely make an unusually useful near match.

Worked example: start at 256 hertz

Let the starting frequency be

f0=256 Hz.f_0=256\text{ Hz}.

Step 1: climb twelve pure fifths.

f12=256(32)12=256⋅531,4414,096=531,44116=33,215.0625 Hz.\begin{aligned} f_{12} &=256\left(\frac{3}{2}\right)^{12}\\ &=256\cdot\frac{531{,}441}{4{,}096}\\ &=\frac{531{,}441}{16}\\ &=33{,}215.0625\text{ Hz}. \end{aligned}

Step 2: climb seven octaves from the same starting note.

f7 oct=256⋅27=256⋅128=32,768 Hz.\begin{aligned} f_{7\text{ oct}} &=256\cdot2^7\\ &=256\cdot128\\ &=32{,}768\text{ Hz}. \end{aligned}

Step 3: compare the endpoints.

33,215.0625−32,768=447.0625 Hz.33{,}215.0625-32{,}768=447.0625\text{ Hz}.

That large numerical difference occurs seven octaves above the starting note. To hear the pitch-class mismatch near the original frequency, divide the twelve-fifths result by 272^7:

33,215.0625128=259.4926758 Hz.\frac{33{,}215.0625}{128}=259.4926758\text{ Hz}.

The folded result is about 3.4933.493 hertz above 256256 hertz, the same 23.46023.460-cent comma shown in the diagram.

Temperament decides where the error goes

A fixed-pitch instrument with twelve reusable notes per octave must compromise. Twelve-tone equal temperament preserves the octave exactly and divides it into twelve equal frequency ratios. One semitone has ratio 21/122^{1/12}, so an equal-tempered fifth of seven semitones has ratio

(21/12)7=27/12≈1.498307.\left(2^{1/12}\right)^7=2^{7/12}\approx1.498307.

That fifth is slightly narrower than the pure ratio 1.51.5. Its size is exactly 700700 cents, while a pure fifth is

1200log⁡2(32)≈701.955 cents.1200\log_2\left(\frac32\right)\approx701.955\text{ cents}.

Narrowing each of twelve fifths by about 1.9551.955 cents distributes the 23.46023.460-cent comma evenly:

12(701.955−700)≈23.460.12(701.955-700)\approx23.460.

Other temperaments distribute the error unevenly so that selected intervals sound purer and others absorb more distortion. Tuning is therefore an optimization problem with musical priorities: which intervals, keys, instruments, and kinds of modulation matter most?

A problem older than the piano

The familiar label “Pythagorean tuning” can hide a longer and less solitary history. Old Babylonian tablets preserve practical instructions for retuning stringed instruments through relationships interpreted as fourths and fifths. Anne Kilmer and Steve Tinney’s study of Old Babylonian music-instruction texts places mathematical tuning practice in Mesopotamia long before surviving Greek treatises.

In the Greek tradition, the short work Sectio canonis—attributed to Euclid in its manuscripts—organized musical ratios as mathematical propositions. The Cambridge edition’s description notes the work’s theorem-like form. Its calculation that six 9:89:8 whole tones exceed one octave yields the same exact ratio 531,441:524,288531{,}441:524{,}288 encountered above.

Chinese theorists pursued cyclic tuning through a separate intellectual tradition. By the first century BCE, Jing Fang had extended the calculation to 5353 fifths, which come remarkably close to 3131 octaves. Ernest McClain and Ming Shui Hung document that development in “Chinese Cyclic Tunings in Late Antiquity”.

The compromise used by most modern pianos also has a global history. Ming-dynasty scholar Zhu Zaiyu presented a precise mathematical treatment of twelve equal divisions in 1584. Alexander Rehding’s study of Zhu’s theory and its material instruments argues for placing that work inside a global history rather than treating tuning as a single European line of descent. European theorists developed equal-temperament calculations independently around the same period.

Where the mismatch matters

Instrument makers must decide where pitches sit. Pianos, fretted instruments, synthesizers, and digital audio systems commonly use twelve-tone equal temperament because its equal spacing allows the same interval pattern to work in every key. The MIDI frequency formula used in electronic music is built directly on powers of 21/122^{1/12}; the University of New South Wales note-frequency reference gives the standard conversion.

Performers are not always locked to those positions. Singers and players of fretless strings or flexible-pitch winds can adjust notes by context, sometimes favoring purer ratios inside a sustained chord. Historical-performance ensembles may select a temperament suited to a repertory and its usual keys. Electronic composers can choose equal divisions other than twelve or work with rational just intonation ratios directly.

The comma does not dictate one correct tuning. It proves that every fixed system makes a choice.

Try the mismatch

Problem 1

An equal-tempered fifth above 440440 hertz has ratio 27/122^{7/12}. A pure fifth has ratio 3/23/2. Calculate both frequencies to three decimal places and find their difference.

Reveal the solution

For the equal-tempered fifth,

440⋅27/12≈440⋅1.498307077=659.255 Hz.440\cdot2^{7/12}\approx440\cdot1.498307077=659.255\text{ Hz}.

For the pure fifth,

440⋅32=660.000 Hz.440\cdot\frac32=660.000\text{ Hz}.

The pure fifth is higher by

660.000−659.255=0.745 Hz.660.000-659.255=0.745\text{ Hz}.

The frequency difference depends on the starting pitch, but the interval difference remains about 1.9551.955 cents.

Problem 2

Show that stacking four pure fifths and moving the result down two octaves produces the ratio 81/6481/64. Then compare it with the pure major-third ratio 5/45/4.

Reveal the solution

Four fifths multiply to

(32)4=8116.\left(\frac32\right)^4=\frac{81}{16}.

Moving down two octaves divides the frequency by 22=42^2=4:

8116÷4=8164=1.265625.\frac{81}{16}\div4=\frac{81}{64}=1.265625.

The pure major third is

54=1.25.\frac54=1.25.

Compare the two intervals by dividing:

81/645/4=8164⋅45=8180=1.0125.\frac{81/64}{5/4}=\frac{81}{64}\cdot\frac45=\frac{81}{80}=1.0125.

The Pythagorean major third is therefore 1.25%1.25\% wider than the 5:45:4 major third. Their ratio, 81:8081:80, is called the syntonic comma.

The idea to keep

The ratios 3:23:2 and 2:12:1 are individually exact, but their powers never coincide. Twelve fifths nearly meet seven octaves, leaving a gap of

531,441524,288≈1.0136433\frac{531{,}441}{524{,}288}\approx1.0136433

or about 23.46023.460 cents. Temperament is the art and mathematics of deciding where that unavoidable mismatch should go.

To continue, Why Does Multiplying by ii Make a Quarter-Turn? explores another use of rotation, How Can Smooth Waves Build a Square Wave? builds sound from harmonics, and Why Is a Fair Coin Worth One Bit? uses logarithms to measure information.

Sources