Why Are There Black Keys on a Piano?
The black keys play the five extra notes (sharps and flats) that fit between the seven natural notes A to G. They are raised and colored differently so your eyes and fingers can find your place on the keyboard.
If you have ever looked at a keyboard and wondered what the black keys are for, you are in good company. They look like an extra layer of difficulty, but they are actually the thing that makes the keyboard easier to navigate, and they give you the notes you need to play in many keys.
The short answer
The white keys play the seven natural notes: A, B, C, D, E, F and G. The black keys play the notes in between. Together, one octave has 12 different notes: 7 white keys and 5 black keys, then the pattern repeats higher or lower.
Black keys have two jobs. First, they add the extra pitches that music needs, such as the F sharp in a G major scale. Second, they work as landmarks. Without them, a keyboard would be a long row of identical keys and finding any note would be slow and frustrating.
Twos and threes: the pattern that helps you find notes
Look closely and you will see the black keys come in groups of two and three. This repeating pattern is your map.
- C is the white key just to the left of any group of two black keys.
- F is the white key just to the left of any group of three black keys.
- Middle C, the C near the center of the keyboard, is the one to the left of the two black keys closest to the middle. You can see it on the middle C page.
Once you know C and F, you can count up to every other white key. Here is how the black keys are named:
| Group | Black key names | Sits between |
|---|---|---|
| Group of two | C sharp / D flat | C and D |
| Group of two | D sharp / E flat | D and E |
| Group of three | F sharp / G flat | F and G |
| Group of three | G sharp / A flat | G and A |
| Group of three | A sharp / B flat | A and B |
Each black key has two names because it sits between two white notes. Going up from the white key on its left makes it a sharp, and going down from the white key on its right makes it a flat. Which name you use depends on the key of the music. The guide on enharmonic notes explains this in more detail.
Why there is no black key between E and F, or B and C
The distance from one key to the very next key (white or black) is called a half step. Most neighboring white keys, like C and D, are a whole step apart, which is two half steps, so a black key fits in the middle. But E to F and B to C are already just one half step apart. There is no room for another note, so there is no black key.
This is not a quirk of piano design. It comes from the way the common major scale is built. A major scale follows the pattern whole, whole, half, whole, whole, whole, half. Starting on C, that pattern lands exactly on the white keys, with the two half steps falling at E to F and B to C. That is why C major uses no black keys at all.
Start a major scale on any other note and the same pattern needs some black keys. G major needs F sharp. F major needs B flat. The black keys let you copy the same sound pattern starting from any of the 12 notes.
Where the black keys came from
The short version: early keyboards had only the seven natural notes, and extra notes were added over time as music needed them. Historians commonly point to B flat as one of the first additions, and the others followed as composers wanted more keys to play in. The details vary by region and instrument, and early keyboards were not standardized the way modern pianos are.
The colors were not always the same either. Some historical keyboards, harpsichords in particular, used reversed colors, with dark natural keys and light raised keys. The modern look of white naturals and dark raised keys became the standard on pianos. Today the keys are usually plastic or similar materials rather than ivory and ebony.
Why not make all 12 keys the same size and color?
Two practical reasons. A keyboard with 12 equal keys per octave would be much wider, or the keys would be so narrow that fingers would constantly hit two at once. A standard octave on the white keys is typically around 16 to 17 centimeters, which most adult hands can stretch across. Children often cannot yet, and that is normal.
The raised, narrower black keys let the extra notes sit close to the white ones without making the keyboard huge. Their height and color also help you feel and see where you are, even without looking down.
How beginners can approach the black keys
You do not need to master all of them at once. A sensible path:
- Learn the white keys first, using C and F as anchors.
- Practice finding each black key by name, such as F sharp, by starting from the white key beside it.
- Play a few simple pieces that use one or two black keys before moving to harder ones.
- Pay attention to the sharps and flats printed in the music. They tell you which black key to use.
For fingering, many teachers suggest the longer fingers (2, 3 and 4) for black keys because they reach in comfortably, and the thumb often stays on white keys. This varies between teachers and methods, and what feels natural also depends on your hand size, so treat it as a guide rather than a rule.
If you want a low pressure way to practice, the free game Keyfall shows the letter name on every falling note, and Starter mode waits for you at the line and shows which key to press. That makes it easy to connect a note name to its spot on the keyboard. It is meant for practice and fun, and it does not replace a teacher.
The black keys look unfamiliar for a short while. After a few weeks of playing, most people stop noticing them as a separate thing and just see the keyboard as one pattern. If you want to go deeper, the guide on white keys vs black keys is a good next read.
More about music theory
FAQ
How many black keys are there on a piano?
A standard 88 key piano has 36 black keys and 52 white keys. In every octave there are 5 black keys and 7 white keys.
What are the black keys called?
They are named as sharps or flats: C sharp or D flat, D sharp or E flat, F sharp or G flat, G sharp or A flat, and A sharp or B flat. The same key has both names, and the key of the music decides which one is used.
Do I have to learn the black keys to play piano?
Yes, eventually, because many songs and scales use them. You can start with pieces that use only white keys and add black keys gradually.
Why do some pieces use a lot of black keys?
Music written in keys like D flat major or F sharp major uses several black keys because of the major scale pattern. Some players actually find those keys comfortable, since the black keys give the fingers a clear shape to follow.
Is there a piano without black keys?
Some toy keyboards and teaching tools show only white keys, but a standard piano always has both. Without the black keys you could not play in most keys or use many common chords.
Which finger should I use on black keys?
Many teachers suggest fingers 2, 3 and 4 because they are longer, but methods differ. Choose the fingering that feels smooth and comfortable for your hand, ideally with your teacher's advice.
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