We recommend knowing first
The problem it solves
When a piece is in G major, almost every F must be F#. If you had to write that sharp every time, the score would be cluttered and the tonal centre would be harder to see. The key signature gathers that information at the beginning of each staff and prepares you before the first note sounds.
Detailed theory
Key idea
The key signature sets which notes are altered by default in the key; accidentals only correct or temporarily contradict that rule within the bar.
Each key signature identifies one major key and its relative minor: C major and A minor share the empty signature; G major and E minor share F#.
Sharps always appear in the order F C G D A E B; flats in the reverse order B E A D G C F.
Understand it
The key signature is written right after the clef, at the start of every system. If F# is in the signature, every F in the piece is read as F# unless an accidental says otherwise.
That rule is different from an accidental. An accidental written before a note changes that pitch within the bar; the key signature belongs to the stable landscape of the whole key.
Besides saving signs, the signature identifies the diatonic material. C major and A minor have no alterations; G major and E minor have F#; F major and D minor have Bb. That is why one signature can point to a major key or to its relative minor.
The order of alterations is fixed and meaningful. Sharps enter as F, C, G, D, A, E, B; flats enter in reverse order: B, E, A, D, G, C, F. Once you know that order, a signature stops being a pile of signs and becomes a quick reading tool.
The musical reason is the scale pattern. A major scale needs W-W-H-W-W-W-H; when you start from a different tonic, some degrees must rise or fall so the half steps land between 3-4 and 7-8. The signature writes exactly those corrections.
In sharp keys, the quick rule is to look at the last sharp and go up one semitone: F# points to G major; C# points to D major. In flat keys, the major tonic is the second-to-last flat: with Bb and Eb, the second-to-last is Bb, so the key is B-flat major.
Two cases must simply be memorised: C major / A minor have no alterations, and F major / D minor have one flat (Bb), because with only one flat there is no second-to-last sign.
Reading a key signature well means anticipating it before you play: if you see D major, you already expect F# and C# in the melody, chords and dictation. That makes reading tonal rather than a sum of isolated notes.
Staff & keyboard
Loading audio…
Key signature of D major: 2 sharps (F# and C#), in the order F-C. The tonic D is a semitone above the last sharp (C#).
Staff & keyboard
Loading audio…
Key signature of B-flat major: 2 flats (Bb and Eb), in the order B-E. The second-to-last flat is Bb, so the signature points to B-flat major and its relative G minor.
How to recognise it
How it's written
Look right after the clef and identify whether the signature has sharps, flats or no alterations. Standard tonal signatures do not mix sharps and flats.
If they are sharps, recite F-C-G-D-A-E-B up to the last sign and go up a semitone to find the major key. If they are flats, recite B-E-A-D-G-C-F and take the second-to-last flat as the major tonic.
Then check the relative minor: go down a minor third from the major key. That tells you that G major and E minor share the same one-sharp signature.
How it feels
Play or sing the scale indicated by the key signature. If the tonic feels like home and degree 7 pulls upward, the alterations are doing their job.
Compare G major with F natural and with F#: with F natural, the final G loses the pull of the leading tone; with F#, the F#-G semitone defines the key.
In dictation, listen for whether an altered note is stable inside the key or sounds like a passing colour. A signature alteration feels integrated; an accidental usually stands out because it temporarily changes the expected path.
Common mistake
Confusing a key signature with an accidental: the signature applies to the whole piece, not just one bar.
Writing the sharps or flats in an arbitrary order: they always follow F C G D A E B (or the reverse for flats).
Thinking a key signature has only one answer: each signature has a major key and a relative minor, and the musical context decides which centre you hear.
Forgetting that accidentals can temporarily contradict the signature: in G major, a written F natural cancels the F# only within the bar.
Try it
Look at a signature with a single sharp (F#): apply the rule and check that the major tonic is G and the relative minor is E minor.
Look at a signature with two flats (Bb and Eb): the second-to-last flat is Bb, so the major key is B-flat major and the relative minor is G minor.
Write the D major scale without looking at a table: start on D and add F# and C# so the major pattern stays intact.
On the instrument
Staff & keyboard
Loading audio…
Key signature of G major: 1 sharp (F#). The G major scale keeps the major pattern thanks to the F#.
Staff & keyboard
Loading audio…
Key signature of F major: 1 flat (Bb). The Bb keeps the major pattern of the F scale.
Where it's used
- Identifying the key
- Reading the key signature to know instantly which major key (or relative minor) a piece is written in.
- Reading without repeating alterations
- Automatically applying the sharps or flats set by the signature without having to think them through in every bar.
- Working out the tonic
- Using the quick rule (a semitone above the last sharp, or the second-to-last flat) to find the tonic from the signature.
- Distinguishing signatures and accidentals
- Knowing when an alteration belongs to the key and when it is a local change that only affects the bar.
- Transcribing inside a key
- Hearing a melody and writing the notes while respecting the stable alterations of the key signature.
Examples
Staff & keyboard
Loading audio…
C major and A minor share the empty key signature: there are no fixed sharps or flats, but the tonal centre changes depending on where the music rests.
Staff & keyboard
Loading audio…
The G major scale played with its key signature (F#): a single sharp is enough to keep the major pattern.
Staff & keyboard
Loading audio…
B-flat major shows the flat side: Bb and Eb are stable notes of the key signature, not one-off accidentals.
Exercises
Dictation in C major (no accidentals)
A short melodic dictation in C major: the key signature has no accidentals, so every note is natural.
Complete 6 attempts · 70% accuracy to pass
Dictation in G major (1 sharp)
A melodic dictation in G major: the key signature carries 1 sharp (F#) that you must respect when writing the notes.
Complete 6 attempts · 70% accuracy to pass
Dictation in F major (1 flat)
A melodic dictation in F major: the key signature carries 1 flat (Bb) that you must respect when writing the notes.
Complete 8 attempts · 70% accuracy to pass
Dictation in D major (2 sharps)
A melodic dictation in D major: the key signature carries 2 sharps (F# and C#) that you must respect when writing the notes.
Complete 8 attempts · 70% accuracy to pass
Dictation in B♭ major (2 flats)
A melodic dictation in B♭ major: the key signature carries 2 flats (Bb and Eb) that you must respect when writing the notes.
Complete 10 attempts · 70% accuracy to pass
Mini test
Check that you've got it.
0/10 answeredQuestion 1/10
What is a key signature?