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
Tune one string to 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 hertz. Seven exact octaves reach 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 , the note one octave above it has frequency . An exact octave therefore has the frequency ratio
An exact perfect fifth has the ratio
The ratio 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
Seven octaves multiply it by
If the circle of fifths closed exactly, those two multipliers would be equal. Calculate each one:
while
The first multiplier is slightly larger. Dividing one route by the other isolates the mismatch:
Twelve pure fifths overshoot seven octaves by about .
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 land 23.460 cents above seven exact octaves.
The circular plot uses cents, a logarithmic unit for musical distance. One octave contains cents. If two frequencies have ratio , the interval between them is
where is the power to which must be raised to produce . Substituting the comma ratio gives
The University of New South Wales circle-of-fourths demonstration reaches the same 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 fifths equaled octaves, where and are positive whole numbers. Then
Multiply both sides by :
The number on the left has only as a prime factor. The number on the right has only 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 fifths can meet a finite sequence of exact octaves. Twelve and seven merely make an unusually useful near match.
Worked example: start at 256 hertz
Let the starting frequency be
Step 1: climb twelve pure fifths.
Step 2: climb seven octaves from the same starting note.
Step 3: compare the endpoints.
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 :
The folded result is about hertz above hertz, the same -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 , so an equal-tempered fifth of seven semitones has ratio
That fifth is slightly narrower than the pure ratio . Its size is exactly cents, while a pure fifth is
Narrowing each of twelve fifths by about cents distributes the -cent comma evenly:
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 whole tones exceed one octave yields the same exact ratio encountered above.
Chinese theorists pursued cyclic tuning through a separate intellectual tradition. By the first century BCE, Jing Fang had extended the calculation to fifths, which come remarkably close to 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 ; 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 hertz has ratio . A pure fifth has ratio . Calculate both frequencies to three decimal places and find their difference.
Reveal the solution
For the equal-tempered fifth,
For the pure fifth,
The pure fifth is higher by
The frequency difference depends on the starting pitch, but the interval difference remains about cents.
Problem 2
Show that stacking four pure fifths and moving the result down two octaves produces the ratio . Then compare it with the pure major-third ratio .
Reveal the solution
Four fifths multiply to
Moving down two octaves divides the frequency by :
The pure major third is
Compare the two intervals by dividing:
The Pythagorean major third is therefore wider than the major third. Their ratio, , is called the syntonic comma.
The idea to keep
The ratios and are individually exact, but their powers never coincide. Twelve fifths nearly meet seven octaves, leaving a gap of
or about cents. Temperament is the art and mathematics of deciding where that unavoidable mismatch should go.
To continue, Why Does Multiplying by 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
- Joe Wolfe, “Brass instrument acoustics: an introduction,” University of New South Wales.
- Joe Wolfe, “Circle of Fourths,” University of New South Wales.
- Anne Draffkorn Kilmer and Steve Tinney, “Old Babylonian Music Instruction Texts,” Journal of Cuneiform Studies 48 (1996), 49–56.
- Andrew Barker, ed., “The Euclidean Sectio Canonis,” in Greek Musical Writings, Volume 2.
- Ernest G. McClain and Ming Shui Hung, “Chinese Cyclic Tunings in Late Antiquity,” Ethnomusicology 23, no. 2 (1979), 205–224.
- Alexander Rehding, “Fine-Tuning a Global History of Music Theory,” Music Theory Spectrum 44, no. 2 (2022), 260–281.
- Joe Wolfe, “Note names, MIDI numbers and frequencies,” University of New South Wales.