MelupiaPiano sight-reading lessons

Sharps, Flats and Key Signatures for Piano

Updated:

Short answer

A sharp (♯) raises a note by a half step, to the very next key on the right; a flat (♭) lowers it by a half step, to the next key on the left; a natural (♮) cancels either. A sign written next to a note lasts until the end of that bar. A key signature, the group of sharps or flats right after the clef, applies to every note with that name for the whole piece. Sharps always appear in the order F C G D A E B, flats in the order B E A D G C F.

The first time a beginner sees a row of sharps after the clef, it looks like a code. It is a simple one. There are only three signs to learn, three rules for how long they last, and a fixed order that never changes. Once you know them you can read any key signature in a second or two, and you will stop playing the wrong F halfway through a piece.

What do sharp, flat and natural signs do?

  • Sharp (♯): play the next key up, a half step higher. F♯ is the black key just right of F.
  • Flat (♭): play the next key down, a half step lower. B♭ is the black key just left of B.
  • Natural (♮): cancel a sharp or flat and play the plain white key again.

The sign is written before the note, on exactly the same line or space as the note head, though you say it after the letter: "F sharp". A sharp or flat is usually a black key, but not always: E♯ is played on F and C♭ on B, because there is no black key between them. If half steps are new to you, the piano keys and note names lesson explains them with the keyboard.

𝄞♯♭♯♮F4F♯4B4B♭4F♯4F♮4
F and F sharp, B and B flat, then F sharp cancelled by a natural
C4D4E4F4G4A4B4
F♯ is the black key right of F; B♭ is the black key left of B

Every black key has two names. The key between C and D is both C♯ and D♭; these are enharmonic spellings of the same sound. Which name the music uses depends on the key, as you will see below.

How long does a sharp or flat last?

A sign written next to a note in the music is called an accidental. Three rules cover it:

  1. It lasts to the end of the bar. Every later note on the same line or space in that bar is affected too, even if the sign is not repeated.
  2. The bar line cancels it. In the next bar the note goes back to normal, unless a new sign appears.
  3. A tie carries it across. If the altered note is tied over the bar line, the tied note stays altered; the next untied note does not.
𝄞44♯
The third note is still F sharp, because the sharp lasts to the bar line; the first note of bar 2 is a plain F

Look at the drawing. The sharp is written only once, but the third note of bar 1 is still F♯. After the bar line the sharp is gone, so bar 2 starts on a plain F. Editors often print a small courtesy accidental in the next bar as a reminder; it changes nothing, it just saves you a mistake.

The most common slip is playing the sign only on the note where it is printed. Once you have seen a sharp, keep it in mind until the bar line.

What is a key signature?

Many pieces use the same sharps or flats all the way through. Instead of printing them on every note, the music puts them once at the start of each line, between the clef and the time signature. That group is the key signature, and it differs from an accidental in two ways:

  • It covers every octave. An F♯ in the key signature, written on the top line, makes every F on the page F♯, high or low, in both staves.
  • It lasts for the whole piece, or until a new key signature appears. Bar lines do not cancel it; only a natural sign does, and only until the next bar line.
𝄞♯
One sharp in the key signature: the seventh note, written as F, is played as F sharp

These eight notes look like a white-key scale, but the key signature turns the F into F♯: this is the G major scale. Playing a plain F here is the classic key-signature mistake. Scales and their key signatures go hand in hand; the piano scales lesson shows how each one is built.

The order of sharps and flats

Sharps and flats in a key signature never appear in random order. Sharps are always added in this order, and each key signature takes them from the start of the list:

F C G D A E B (a common memory sentence: Father Charles Goes Down And Ends Battle)

Flats use the same letters backwards:

B E A D G C F (Battle Ends And Down Goes Charles' Father)

So a key with three sharps always has F♯, C♯ and G♯, and a key with two flats always has B♭ and E♭. Each sign also sits at a fixed height on the staff, in a zigzag that keeps it inside or close to the staff:

𝄞♯♯♯♯♯♯♯
All seven sharps in the treble clef, in order: F C G D A E B
𝄞♭♭♭♭♭♭♭
All seven flats in the treble clef, in order: B E A D G C F
𝄢♯♯♯
Three sharps in the bass clef: F, C and G, each one line or one space lower than in the treble clef

To read a key signature you only need to count the signs and know the order. Two sharps? F♯ and C♯. Four flats? B♭, E♭, A♭, D♭.

How to name the key from the key signature

Two quick rules give you the major key:

  • Sharps: take the last sharp and go one half step up. Last sharp C♯, a half step up is D: two sharps is D major.
  • Flats: the second-to-last flat is the key. Flats B♭ E♭ A♭: the second-to-last is E♭, so E♭ major. One flat is the exception to learn by heart: F major.

No sharps or flats means C major (or A minor). Every key signature also belongs to a minor key three half steps below its major key, called its relative minor.

Key signatureMajor keyRelative minor
noneC majorA minor
1 sharp: F♯G majorE minor
2 sharps: F♯ C♯D majorB minor
3 sharps: F♯ C♯ G♯A majorF♯ minor
1 flat: B♭F majorD minor
2 flats: B♭ E♭B♭ majorG minor
3 flats: B♭ E♭ A♭E♭ majorC minor

Beginner pieces rarely go beyond three sharps or flats, so this table covers most of what you will play in your first year.

A simple routine before you play

  1. Look at the key signature and say the altered notes out loud: "F sharp and C sharp".
  2. Find those keys on the piano and play them once, so your hand knows where they are.
  3. Scan the piece for accidentals and naturals, and notice where each bar line will cancel them.
  4. Play slowly. Whenever you meet a note named in the key signature, say its full name in your head.

Melupia has key-signature and sharp-and-flat drills, so you can practise reading altered notes on the staff and playing their keys until it is automatic.

Exercise: sharps, flats and key signatures

1. Name the key. How many sharps or flats, which ones, and which major key?

𝄞♯♯♯
Exercise 1a
𝄞♭♭
Exercise 1b

2. Name every note. Watch the key signature, the natural and the bar line.

𝄞♯34♮
Exercise 2

Answers. 1a: three sharps, F♯ C♯ G♯; the last sharp is G♯, a half step up is A, so A major (or F♯ minor). 1b: two flats, B♭ and E♭; the second-to-last flat is B♭, so B♭ major (or G minor). 2: F♯ (from the key signature), G, F natural, then F♯ again (the bar line cancels the natural), E, D.

Common mistakes with sharps and flats

  • Forgetting the key signature after a few bars. It is easy to remember at the start and forget by line two. Say the altered notes again at the start of every line.
  • Dropping an accidental too early. It lasts to the bar line, not just for one note.
  • Keeping an accidental too long. The bar line cancels it; only the key signature carries on.
  • Thinking sharp means black key. E♯ and B♯ are white keys (F and C); so are F♭ and C♭ (E and B).
  • Reading the sign on the wrong note. The sign belongs to the note to its right, on its own line or space, not to the note before it.

Questions

Does a sharp in one octave also affect the same note in another octave?

Strictly, an accidental affects only the line or space it is written on, so F♯ on the top line does not change the F in the bottom space. Careful editors add a courtesy sign to the other octave anyway, because players often apply it by habit. A key signature, in contrast, covers every octave.

What is a double sharp?

A double sharp (written like a small x) raises a note by two half steps, a whole step; a double flat (♭♭) lowers it by a whole step. F double sharp is played on the G key. They appear in keys with many sharps or flats and are rare in beginner music.

How do I know if a piece is in a major or a minor key?

Each key signature belongs to one major key and one minor key, three half steps lower. Look at the last note and the last chord: a piece with one sharp that ends on G is usually in G major, one that ends on E is usually in E minor. Minor pieces also often show a raised seventh note, such as D♯ in E minor.

Why is the key signature repeated on every line?

So you never have to look back. The clef and the key signature are printed at the start of every line of music, while the time signature is printed only once, at the beginning or where it changes.