bracket
Jump to article body

SERIES / The Mathematics of Musical Pitch · Article 02

The Circle of Fifths Does Not Close: A Diophantine Problem in Music

ABSTRACT

Repeated pure fifths generate a remarkably useful map of musical pitch, but the map never closes exactly. This article constructs Pythagorean tuning from the ratio 3/2, compares twelve fifths with seven octaves, and proves that no positive number of pure fifths can equal a stack of octaves. The proof is an elementary application of unique prime factorization. The resulting mismatch, the Pythagorean comma, explains why tuning systems must choose how to distribute small errors rather than preserve every interval perfectly.

Published
Updated
Reading time
10 min
Author
Natoandro

The circle of fifths is one of music theory’s most useful diagrams. Start on any note, move by perfect fifths, and you seem to travel through the twelve notes of the chromatic scale before arriving back where you began.

But there is a mathematical catch. If every fifth is the pure ratio 3/23/2, the route does not return exactly to its starting pitch after twelve steps. The discrepancy is tiny, but it is not zero.

That failure is not an accident of notation or an imperfection in one instrument. It follows from a simple fact about prime numbers.

The central question is:

Why can repeated pure fifths never return exactly to a stack of octaves?

The short answer is encoded in the equation

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

If positive integers mm and nn could satisfy it, then some number of pure fifths would equal some number of octaves. We will prove that this is impossible.

From one fifth to a tuning system

In the ratio model introduced in the first article, an interval from frequency ff to frequency ff' is represented by f/ff'/f. A pure octave has ratio 22, while a pure perfect fifth has ratio 3/23/2.

Suppose a reference note has frequency ff. Moving up by one pure fifth gives

f32f.f\longmapsto \frac32 f.

Moving up by two fifths gives

f(32)2f=94f.f\longmapsto \left(\frac32\right)^2f=\frac94f.

The result is above the original octave, since 9/4>29/4>2. To put it back into the octave beginning at ff, divide by 22:

94f98f.\frac94f\longmapsto \frac98f.

The ratio 9/89/8 is a whole tone in the Pythagorean construction. Repeated fifths, together with octave adjustment, generate a collection of rational frequency relationships. This is the basic mathematical idea behind Pythagorean tuning.

More generally, after kk upward fifths, the raw frequency ratio is

(32)k.\left(\frac32\right)^k.

Octave adjustment multiplies this by a suitable power of 22 so that the result lies in a chosen octave. In symbols, a generated interval has the form

2a(32)k=2ak3k,2^a\left(\frac32\right)^k =2^{a-k}3^k,

where aa is an integer. The exact value of aa depends on how many octaves we add or remove.

This construction does not say that all historical music used one identical Pythagorean scale. Tuning systems are historical solutions to practical problems, and different systems preserve or compromise among interval relationships in different ways.

The history also resists a simple origin story. Ancient Greek writers discussed numerical relationships among intervals, but surviving texts and later interpretations do not amount to one uniform doctrine attributable without qualification to Pythagoras. Historical scholarship is therefore useful here not because it supplies a single “discovery date,” but because it distinguishes mathematical constructions from the stories later told about them. [, ]

Computing the octave adjustment

The exponent aa is not arbitrary. We choose it so that the octave-adjusted ratio lies in the reference octave:

12a(32)k<2.1\le 2^a\left(\frac32\right)^k<2.

Taking the base-two logarithm gives

0a+klog2(32)<1.0\le a+k\log_2\left(\frac32\right)<1.

The floor operator, written x\lfloor x\rfloor and defined as the greatest integer less than or equal to xx, gives the required integer directly:

a=klog2(32).\boxed{a=-\left\lfloor k\log_2\left(\frac32\right)\right\rfloor}.

Indeed, if x=klog2(3/2)x=k\log_2(3/2), then xx<x+1\lfloor x\rfloor\le x<\lfloor x\rfloor+1. Negating and adding xx yields

0xx<1,0\le x-\lfloor x\rfloor<1,

so with a=xa=-\lfloor x\rfloor we obtain

2a(32)k=2xx,2^a\left(\frac32\right)^k =2^{x-\lfloor x\rfloor},

which is automatically between 11 and 22. In other words, the exponent aa removes exactly the number of octaves needed to return the generated pitch to the chosen octave.

For two fifths,

