Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 5

The Math and Compromise of 12-Tone Equal Temperament

Recommended resources

Introduction

In our last lesson, we were left with a fundamental dilemma. Both Pythagorean tuning and Just Intonation, while built on the elegant purity of simple integer ratios, suffer from critical flaws. Pythagorean tuning, based on the 3:2 fifth, produces dissonant thirds and a "wolf" interval that cripples modulation. Just Intonation creates perfectly consonant chords in one key but falls apart upon transposition due to the syntonic comma. This mathematical impasse demonstrates that a system cannot simultaneously feature pure intervals and allow for unrestricted movement between keys.

This lesson introduces the ingenious and pragmatic solution that defines virtually all modern Western music: 12-Tone Equal Temperament (12-TET). We will derive the mathematical foundation of this system and, in doing so, address the learning outcome: Derive the 12-tone equal temperament semitone ratio as 2^(1/12) and explain the compromise it represents. We will see how 12-TET abandons the quest for perfect integer ratios in favor of perfect transposability, creating a system that is consistently, and intentionally, "out of tune."


The Mathematical Solution: Dividing the Octave

The core idea behind 12-TET is to resolve the tuning problem by imposing a strict geometric constraint. Instead of building a scale by stacking pure intervals like fifths, we begin with the octave (the one non-negotiable pure interval, 2:1) and divide it into 12 perfectly equal steps.

The "equality" of these steps is perceptual, which, as we know from the Weber-Fechner law in psychoacoustics, corresponds to a constant ratio of frequencies. Therefore, we are looking for a common ratio, let's call it , such that multiplying a starting frequency by twelve times results in exactly doubling the frequency. This can be expressed as a simple equation:

Solving for gives us the fundamental ratio for a single semitone in the 12-TET system:

This value, approximately 1.05946, is an irrational number. This is the mathematical crux of the matter: since the ratio is irrational, it cannot be expressed as a ratio of integers. This is precisely why the earlier systems, built exclusively on simple integer ratios like 3/2 and 5/4, were doomed to fail in creating a closed, 12-note system. They were trying to approximate an irrational target with rational building blocks.

The following video provides an excellent visualization of this concept and its derivation.

The Mathematical Problem with Music, and How to Solve It

The video "The Mathematical Problem with Music, and How to Solve It" from the channel Formant provides a clear and concise derivation of the equal temperament system.

Please watch the segment from the explanation of 12-TET. The animation clearly illustrates how dividing the octave into 12 equal ratios leads directly to the 2^{1/12} formula.

With this single ratio, we can now define every note in the chromatic scale as a power of relative to a root note.

This diagram illustrates the structure of 12-Tone Equal Temperament. Starting from a root frequency (1), each of the 12 subsequent notes is found by multiplying by the semitone ratio, \(r = 2^{1/12}\). After 12 steps, the frequency is exactly doubled (2).

The Great Compromise: Transposability vs. Purity

The establishment of as the universal building block for the scale represents one of the most significant compromises in music history. It offers one enormous advantage at the cost of another highly-valued quality.

The Advantage: Perfect Transposability

Because the frequency ratio between any two adjacent notes is identical, the ratio for any interval (a major third, a perfect fifth, etc.) is the same regardless of the starting note. A fifth starting on C () is exactly the same "size" as a fifth starting on F# (). This means any melody, chord, or progression can be transposed to any of the 12 keys, and it will sound identical in its internal structure. This property was revolutionary, freeing composers to write music that modulates freely and complexly, a cornerstone of much of the music that followed.

The Disadvantage: The Loss of Just Intervals

The cost of this perfect consistency is the loss of purity. Except for the octave, none of the intervals in 12-TET correspond to a simple, whole-number ratio. They are all approximations.

Let's compare the two most important consonant intervals:

  • The Perfect Fifth:

    • Just Intonation:
    • 12-TET:
    • The 12-TET fifth is very close to the pure fifth, only about 0.1% flat. The difference is subtle enough that for most listeners, the 12-TET fifth sounds highly consonant.
  • The Major Third:

    • Just Intonation:
    • 12-TET:
    • Here, the difference is much more significant. The 12-TET major third is noticeably sharp compared to the pure, smooth 5/4 ratio—by almost 0.8%. This sharpness contributes a characteristic "brightness" or even "harshness" to major chords in equal temperament, a sound that many musicians complain about but which our ears have become overwhelmingly accustomed to.

The following resources provide both aural and quantitative evidence of this compromise.

The Mathematical Problem with Music, and How to Solve It

The Formant video continues by directly addressing this trade-off. It provides crucial aural comparisons that make the theoretical compromise tangible.

First, watch the discussion on the pros and cons of 12-TET, paying close attention to the sound comparison between the just and equal-tempered third. Then, watch the next segment until the end to see a powerful demonstration of why this compromise is necessary for transposition.

[PDF] The physics of musical scales: Theory and experiment

The paper "The physics of musical scales" by Durfee and Colton provides an excellent academic summary of this compromise under the concept of "circulating scales."

Please read the section titled "VI. CIRCULATING SCALES." Focus on the first paragraph, which begins "Circulating scales...". This text explicitly states that 12-TET has no just intervals besides the octave but also avoids the extreme dissonance of wolf intervals found in other systems.

The image below provides a fantastic quantitative summary of the deviations between 12-TET and Just Intonation for all intervals in the chromatic scale. The rightmost column, "Difference [cents]," gives us a numerical measure of the "error" for each interval. (We will formally define the cent in our next lesson, but for now, you can think of it as a logarithmic "percentage" of error, where negative values are flat and positive values are sharp).

A table comparing the frequency ratios of 12-Tone Equal Temperament (12-TET) and Just Intonation (JT). Note the significant positive deviation of 13.7 cents for the Major Third and the smaller, almost negligible deviation of -2.0 cents for the Perfect Fifth.

As you can see, 12-TET is truly a system of compromise: it files down the sharpest edges of the Pythagorean wolf interval at the cost of making every other interval slightly imperfect. It sacrifices absolute perfection in one place for good-enough consistency everywhere.


Conclusion

In this lesson, we have demystified the mathematical foundation of the modern tuning system. By accepting a compromise, 12-Tone Equal Temperament provides a robust and flexible framework that has enabled centuries of musical development and is the default for virtually all electronic music production tools.

The key takeaways are:

  • Geometric Division: 12-TET is not built from stacking pure intervals but by geometrically dividing the octave (2:1 ratio) into 12 equal steps.
  • The Semitone Ratio: The fundamental ratio for one semitone, the smallest interval in the system, is the irrational number or .
  • The Compromise: The primary advantage of 12-TET is perfect transposability, allowing music to be played in any key. The disadvantage is that no interval except the octave is perfectly "pure" in the sense of having a simple integer frequency ratio.
  • Audible Imperfections: While the 12-TET perfect fifth is nearly indistinguishable from a pure 3:2 fifth, the major third is noticeably sharper than a pure 5/4 third, giving it a distinct color.

We have now seen that different tuning systems produce intervals of slightly different sizes. To compare these systems with precision, simply looking at frequency ratios can be cumbersome. In our next lesson, we will introduce the cent, a logarithmic unit of measurement that allows for the direct addition, subtraction, and comparison of intervals, providing a much more intuitive tool for analyzing the nuances of tuning.