Rules for calculating keys
The circle of fifths is a map, but you won’t always have it in front of you. These rules let you work out any key signature, in either direction, from a few facts you can memorise in an afternoon.
Fact 1: the order never changes
Sharps are always added in the order F C G D A E B. Flats are the same letters backwards: B E A D G C F. A key with three sharps has the first three: F♯, C♯ and G♯. Never, say, F♯, G♯ and D♯.
A sentence helps. For sharps: Father Charles Goes Down And Ends Battle. For flats, read it backwards: Battle Ends And Down Goes Charles’ Father.
From a key to its signature
Sharp keys: find the last sharp. In a sharp key, the last sharp is the 7th note of the scale, a semitone below the tonic. So for E major, the last sharp is D♯. Count the sharps in order up to it: F♯ C♯ G♯ D♯. That’s four.
Flat keys: the name is the second-to-last flat. For E♭ major, count the flats up to E♭ (B♭ E♭) and add one more (A♭). That’s three.
The exceptions: C major has none, and F major has one flat, B♭. Learn those two by heart.
How do you know if a key is a sharp key or a flat key? Keys with a flat in their name (B♭, E♭, …) are flat keys, and so is F. Everything else is a sharp key.
The +7 rule
There’s a shortcut that works for every key, however unusual. Learn the signatures of the seven plain letters:
| C | G | D | A | E | B | F |
|---|---|---|---|---|---|---|
| 0 | 1♯ | 2♯ | 3♯ | 4♯ | 5♯ | 1♭ |
Then: putting a sharp on the name adds 7 sharps; putting a flat on it adds 7 flats. Count sharps as plus and flats as minus.
- F♯ major: F is −1, and the sharp adds 7: −1 + 7 = 6 sharps.
- B♭ major: B is +5, and the flat takes away 7: 5 − 7 = −2, so 2 flats.
- C♭ major: 0 − 7 = 7 flats.
It works because sharpening the tonic sharpens every note of the scale: all seven letters gain a sharp.
Enharmonic keys
Some keys can be spelled two ways, like F♯ major and G♭ major: same pitches, different names. Their signatures always add up to 12: F♯ has 6 sharps, G♭ has 6 flats. C♯ (7 sharps) is the same as D♭ (5 flats), and B (5 sharps) is the same as C♭ (7 flats).
That gives you a rule for keys that don’t fit. G♯ major would need 1 + 7 = 8 sharps, including an F double sharp. Nobody writes that. Use its enharmonic twin instead: 12 − 8 = 4, so A♭ major with 4 flats. In practice, keys never go beyond 7 sharps or flats, and most music sticks to 5 or fewer.
From a signature to its key
Run the rules backwards:
- Sharps: the key is a semitone above the last sharp. Three sharps end on G♯, so the key is A major.
- Flats: the key is the second-to-last flat. Four flats (B♭ E♭ A♭ D♭) means A♭ major.
- One flat is F major.
Every signature also belongs to a minor key. That’s the next lesson.
Drill
Key → signature goes all the way to 7 sharps and 7 flats. After each answer it shows the working, using both rules. Signature → key shows a signature on the staff.
Check yourself
- Using the last-sharp rule, how many sharps does B major have? Check it with the +7 rule from B♭.
- What key has five flats?
- D♯ major would need how many sharps? What would you write instead?