A key signature is the set of sharps or flats written at the start of each staff, right after the clef, that applies to the whole piece so the music does not have to mark every sharp or flat individually. It tells you what key you are in. Rather than putting an accidental in front of every affected note, the key signature states once which notes are consistently raised or lowered, and that instruction holds until the music says otherwise. Here is what those symbols mean, how to read the key from them, and why getting the key signature right matters.
What the sharps and flats mean
The sharps or flats in a key signature consistently raise or lower specific notes throughout the piece. A sharp in the signature means that note is played a half step higher every time it appears, in every octave, and a flat means a half step lower, until the key signature changes. That is the whole job of a key signature: it is a shorthand for the key, so the writer marks the accidentals once at the front instead of in front of every note. The symbols are not placed at random. Sharps are always added in the order F C G D A E B, and flats in the reverse order, B E A D G C F. A key with one sharp has F-sharp; a key with two has F-sharp and C-sharp, and so on down the list. Flats follow the mirror image, starting with B-flat.
How to identify the key
Because the sharps and flats always appear in a fixed order, you can read the key straight off the signature with two quick rules.
- Sharp keys. The last sharp is a half step below the major key name. If the last sharp is F-sharp, the key is G major, because G sits a half step above F-sharp.
- Flat keys. The second-to-last flat is the major key name. If the flats are B-flat and E-flat, the key is B-flat major, because B-flat is the next-to-last flat in the pair.
- No sharps or flats. An empty key signature is C major, or its relative, A minor.
Those two rules cover every major key signature. The flat-key rule has the one obvious exception of a single flat, B-flat, which is F major and worth memorizing on its own. Key signatures pair naturally with the other symbols at the front of a staff, and we cover the rhythmic one in what is a time signature.
Major vs minor
A key signature does not, on its own, tell you whether a piece is major or minor, because a major key and its relative minor share the same key signature. C major and A minor both have no sharps or flats; G major and E minor both have one sharp. You tell them apart by the note the music centers on, which is usually the note it begins and ends on and the chord it settles back to. If a song with no sharps or flats keeps resolving to C, it is C major; if it keeps resolving to A and has a darker, more inward feel, it is A minor. The signature narrows it to two candidates, and the music itself decides between them.
The circle of fifths
The circle of fifths is a diagram of the 12 keys arranged in fifths, and it is the quickest map of every key signature there is. Starting from C at the top, each step clockwise moves up a fifth and adds one sharp at a time: C, G, D, A, and onward. Each step counterclockwise from C moves down a fifth and adds one flat at a time: C, F, B-flat, E-flat, and onward. So a key's position on the circle tells you exactly how many sharps or flats it carries, and which ones, without counting them off the staff. It is the same fixed F C G D A E B order, drawn as a wheel, and it also shows which keys are close neighbors, the foundation for moving a piece from one key to another.
Why it matters
The right key signature is what makes a score readable. With the correct sharps or flats stated once at the front, the page stays clean and a player can read the notes at a glance instead of decoding an accidental on nearly every line. A wrong key signature, by contrast, forces a cloud of accidentals that buries the music. The key signature is also the basis for transposing: moving a piece into a new key means choosing the new key signature and shifting every note to match, which is far easier when you understand how the signatures relate. We walk through that in what is transposition, and if you are still learning to read the staff itself, start with how to read sheet music. For quick definitions of the surrounding terms, see the music notation glossary.
Frequently Asked Questions
What is a key signature?
A key signature is the set of sharps or flats written at the start of each staff, right after the clef, that applies to the whole piece so the music does not have to mark every sharp or flat individually. It tells you what key you are in. Instead of putting an accidental in front of every affected note, the key signature states once which notes are consistently raised or lowered for the rest of the music.
What do the sharps or flats at the beginning of a song mean?
They are a shorthand for the key. Each sharp or flat in the key signature consistently raises or lowers a specific note every time it appears throughout the piece, in every octave, until the key signature changes. Sharps are always added in the order F C G D A E B, and flats in the reverse order, B E A D G C F, so the same notes always get the same treatment.
How do you identify the key from a key signature?
For sharp keys, the last sharp is a half step below the major key name, so if the last sharp is F-sharp the key is G major. For flat keys, the second-to-last flat is the major key name, so if the flats are B-flat and E-flat the key is B-flat major. No sharps or flats means C major or its relative, A minor.
How do you tell if a song is major or minor?
A major key and its relative minor share the same key signature, so C major and A minor look identical on the page. You tell them apart by the note the music centers on, usually the note it begins and ends on. If the music feels resolved on C, it is C major; if it settles on A, it is A minor.
What is the circle of fifths?
The circle of fifths is a diagram of the 12 keys arranged in fifths. Moving clockwise from C adds one sharp at a time, and moving counterclockwise adds one flat at a time. It is a quick map of every key signature: the position of a key on the circle tells you how many sharps or flats it has.
Want the key signature handled for you? Songscription works out the key from your recording and writes the score with the right sharps or flats, then lets you transpose it to another key in a click.
