What Do the Notes on a Piano Mean? Keys, Letters and the Staff

By Cihad Turhan · · 6 min read

Note Bounce gameplay: balls bouncing onto the notes of the Korobeiniki melody on a sheet music staff

The notes on a piano are named with the seven letters A, B, C, D, E, F and G, and that pattern repeats from the bottom of the keyboard to the top. The white keys carry the plain letter names, the black keys are the sharps and flats between them, and every key matches one exact position on the staff in written music.

Once you see how those three pieces fit together (the keyboard pattern, the letter names and the staff), a page of sheet music stops looking like code and starts looking like a map of the keyboard. This guide walks through each piece with simple diagrams, then ties them together with a worked example.

Find any key using the black-key groups

The black keys are not evenly spaced. They come in alternating groups of two and three, and that pattern is how you find your way around without counting from the end.

  C#/Db  D#/Eb         F#/Gb  G#/Ab  A#/Bb
    ██     ██            ██     ██     ██
    ██     ██            ██     ██     ██
 C      D      E      F      G      A      B      C

Two rules give you every white key:

  1. C is the white key just left of each group of two black keys.
  2. F is the white key just left of each group of three black keys.

From C, walk right through D and E to reach the next gap. From F, walk right through G, A and B. After B comes the next C, and the pattern starts again. Try it on any piano or keyboard app: put a finger on the left side of a pair of black keys, and you are on a C, wherever you are on the keyboard.

Black keys: sharps and flats

A sharp (♯) means "the next key to the right." A flat (♭) means "the next key to the left." Because every black key sits between two white keys, each one has two names:

Black key between Sharp name Flat name
C and D C♯ D♭
D and E D♯ E♭
F and G F♯ G♭
G and A G♯ A♭
A and B A♯ B♭

Notice the two gaps in the diagram: there is no black key between E and F, or between B and C. Those white keys sit right next to each other. That is why "the next key to the right" of E is F itself, and why you will occasionally see spellings like E♯ (which is played on the F key) in written music.

Every move from one key to the very next key, black or white, is a half step (also called a semitone). Two half steps make a whole step. C to D is a whole step, because the black key C♯ sits between them. E to F is a half step, because nothing does.

Octaves and middle C

From one C to the next C is an octave: eight white keys counting both ends, or twelve half steps. Notes an octave apart share a letter name and sound like higher and lower versions of each other.

To tell the different Cs apart, musicians number the octaves. A standard modern piano has 88 keys, 52 white and 36 black, running from A0 at the bottom to C8 at the top, according to Wikipedia. In that numbering, the number goes up at each C, so the keys run A0, B0, C1, D1 and so on.

Middle C is C4, the fourth C from the left on an 88-key piano, and roughly in the middle of the keyboard. It is the main reference point for both hands and for the staff, which is why teachers start there.

From key to staff: one white key, one step

Here is the idea that connects the keyboard to sheet music: each white key is one step on the staff. Moving right by one white key moves the note up one position, from a line to the next space or from a space to the next line. Moving left moves it down.

Black keys do not get their own position. A C♯ sits in the same spot as C, with a sharp sign in front of it. A B♭ sits in the same spot as B, with a flat. So when you see an accidental on the page, read the position first (the white key), then shift one key right for a sharp or one key left for a flat.

That also explains how an octave looks on paper. Eight white keys means seven steps on the staff, so an octave always jumps from a line to a space or from a space to a line, a clear visual leap. Middle C on its short ledger line below the treble staff and the C an octave higher in the third space are a good pair to spot. For the names of every line and space, see the beginner's guide to reading sheet music; you do not need to memorize them all to use this rule.

A worked example: the opening of Ode to Joy

The first phrase of Beethoven's Ode to Joy is a perfect test, because it moves almost entirely by single steps:

Notes:  E  E  F  G  G  F  E  D  C  C  D  E  E  D  D
Keys:   start on the E just right of middle C
Moves:  =  →  →  =  ←  ←  ←  ←  =  →  →  =  ←  =

On the keyboard, each arrow is one white key. On the staff, each arrow is one step: line to space, or space to line. Read it both ways:

  1. Find middle C using the group-of-two rule, then move two white keys right to E.
  2. Play the phrase following the arrows only, without thinking about letter names.
  3. Now look at the same melody written out on the staff. The notes climb and fall in exactly the same shape as your fingers did.

When the shape on the page and the shape under your hand match up, you are reading music rather than decoding it.

Practice the connection every day

The rule is simple, but making it automatic takes repetition. Note Bounce gives you that in short sessions: bouncing balls land on notes on a real staff in time with the music, so you keep reading actual notation instead of isolated flashcards. You can also import a MIDI file, such as a public-domain Ode to Joy, to practice a melody you know.

Hearing a melody note by note helps too. Marble Music (formerly Beat Bounce) turns songs and MIDI files into videos where a marble bounces on every note, so you can watch each step of a familiar tune land as you hear it. Watching the same melody go up and down helps you connect how high a note sounds to how far it moved on the page.

Start with the group-of-two rule today. Find every C on your keyboard, then play the Ode to Joy phrase above from the E right of middle C.

Frequently asked questions

How many keys are on a piano?

A standard modern piano has 88 keys: 52 white and 36 black, running from A0 at the bottom to C8 at the top.

What are the black keys called?

They are the sharps and flats. Each black key has two names, for example C sharp and D flat are the same key, and which name you use depends on the key signature and the direction of the music.

Get Note Bounce

Learn to read sheet music while you play. Free on iOS, Android and Steam.

Download Note Bounce on Google PlayDownload Note Bounce on the App StoreGet Note Bounce on Steam

More apps from the developer

← All posts