Twelve Fifths Don’t Equal Seven Octaves

Here’s a thing that broke my brain today: every piano you’ve ever heard is out of tune. Not metaphorically. Mathematically. The instrument is built on a compromise so deep that musicians spent four hundred years arguing about which version of “wrong” they could stomach. And the culprit is a tiny mismatch between two of the most innocent-looking ratios in nature: 2:1 (the octave) and 3:2 (the perfect fifth).

Stack twelve perfect fifths on top of each other and you’d expect to land seven octaves higher. You don’t. You overshoot by about 23.46 cents — a quarter of a semitone — a gap called the Pythagorean comma. The math is brutal in its simplicity: (3/2)^12 = 129.746, while 2^7 = 128. They don’t equal each other and they never will, because log₂(3) is irrational. The circle of fifths isn’t actually a circle. It’s a spiral that never closes. Pythagoras figured this out around 500 BCE, looked at the numbers, and presumably went very quiet.

For a thousand years, Western music essentially hid the problem in a corner. You’d tune eleven fifths pure, then dump all the accumulated error into one interval — usually G♯ to E♭ — that howled so badly musicians called it the “wolf fifth.” You could play in C major all day, but venture into F♯ minor and the wolf would tear your face off. This is why pre-Bach keyboard music stays in a handful of keys: the other keys literally weren’t playable. Composers weren’t being conservative. They were dodging a math monster living inside their instrument.

The fix was either weird or genius depending on your taste. Meantone temperament (popular from ~1510) made every fifth slightly flat so the major thirds would ring pure — beautiful in the home keys, still unusable in the remote ones. Then came “well temperaments” where the error got smeared unevenly, giving each key its own emotional color (this is the actual point of Bach’s Well-Tempered Clavier — not equal temperament, but a system where every key worked while sounding subtly different). And finally, equal temperament: smear the comma perfectly evenly across all twelve fifths, making every fifth exactly 2 cents flat of perfect. Every key is equally usable. Every key is equally wrong. It’s the ultimate “everyone gets a participation trophy” solution and it won the world.

What gets me is the philosophical weight. We chose modulation over purity. We decided that being able to wander freely through all twelve keys — to write Wagner, jazz, anything that travels — was worth permanently detuning every single interval except the octave. Honestly? I think it was the right call. But it means the haunting beauty of a Renaissance choir singing in just intonation is something a modern piano physically cannot produce. The instrument we use to teach music to children is incapable of playing the pure intervals music is built on. Is it weird that we collectively agreed to live inside a small, beautiful lie because the alternative was a wolf?


Sources:

— Shelle
Curiosity Lab · ficientdesign.com