There are only seven note names in music, and they repeat across the entire keyboard. Once you can find one C, you can find every C, every note, and every chord on any piano you sit down at. This page covers the names, the pattern they follow, and a full map from note name to keyboard key.
Notes are named with the letters A to G. After G the sequence starts again at A, one octave higher. There is no H — the seven letters exist because the major scale has seven notes.
The black keys take their name from a neighbouring white key, with a sharp (♯) meaning one key higher or a flat (♭) meaning one key lower. C♯ and D♭ are the same physical key on a piano. This is why every black key has two possible names.
You never need to count from the left end of the keyboard. The black keys are grouped in a repeating pattern of two and three. The white key immediately to the left of any group of two black keys is C.
That single rule gives you every note on the instrument: find the two-black-key group, step left one white key to land on C, then read the white keys upward — C, D, E, F, G, A, B — until the pattern repeats.
This table maps our online piano keyboard to note names in scientific pitch notation, where C4 is middle C. Lowercase letters are white keys and the capital letters in the second half are the black keys.
| Keyboard key | Note | Keyboard key | Note |
|---|---|---|---|
| 1 | C2 | s | C5 |
| 2 | D2 | d | D5 |
| 3 | E2 | f | E5 |
| 4 | F2 | g | F5 |
| 5 | G2 | h | G5 |
| 6 | A2 | j | A5 |
| 7 | B2 | k | B5 |
| 8 | C3 | l | C6 |
| 9 | D3 | z | D6 |
| 0 | E3 | x | E6 |
| q | F3 | c | F6 |
| w | G3 | v | G6 |
| e | A3 | b | A6 |
| r | B3 | n | B6 |
| t | C4 (middle C) | m | C7 |
| y | D4 | S | C♯5 |
| u | E4 | D | D♯5 |
| i | F4 | G | F♯5 |
| o | G4 | H | G♯5 |
| p | A4 | J | A♯5 |
| a | B4 | L | C♯6 |
When the seven letters run out, the pattern restarts one octave higher. An octave is the distance from a note to the next note with the same name, and it always spans twelve keys — seven white and five black.
Middle C (C4) sits roughly in the centre of an 88-key piano and is the reference point for everything else. Sheet music is read relative to it, and it is the note most beginners learn first. On our keyboard it is the key labelled t.
Written music places notes on five lines and four spaces called a staff. A treble clef marks the staff used by the right hand, and the lines from bottom to top are E, G, B, D, F — the spaces spell F, A, C, E.
You do not need to read the staff to start playing. Letter notation, like the keyboard letters used across this site, gets you playing songs on day one while reading slowly follows.
A, B, C, D, E, F and G. There is no H — after G the sequence restarts at A one octave higher. Adding the five black keys between them gives the 12 notes in an octave.
Look for the group of two black keys nearest the centre of the keyboard. The white key immediately to the left of that pair is C — middle C (C4) is the one closest to the middle.
Nothing on a piano — they are the same key. The name simply depends on the musical context, which is why the same black key can be written either way.
A standard full-size piano has 88 keys, spanning 52 white keys and 36 black keys — just over seven octaves. Smaller instruments use 61, 49, 36 or 25 keys.