Why doesn't the circle of fifths close perfectly?

Twelve fifths visit every key and return home, seven octaves up. But a pure fifth is the ratio 3 to 2, and twelve of them multiply to about 129.7, while seven octaves are exactly 128. That overshoot, about a quarter of a semitone, is the Pythagorean comma. Pianos hide it by narrowing every fifth slightly.

F up 1 fifth: C major, no sharps or flatsFCGDAEBF♯D♭A♭E♭B♭each step: a fifth upDrift of pure fifths (cents)the comma, 23.5¢36912fifths stacked · a piano key is 100¢
Pure fifths run sharp by
1.96 ¢
Sharps (+) or flats (−) in that major key
0
Pure stack, folded into one octave
×1.5

Challenge: Go all the way around the circle.

Play

Slide all the way to 12 fifths, then press "12 pure fifths vs. where you started" and listen for the wobble.

Challenge: Go all the way around the circle. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

(32)12÷27=1.01364\left(\tfrac{3}{2}\right)^{12} \div 2^{7} = 1.01364

A fifth is 7 semitones, and 7 and 12 share no factor, so stepping up by fifths visits all twelve notes before repeating. That's arithmetic mod 12: (start+7k) mod 12(\text{start} + 7k) \bmod 12.

But a pure fifth is a ratio, 3/23/2, and ratios multiply. Compare twelve of them with seven octaves on a log scale:

(3/2)1227=1.01364⇒1200log⁡21.01364=23.46 cents\frac{(3/2)^{12}}{2^7} = 1.01364 \quad\Rightarrow\quad 1200\log_2 1.01364 = 23.46\ \text{cents}

The bars show that gap building up, 1.955 cents per fifth, until it reaches the comma at the twelfth step.

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. A fifth is 7 semitones, so k fifths up is 7k semitones, wrapped at 12(5 + 7 \times 1) \bmod 12 = 0
  2. A pure fifth is the ratio 3:2. In cents (a log scale)1200 \log_2 \tfrac{3}{2} = 701.955\ \text{vs. the piano’s}\ 700
  3. The gap adds up with every fifth1 \times 1.955 = 1.955\ \text{cents}
  4. All the way around: 12 pure fifths against 7 octaves\frac{(3/2)^{12}}{2^{7}} = \frac{129.746}{128} = 1.01364 = 23.46\ \text{cents}

Export

Export PDF

Pick a starting key and step around the circle. You'll see each key and its key signature. The sound buttons climb the pure fifths, compare the pure stack with the piano note, and compare a pure fifth with a piano fifth.

  • Twelve fifths really end up seven octaves up. The demo folds every note back into one octave so you can compare them.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

key=(start+7k) mod 12\text{key} = (\text{start} + 7k) \bmod 12
1200log⁡232=701.955 cents1200\log_2\tfrac{3}{2} = 701.955\ \text{cents}
(3/2)1227=1.01364=23.46 cents\frac{(3/2)^{12}}{2^7} = 1.01364 = 23.46\ \text{cents}
SymbolMeaningUnit
kkfifths up
3/23/2a pure fifth
  • Each step clockwise adds one sharp to the key signature. Counterclockwise adds one flat.
  • Neighbors on the circle share six of seven notes, so they're the smoothest keys to change to.
  • Four pure fifths up makes a major third 22 cents too wide. That's why older tunings that kept fifths pure had sour thirds.

Print this card

Where it’s used

  • Music & Sound
    Piano tuners narrow every fifth by about 2 cents so the 23-cent comma disappears.
  • Music
    Songwriters use the circle to find closely related keys and the chords that lead naturally to each other.
  • Music
    Players of fretless instruments and choirs can tune fifths pure, and their chords ring differently from a piano.

Questions people ask

What is the circle of fifths?

All twelve keys arranged so each is a fifth above the one before. Going clockwise adds a sharp to the key signature each step, and after twelve steps you're back to the start.

What is the Pythagorean comma?

The small gap, a ratio of about 1.0136 or 23.5 cents, between twelve pure fifths and seven octaves. It means pure fifths can't all fit on a keyboard that repeats every octave.

How does a piano deal with it?

Equal temperament narrows each fifth from 701.96 cents to 700, spreading the comma evenly over all twelve. Every key sounds the same, and no fifth is far enough off to notice.

Updated : First published.

See everything that’s new on Maps for Math