Key signatures
A key signature is the group of sharps or flats written after the clef. It changes the notes with those letter names in all octaves of the piece. Sharps always enter in the order F, C, G, D, A, E and B. Flats enter in the reverse order. A key signature belongs to one major key and one minor key.
The order of flats
Flats enter in the reverse order: B, E, A, D, G, C and F. The first four flats spell the word BEAD.
A new flat always lies a fifth below the one before it.
Finding the major key
With sharps, the major key lies a half step above the last sharp. A key with three sharps ends on G♯, and a half step above G♯ is A. The key is A major.
With flats, the next-to-last flat gives the major key. A key with three flats ends with E♭ and A♭, so the key is E♭ major. The single flat of F major is the exception.
Finding the minor key
A key signature also belongs to a minor key, which is called the relative minor. Its tonic lies a minor third below the major tonic.
To tell the two keys apart, look at the last note of the piece and at its accidentals. Music in a minor key often raises its seventh note, as G♯ in A minor.
All the key signatures
The table lists the fifteen key signatures. On the piano, three pairs of keys sound the same: B with C♭, F♯ with G♭ and C♯ with D♭.
| Key signature | Major key | Minor key | Listen |
|---|---|---|---|
| No sharps or flats | C major | A minor | |
| One sharp | G major | E minor | |
| Two sharps | D major | B minor | |
| Three sharps | A major | F♯ minor | |
| Four sharps | E major | C♯ minor | |
| Five sharps | B major | G♯ minor | |
| Six sharps | F♯ major | D♯ minor | |
| Seven sharps | C♯ major | A♯ minor | |
| One flat | F major | D minor | |
| Two flats | B♭ major | G minor | |
| Three flats | E♭ major | C minor | |
| Four flats | A♭ major | F minor | |
| Five flats | D♭ major | B♭ minor | |
| Six flats | G♭ major | E♭ minor | |
| Seven flats | C♭ major | A♭ minor |
Accidentals in the music
A sharp, flat or natural written beside a note is an accidental. It changes the key signature for that note until the end of the bar.
A natural sign cancels a sharp or a flat of the key signature. In the next bar the key signature applies again.
Keys in Hindustani music
Hindustani notation uses no key signature. Sa can be any pitch, and the singer or player chooses it. A komal or tivra sign is written on any altered swara. Komal lowers a swara by a half step, and tivra raises Ma by a half step.
A thaat is a parent scale of Hindustani music. The thaat of a raga plays a similar role to the key signature. Bilawal thaat has the steps of the major scale, and Asavari thaat those of the natural minor.
A short check
Choose one answer per question.
A key signature has three sharps. Which major key is it?
The last sharp is G♯. A half step above it is A.
Which flat comes first in a key signature?
Flats enter in the order B, E, A, D, G, C and F. A single flat is always B♭.
A key signature has four flats. Which minor key shares it?
A key signature of four flats belongs to A♭ major. F lies a minor third below, so the relative minor is F minor.
The last sharp of a key signature is D♯. What is the major key?
The tonic lies a half step above the last sharp. A half step above D♯ is E.
Common questions
What is a key signature in music?
It is the set of sharps or flats placed after the clef at the start of all the staves. It shows which notes are raised or lowered throughout the piece.
How do you identify a key signature?
For sharps, go up a half step from the last sharp. For flats, read the next-to-last flat. Then decide between that major key and its relative minor.
What is the order of sharps?
The order is F, C, G, D, A, E and B. A new sharp always lies a fifth above the one before it.
Which key has no sharps or flats?
C major has none, and so does A minor, its relative minor.
How many key signatures are there?
There are fifteen: no sharps or flats, one to seven sharps, and one to seven flats.
Why does F major have one flat?
The fourth note of the F major scale must lie a half step above A. That note is B♭, so the key needs one flat.