Key signatures
All 15 major and 15 minor key signatures on the staff, and how to read them.

The short answer
There are 15 major and 15 minor key signatures, from seven flats to seven sharps. Each signature belongs to one major key and its relative minor, so there are only 15 patterns to learn.
getplaypiano.com/key-signatures/
Sharp keys
Six sharps
F sharp, C sharp, G sharp, D sharp, A sharp and E sharp
Major F sharp major
Minor D sharp minor (written here as E flat minor)
Seven sharps
F sharp, C sharp, G sharp, D sharp, A sharp, E sharp and B sharp
Major C sharp major
Minor A sharp minor (written here as B flat minor)
Flat keys
Seven flats
B flat, E flat, A flat, D flat, G flat, C flat and F flat
Major C flat major (written here as B major)
Minor A flat minor (written here as G sharp minor)
The order of sharps and flats
Sharps and flats always join a key signature in the same order, and they always sit on the same lines and spaces. The sharps go F, C, G, D, A, E and B. A saying that helps: Father Charles Goes Down And Ends Battle. The flats go B, E, A, D, G, C and F, which is the sharps backwards: Battle Ends And Down Goes Charles's Father.
A key with three sharps has the first three, F, C and G. A key with four flats has the first four, B, E, A and D.
How to tell the key from a key signature
- Count the sharps or flats. None means C major or A minor.
- With sharps, find the last one and go up a semitone. That note is the major key. With three sharps the last is G sharp, a semitone up is A, so it is A major.
- With flats, the second to last flat is the major key. With four flats the second to last is A flat, so it is A flat major. One flat is the exception: it is F major.
- The same signature also belongs to the relative minor, three semitones below the major key. Look at the first and last chords of the piece: if they are built on the major key note it is major, and if they are built on the minor key note it is minor.
Relative minor keys
Every major key has a relative minor that uses the same seven notes and the same key signature. Find it on the sixth note of the major scale, which is three semitones below the major key. C major and A minor share no sharps or flats. G major and E minor share one sharp. E flat major and C minor share three flats. A relative minor and its major are different keys even so, because each one treats a different note as home.
Keys with two names
Some keys can be written two ways. B major with five sharps is the same set of keys as C flat major with seven flats. F sharp major and G flat major both have six. D flat major with five flats matches C sharp major with seven sharps. The minor keys do the same: G sharp minor and A flat minor, E flat minor and D sharp minor, B flat minor and A sharp minor. They sound the same and are written differently, and printed music picks the one with fewer sharps or flats. Both spellings of the major keys have their own scale page: C sharp major and D flat major, F sharp major and G flat major.
Keep going
Questions
How many key signatures are there?
There are 15 key signatures: none, one to seven sharps and one to seven flats. Each one is shared by a major key and its relative minor, which makes 15 major keys and 15 minor keys.
What is the order of sharps in a key signature?
The sharps are always added in this order: F, C, G, D, A, E and B. A key with three sharps has F sharp, C sharp and G sharp.
What is the order of flats in a key signature?
The flats are always added in this order: B, E, A, D, G, C and F. It is the order of sharps backwards. A key with three flats has B flat, E flat and A flat.
How do you find the key from a key signature?
With sharps, the last sharp is the seventh note of the major key, so go up one semitone from it. Two sharps, F sharp and C sharp, end on C sharp, and a semitone above is D, so the major key is D major. With flats, the second to last flat names the major key. Four flats, B, E, A and D, give A flat major. One flat is always F major, and no sharps or flats is C major. Then check whether the music feels like the major key or its relative minor.
How do you find the relative minor of a major key?
Count up to the sixth note of the major scale, or go down three semitones from the major key. For example, A major has the relative minor F sharp minor, and E flat major has C minor. They share a key signature.
Practise scales and keys in PlayPiano, a piano practice app for iPhone and iPad.
Play it in the app