Skip to content
Lesson 5 of 13 · 9 min · The black keys

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.

A risograph poster of a giant pink sharp sign and cyan flat sign above a black key between two white keys

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.

One octave from C to C with arcs above the keys: half steps (H) from C to C sharp, from E to F and from B to C, whole steps (W) from D to E and from F to G. E, F, B and C are purple.CDEFGABCHWHWH
H marks a half step and W a whole step: the purple pairs, E–F and B–C, are half steps with no black key between them.

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
One octave from C to C, each black key labelled with both of its names: C sharp or D flat, D sharp or E flat, F sharp or G flat, G sharp or A flat, A sharp or B flat.CDEFGABCC#DbD#EbF#GbG#AbA#Bb
Each black key with its two names, the sharp on top and the flat below, typed as # 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.

A treble staff in two bars. Bar 1: F sharp, then F with no sign, still F sharp, then F with a natural sign, plain F. Bar 2: B flat, then B with no sign, still B flat.F♯F♯FB♭B♭
Signs last to the bar line: the cyan notes have no sign of their own but are still F♯ and B♭, and the natural turns the third F back into F.

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.

Exercise

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.

Questions

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.

Learn piano course

All the lessons

  1. A risograph poster of ten piano keys with the C keys in cyan, arcs marking the groups of two and three black keys 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
  2. A risograph poster of a pink right hand in the five-finger position, the thumb on a cyan middle C Middle C and hand position Where middle C sits on any keyboard, finger numbers, and the five-finger C position. 8 min
  3. A risograph poster of a large pink treble clef on a sweeping cyan staff with yellow notes climbing the lines and spaces Reading the treble clef The lines and spaces of the right-hand staff, three landmark notes, and a reading drill. 10 min
  4. A risograph poster of a cyan bass clef on a five-line yellow staff with heavy pink notes resting low over ripples Reading the bass clef The left-hand staff: the F clef, its lines and spaces, and where it meets the treble. 10 min
  5. A risograph poster of a giant pink sharp sign and cyan flat sign above a black key between two white keys 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
  6. A risograph poster of a whole note, a half note, a quarter note and two eighth notes marching on legs under a yellow metronome Note values and rhythm Whole, half, quarter and eighth notes, rests, dots and time signatures - and counting out loud. 10 min
  7. A risograph poster of nested pink, cyan and yellow arcs leaping from one dot to dots further along a line Intervals The distance between two notes: from the half step to the octave, and thirds and fifths by ear. 10 min
  8. A risograph poster of eight rising steps with a yellow note bouncing up them, the two half steps marked in pink The major scale Whole, whole, half, whole, whole, whole, half: the pattern behind every major key, with fingering. 10 min
  9. A risograph poster of three overlapping pink, cyan and yellow circles above three stacked notes on a staff Chords and triads Three notes a third apart: major and minor triads, and the chords behind thousands of songs. 10 min
  10. A risograph poster of open sheet music on a piano with notes, stars and confetti bursting out in front of a yellow sun Your first song Put it all together with Ode to Joy: hand position, reading, rhythm, then the full sheet music. 12 min
  11. A risograph poster of a grand staff joined by a yellow brace, a pink right hand by the upper staff and a cyan left hand by the lower one Playing with both hands The grand staff, a left hand of long notes, and the hands-separate method that makes it easy. 12 min
  12. A risograph poster of eight steps descending under a yellow crescent moon, a cyan note drifting down them Minor scales Natural, harmonic and melodic minor, relative keys, and the fingering of A minor. 11 min
  13. A risograph poster of three yellow piano pedals, a pink shoe pressing the right one and ribbons of sound rising Using the sustain pedal What the three pedals do, changing the pedal after each chord, and reading pedal marks. 10 min
Ready when you are

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 →