2log2(32)1.1699,2\log_2\left(\frac32\right)\approx 1.1699,

so a=1a=-1, and the normalized ratio is

21(32)2=98.2^{-1}\left(\frac32\right)^2 =\frac98.

For twelve fifths,

12log2(32)7.0196,12\log_2\left(\frac32\right)\approx 7.0196,

so a=7a=-7. The normalized ratio is therefore

27(32)12=312219,2^{-7}\left(\frac32\right)^{12} =\frac{3^{12}}{2^{19}},

the Pythagorean comma ratio encountered below. The floor formula does not make the cycle close. It only chooses the representative of each generated pitch class inside one octave, leaving the residual mismatch visible.

What would it mean for the circle to close?

A fifth raises frequency by 3/23/2. An octave raises it by 22. Therefore, for mm fifths to match nn octaves exactly, we would need

(32)m=2n.\left(\frac32\right)^m=2^n.

The exponents mm and nn would count the number of fifths and octaves, respectively. For the familiar comparison, twelve fifths are set against seven octaves:

(32)12versus27.\left(\frac32\right)^{12} \quad\text{versus}\quad 2^7.

The first quantity is

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

To compare it with 272^7, divide the two ratios:

(3/2)1227=312219.\frac{(3/2)^{12}}{2^7} =\frac{3^{12}}{2^{19}}.

This ratio is greater than 11, so twelve upward pure fifths overshoot seven octaves by a small amount. The ratio

312219\boxed{\frac{3^{12}}{2^{19}}}

is the Pythagorean comma in this orientation. Reversing the comparison gives its reciprocal, 219/3122^{19}/3^{12}. The two descriptions name the same mismatch, with opposite directions. The ratio is approximately 23.523.5 cents when converted to a logarithmic interval measure.

Numerically,

3122191.0136432648.\frac{3^{12}}{2^{19}} \approx 1.0136432648.

So the excess is about 1.36%1.36\% as a frequency multiplier. It is small enough to be musically manageable, but large enough that a closed cycle of exact fifths cannot simply ignore it.

The theorem hiding inside the tuning problem

We can now prove the stronger statement.

Theorem

There are no positive integers mm and nn such that

(32)m=2n.\left(\frac32\right)^m=2^n.

Proof

Assume, for contradiction, that such positive integers exist. Multiply both sides by 2m2^m:

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

The left side has only the prime factor 33. The right side has only the prime factor 22. But the fundamental theorem of arithmetic says that every integer greater than 11 has a unique prime factorization. Two positive integers with different prime factors cannot be equal.

Therefore the assumed equality is impossible. Hence no positive number of pure fifths can equal a positive number of octaves.

The proof is short because the musical question has been translated into the right arithmetic language. The issue is not that twelve is a poor choice, or that the circle was drawn inaccurately. Any proposed exact closure would require a power of 33 to equal a power of 22, and unique factorization forbids that.

The same argument works for every pair of positive counts. Five fifths cannot equal three octaves. Fifty-three fifths cannot equal thirty-one octaves. No finite choice can close the two multiplicative systems exactly.

Why the circle of fifths still works

At this point, “the circle of fifths” may sound misleading. If pure fifths never close, why is it a circle at all?

The answer is that the familiar diagram identifies pitches after octave equivalence and usually works within a finite, practical tuning system. It is a map of relationships among note names or pitch classes, not a claim that repeated pure ratios return to the same physical frequency.

We can state that identification precisely. For positive frequencies ff and gg, say that they are octave-equivalent when

g=2kfg=2^k f

for some integer kk. In other words, multiplying or dividing by powers of 22 does not change the pitch class in this model. The resulting object is a quotient of the positive real numbers by the subgroup generated by 22:

R>0/2Z.\mathbb{R}_{>0}/2^{\mathbb{Z}}.

This is already a useful answer to the apparent paradox. Pure-ratio arithmetic lives among actual positive frequencies, where twelve fifths and seven octaves are different. The circle of fifths lives after we identify all frequencies related by an octave. The quotient makes the diagram close while the Pythagorean comma records the mismatch that was identified away. This is the same distinction that appears in discussions of enharmonic spellings and the difference between Pythagorean and equal-tempered scales.

