Key Signatures
A key signature is the group of sharps or flats written at the start of every staff, right after the clef. It tells the performer which notes are raised or lowered throughout the piece, so no accidental is needed each time, and it identifies the key: a major key or its relative minor.
Written by Eddie Borbon, composer and researcher
What a key signature does
In G major every F is an F♯. Instead of writing a sharp in front of each F, the composer places one sharp on the F line at the start of each staff. It applies to that note in every octave and lasts until the key signature changes. An accidental inside a measure overrides it only until the bar line.
The order of sharps and flats
Sharps are always added in the same order: F♯ C♯ G♯ D♯ A♯ E♯ B♯. Flats follow the reverse order: B♭ E♭ A♭ D♭ G♭ C♭ F♭. Each one also has a fixed position on the staff, so a key signature is always written the same way.
Finding the major key
With sharps, take the last sharp and go up a half step: F♯ and C♯ (the last sharp is C♯) give D major. With flats, the second-to-last flat names the key: B♭ E♭ A♭ is E♭ major. One flat on its own is F major, and no sharps or flats is C major.
Major or minor?
Every key signature is shared by a major key and its relative minor: one sharp is G major or E minor. To tell which, look at where the melody starts and ends, and look for a raised 7th. In A minor, G♯ accidentals appear often; in C major they don’t.
Changing key
A new key signature can appear in the middle of a piece, usually after a double bar line. In traditional notation, naturals cancel the old sharps or flats first.
Common mistakes
A common mistake is forgetting the key signature halfway through a piece. In D major every F and every C is sharp, in every octave, unless an accidental says otherwise, and that accidental lasts only until the bar line: in the next measure, F is F♯ again.
Writing the signature in the wrong order is another. Two flats are always B♭ and E♭, never B♭ and A♭, because flats are added in the fixed order B E A D G C F. Finally, don’t mix up the two rules for finding the key. With flats, the second-to-last flat names the key; with sharps, you go a half step up from the last sharp. Four sharps, ending on D♯, give E major.
Key signatures and their keys
| Sharps or flats | With sharps | With flats |
|---|---|---|
| 0 | C major / A minor | C major / A minor |
| 1 | G major / E minor | F major / D minor |
| 2 | D major / B minor | B♭ major / G minor |
| 3 | A major / F♯ minor | E♭ major / C minor |
| 4 | E major / C♯ minor | A♭ major / F minor |
| 5 | B major / G♯ minor | D♭ major / B♭ minor |
| 6 | F♯ major / D♯ minor | G♭ major / E♭ minor |
| 7 | C♯ major / A♯ minor | C♭ major / A♭ minor |
Frequently asked questions
How do you read a key signature?
Count the sharps or flats. For sharps, go a half step up from the last one; for flats, read the second-to-last flat.
What is the order of sharps and flats?
Sharps: F C G D A E B. Flats: B E A D G C F.
Does a key signature apply to every octave?
Yes. A sharp on the top-line F also raises every other F, high or low.
How do I know if a key signature is major or minor?
It can be either; check the first and last notes and look for a raised 7th, typical of the minor key.

