How do you find sharps and flats on the piano?
Sharps and flats are mostly the black keys. A sharp is the key just to the right of a note, a flat is the key just to the left, and the groups of two and three black keys show you where you are.
Every black key on the piano is a sharp and a flat at the same time. Once you can spot the groups of two and three black keys, you can find any sharp or flat in a few seconds. There are only a few white-key exceptions, and we will cover those too.
What sharps and flats mean
A sharp (written ♯ or #) raises a note by one half step. A flat (written ♭ or b) lowers a note by one half step. A half step is the smallest distance on the piano: from one key to the very next key, whatever its color.
So the rule is simple:
- Sharp: move one key to the right (higher in pitch).
- Flat: move one key to the left (lower in pitch).
F sharp is the key directly to the right of F. B flat is the key directly to the left of B. That is true even when the next key happens to be white, which we will get to below.
Use the black key groups as landmarks
The black keys come in alternating groups of two and three. These groups are your map, because the white keys around them are always the same.
- Find any group of two black keys.
- The white key just to the left of that group is C.
- Play white keys going up from there: C, D, E. The two black keys sit between C and D, and between D and E.
- Now find a group of three black keys. The white key just to the left of it is F.
- Going up from F: F, G, A, B. The three black keys sit between F and G, between G and A, and between A and B.
If you want a refresher on finding the white keys first, see how to find notes on the piano keyboard. Middle C is a handy anchor: C4 is the C nearest the center of a standard keyboard.
The five black keys and their names
Each black key has two names. Here they are, moving up from C.
| Black key | Sharp name | Flat name |
|---|---|---|
| 1st of the two | C# | Db |
| 2nd of the two | D# | Eb |
| 1st of the three | F# | Gb |
| 2nd of the three | G# | Ab |
| 3rd of the three | A# | Bb |
This pattern of five black keys repeats up and down the whole keyboard, one time for every octave.
Why one key has two names
C# and Db are the same key on the piano. Two names for the same pitch are called enharmonic names. The key sits one half step above C, so it is C sharp. It also sits one half step below D, so it is D flat. Both are correct descriptions of the same key.
On a piano you press the same key either way. The name only matters when you read or write music.
The white-key exceptions
Look at the keyboard and you will see that E and F have no black key between them, and neither do B and C. Those pairs are already one half step apart. That leads to a few names that surprise beginners:
- E# is the white key F.
- Fb is the white key E.
- B# is the white key C.
- Cb is the white key B.
You will not see these often, but they do appear, usually because of the key a piece is written in. If you remember that E to F and B to C are the two spots with no black key, they stop being confusing.
Which name will the music use?
The music decides. Look at the key signature, the sharps or flats written at the start of each line, right after the clef. If it has sharps, the black keys you play will be named as sharps. If it has flats, they will be named as flats. For example, G major has one sharp, F#, so you will see F# rather than Gb.
A few other things to know when reading:
- A sharp or flat written next to a single note (an accidental) usually applies for the rest of that measure, then it resets.
- A natural sign (♮) cancels a sharp or flat and sends you back to the plain white key.
- Sharps and flats appear on the line or space of the note they change. If you need a refresher on the staff itself, read what the musical staff is.
Names and spellings can vary a little between teachers and methods, especially for chords and unusual keys, but the rules above are standard in written music.
Ways to practice
Start without any music. Say a note name and find it: "F sharp," then "B flat," then "C sharp." Always begin from the nearest landmark, C at the left of the two-group or F at the left of the three-group, rather than counting black keys from the far end of the keyboard.
Then try the same game with a slow tune. Many pieces use a few sharps or flats, and a classical piece such as Moonlight Sonata is in C sharp minor, so black keys are everywhere. Playing real music is where the names start to feel natural.
If you like learning with a game, Keyfall at learnpianogame.com is free in the browser. Its Starter mode waits for you at the line and shows which key to press, so you can find a black key without guessing and without the song running away from you. It is for practice and fun, and it does not replace a teacher.
Short daily sessions work better than one long one. If you are an adult learner, how to practice piano as an adult has realistic ideas for fitting practice into a busy week.
More about reading music
FAQ
Are all black keys sharps or flats?
Yes. Every black key can be named as a sharp or as a flat, depending on the key signature of the music. For example, the black key between F and G is F# or Gb.
Is there a sharp or flat between E and F?
No. E and F are already one half step apart, so there is no black key between them. The same is true for B and C.
Are sharps and flats always black keys?
No. E# is the same key as F, and Fb is the same as E. B# is C, and Cb is B. These spellings are rare, but they show up in some keys.
Is C sharp the same as D flat on the piano?
Yes, they are the same key. Two names for one pitch are called enharmonic equivalents, and the music tells you which name to read.
How do I remember which way a sharp or flat goes?
Sharp goes up, to the right. Flat goes down, to the left. Some people think of the flat sign as a note sinking down and the sharp sign as pointing upward.
Do I need to learn all the sharps and flats before playing songs?
No. Learn the landmark groups and the five black key names, then pick up each key signature as you meet it in a song. Easy pieces often use only one or two black keys.
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