What is the difference between white keys and black keys on a piano?
White keys play the seven natural notes (A, B, C, D, E, F, G), while black keys play the five notes in between, called sharps or flats. Together they give you all 12 notes in each octave.
If you look at a piano for the first time, the black keys are the first thing you notice. They sit higher, they are narrower, and they come in a pattern. That pattern is not decoration. It is a map, and once you can read it, the whole keyboard gets much easier to navigate.
The basic difference
The white keys are the natural notes. They are named with the first seven letters of the alphabet: A, B, C, D, E, F and G. After G, the pattern starts again at A, one octave higher.
The black keys fill the gaps between many of those notes. They are named by changing a white key's name with a sharp or a flat (more on that below).
Every neighboring pair of keys, counting black and white keys together, is one half step apart. That is the smallest distance on a standard piano. In one octave you get 12 keys: 7 white and 5 black. A full 88-key piano has 52 white keys and 36 black keys.
How the black keys are grouped
The black keys come in alternating groups of two and three. This is the most useful landmark on the keyboard, because it lets you find any white key without counting.
| Landmark | White key it points to |
|---|---|
| Just left of the group of two black keys | C |
| Between the two black keys | D |
| Just right of the group of two | E |
| Just left of the group of three | F |
| Between the first and second of the three | G |
| Between the second and third of the three | A |
| Just right of the group of three | B |
Try it on any keyboard: find a group of two, then put a finger on the white key to its left. That is C. For a longer walk through every note, see what are the notes on a piano.
Why black keys have two names
A sharp (#) raises a note by one half step, which means moving right on the keyboard. A flat (b) lowers a note by one half step, which means moving left. So the black key between C and D is both C sharp (one step up from C) and D flat (one step down from D). It is the same key with two names. Musicians call this an enharmonic pair.
| Black key | Also called |
|---|---|
| C sharp | D flat |
| D sharp | E flat |
| F sharp | G flat |
| G sharp | A flat |
| A sharp | B flat |
Which name you use depends on the key of the music and how the notes are written on the page. In a piece with sharps in the key signature you will usually see sharp names, and in a piece with flats you will usually see flat names. You do not need to memorize all of that at the start. Just know that one key can carry two names.
Why some white keys have no black key between them
Look again at E and F, and at B and C. There is no black key between them, because those pairs are already a half step apart. Every other pair of neighboring white keys is a whole step (two half steps) apart, so a black key fits in the middle. This is also why you will occasionally see names like E sharp (which is the same key as F) or C flat (the same key as B). The full story is in why there is no black key between E and F.
Are black keys harder to play?
They feel different, but they are not harder in any theoretical sense. The surface is narrower and raised, so your fingers need to learn a slightly different reach. Fingering advice varies between teachers and methods, but a common starting point is that the thumb and little finger spend most of their time on white keys, while the longer fingers (2, 3 and 4) reach in to the black keys. If you want to go deeper, how to choose piano fingering covers the main ideas.
Here is a fun fact: you can play only black keys and still sound musical. F sharp, G sharp, A sharp, C sharp and D sharp make a pentatonic scale, and almost any order of those notes sounds pleasant. It is a great way for a child or an adult to improvise on the first day.
A simple way to learn both sets of keys
- Find every C on your keyboard using the group of two black keys.
- Name the white keys from each C up to the next C, saying the letters out loud.
- Play the C major scale, which uses only white keys.
- Add the black keys one at a time by playing a white key, then the black key just to its right, and calling it a sharp.
- Play only the black keys in any order, just to hear how they sound.
If you like learning with a game, Keyfall at learnpianogame.com shows the letter name on every falling note, and the key colors match colored note stickers you can put on your keys. That makes the keyboard map easy to see while you play real songs. It is practice and fun, and it works best alongside a teacher if you have one.
Keep the map in mind
The key idea is simple: white keys are the natural notes, black keys are the sharps and flats, and the pattern of two and three black keys tells you where you are. Spend a few minutes with that pattern and the keyboard stops looking like a wall of keys.
More about music theory
FAQ
How many white and black keys are on a piano?
A standard 88-key piano has 52 white keys and 36 black keys. Each octave has 7 white keys and 5 black keys.
Do all pianos have the same pattern of black keys?
Yes, the pattern of two and three black keys repeats the same way on every standard piano or keyboard. Smaller keyboards just have fewer octaves.
Is a sharp the same as a flat?
On a piano, a sharp and a flat can be the same key. C sharp and D flat, for example, are played with the same black key but have different names depending on the musical context.
Can a white key be a sharp or a flat?
Yes, though it is less common. E sharp is the same key as F, and C flat is the same key as B.
Which finger should I use on black keys?
It depends on the passage, and teachers differ. Many beginners are taught to use the longer fingers (2, 3 and 4) on black keys and to keep the thumb on white keys, but your teacher may suggest something else for a given piece.
Should I learn the white keys before the black keys?
Most beginners start with the white keys, because the note names are simpler and the C major scale uses only white keys. Adding black keys after that feels natural once you know your landmarks.
Practise it on your own piano. Keyfall is a free piano game: notes fall toward the keys and you play them on a digital piano, keyboard, phone or computer.
Play free