Piano notes are named with seven letters, A, B, C, D, E, F and G, for the white keys, and with sharps and flats for the black keys. Those 12 names repeat in every octave, and a number after the letter says which octave a key is in. C4 is middle C, A4 is the A used as the standard tuning pitch (440 Hz), and an 88-key piano runs from A0 to C8. The chart at the end of this page lists all 88 keys with their names, colors and frequencies.
On the keyboard above, the lit keys are the four Cs from C3 to C6: the same letter in four octaves. The second of them, C4, is middle C. The labeled diagram on this page shows one full octave, from C4 to B4, with both names on every black key.
The musical alphabet: A to G
Music uses only seven letters. After G the alphabet starts again at A, one octave higher. On the piano those seven letters belong to the white keys, and because teaching usually starts from C, one octave of white keys is read C, D, E, F, G, A, B. Played from one C to the next, those white keys form the C major scale; piano scales on our companion site shows how the other scales are built.
Many countries use syllables instead of letters. In fixed-do solfège, C is always Do, so C D E F G A B becomes Do Re Mi Fa Sol La Si. In the movable-do system common in American classrooms, Do is the first note of whatever key a song is in, and the seventh note is usually sung Ti.
Sharps, flats and the black keys
Each black key takes its name from a white neighbor. A sharp (#) raises a note by a half step, the smallest step on the keyboard, and a flat (b) lowers it by a half step. The black key just right of C is C sharp (C#); seen from D, the same key is D flat (Db). So every black key has two names:
| Black key | Sharp name | Flat name |
|---|---|---|
| Between C and D | C# | Db |
| Between D and E | D# | Eb |
| Between F and G | F# | Gb |
| Between G and A | G# | Ab |
| Between A and B | A# | Bb |
Printed music uses the symbols ♯ and ♭; this site writes them as # and b.
Enharmonic notes: one key, two names
Two names for the same key are called enharmonic equivalents. C# and Db are the familiar example, but white keys have them too. Because E and F are only a half step apart, E# is another name for F and Fb is another name for E; likewise, B# is C and Cb is B. The octave number follows the letter, so B#3 is the same key as C4 and Cb4 is the same key as B3. Which name a piece uses depends on its key signature and harmony, not on the sound: on a piano, C# and Db are one key and sound identical.
Octave numbers and middle C
The numbers come from scientific pitch notation. Each octave starts on C, so the number goes up by one at every C: the key after B3 is C4. On an 88-key piano, octave 0 has only three keys (A0, A#0/Bb0 and B0), octaves 1 through 7 have all 12, and octave 8 has a single key, C8. That makes eight each of A, A#/Bb, B and C, and seven of every other note.
Middle C is C4: key 40, the fourth C from the left, sounding at about 261.63 Hz. It sits a little left of the physical center of an 88-key piano, which falls between E4 and F4. Some music software labels middle C as C3 instead; the key and its pitch are the same, and only the number differs. In MIDI, the data format keyboards use to talk to computers, middle C is note number 60.
How to find any note fast
You never need to count up from the bottom key. Use the black-key groups as landmarks:
- Find a group of two black keys. The white key just left of it is C, the key between the two black keys is D, and the key just right of the group is E.
- Find a group of three black keys. The white key just left of it is F; G and A sit between the black keys, and B is just right of the group.
- Name a black key from either neighbor: a sharp of the white key to its left, or a flat of the white key to its right.
- Add the octave number. Count the Cs from the left end of an 88-key piano (C1, C2, C3 and so on), or start at middle C and count Cs up or down.
- Test yourself: set the labels on the keyboard above to None, name a key, then switch back to note names to check.
The keyboard layout guide shows the whole pattern at once, including where each keyboard size starts and ends.
How the frequencies work
A note's pitch is its frequency, measured in hertz (Hz), or vibrations per second. Modern pianos use equal temperament, which splits every octave into 12 equal half steps. Each key is the twelfth root of two, about 1.059463, times the frequency of the key below it, so 12 half steps exactly double the frequency. That is why A3, A4 and A5 are 220, 440 and 880 Hz.
With A4 as key 49, the frequency of key number n is f = 440 × 2^((n − 49) / 12). The chart below applies that formula to every key and rounds to two decimals. Real acoustic pianos are tuned with slightly stretched octaves, so their highest and lowest notes can sit a little away from these theoretical values. To hear any of these notes, play them on the full 88-key online piano.
All 88 piano keys with names and frequencies
Key 1 is the lowest key, A0, and key 88 is the highest, C8. Middle C is key 40 and A4 (440 Hz) is key 49. Black keys are listed with both names.
| Key | Note | Color | Frequency (Hz) |
|---|---|---|---|
| 1 | A0 | White | 27.50 |
| 2 | A#0 / Bb0 | Black | 29.14 |
| 3 | B0 | White | 30.87 |
| 4 | C1 | White | 32.70 |
| 5 | C#1 / Db1 | Black | 34.65 |
| 6 | D1 | White | 36.71 |
| 7 | D#1 / Eb1 | Black | 38.89 |
| 8 | E1 | White | 41.20 |
| 9 | F1 | White | 43.65 |
| 10 | F#1 / Gb1 | Black | 46.25 |
| 11 | G1 | White | 49.00 |
| 12 | G#1 / Ab1 | Black | 51.91 |
| 13 | A1 | White | 55.00 |
| 14 | A#1 / Bb1 | Black | 58.27 |
| 15 | B1 | White | 61.74 |
| 16 | C2 | White | 65.41 |
| 17 | C#2 / Db2 | Black | 69.30 |
| 18 | D2 | White | 73.42 |
| 19 | D#2 / Eb2 | Black | 77.78 |
| 20 | E2 | White | 82.41 |
| 21 | F2 | White | 87.31 |
| 22 | F#2 / Gb2 | Black | 92.50 |
| 23 | G2 | White | 98.00 |
| 24 | G#2 / Ab2 | Black | 103.83 |
| 25 | A2 | White | 110.00 |
| 26 | A#2 / Bb2 | Black | 116.54 |
| 27 | B2 | White | 123.47 |
| 28 | C3 | White | 130.81 |
| 29 | C#3 / Db3 | Black | 138.59 |
| 30 | D3 | White | 146.83 |
| 31 | D#3 / Eb3 | Black | 155.56 |
| 32 | E3 | White | 164.81 |
| 33 | F3 | White | 174.61 |
| 34 | F#3 / Gb3 | Black | 185.00 |
| 35 | G3 | White | 196.00 |
| 36 | G#3 / Ab3 | Black | 207.65 |
| 37 | A3 | White | 220.00 |
| 38 | A#3 / Bb3 | Black | 233.08 |
| 39 | B3 | White | 246.94 |
| 40 | C4 | White | 261.63 |
| 41 | C#4 / Db4 | Black | 277.18 |
| 42 | D4 | White | 293.66 |
| 43 | D#4 / Eb4 | Black | 311.13 |
| 44 | E4 | White | 329.63 |
| 45 | F4 | White | 349.23 |
| 46 | F#4 / Gb4 | Black | 369.99 |
| 47 | G4 | White | 392.00 |
| 48 | G#4 / Ab4 | Black | 415.30 |
| 49 | A4 | White | 440.00 |
| 50 | A#4 / Bb4 | Black | 466.16 |
| 51 | B4 | White | 493.88 |
| 52 | C5 | White | 523.25 |
| 53 | C#5 / Db5 | Black | 554.37 |
| 54 | D5 | White | 587.33 |
| 55 | D#5 / Eb5 | Black | 622.25 |
| 56 | E5 | White | 659.26 |
| 57 | F5 | White | 698.46 |
| 58 | F#5 / Gb5 | Black | 739.99 |
| 59 | G5 | White | 783.99 |
| 60 | G#5 / Ab5 | Black | 830.61 |
| 61 | A5 | White | 880.00 |
| 62 | A#5 / Bb5 | Black | 932.33 |
| 63 | B5 | White | 987.77 |
| 64 | C6 | White | 1046.50 |
| 65 | C#6 / Db6 | Black | 1108.73 |
| 66 | D6 | White | 1174.66 |
| 67 | D#6 / Eb6 | Black | 1244.51 |
| 68 | E6 | White | 1318.51 |
| 69 | F6 | White | 1396.91 |
| 70 | F#6 / Gb6 | Black | 1479.98 |
| 71 | G6 | White | 1567.98 |
| 72 | G#6 / Ab6 | Black | 1661.22 |
| 73 | A6 | White | 1760.00 |
| 74 | A#6 / Bb6 | Black | 1864.66 |
| 75 | B6 | White | 1975.53 |
| 76 | C7 | White | 2093.00 |
| 77 | C#7 / Db7 | Black | 2217.46 |
| 78 | D7 | White | 2349.32 |
| 79 | D#7 / Eb7 | Black | 2489.02 |
| 80 | E7 | White | 2637.02 |
| 81 | F7 | White | 2793.83 |
| 82 | F#7 / Gb7 | Black | 2959.96 |
| 83 | G7 | White | 3135.96 |
| 84 | G#7 / Ab7 | Black | 3322.44 |
| 85 | A7 | White | 3520.00 |
| 86 | A#7 / Bb7 | Black | 3729.31 |
| 87 | B7 | White | 3951.07 |
| 88 | C8 | White | 4186.01 |
Questions and answers
How many notes are on a piano?
An 88-key piano plays 88 different pitches but uses only 12 note names: seven letters for the white keys and five sharp or flat names for the black keys. The same 12 names repeat in every octave.
What are the names of the white keys?
The white keys are the natural notes A, B, C, D, E, F and G. Within each octave they read C, D, E, F, G, A, B from left to right, starting at the white key just left of a group of two black keys.
What note is middle C?
Middle C is C4: key 40 on an 88-key piano and the fourth C from the left. It is the white key just left of the two black keys nearest the middle of the keyboard, and it sounds at about 261.63 Hz.
Is C sharp the same as D flat?
On a piano, yes: C# and Db are two names for the same black key and sound the same. Which name is written depends on the key signature and the chord, which is why the chart gives both names.
Why is there no black key between E and F?
E and F are already a half step apart, the smallest step on the keyboard, so there is no note between them. The same is true of B and C, which is why E# is another name for F and B# is another name for C.
What is the frequency of each piano key?
In standard tuning, A4 (key 49) is 440 Hz and each half step multiplies the frequency by about 1.059463. The lowest key, A0, is 27.50 Hz, middle C is 261.63 Hz and the highest key, C8, is 4186.01 Hz; the chart on this page lists all 88.
What do the numbers after note names mean?
They are octave numbers from scientific pitch notation. The number goes up at every C, so the key after B3 is C4, and an 88-key piano runs from A0 to C8.