# Pythagorean comma

In musical tuning, the Pythagorean comma (or ditonic comma), named after the ancient mathematician and philosopher Pythagoras, is the small interval (or comma) existing in Pythagorean tuning between two enharmonically equivalent notes such as C and B♯, or D♭ and C♯. It is equal to the frequency ratio (1.5)$^{12}$⁄2$^7$ = 531441⁄524288 ≈ 1.01364, or about 23.46 cents, roughly a quarter of a semitone (in between 75:74 and 74:73). The comma that musical temperaments often "temper" is the Pythagorean comma.
The Pythagorean comma can be also defined as the difference between a Pythagorean apotome and a Pythagorean limma (i.e., between a chromatic and a diatonic semitone, as determined in Pythagorean tuning); the difference between 12 just perfect fifths and seven octaves; or the difference between three Pythagorean ditones and one octave. (This is why the Pythagorean comma is also called a ditonic comma.)
The diminished second, in Pythagorean tuning, is defined as the difference between limma and apotome. It coincides, therefore, with the opposite of a Pythagorean comma, and can be viewed as a descending Pythagorean comma (e.g. from C♯ to D♭), equal to about −23.46 cents.

## Derivation

As described in the introduction, the Pythagorean comma may be derived in multiple ways:
* Difference between two enharmonically equivalent notes in a Pythagorean scale, such as C and B♯, or D♭ and C♯ (see below).
* Difference between Pythagorean apotome and Pythagorean limma.
* Difference between 12 just perfect fifths and seven octaves.
* Difference between three Pythagorean ditones (major thirds) and one octave.
A just perfect fifth has a frequency ratio of 3:2. It is used in Pythagorean tuning, together with the octave, as a yardstick to define, with respect to a given initial note, the frequency of any other note.
Apotome and limma are the two kinds of semitones defined in Pythagorean tuning. Namely, the apotome (about 113.69 cents, e.g. from C to C♯) is the chromatic semitone, or augmented unison (A1), while the limma (about 90.23 cents, e.g. from C to D♭) is the diatonic semitone, or minor second (m2).
A ditone (or major third) is an interval formed by two major tones. In Pythagorean tuning, a major tone has a size of about 203.9 cents (frequency ratio 9:8), thus a Pythagorean ditone is about 407.8 cents.
| Octaves (7 × 1200 = 8400) versus fifths (12 × 701.96 = 8423.52), depicted as with Cuisenaire rods (red (2) is used for 1200, black (7) is used for 701.96). | Octaves (1 × 1200 = 1200) versus ditones (3 × 407.82 = 1223.46), depicted as with Cuisenaire rods (red (2) is used for 1200, magenta (4) is used for 407.82). |

## Size

The size of a Pythagorean comma, measured in cents, is
    ${\hbox{apotome}}-{\hbox{limma}}\approx 113.69-90.23\approx 23.46~{\hbox{cents}}\!$
or more exactly, in terms of frequency ratios:
    ${\frac {\hbox{apotome}}{\hbox{limma}}}={\frac {3^{7}/2^{11}}{2^{8}/3^{5}}}={\frac {3^{12}}{2^{19}}}={\frac {531441}{524288}}=1.0136432647705078125\!$

## Circle of fifths and enharmonic change

The Pythagorean comma can also be thought of as the discrepancy between 12 justly tuned perfect fifths (ratio 3:2) and seven octaves (ratio 2:1):
    ${\frac {\hbox{twelve fifths}}{\hbox{seven octaves}}}=\left({\tfrac {3}{2}}\right)^{12}\!\!{\Big /}\,2^{7}={\frac {3^{12}}{2^{19}}}={\frac {531441}{524288}}=1.0136432647705078125\!$
Ascending by perfect fifths :
| Note | Fifth | Frequency ratio | Decimal ratio |
| C | 0 | 1 : 1 | 1 |
| G | 1 | 3 : 2 | 1.5 |
| D | 2 | 9 : 4 | 2.25 |
| A | 3 | 27 : 8 | 3.375 |
| E | 4 | 81 : 16 | 5.0625 |
| B | 5 | 243 : 32 | 7.59375 |
| F♯ | 6 | 729 : 64 | 11.390625 |
| C♯ | 7 | 2187 : 128 | 17.0859375 |
| G♯ | 8 | 6561 : 256 | 25.62890625 |
| D♯ | 9 | 19683 : 512 | 38.443359375 |
| A♯ | 10 | 59049 : 1024 | 57.6650390625 |
| E♯ | 11 | 177147 : 2048 | 86.49755859375 |
| B♯ (≈ C) | 12 | 531441 : 4096 | 129.746337890625 |
Ascending by octaves :
| Note | Octave | Frequency ratio |
| C | 0 | 1 : 1 |
| C | 1 | 2 : 1 |
| C | 2 | 4 : 1 |
| C | 3 | 8 : 1 |
| C | 4 | 16 : 1 |
| C | 5 | 32 : 1 |
| C | 6 | 64 : 1 |
| C | 7 | 128 : 1 |
In the following table of musical scales in the circle of fifths, the Pythagorean comma is visible as the small interval between, e.g., F♯ and G♭. Going around the circle of fifths with just intervals results in a comma pump by the Pythagorean comma.
The 6♭ and the 6♯ scales are not identical—even though they are on the piano keyboard—but the ♭ scales are one Pythagorean comma lower. Disregarding this difference leads to enharmonic change.
* ↑ The 7♭ and 5♯, respectively 5♭ and 7♯ scales differ in the same way by one Pythagorean comma. Scales with seven accidentals are seldom used, because the enharmonic scales with five accidentals are treated as equivalent.
This interval has serious implications for the various tuning schemes of the chromatic scale, because in Western music, 12 perfect fifths and seven octaves are treated as the same interval. Equal temperament, today the most common tuning system in the West, reconciled this by flattening each fifth by a twelfth of a Pythagorean comma (approximately 2 cents), thus producing perfect octaves.
Another way to express this is that the just fifth has a frequency ratio (compared to the tonic) of 3:2 or 1.5 to 1, whereas the seventh semitone (based on 12 equal logarithmic divisions of an octave) is the seventh power of the twelfth root of two or 1.4983... to 1, which is not quite the same (a difference of about 0.1%). Take the just fifth to the 12th power, then subtract seven octaves, and you get the Pythagorean comma (about a 1.4% difference).

## History

The first to mention the comma's proportion of 531441:524288 was Euclid, who takes as a basis the whole tone of Pythagorean tuning with the ratio of 9:8, the octave with the ratio of 2:1, and a number A = 262144. He concludes that raising this number by six whole tones yields a value, G, that is larger than that yielded by raising it by an octave (two times A). He gives G to be 531441. The necessary calculations read:
Calculation of G:
       $262144\cdot \left(\textstyle {\frac {9}{8}}\right)^{6}=531441$
Calculation of the double of A:
       $262144\cdot \left(\textstyle {\frac {2}{1}}\right)^{1}=524288$
Chinese mathematicians were aware of the Pythagorean comma as early as 122 BC (its calculation is detailed in the Huainanzi), and circa 50 BC, Ching Fang discovered that if the cycle of perfect fifths were continued beyond 12 all the way to 53, the difference between this 53rd pitch and the starting pitch would be much smaller than the Pythagorean comma. This much smaller interval was later named Mercator's comma (see: history of 53 equal temperament).
In George Russell's Lydian Chromatic Concept of Tonal Organization (1953), the half step between the Lydian Tonic and ♭2 in his Altered Major and Minor Auxiliary Diminished Blues scales is theoretically based on the Pythagorean comma.