Scales & keys · lesson 5 of 7
Key signatures and relative keys
The sharps and flats at the start of the music - and the trick to reading them in a second.

A key signature lists the sharps or flats a key uses, so they don't have to be written on every note. G major has one sharp (F#), D major two (F#, C#), F major one flat (Bb).
Sharps and flats always appear in the same order - sharps F C G D A E B, flats B E A D G C F - so the signature tells you the key.
Click a key to see its signature
The order of sharps and flats
Sharps are always added in this order: F# C# G# D# A# E# B#. A key with three sharps has the first three: F#, C#, G#. A handy way to remember it: Father Charles Goes Down And Ends Battle.
Flats are the same letters backwards: Bb Eb Ab Db Gb Cb Fb - Battle Ends And Down Goes Charles' Father.
Two tricks to name the key
- Sharps: take the last sharp and go up a half step. Last sharp C#? The key is D major.
- Flats: the second-to-last flat is the key. Flats Bb Eb Ab? The key is Eb major. (One flat on its own is F major - just remember that one.)
Then check whether the music is really in the relative minor: same signature, but the melody and chords settle on the 6th note instead (E minor rather than G major).
Every key signature
| Sharps/flats | Major key | Relative minor |
|---|---|---|
| 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 | E major | C# minor |
| 5 sharps | B major | G# minor |
| 6 sharps / 6 flats | F# major / Gb major | Eb minor / D# minor |
| 5 flats | Db major | Bb minor |
| 4 flats | Ab major | F minor |
| 3 flats: Bb Eb Ab | Eb major | C minor |
| 2 flats: Bb Eb | Bb major | G minor |
| 1 flat: Bb | F major | D minor |
Relative and parallel keys
Relative keys share a key signature: C major and A minor, G major and E minor. The relative minor starts on the 6th note of the major scale (or 3 semitones down from its root).
Parallel keys share a root: C major and C minor. They have different signatures (none vs three flats) but swapping between them is a classic way to change the mood - a sad verse in C minor, a bright chorus in C major.
Quick check
1. Which sharp always comes first in a key signature?
Sharps always start F#, C#, G#...
2. A key signature has 2 sharps. Which major key is it?
Last sharp C# plus a half step = D.
3. What is the relative minor of F major?
F major and D minor both have one flat (Bb).
Make something with it
Free tools that go with this lesson - no sign-up.
Free toolChord progressions in any keyPick a key and a mood, hear it, and download the MIDI.
Open the chord generator →
Music StudioMake it in the free Music StudioBeats, a piano roll with 8 instruments, recording, vocal effects and auto-tune - all in your browser.
Open the Music Studio →
Video EditorTurn your music into a videoCut on the beat, ready for TikTok, Reels and YouTube Shorts.
Make a video →Frequently asked questions
Do producers need key signatures?
Not to read sheet music, but knowing how many sharps or flats a key has tells you which black keys to use in the piano roll - and helps you check whether two loops will mix.
What is the difference between F# major and Gb major?
On a piano they sound and look exactly the same. One is written with 6 sharps, the other with 6 flats - it just depends on which is easier to read in context.
Can a song change key signature?
Yes. A key change (modulation) often lifts the last chorus up a semitone or a whole step - a classic pop move.
