The Twelfth Root of Two Is Why a Piano Is Slightly Out of Tune
Published 11/3/2026 · 3 min read · Everyday calculators
Lena Hoffmann — Science & education writer at OneKitly
Mathematics · Physics
Checked against 2 sources
An nth root asks what number multiplied by itself n times gives the starting value, and the twelfth root of two is the most consequential one in music: 1.0594631. Multiply a note's frequency by it and you get the next key up; do that twelve times and you have doubled the frequency, which is one octave. The compromise is that seven steps give 1.498307 while a perfect fifth is exactly 1.5, so every fifth on a piano is flat by about two hundredths of a semitone. That tiny error is spread evenly across all twelve keys deliberately, which is what lets an instrument play in every key rather than only a few.
1.0594631 is the ratio between adjacent piano keys. Seven of them give 1.498307, not the 1.5 a perfect fifth wants — a deliberate compromise two cents wide.
The third is the interval that suffers
The fifth is off by a tenth of a per cent and almost nobody hears it. The major third is off by eight tenths of a per cent, seven times worse, and trained ears do hear it — the equal-tempered third beats audibly against a pure one, which is why unaccompanied choirs and string quartets drift towards pure intervals the moment nothing fixed-pitch is holding them in place. Instruments with fixed keys cannot do that, and the tuning they use is the outcome of accepting a persistent small ugliness in exchange for being able to change key without retuning.
Why the calculator says the cube root of 64 is 3.9999999999999996
Because it computes the root as a power — 64 raised to one third — and one third has no exact representation in binary. The tiny shortfall in the exponent produces a tiny shortfall in the answer, and the result is a number that differs from 4 in the sixteenth decimal place. The value is correct to the precision the machine has; it is the display that misleads by showing every digit. Software normally rounds these away, and the calculator's willingness to show the raw figure is a fair reminder that a screenful of decimals is a claim about the arithmetic and not about the world.
| Interval | Equal temperament | Pure ratio |
|---|---|---|
| Semitone (1 step) | 1.059463 | — |
| Major third (4 steps) | 1.259921 | 1.25 (+0.79 %) |
| Fifth (7 steps) | 1.498307 | 1.5 (−0.11 %) |
| Octave (12 steps) | 2 exactly | 2 (no error) |
Worked with our own calculator
Nth root calculator
Given
- Number
- 32
- Root (n)
- 2
Result
- Result
- 5.657
These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.
Run it on your own figures →Frequently asked questions
- Why twelve steps and not some other number?
- Because twelve happens to land unusually close to the simple ratios. Dividing an octave into twelve equal steps puts one of them within a tenth of a per cent of a perfect fifth, which no smaller division manages; five and seven steps do noticeably worse; nineteen and thirty-one improve the third but make the fifth worse, and only fifty-three beats twelve on both. Systems with those larger counts exist and have been built as instruments, but they demand keyboards nobody wants to learn. Twelve is the smallest division that is good enough, which is usually how a standard is chosen.
- Can an nth root of a negative number be computed?
- Only when n is odd. The cube root of −8 is −2, because a negative multiplied by itself three times stays negative; the square root of −8 has no real value, because any real number squared is positive. Calculators handle this inconsistently, and one that computes roots as powers will often refuse odd roots of negatives too, since the power form goes through logarithms that are undefined there. If you need the cube root of a negative, taking the root of the absolute value and restoring the sign afterwards is both correct and the standard workaround.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?