What is the order of sharps and flats in a key signature?
The sharps always appear in the order F, C, G, D, A, E, B, and the flats appear in the exact reverse order: B, E, A, D, G, C, F. Once you know these two lists, you can read any key signature.
A key signature is the small group of sharps or flats written at the start of each line of music, right after the clef. It tells you which notes are sharp or flat all the way through the piece, so the composer does not have to write a sharp or flat sign next to every single note.
The sharps or flats always come in the same fixed order. That order is the same in every piece, which is why it is worth learning once.
The two orders to know
- Sharps: F, C, G, D, A, E, B
- Flats: B, E, A, D, G, C, F
The flats list is simply the sharps list read backwards. If you know one, you know the other.
A key signature with one sharp always has F sharp. With two sharps, it has F sharp and C sharp. With three, F sharp, C sharp and G sharp, and so on. You never skip ahead: the sharps are always added in order from the start of the list. Flats work the same way.
Easy ways to remember them
Most students use a sentence where each word starts with the right letter. These are common ones, and you can make up your own:
- Sharps: Father Charles Goes Down And Ends Battle
- Flats: Battle Ends And Down Goes Charles' Father
A sentence you invent yourself, ideally a silly one, will often stick better than someone else's.
Which key does each signature mean?
Here is the full list of major keys, with the sharps or flats each one uses:
| Major key | Sharps or flats |
|---|---|
| C | none |
| G | 1 sharp (F) |
| D | 2 sharps (F, C) |
| A | 3 sharps (F, C, G) |
| E | 4 sharps (F, C, G, D) |
| B | 5 sharps (F, C, G, D, A) |
| F sharp | 6 sharps (F, C, G, D, A, E) |
| C sharp | 7 sharps (all of them) |
| F | 1 flat (B) |
| B flat | 2 flats (B, E) |
| E flat | 3 flats (B, E, A) |
| A flat | 4 flats (B, E, A, D) |
| D flat | 5 flats (B, E, A, D, G) |
| G flat | 6 flats (B, E, A, D, G, C) |
| C flat | 7 flats (all of them) |
If you want to see how these keys are connected, the circle of fifths lays them out in a circle. Going one step in one direction adds a sharp, and going the other way adds a flat. That is exactly why the orders above look the way they do.
Two quick tricks for naming the key
You do not need to memorize the table. These shortcuts work for major keys:
- Sharp keys: find the last sharp in the signature, then go up one half step (the very next note, black or white). That note is the name of the key. If the last sharp is F sharp, the key is G. If the last sharp is C sharp, the key is D.
- Flat keys: look at the second to last flat. That note is the name of the key. With B flat and E flat, the second to last flat is B, so the key is B flat major.
The flat trick does not work for one flat, because there is no second to last flat. Just remember that a single B flat means F major.
These rules give you the major key. The same signature can also mean a minor key, called the relative minor, which starts three half steps lower. For example, one sharp can mean G major or E minor. To decide which one a piece is in, see how to tell a major or minor key from sheet music.
Where the symbols sit on the staff
The signs are written on the exact line or space of the note they change, and they follow a zigzag pattern that stays mostly within the staff. In the treble clef, the sharps are written on these positions, in order: F on the top line, C on the third space, G above the staff, D on the fourth line, A on the second space, E on the fourth space and B on the middle line.
In the treble clef, the flats start on the middle line (B), then go to the top space (E), the second space (A), the fourth line (D), the second line (G), the third space (C) and the first space (F).
In the bass clef, the order of letters is the same, but the symbols sit on different lines and spaces, so the picture looks a little different. Some older printed music places a sharp or flat slightly differently, so do not worry if a book looks unlike the one you learned from. Read the order of the signs, and check which letters they land on.
What it means at the piano
A sharp in the key signature applies to that note in every octave, not only the one where it is written. So if F sharp is in the signature, every F you meet, high or low, is the black key just to the right of F, unless the music says otherwise with a natural sign. If you are not sure why some notes are black keys, white keys vs black keys explains the layout.
A good way to practice is to take one key at a time. Look at the signature, name the sharps or flats out loud, find them on the keyboard, and then play a short, easy tune slowly. In Keyfall, every falling note shows its letter name, so you can connect the letter you read on the page with the key you press while you play a song.
A simple practice routine
- Say the sharps order out loud, then the flats order, until it feels automatic.
- Pick a key signature from a piece you are learning and name its sharps or flats.
- Write the order from memory on a sheet of paper every few days for a week or two.
- Learn the keys one by one, starting with the ones with the fewest sharps or flats, such as G major and F major.
Most people find the pattern clicks after a few days of short practice. You do not need to learn all 15 keys at once.
More about reading music
FAQ
Why do sharps and flats always appear in the same order?
The order follows the circle of fifths: each new sharp is a fifth above the last one, and each new flat is a fifth below. Using one fixed order makes key signatures easy to read and write in the same way everywhere.
How many sharps or flats can a key signature have?
Anywhere from none to seven. With seven sharps (C sharp major) or seven flats (C flat major), every note letter is altered.
Does a key signature apply to every octave?
Yes. If F sharp is in the key signature, every F on the piano is played as F sharp, in every octave, until the music says otherwise.
Is there a shortcut for finding a minor key from the signature?
Find the major key first, then go down three half steps (a minor third) to get its relative minor. For example, a signature with no sharps or flats is C major or A minor.
What if a note has a natural sign even though the key signature has a sharp or flat?
The natural sign cancels the sharp or flat for that note, usually until the end of that measure. After the barline, the key signature applies again.
Do I need to learn all 15 major keys right away?
No. Start with the keys with the fewest sharps and flats, such as C, G and F, and add more over time as your pieces call for them.
Practise it on your own piano. Keyfall is a free piano game: notes fall toward the keys and you play them on a digital piano, keyboard, phone or computer.
Play free