What are sharps and flats on the piano?
A sharp (♯) raises a note by one half step, and a flat (♭) lowers it by one half step. On the piano, most sharps and flats are the black keys.
If you look at a piano for the first time, the black keys can seem confusing. They sit in little groups, they have two names each, and sheet music is full of tiny ♯ and ♭ symbols. The idea behind all of it is simple, and once you see it, the keyboard makes a lot more sense.
The short answer
A sharp (♯) means "play the note one half step higher." A flat (♭) means "play the note one half step lower." So C♯ is a little higher than C, and B♭ is a little lower than B.
On the keyboard, higher means to the right and lower means to the left. A sharp is the key just to the right of the named note. A flat is the key just to the left.
First, what is a half step?
A half step is the distance from one key to the very next key, whether that key is black or white. Two half steps make a whole step.
This is the key to understanding the keyboard. Between C and D there is a black key, so C to D is a whole step (two half steps). But between E and F there is no black key, so E to F is only one half step. The same is true for B and C.
That is why the black keys have their odd pattern. Count every key in an octave, black and white, and you get 12 different notes: 7 white keys and 5 black keys.
Finding the black keys
The black keys come in groups of two and three. Those groups are your map. (There is a whole guide on this: black keys in groups of two and three.)
- The white key just to the left of any group of two black keys is C.
- The white key just to the left of any group of three black keys is F.
From there, each black key is named after its white neighbors:
| Black key | As a sharp | As a flat |
|---|---|---|
| 1st in the group of two | C♯ | D♭ |
| 2nd in the group of two | D♯ | E♭ |
| 1st in the group of three | F♯ | G♭ |
| 2nd in the group of three | G♯ | A♭ |
| 3rd in the group of three | A♯ | B♭ |
Notice that every black key has two names. They are the same key and the same sound.
Why does one key have two names?
The key between C and D is higher than C, so it can be called C♯. It is also lower than D, so it can be called D♭. Two names for the same pitch are called enharmonic notes.
Which name a composer uses depends on the key the music is in and how the notes are written on the staff. In the key of D major, for example, you will see F♯ and C♯. In the key of F major, you will see B♭. You do not need to memorize these rules now. For a beginner, it is enough to know that C♯ and D♭ are the same key.
The white keys can have sharps and flats too, but you will rarely meet them. E♯ is the same key as F, and C♭ is the same key as B.
How they look in sheet music
A sharp or flat sign is written before the note, on the same line or space. You read it left to right: first the sign, then the note it changes.
You will see them in two places:
- Key signature: Sharps or flats at the start of each line of music. They tell you that certain notes are sharp or flat all the way through, unless something changes it.
- Accidentals: A sign written right next to one note in the middle of the music. It usually applies to that note for the rest of the measure (the section between two bar lines), then it wears off.
A natural sign (♮) cancels a sharp or flat and brings you back to the plain white key.
If you are still getting comfortable with reading music, the guide to treble clef vs bass clef is a good companion to this one.
A five minute practice routine
- Find the group of two black keys near the middle of the keyboard. Put a finger on the white key just to its left. That is C (the one near the center is middle C).
- Play C, then the black key right next to it, then D. You just played C, C♯, D: two half steps in a row.
- Say the name out loud each time. Say "C sharp" when you go up, and then play the same key again and say "D flat."
- Starting on C, play every key going up, black and white, until you reach the next C. That is 12 half steps (13 keys, counting both Cs). You will notice the two places where there is no black key between white keys (E to F and B to C).
- Compare it with the plain white key pattern in the C major scale, which uses no black keys at all.
Slow, relaxed playing is better than fast. Your ears will start to recognize how a sharp or flat sounds a little "away" from the white key next to it.
Using a game to get used to them
Once you can find the black keys, songs are a pleasant way to get comfortable with them. In Keyfall, the free game on this site, you can turn on Starter mode, which waits for you at the line and shows which key to press, so you can find a black key without rushing. You can also lower the speed in settings. It is a practice tool and a bit of fun, not a replacement for a teacher.
Fingering for black keys varies between teachers and methods. Many teachers use the longer fingers on black keys, but follow whatever your teacher suggests.
More about first steps
FAQ
Are sharps and flats always black keys?
Most of the time, yes, but not always. Notes like E♯ and C♭ are white keys (F and B), though you will rarely see them in beginner music.
Is C sharp the same as D flat?
On the piano, yes. They are the same black key and sound identical. The name used depends on the key of the music.
Do I need to learn all the sharps and flats before playing songs?
No. Learn the white keys first, then add black keys one at a time as songs call for them. Many beginners start with songs that use only a few.
What does the natural sign mean?
A natural sign (♮) cancels a sharp or flat and tells you to play the plain white key. It often appears in the middle of a measure to undo an earlier sharp or flat.
Why do some keys have no black key between them?
E and F, and B and C, are only one half step apart, so there is no room for a key between them. All other neighboring white keys are a whole step apart, with a black key in between.
How can I remember which black key is which?
Use the groups: C♯ and D♭ are the first black key in the group of two, and F♯ and G♭ are the first in the group of three. Always start from C or F and count to the right.
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