Skip to the main content

Piano keys

The white keys repeat seven letter names: C, D, E, F, G, A and B. The black keys come in groups of two and three. Any C is to the left of a group of two black keys. A black key takes the name of a neighbor with a sharp or a flat. A piano has eighty-eight keys.

CC♯DE♭EFF♯GA♭AB♭B
An octave of piano keys with their names

The pattern of the keys

Look at the black keys first. They come in a group of two and then a group of three. The pattern repeats across the keyboard.

F is the white key to the left of the three black keys. From C, the white keys run C, D, E, F, G, A and B. The next white key is C again.

The names of the black keys

A sharp (♯) raises a note by a half step, and a flat (♭) lowers it by a half step. A half step is the distance from one key to the next key. The next key can be white or black.

A black key therefore has two names. The black key between C and D is C♯ and also D♭. The black keys of one octave are C♯ or D♭, D♯ or E♭, F♯ or G♭, G♯ or A♭, and A♯ or B♭.

Black keySharp nameFlat nameListen
Between C and DC♯D♭
Between D and ED♯E♭
Between F and GF♯G♭
Between G and AG♯A♭
Between A and BA♯B♭

Octaves on the keyboard

An octave runs from one key to the next key with the same name. The distance from one C to the next C is an octave. The higher C vibrates twice as fast. It sounds like the same note at a higher pitch.

Musicians number the octaves. Middle C is C4. It is the C nearest the middle of the keyboard. The C above it is C5. Tap the keys below to hear two octaves.

C3C4C5

The full keyboard

A full piano has fifty-two white keys and thirty-six black keys. The lowest key is A0, and the highest is C8. Together they span a little more than seven octaves.

Many keyboards have sixty-one or seventy-six keys. They are enough for the first lessons, because beginners play near middle C.

A chart of the keys

This chart gives the twelve keys of one octave in order. A key is always a half step above the one before. Print it and place it behind the keys while you learn the names.

OrderKeyColorListen
OneCWhite
TwoC♯ or D♭Black
ThreeDWhite
FourD♯ or E♭Black
FiveEWhite
SixFWhite
SevenF♯ or G♭Black
EightGWhite
NineG♯ or A♭Black
TenAWhite
ElevenA♯ or B♭Black
TwelveBWhite

Online piano

Play the keys on the recorded grand piano. The full piano shows the name of any note you play.

A short check

Choose one answer per question.

  1. Which white key is to the left of a group of two black keys?

  2. What is the black key above C called?

  3. How many keys does a full piano have?

  4. Which pair of white keys has no black key between them?

Common questions

How do I remember the piano keys?

Find the groups of two black keys. The white key on the left of any group is C. From C, say the letters up to B, and start again at C.

Why are there no black keys between E and F?

E and F are already a half step apart, and so are B and C. No key fits between them.

Where is middle C on a keyboard with sixty-one keys?

On most keyboards with sixty-one keys, middle C is the third C from the left. It is usually the C closest to the center of the keyboard.

Are piano keys numbered?

The keys are not numbered on the piano itself. Musicians call a key by its letter and octave. Examples are C4 and A0.

What is the difference between C sharp and D flat?

On the piano they are the same key. The name depends on the key of the music. Music in D major uses C♯, and music in A♭ major uses D♭.

How to play pianoPiano chordsOnline pianoLevel 2How to teach piano