Table of Key Signatures

Music sheet
Snap Decision / Getty Images

A key signature is the pattern of sharp, flat, or natural symbols placed together on the staff at the beginning of a piece of music, representing the composer's set of instructions about the piece's key, the notes that the musician needs to use to perform the piece. The key signature is made up of accidentals—sharps and flats—which are located to the right of the clef, and to the left of the time signature. The presence of a flat on the staff means that that note needs to be played flat whenever it appears in the music—at least until the composer shifts key signatures.

Key signatures have either flats or sharps—never both—and the number of sharps or flats only ever ranges from zero to seven. The keys of C Major and A Minor are keys which have no accidentals; C-Sharp major has seven sharps and C-Flat Major has seven flats. 

Key Signatures

Key Signatures
Major Minor
C - none A - none
Db - 5 flats Bb - 5 flats
D - 2 sharps B - 2 sharps
Eb - 3 flats C - 3 flats
E - 4 sharps C# - 4 sharps
F - 1 flat D - 1 flat
F# - 6 sharps D# - 6 sharps
Gb - 6 flats Eb - 6 flats
G - 1 sharp E - 1 sharp
Ab - 4 flats F - 4 flats
A - 3 sharps F# - 3 sharps
Bb - 2 flats G - 2 flats
B - 5 sharps G# - 5 sharps

Sources: