Sharps, flats and half steps
Every black key has two names, and once you see why, the keyboard reads like a ruler marked in half steps. Learn how sharps, flats and naturals work on the keys and on the staff, then find them in the exercise below.
Half steps and whole steps
Play any key, then the very next key to its right, black or white, with nothing in between. That distance is a half step, also called a semitone, and it is the smallest step on the piano. Most half steps go from a white key to a black key or back: from C to the black key just above it, then from that black key to D. In two places in every octave, though, two white keys touch with no black key between them, so the half step goes from white to white: E to F and B to C.
Two half steps make a whole step, or tone. C to D is a whole step, with the black key between them as the halfway point. E to F is only a half step, so a whole step up from E lands on the black key just right of F.
Sharp, flat and natural
A sharp (♯) raises a note by a half step: C♯ is the key just right of C, F♯ the key just right of F. A flat (♭) lowers a note by a half step: B♭ is the key just left of B, E♭ the key just left of E. In plain text the signs are often typed as a hash and a small b, as in C# and Bb.
The natural sign (♮) cancels a sharp or a flat and takes the note back to its plain letter name, a white key. You meet it when a sharp or flat would otherwise still apply, as the staff section below shows.
One black key, two names
Look at the black key between C and D. Counted up from C, it is C♯. Counted down from D, it is D♭. Both names are right, because it is one key with one sound, and the same goes for all five black keys of the octave:
- C♯ or D♭, between C and D
- D♯ or E♭, between D and E
- F♯ or G♭, between F and G
- G♯ or A♭, between G and A
- A♯ or B♭, between A and B
Two names for the same key are called enharmonic equivalents. On the piano they are the same key and the same sound. On paper, the name depends on the key of the piece, which is why one song writes F♯ and another G♭ for the very same black key.
The gaps in the black keys lead to a curiosity. Since E to F is already a half step, E♯ is played on the F key, and since B to C is one too, C♭ is played on the B key. These spellings are rare and only turn up in keys with many sharps or flats, so you can leave them for later.
Sharps and flats on the staff
On the staff the sign comes just before the note, on the same line or space as the note head, so you read it first. Written inside the music like this, sharps, flats and naturals are called accidentals.
An accidental lasts until the end of the bar. Every later note on the same line or space in that bar keeps it, even without a sign of its own. The next bar line cancels it, and a natural sign cancels it sooner.
You can watch a natural at work in the first full bar of Für Elise: E, D♯, E, B, then D with a natural sign, because without it the D♯ from earlier in the bar would still apply.
Sharps and flats can also be set once for a whole piece, as a key signature: a group of signs right after the clef, at the start of every line. Key signatures come back in the lesson on the major scale.
Practise: find the sharp or flat
The exercise below asks for black keys by one name or the other, in any octave, with Labels set to Off. Read the letter first, find that white key, then take one step: to the right for a sharp, to the left for a flat. For E♭, think “just left of E”, not “just right of D”. Reading each name the way it is written is the habit that makes sheet music easier later.
Each note you play appears on the staff, written as a sharp, so E♭ shows up as D♯: the same key under its other name. If you set Labels to C D E, the black keys show their sharp names only, so trust the step rather than the label. Move on when you can find all ten without a miss.
Find the sharp or flat
The names are hidden. Find each black key the page asks for, by its sharp or its flat name, in any octave: start from the white key in the name and move one half step, right for a sharp, left for a flat.
Practise it: Note reading game, level 4 →
Frequently asked
Is C sharp the same as D flat?
On the piano, yes: C♯ and D♭ are the same black key and sound exactly the same. Notes like these are called enharmonic equivalents. The name you see depends on the key of the piece: music in A major writes C♯, music in A♭ major writes D♭.
Is there such a thing as E sharp or B sharp?
Yes, though you will not meet them often. E to F and B to C are already half steps, so E♯ is played on the F key and B♯ on the C key. In the same way, F♭ is played on E and C♭ on B. They appear in keys with many sharps or flats.
How long does a sharp or flat last?
A sharp, flat or natural written in the music lasts until the end of the bar, for every note on the same line or space. The next bar line cancels it. Sharps and flats in the key signature, at the start of each line, last for the whole piece unless the key signature changes.
What is the difference between a half step and a whole step?
A half step is the distance from one key to the very next one, black or white, like E to F or C to C♯. A whole step is two half steps, like C to D or E to F♯. Scales, chords and intervals are all measured in these two steps.
Why do black keys have two names?
Each black key sits between two white keys, so it can be named from either one: a half step up from the key on its left, with a sharp, or a half step down from the key on its right, with a flat. Both names are correct; the music decides which one is written.
All the lessons
-
Piano keys and note names
Seven letter names, the pattern of the black keys, and how to find any note in a second.
8 min
-
Middle C and hand position
Where middle C sits on any keyboard, finger numbers, and the five-finger C position.
8 min
-
Reading the treble clef
The lines and spaces of the right-hand staff, three landmark notes, and a reading drill.
10 min
-
Reading the bass clef
The left-hand staff: the F clef, its lines and spaces, and where it meets the treble.
10 min
-
Sharps and flats
Why every black key has two names, what a half step is, and the two spots with no black key.
9 min
-
Note values and rhythm
Whole, half, quarter and eighth notes, rests, dots and time signatures - and counting out loud.
10 min
-
Intervals
The distance between two notes: from the half step to the octave, and thirds and fifths by ear.
10 min
-
The major scale
Whole, whole, half, whole, whole, whole, half: the pattern behind every major key, with fingering.
10 min
-
Chords and triads
Three notes a third apart: major and minor triads, and the chords behind thousands of songs.
10 min
-
Your first song
Put it all together with Ode to Joy: hand position, reading, rhythm, then the full sheet music.
12 min
-
Playing with both hands
The grand staff, a left hand of long notes, and the hands-separate method that makes it easy.
12 min
-
Minor scales
Natural, harmonic and melodic minor, relative keys, and the fingering of A minor.
11 min
-
Using the sustain pedal
What the three pedals do, changing the pedal after each chord, and reading pedal marks.
10 min
Every sharp and flat, on a full keyboard
The GOONS piano studio has up to 88 keys, real piano samples, MIDI keyboard support and songs with sheet music that light up the keys for you. It comes with the GOONS Studio subscription - start with the 7-day free trial, no card required.
Already subscribed? Launch the piano studio →