Library
FoundationsBeginner

Why music has 12 notes

Where the 12-note system comes from, why the piano keyboard looks the way it does, and how this all maps to the guitar fretboard.

Start with the octave

Pluck the low E string on a guitar. Now press it at the 12th fret and pluck again. You'll hear what feels like the 'same' note, but higher. That sameness isn't an illusion — the second note vibrates exactly twice as fast as the first. A 2:1 frequency ratio is what an octave is, and every culture on Earth, independently, has recognized it as a basic musical fact.

The octave is the boundary that organizes everything else in music. Whatever notes we pick inside one octave, the pattern repeats in every other octave above and below. So the only real design question is: how do we divide the space between a note and its octave?

Stacking perfect fifths — the Pythagorean discovery

About 2,500 years ago, Pythagoras and his followers noticed that two notes whose string lengths are in a 3:2 ratio sound almost as consonant as the octave. That ratio is what we now call a perfect fifth (the distance from C to G).

If you start on a note and stack perfect fifths — C → G → D → A → E → B → F♯ → C♯ → G♯ → D♯ → A♯ → E♯ — after twelve stacks you arrive back at a note that is almost (but not quite) C, several octaves higher. Twelve fifths is the smallest number that lands you remarkably close to home. Eleven misses badly. Thirteen overshoots. Twelve is where the math is least painful.

That 'almost' is real. Twelve pure 3:2 fifths overshoot a perfect octave stack by about a quarter of a semitone — the 'Pythagorean comma'. The whole history of tuning is the story of where to hide that error.

Equal temperament — the modern compromise

By the 1700s, instrument makers settled on equal temperament: divide the octave into 12 perfectly equal steps (semitones). Each semitone multiplies frequency by the 12th root of 2 (≈ 1.0595). Stack twelve of those and you land exactly on the octave (2.0×) — no comma, no error.

The cost: no interval except the octave is acoustically pure anymore. A guitar fifth is about 2 cents flat of pure; a major third is about 14 cents sharp. The trade-off is huge: you can now play in any key on the same instrument without retuning. That's why a guitar can play a song in C and the next song in F♯ without you touching the tuning pegs.

Why the keyboard has black and white keys

The seven-note (diatonic) major scale predates the 12-note chromatic system by centuries. Greek modes, medieval church music, and folk traditions all built melodies from seven notes per octave. When chromatic notes were added later for color and modulation, the original seven kept their letter names (A B C D E F G) and the newcomers were named with sharps and flats relative to them.

On the piano, the seven 'old' notes became the white keys, the five 'new' ones the black keys. Between B–C and E–F there's no black key because those pairs are already only a half-step apart — no room for a chromatic note in between. That's not a quirk; it's the historical record fossilized into wood and ebony.

The musical alphabet has 7 letters but the chromatic scale has 12 pitches. The five 'in-between' pitches get sharp/flat names because they're younger than the alphabet.

How this maps to the guitar

Each fret on a guitar is exactly one semitone. Walk up any string fret by fret and you're walking the full 12-note chromatic scale. After 12 frets you're back to the open-string note one octave higher — the same 2:1 ratio Pythagoras heard.

Look at the low E string: open is E, fret 1 is F (half-step, no F♭ between E and F), fret 2 is F♯, fret 3 is G, fret 4 is G♯, fret 5 is A, and so on. The 'no sharp between B–C and E–F' rule shows up as two places per octave where two letter notes are only one fret apart instead of two.

123456789101112EBGDAEEFF#GG#AA#BCC#DD#EBCC#DD#EFF#GG#AA#BGG#AA#BCC#DD#EFF#GDD#EFF#GG#AA#BCC#DAA#BCC#DD#EFF#GG#AEFF#GG#AA#BCC#DD#E

All 12 chromatic notes climbing the low E string.

Practice this week

  • Say the chromatic notes out loud while walking up the low E string fret by fret. Do it three times. By day three you'll know every fret on the lowest string.
  • Then do the same on the A string. Once those two are solid, you can find any note anywhere on the neck using octave shapes.
  • Tune your guitar by ear: play the 5th fret of the low E (an A) and match it to the open A string. You're hearing two notes a perfect fourth apart — one of the simple ratios Pythagoras started with.