Music Theory

How to read a key signature

November 13, 2026

A key signature is read in two moves. Count the sharps or flats and find the major key from the last one: with sharps, the key is a half step above the last sharp; with flats, the key is the second-to-last flat. The same signature also belongs to the relative minor, three half steps below that major note, and the first and last notes of the piece usually say which of the two you are in.

What you are looking at

"A key signature, consisting of either sharps or flats, appears at the beginning of a composition, after a clef but before a time signature. You can remember this order because it is alphabetical: clef, key, time" (Open Music Theory, Major Scales, Scale Degrees, and Key Signatures). It exists to save ink: "Key signatures collect the accidentals in a scale and place them at the beginning of a composition so that it is easier to keep track of which notes have accidentals applied to them." Every note it names is altered for the whole piece, in every octave: "every B, E, and A in a composition with this key signature will be flat, regardless of octave."

The order never changes

Sharps appear in one order and flats in the reverse of it. "The order of sharps is always F, C, G, D, A, E, B", remembered by "Fat Cats Go Down Alleys (to) Eat Birds", and "The order of the flats is the opposite of the order of the sharps: B, E, A, D, G, C, F", remembered by "Birds Eat And Dive Going Copiously Far" (same chapter). "These orders apply regardless of clef." So a signature with three sharps always carries F, C and G sharp, and never any other three.

Finding the major key

For sharps: "In sharp key signatures, the last sharp is a half step below the tonic (the first note of a scale)." The chapter's examples: "The last sharp (in this case the only sharp), F♯, is a half step below the note G. Therefore, this is the key signature of G major", and "The last sharp, E♯, is a half step below the note F♯. Therefore, this is the key signature of F♯ major."

For flats: "In flat key signatures, the second-to-last flat is the tonic." With two flats, B and E, "The second-to-last flat in this key signature is B♭. Therefore, this is the key signature of B♭ major."

Two signatures have no rule to apply, and Open Music Theory says so: "These are C major, which has nothing in its key signature (no sharps or flats), and F major, which has one flat: B♭". With one flat there is no second-to-last, so F major is learned, and C major is the empty signature.

SharpsLast sharpMajor key
1F♯G
2C♯D
3G♯A
4D♯E
5A♯B
6E♯F♯
7B♯C♯
FlatsSecond-to-last flatMajor key
1(none)F
2B♭B♭
3E♭E♭
4A♭A♭
5D♭D♭
6G♭G♭
7C♭C♭

Major or minor

A signature does not say which. "Each major key signature has a corresponding relative minor key signature whose tonic is three half steps below the relative major's tonic. The orders of sharps and flats in major and minor key signatures are the same" (Open Music Theory, Minor Scales, Scale Degrees, and Key Signatures). Two flats is B♭ major and G minor; four flats, in the chapter's worked example, "means we can narrow down the key of this work to A♭ major or F minor."

The piece settles it. "Pieces often start and end on the tonic, so this can help you determine whether a work is major or minor" (same chapter). Look at the first bass note and the final chord; a piece with four flats that ends on F is in F minor. How to build a minor scale covers what that minor key contains, and How to find the key of a song applies the same test by ear.

The circle

"The circle of fifths is a convenient visual for remembering major key signatures. All of the major key signatures are placed on a circle in order of number of accidentals" (Major Scales chapter). Clockwise from C adds a sharp at each step, counter-clockwise adds a flat, and "The bottom three key signatures can be written in sharps or flats, and so are enharmonic" (Minor Scales chapter): B and C♭, F♯ and G♭, C♯ and D♭ are the same keys spelled two ways.

Sources