Kids Classical Music

Articles · Instruments

Why does a piano have black keys?

Updated 2026-11-14

A piano has black keys because Western music uses 12 different notes in each octave, not 7. The seven white keys play the notes named A to G. The five black keys play the notes in between, called sharps and flats. They are raised and grouped in twos and threes so that a player can find any note by feel and at a glance.

Quick facts

  • Notes in each octave: 12
  • White keys in each octave: 7, named A, B, C, D, E, F, and G
  • Black keys in each octave: 5, the sharps and flats
  • On a full piano: 52 white keys and 36 black keys, 88 in all
  • Pattern: the black keys sit in groups of two and three, all the way up

Twelve notes, seven names

From one C to the next C is an octave. Inside it are 12 notes, each a half step apart. Seven of them have plain letter names. The other five sit between them and borrow the names of their neighbors. The black key just above C is C sharp. The same key, seen from D, is D flat.

Two pairs of white keys have no black key between them: E and F, and B and C. Those pairs are already only a half step apart, so there is no note to fit between them. That gap is what makes the twos and threes. Read whole steps and half steps explained and sharps, flats, and naturals explained.

Why groups of two and three help

If all 12 keys looked the same, a player would get lost. The groups make a map.

  • C is the white key just to the left of each group of two black keys.
  • F is the white key just to the left of each group of three.
  • Middle C is the C nearest the middle of the piano. Read middle C: where it is and why it matters.

Pianists can also feel the black keys without looking, since they stand higher and narrower than the white ones.

Why are the black keys raised and short?

The white keys are the “main road,” and the black keys sit back and up between them. That shape lets the fingers play white and black keys side by side without crowding. A hand can lie flat on the white keys and reach forward to a black key, or slide between them.

Where the black keys came from

Early organs in the Middle Ages had keys only for the plain notes, like the white keys today. Over time, musicians wanted more notes. A key for B flat came first, then the others, one by one. By the 1400s, keyboards had the full set of 12 notes in each octave, laid out much as they are now.

Black and white, or white and black?

The colors have not always been the same. Many harpsichords and early pianos from the 1700s had black keys for the plain notes and white keys for the sharps and flats, the reverse of today. The colors came from the materials: ebony is black, and bone or ivory is white. By the 1800s, most pianos used white for the plain notes, the pattern we know.

Read who invented the piano?

Do all songs need black keys?

No. A tune in the key of C major uses only white keys. Many first piano songs stay there for that reason. Other keys use some black keys. G major uses one, F sharp. Read key signatures explained.

The five black keys on their own make a five-note scale that sounds pleasant in any order. A child can make up a tune on the black keys alone, and it will sound good.

Things to do together

Find the twos and threes. Your child touches every group of two black keys from the bottom of the piano to the top, then every group of three.

C hunt. Find every C on the piano. Count them.

Black-key tune. Play only the black keys, in any order. Make up a song about the weather.

Eyes closed. With eyes closed, your child finds a group of two black keys by touch, then plays the C to its left.

Print the piano keyboard chart. Read how many keys are on a piano and parts of the piano.

Use it with your kids

Print a listening page, a practice chart, or a composer fact sheet. Or try a tool, such as the composer timeline or the piece picker.

Free printablesTools