How to read key signatures on piano
To read a key signature, look at the sharps or flats printed just after the clef, count them, and play those notes sharp or flat in every octave for the rest of the piece. Sharps always appear in the order F C G D A E B and flats in the order B E A D G C F, so the count alone tells you which notes they are and which key you are in: two sharps are always F♯ and C♯, the key of D major or B minor.
Last updated 19 November 2026. Definitions from Wikipedia's Key signature article, read on that date. We make PianGo, a free practice app, and say below what it does with key signatures.
The short answer
Count, name, then keep them in your hands. Count the sharps or flats at the start of the line. Name the key with one of two rules: with sharps, the major key is a semitone above the last sharp; with flats, it is the second-to-last flat (one flat alone is F major). Then, before you play, find those black keys on the piano. Wikipedia's definition is that each sharp or flat in the signature "applies to comparable notes in all octaves", through the rest of the piece or until a new key signature appears.
What a key signature is
A key signature is a group of sharps or flats placed on the staff at the start of every line of music, right after the clef. A sharp (♯) on a line or space means every note on that letter is played a semitone higher, which on the piano is the very next key to the right. A flat (♭) means a semitone lower, the next key to the left.
It exists to save ink. Every major scale follows the same pattern of whole and half steps, and only C major fits the white keys alone. Start the pattern on D and you need F♯ and C♯, Wikipedia's own example, so the composer prints them once per line instead of beside every F and C.
On a grand staff, both staves carry the same signature, drawn in each clef's own positions. The F♯ in the treble clef sits on the top line; in the bass clef it sits on the fourth line. They mean the same thing: every F, in either hand, is F♯. If you are still placing notes on the staves, start with how to read piano sheet music.
How to read a key signature, step by step
- Look right after the clef. The signature is the cluster of ♯ or ♭ signs before the time signature. No signs at all means C major or A minor. A standard key signature uses sharps or flats, never both.
- Count them. Because the order never changes, the number tells you which notes they are. Three sharps are always F♯, C♯ and G♯. Three flats are always B♭, E♭ and A♭.
- Name the major key. For sharps, go up a semitone from the last sharp: the last of three sharps is G♯, a semitone up is A, so A major. For flats, read the second-to-last flat: with B♭ E♭ A♭ it is E♭, so E♭ major. One flat is the exception to learn by heart: F major.
- Decide major or minor. Every signature serves two keys, a major key and its relative minor, which is three semitones lower. Look at the last bass note of the piece and the first chord: in A minor they usually land on A. A minor piece also tends to raise its seventh note with an accidental, so G♯ appearing often in a piece with no signature points to A minor rather than C major.
- Find the black keys before you play. Put your hand over the keys the signature changes and say them aloud: "F sharp, C sharp." Then scan the first line for every F and C.
- Re-check at every new line and every double bar. The signature is reprinted on each line as a reminder. When it changes, the new one usually follows a double bar line, and the old sharps or flats may be cancelled with naturals first.
Every key signature in one table
There are fifteen standard key signatures: none, one to seven sharps, and one to seven flats. Each new sharp or flat is added in the fixed order.
| Signature | Notes it changes | Major key | Relative minor |
|---|---|---|---|
| None | None | C major | A minor |
| 1 sharp | F♯ | G major | E minor |
| 2 sharps | F♯ C♯ | D major | B minor |
| 3 sharps | F♯ C♯ G♯ | A major | F♯ minor |
| 4 sharps | F♯ C♯ G♯ D♯ | E major | C♯ minor |
| 5 sharps | F♯ C♯ G♯ D♯ A♯ | B major | G♯ minor |
| 6 sharps | F♯ C♯ G♯ D♯ A♯ E♯ | F♯ major | D♯ minor |
| 7 sharps | F♯ C♯ G♯ D♯ A♯ E♯ B♯ | C♯ major | A♯ minor |
| 1 flat | B♭ | F major | D minor |
| 2 flats | B♭ E♭ | B♭ major | G minor |
| 3 flats | B♭ E♭ A♭ | E♭ major | C minor |
| 4 flats | B♭ E♭ A♭ D♭ | A♭ major | F minor |
| 5 flats | B♭ E♭ A♭ D♭ G♭ | D♭ major | B♭ minor |
| 6 flats | B♭ E♭ A♭ D♭ G♭ C♭ | G♭ major | E♭ minor |
| 7 flats | B♭ E♭ A♭ D♭ G♭ C♭ F♭ | C♭ major | A♭ minor |
Three pairs at the extremes sound the same on a piano: B major and C♭ major, F♯ major and G♭ major, C♯ major and D♭ major. Wikipedia notes that seven sharps or seven flats are usually written as the simpler equivalent, so C♯ major is usually written as D♭ major (five flats). In practice you will meet up to five or six sharps or flats, and beginner pieces rarely go past three.
Memory aids for the order
- Sharps, F C G D A E B: "Father Charles Goes Down And Ends Battle."
- Flats, B E A D G C F: the same sentence backwards, "Battle Ends And Down Goes Charles' Father." The first four flats also spell the word BEAD.
- The circle of fifths: each step clockwise from C adds a sharp and moves the key up a fifth (C, G, D, A…); each step anticlockwise adds a flat and moves down a fifth (C, F, B♭, E♭…). Wikipedia's article explains the order of the signature this way.
The white keys that are sharps and flats
This is the part piano students trip on. Once a signature has six or more sharps or flats, some of its "sharp" and "flat" notes are white keys:
- E♯ is the white key F (six or seven sharps).
- B♯ is the white key C (seven sharps).
- C♭ is the white key B (six or seven flats).
- F♭ is the white key E (seven flats).
There is no black key between E and F or between B and C, so a semitone up from E lands on F. In F♯ major, the note written on the E line or space is played on the F key. It is written as E♯ rather than F because a major scale uses each letter once: F♯ G♯ A♯ B C♯ D♯ E♯.
Key signatures and accidentals
A sharp, flat or natural printed beside a single note is an accidental, and it overrides the key signature for that letter until the end of the bar. A natural sign (♮) on an F in a G major piece means play F, the white key, for the rest of that bar only. At the bar line the key signature takes over again, and the next F is F♯.
Two details are easy to miss:
- An accidental covers only its own octave and staff, by the usual convention. A natural on the F at the top of the treble staff does not cancel the F♯ an octave lower, which is why editors often add a reminder.
- A courtesy accidental in brackets, after a bar that had an accidental, changes nothing. It is reminding you that the bar line has restored the key signature.
Our guide to practising sight-reading builds the habit of spotting these before you play.
Common key-signature mistakes on piano
| Mistake | What happens | Fix |
|---|---|---|
| Applying the sharp in one octave only | The high F is F♯ but the low F comes out natural | The signature covers every octave and both hands. Mark the first low and high example in pencil. |
| Forgetting the left hand | The right hand plays B♭, the left plays B | Check the bass staff's signature too. It changes the same letters. |
| Carrying an accidental past the bar line | A natural from bar 4 is still being played in bar 5 | Accidentals end at the bar line. Say the key aloud at each new bar. |
| Missing a key change | A whole section is played in the old key | Scan for double bar lines and new signatures on your first read-through. |
| Learning the notes before the signature | Wrong notes get memorised and are hard to unlearn | Name the key and find its black keys before the first note, every time. |
A 10-minute routine to learn the keys
- Two minutes, say the orders. Recite F C G D A E B and B E A D G C F until both are automatic.
- Three minutes, flash cards. Write each signature on a card, sharps and flats separately. Turn one over, name the major key with the two rules, then the relative minor.
- Three minutes, scales. Play the major scale of one key a day, hands separately, saying each sharp or flat as you play it. Start with G, D and F majors, the three you will see most often in early pieces. The piano fingering guide covers the usual scale fingerings.
- Two minutes, real music. Open a piece in that key, name the signature, and play the first four bars slowly, checking every note on its letter.
When a piece in a new key turns up, see our guide to practising difficult passages.
How PianGo handles key signatures
We make PianGo, so here is what it does, from its code:
- It reads the key signature from MusicXML files, including key changes partway through a piece, and uses it to decide how each black key is named. In a flat key the note between A and B is shown as B♭; in a sharp key, or a piece with no signature, it is A♯.
- It marks every black-key note on its scrolling staff. PianGo's staff does not draw a key signature at the start of the line. Instead each black-key note gets its own ♯ or ♭, so you never have to remember the signature while you play. That makes it easier to hit the right keys but does not train the habit of reading a signature; practise that from the printed score.
- It spells black keys only. PianGo draws white keys under their own letter, so in F♯ major an E♯ appears as F, the key you actually press. MIDI files do not carry spelling, so PianGo names their black keys as sharps.
- Its transpose buttons move by a semitone and, for a MusicXML file, show the new key signature as a count of sharps or flats, so you can try a piece in an easier key with fewer black keys, then move it back.
PianGo is free, runs in a browser and needs no account. It opens MusicXML and MIDI files and listens through the microphone or a MIDI keyboard; see free MusicXML files for piano for pieces to try.
Common questions
How do you read a key signature quickly?
Count the sharps or flats after the clef. With sharps, the major key is a semitone above the last sharp. With flats, it is the second-to-last flat, and one flat is F major. Then find those black keys on the piano before you play.
What is the order of sharps and flats?
Sharps are always added in the order F C G D A E B. Flats are the reverse, B E A D G C F. "Father Charles Goes Down And Ends Battle" covers the sharps; read it backwards for the flats.
Does a key signature apply to every octave?
Yes. A sharp or flat in the key signature applies to that letter in every octave and in both hands, for the whole piece or until a new key signature appears.
How do you tell if a piece is major or minor from the key signature?
You can't from the signature alone, because each one serves a major key and its relative minor. Look at the last bass note and the first chord, and at accidentals: a frequently raised seventh, such as G♯ with no signature, points to the minor key.
What does a natural sign do in a key signature?
Naturals at a key change cancel the old signature's sharps or flats before the new signature. A natural beside a single note cancels the signature for that note until the end of the bar.
Which key signatures should a beginner learn first?
C major, then G, D and F majors, and their relative minors A, E, B and D. Most beginner pieces stay within one or two sharps or flats.
Practise a piece in its key
Open a MusicXML file in PianGo and every black key is marked as you reach it, spelt for the piece's key. Free, in the browser, with no account.