Skip to main content
Zachary RothContact

Contact

Get in touch about my work.

music

Every chord

Counts every chord in 12-tone equal temperament, from the 19 three-note chords in one octave to every voicing across seven octaves.

How many chords are there? The answer depends on what counts as the same chord. This essay starts with the smallest version of the question and adds one complication at a time, ending with every voicing a seven-octave keyboard can play.

All counts use 12-tone equal temperament: 12 keys per octave, each a semitone apart. A chord here is any set of distinct keys played together, whether or not anyone would call it a chord.

Three notes in one octave

Start by ignoring octaves. C is C wherever it sits on the keyboard, so a chord is a choice of pitch names. Choosing 3 of the 12 gives 220 sets.

Most of those sets are the same chord in a different key. C-E-G and D-F#-A are both major triads. If transposing a chord does not make a new one, there are 19 three-note chords.

The arithmetic shows why. Moving a chord through all 12 keys usually gives 12 different sets, so 220 sets would make 18.33 chords. The fraction comes from the augmented triad. C-E-G# moved up 4 semitones is E-G#-C, the same three notes, so it has only 4 distinct transpositions. That gives 18 chords with 12 transpositions each, plus 1 with 4: 18 × 12 + 4 = 220.

Another way to see it: describe each chord by the gaps between its notes, wrapping back to the start, so the gaps always add to 12. C-E-G is 4-3-5. Rotating the gaps (3-5-4, 5-4-3) moves the same chord to start on a different note. There are 55 ways to write 12 as three ordered gaps. Every chord appears 3 times among them except 4-4-4, which appears once: (55 − 1) / 3 + 1 = 19.

The 55 is also the number of three-note sets that contain C. A major triad appears in that list three times, as C major (C-E-G), F major (C-F-A), and A-flat major (A♭-C-E♭), because C can be its root, fifth, or third.

The list of all 19 three-note chords spells each one from C with its gaps and common name.

Every size in one octave

The same counting works for any number of notes:

NotesSets of 12 keysSets containing CChordsChords, mirrors merged
112111
2661166
3220551912
44951654329
57923306638
69244628050
77924626638
84953304329
92201651912
10665566
11121111
121111

Summed across every size, there are 351 chords in one octave.

The column is symmetric. A 7-note chord is the 5 keys it leaves out turned inside out, so there are as many 7-note chords as 5-note chords. Six notes, at the middle, has the most.

Each size has its own list: 4 notes, 5 notes, 6 notes, 7 notes, 8 notes, 9 notes, 10 notes, and 11 notes.

The every chord generator lists any size in any of the 12 keys and shows any one chord in every key.

Mirror images

Some chords are upside-down versions of each other. Reading the major triad's gaps backward, 4-3-5 becomes 5-3-4, which is a rotation of the minor triad's 3-4-5. Major and minor are mirror images.

Set theory usually counts a chord and its mirror as one type. These are the Forte set classes, named for Allen Forte's 1973 catalog, and they give the last column of the table: 12 three-note types instead of 19. Chords such as the diminished triad (3-3-6) read the same backward and have no separate mirror.

Merging mirrors is a choice, not a fact about the sound. A major triad and a minor triad do not sound alike, which is why the lists keep them apart.

Adding octaves

Everything so far ignored octaves. On a real keyboard, C-E-G played close together and C-G-E spread over two octaves are different sounds. Counting them separately means counting voicings: sets of specific keys.

The rule for the rest of this essay: a voicing fits within N octaves when its highest key is less than 12N semitones above its lowest, and transposing a voicing still does not make a new one. Fix the lowest key; every other note is a choice among the 12N − 1 keys above it. So the count of n-note voicings is the number of ways to choose n − 1 keys from 12N − 1.

Within one octave this gives the "Sets containing C" column above, which counts C-E-G, E-G-C, and G-C-E as three voicings of one chord. Two octaves already multiply that:

Notes1 octave2 octaves
355253
41651,771
53308,855
7462100,947
11111,144,066
1211,352,078

The note limit grows with the range

One octave holds 12 keys, so a one-octave chord has at most 12 notes. Two octaves hold 24, and seven hold 84, close to a piano's 88. The largest count no longer sits at 6 notes. It sits at half the range: 12 or 13 notes in two octaves, 42 or 43 in seven.

Counting every size at once has a short answer. Each of the 12N − 1 keys above the lowest one is either in the voicing or not, so there are 2 raised to the 12N − 1 voicings in total.

OctavesKeysMost common sizeVoicings of that sizeAll voicings
1126 or 74622,048
22412 or 131,352,0788,388,608
33618 or 194,537,567,65034,359,738,368
44824 or 2516,123,801,841,550140,737,488,355,328
56030 or 3159,132,290,782,430,712576,460,752,303,423,488
67236 or 37221,256,270,138,418,389,6022,361,183,241,434,822,606,848
78442 or 43839,455,243,105,945,545,123,6609,671,406,556,917,033,397,649,408

Seven octaves

Across seven octaves, the familiar sizes look like this:

NotesVoicings within 7 octaves
33,403
491,881
51,837,620
7377,447,148
112,432,332,329,570
1216,141,841,823,510

Three-note voicings stay countable by hand: 3,403. Forty-two-note voicings number about 8.4 × 10²³, more than Avogadro's number (about 6.0 × 10²³).

What the numbers say

In one octave, harmony is a small, finished catalog: 351 chords, and only 19 with three notes. The explosion comes from register, not from the number of notes. Every octave added multiplies the possibilities by roughly 4,096, because it adds 12 more keys that can each be in or out.

The counts were computed exactly and checked against a brute-force enumeration for one and two octaves.