We will not develop the geometry of this quotient fully here. The next article will use the logarithm p=log2fp=\log_2 f to turn multiplication into addition. Under that change of coordinates, multiplying by 2k2^k becomes adding an integer kk, and the same construction becomes the more familiar circle

R/Z.\mathbb{R}/\mathbb{Z}.

In pure-ratio arithmetic, the endpoint after twelve fifths is slightly above the endpoint after seven octaves:

(32)12f=312219(27f).\left(\frac32\right)^{12}f =\frac{3^{12}}{2^{19}}\,(2^7f).

If we identify pitches that differ by octaves, the two endpoints occupy the same nominal pitch class. If we insist on exact frequencies, they remain distinct. The circle is therefore produced by an equivalence convention, while the comma records what that convention has hidden.

This distinction is a recurring theme in mathematics and music: an object can become simpler after we declare certain differences irrelevant. The simplification is useful, but it does not make the differences disappear.

The practical consequence: tuning is compromise

A tuning system has to decide what to do with the non-closing cycle. One possibility is to preserve many fifths as closely as possible and let the discrepancy collect somewhere. Another is to distribute small deviations across the intervals so that the whole system is usable in multiple keys.

Historical accounts describe Pythagorean tuning, meantone, well temperaments, and equal temperament as different ways of handling these competing demands. They do not represent one timeless standard, but a succession of choices about which relationships to preserve and which errors to accept.

Equal temperament makes a particularly clear choice: instead of retaining twelve exact pure fifths, it divides the octave into twelve equal multiplicative steps. If the octave ratio is 22, one semitone has ratio

21/12.2^{1/12}.

Twelve such steps multiply to exactly one octave:

(21/12)12=2.\left(2^{1/12}\right)^{12}=2.

But the resulting fifth, seven semitones, has ratio

27/12,2^{7/12},

which is close to 3/23/2 rather than equal to it. The mismatch has not been disproved. It has been redistributed according to a new design rule. The next article will explain why logarithms make this comparison natural and how rational approximation helps us understand the choice of twelve.

What the theorem establishes

The musical construction and the number-theoretic proof can now be stated together:

  • A pure fifth multiplies frequency by 3/23/2.
  • A pure octave multiplies frequency by 22.
  • Repeated fifths generate ratios of the form (3/2)m(3/2)^m.
  • Exact closure against octaves would require (3/2)m=2n(3/2)^m=2^n.
  • That equality would force 3m=2m+n3^m=2^{m+n}.
  • Unique prime factorization makes the equality impossible.
  • Twelve fifths exceed seven octaves by the Pythagorean comma 312/2193^{12}/2^{19}.
  • Tuning systems are ways of managing this and related incompatibilities among desired interval relationships.

The important lesson is not merely that one historical tuning contains a small error. It is that a familiar musical shape can encode an exact impossibility theorem:

pure fifths and octaves cannot form one finite exact cycle.\boxed{\text{pure fifths and octaves cannot form one finite exact cycle}.}

The circle remains useful because music can identify pitches by octave, by note name, or by a chosen tuning convention. Mathematics lets us see both sides at once: the elegant closed diagram and the irreducible discrepancy hidden behind it.

Notation and prerequisites

  • ff denotes a positive frequency.
  • mm counts pure fifths and nn counts octaves; in the theorem, both are positive integers.
  • A ratio greater than 11 means that the second frequency is higher in the chosen direction.
  • The proof uses only integer exponents, fractions, and unique prime factorization. Logarithms and rational approximation will be introduced in the next article.

Bibliography

  1. Götz Kersting, The Mathematical Structure of Pythagorean-like Tuning Systems. 2025. doi:10.1007/s00283-025-10478-y
  2. Dave Benson, Music: A Mathematical Offering. 2006. Source
  3. J. Murray Barbour, Tuning and Temperament: A Historical Survey. 1951. Source
  4. Andrew Barker, Greek Musical Writings, Volume 2: Harmonic and Acoustic Theory. 1989. doi:10.1017/CBO9780511552776
  5. Thomas J. Mathiesen, Apollo's Lyre: Greek Music and Music Theory in Antiquity. 1999. Source
  6. Børre Nyhoff, Alv I. Aarskog, Sverre Holm, Geometric Construction of Pythagorean and Just Musical Scales and Commas. 2023. doi:10.1007/s00283-022-10260-4
  7. John C. Baez, The Mathematics of Tuning Systems. 2026. Source