Sharps and flats on piano

A sharp moves one key higher; a flat moves one key lower. Try both names on the keyboard.

Sharps, flats and neighboring keys

0 / 11

Play a short exercise on the keyboard below.

Start when you are ready. Each note waits for you.

Tap or click a key to play. The piano sound loads in a moment.

1 / 4
Beat settings

A steady beat to play along with. It runs independently of Listen, games and recordings; clicks are not recorded.

Start when you are ready to play. The beat stops when you leave this tab.

Note practice at your pace. Rhythm and hand technique are not graded. Progress saves in this browser.

Keyboard settings
Sound & key size

Preferences stay in this browser.

Updated

A sharp raises a note by one half step. A flat lowers it by one half step. On a piano, a half step is the move to the neighboring key, counting both black and white keys. Start on C and move to the first black key on its right: C sharp, written C#. Start on D and move to the black key on its left: D flat, written Db. You arrive at the same key from different directions.

Start the exercise above to try those movements. It asks for C#, later Db, then F# and Gb. Use Show the key when you need help. The exercise waits for each pitch and keeps your place when you pause. Its note names include octave numbers so you can distinguish the target from another key with the same name farther along the keyboard.

Count movements, not starting keys

Put a finger on C4. Moving to C#4 is one half step. Moving again to D4 is a second half step. C to D is therefore a whole step, even though there is only one black key between them. Do not count C as step one: the count describes the movement away from it.

Try the same idea from F4. F#4 is one half step higher and G4 is two half steps higher. A whole step always means two half steps. It is not a rule about moving from one white key to the next, because white-key spacing is not uniform.

The E–F and B–C gaps

E and F are neighboring white keys with no black key between them. They are already a half step apart. B and the next C are the other pair. The exercise includes both so you can hear and feel the difference between a half step and a whole step without relying on key color.

This also explains the less familiar names E# and Cb. E# moves one key right from E and lands on F. Cb moves one key left from C and lands on B. You will not need those spellings in this exercise, but remembering the direction prevents the mistaken rule that every sharp or flat must be black.

Learn the five black-key pairs

Across one octave, the black keys have these common pairs of names:

These are called enharmonic names on the piano. The keyboard's accessibility label may use a sharp where the exercise asks for a flat; the pitch is the same. In this lesson the prompt, correction and hint keep the spelling of the requested note, so an instruction to find Db stays an instruction to find Db.

Use the names in real musical patterns

The G major scale uses F# rather than Gb, because its letter names run G A B C D E F# G. The F major scale uses Bb: F G A Bb C D E F. Giving each scale degree its own letter makes the pattern readable on a staff.

Next, compare C major with C minor in the chord intervals lesson. You will move E down to Eb while C and G stay in place. That single half step changes the chord's quality. If finding the starting white key still takes time, repeat the white-key landmarks exercise before adding more black-key names.

The definitions of accidentals and enharmonic notes follow the open textbook Music Theory for the 21st-Century Classroom. The short keyboard exercise here is our own.

Find a sharp or flat on the piano

  1. Find the named white key first, using the groups of two and three black keys.
  2. For a sharp, move to the very next key on the right, whether it is black or white.
  3. For a flat, move to the very next key on the left.
  4. Compare C# and Db: one step above C and one step below D reach the same black key.

Frequently asked questions

Are sharps and flats always black keys?

No. E# is the same piano key as F, and B# is the same key as C. Fb is E, and Cb is B. A sharp or flat changes a written note by a half step; it does not specify a key color.

Are C# and Db the same note?

They are different written names for the same pitch on this piano. These are enharmonic names. The name used in a score depends on the key and the note's role in the music.

What does the number in Db4 mean?

It identifies the octave. Here, C4 is middle C, and Db4 is the black key immediately above it. The number changes when you reach the next C.