Key Signatures Explained: How to Name Any Key
At the start of most lines of music, just after the clef, there is a small group of sharps or flats. This is the key signature. It tells you which notes are sharpened or flattened throughout the piece, and it tells you, or nearly tells you, which key the music is in. Reading key signatures quickly saves you from tripping over the same accidental again and again, and it is one of the first things a good sight-reader checks.
What a key signature does
Each major key, and the natural form of each minor key, uses a particular set of seven notes. G major, for example, uses G, A, B, C, D, E and F♯. Rather than writing a sharp in front of every F in the piece, the composer writes one sharp on the F line at the start of each stave. That sharp then applies to every F, in every octave, until the key signature changes or an accidental cancels it for one bar.
So a key signature is a summary of the scale the music is built on. If you know your major scales, you already know their key signatures: the sharps or flats a scale needs are exactly the ones in its signature.
The order of sharps
Sharps are always added to a key signature in the same order:
F♯, C♯, G♯, D♯, A♯, E♯, B♯
A key with one sharp has F♯. A key with two sharps has F♯ and C♯, and so on. You will never see a key signature of C♯ alone, or of F♯ and G♯ without C♯. A common reminder is Father Charles Goes Down And Ends Battle.
The order of flats
Flats are added in exactly the reverse order:
B♭, E♭, A♭, D♭, G♭, C♭, F♭
The reminder is the same sentence backwards: Battle Ends And Down Goes Charles's Father. The first four flats also spell the word BEAD, which helps.
A key signature uses either sharps or flats, never a mixture.
Naming a major key from its sharps
For a key signature with sharps, find the last sharp, the one furthest to the right. That note is the leading note of the major key, and the key is one semitone higher.
- One sharp, F♯: a semitone above F♯ is G, so the key is G major.
- Three sharps, F♯, C♯ and G♯: a semitone above G♯ is A, so the key is A major.
- Five sharps, ending on A♯: a semitone above A♯ is B, so the key is B major.
Take care to name the key with the right letter. A semitone above E♯ is F♯, so six sharps is F♯ major, not G♭ major.
Naming a major key from its flats
For a key signature with flats, the second-to-last flat is the name of the major key.
- Two flats, B♭ and E♭: the second-to-last is B♭, so the key is B♭ major.
- Four flats, B♭, E♭, A♭ and D♭: the second-to-last is A♭, so the key is A♭ major.
This rule needs two flats to work, so one key has to be memorised: one flat, B♭, is F major. And no sharps or flats at all is C major.
Every major key signature
| Key signature | Major key | Relative minor |
|---|---|---|
| No sharps or flats | C major | A minor |
| 1 sharp | G major | E minor |
| 2 sharps | D major | B minor |
| 3 sharps | A major | F♯ minor |
| 4 sharps | E major | C♯ minor |
| 5 sharps | B major | G♯ minor |
| 6 sharps | F♯ major | D♯ minor |
| 7 sharps | C♯ major | A♯ minor |
| 1 flat | F major | D minor |
| 2 flats | B♭ major | G minor |
| 3 flats | E♭ major | C minor |
| 4 flats | A♭ major | F minor |
| 5 flats | D♭ major | B♭ minor |
| 6 flats | G♭ major | E♭ minor |
| 7 flats | C♭ major | A♭ minor |
That is fifteen key signatures but only twelve different-sounding major keys. Three pairs are enharmonic: they are written differently but sound the same on a piano. B major (five sharps) sounds the same as C♭ major (seven flats), F♯ major (six sharps) the same as G♭ major (six flats), and C♯ major (seven sharps) the same as D♭ major (five flats). Composers usually choose the spelling with fewer accidentals.
Relative minor keys
Every key signature is shared by one major key and one minor key, called its relative minor. To find it, go down a minor 3rd (three semitones) from the major key's tonic, or count up to the sixth note of the major scale. The relative minor of C major is A minor; of G major, E minor; of F major, D minor.
Spell the minor key with the letter a 3rd below the major tonic, counting three letter names including the tonic itself: A, G, F. Three semitones below E♭ is C, so the relative minor of E♭ major is C minor. Three semitones below A is F♯, not G♭, because the answer must be a 3rd below A.
Is it the major or the minor key?
Because a major key and its relative minor share a signature, the signature alone cannot tell you which one a piece is in. Look for these clues:
- The last note and the last bass note. Most pieces end on the tonic, so a final chord of A minor with no sharps or flats in the signature points to A minor rather than C major.
- The first note or chord, which is often the tonic too.
- A raised seventh. Minor keys usually raise the seventh note of the scale with an accidental, to create a leading note. A piece with no key signature that keeps using G♯ is very likely in A minor. A piece with one flat and frequent C♯s is probably in D minor.
Where the sharps and flats sit on the stave
Each sharp or flat in a key signature sits on the line or space of the note it affects, and they are written in a fixed pattern of positions for each clef. In the treble clef, for instance, F♯ is written on the top line and B♭ on the middle line. In the bass clef the same pattern sits one line or space lower. The key signature is repeated at the start of every line of music, after the clef and before the time signature. Unlike the key signature, the time signature is not repeated on every line: it is written at the beginning and again only where it changes.
When the key changes
Music can change key part of the way through. A permanent change is usually shown by a new key signature, often after a double bar line. Sharps or flats that are no longer needed may be cancelled with naturals first. Many modern editions leave those naturals out, except when the new key has no sharps or flats at all, where they are needed to show the change. A short, passing change of key is usually written with accidentals instead, leaving the key signature as it is.
How to learn key signatures
Learn the order of sharps and flats until you can say them without thinking. Then practise the two naming rules until they are automatic, and learn F major as the one exception. The Circle of Fifths shows every key and its relative minor in one diagram, and the free Key Signature Trainer tests you on major and minor key signatures in the treble or bass clef, ten questions at a time.