Key signatures
Up to seven sharps can sit at the start of a staff, and they always appear in the same order: F, C, G, D, A, E, B.
Why write the accidentals once
A piece in E major uses F♯, G♯, C♯ and D♯ in nearly every bar. Writing a sharp beside each of those notes would clutter the page, so composers gather them into a key signature at the start of every line. The signature goes right after the clef and before the time signature, which is easy to remember because the order is alphabetical: clef, key, time. A sharp on the top line of the treble staff means every F is played as F♯, in every octave, until the signature changes.
A key signature lists the accidentals of the major scale on that key's tonic, and nothing else. It never mixes sharps and flats, because no major scale needs both. It works in both directions: read the signature and you can name the key, or start from the key and you can write its signature. The rest of this unit gives you shortcuts for both.
The order of sharps and flats
Sharps always appear in the order F, C, G, D, A, E, B. A key with three sharps has F♯, C♯ and G♯, never any other three. A common English mnemonic is "Fat Cats Go Down Alleys Eating Birds." Flats come in the reverse order, B, E, A, D, G, C, F, so the two lists mirror each other. On the treble staff the sharps zigzag down and up, and the flats zigzag up and down, so you can often recognise a signature by its shape before reading every symbol.
Sharps: F C G D A E B. Flats: B E A D G C F.
Two quick tricks
For sharp keys, the last sharp is a half step below the tonic. Two sharps end on C♯, and a half step above C♯ is D, so the key is D major. Four sharps end on D♯, so the key is E major. For flat keys, the second-to-last flat names the tonic: three flats are B♭, E♭, A♭, and the second-to-last is E♭, so the key is E♭ major. Two keys do not fit the tricks and are simply memorised: C major has no sharps or flats, and F major has one flat, B♭.
The same tricks work backwards. For A major, the note a half step below A is G♯, so write sharps in order until you reach G♯: F♯, C♯, G♯, three sharps. For A♭ major, write flats in order until you pass A♭ by one: B♭, E♭, A♭, D♭, four flats. One more pattern helps: a key whose name has a flat uses flats, a key whose name has a sharp uses sharps, and natural-named keys other than C and F (G, D, A, E and B) are sharp keys.
Three keys sit at the extremes. C major has nothing, C♯ major has all seven sharps, and C♭ major has all seven flats. Counting none, one to seven sharps and one to seven flats gives 15 major key signatures in all. The 3D circle below shows each of them on a staff when you pick a key; try D major, then A major, and watch one sharp appear each time.
Drag to turn. Scroll or pinch to zoom.
- What comes right after the clef at the start of a staff?
- Key signature
- Time signature
- First note
- Tempo mark
- Type the order of sharps as seven letters (for example A B C …).
- The order of flats is…
- B E A D G C F
- F C G D A E B
- B A E D G F C
- E B A D C G F
- Which key has this signature?
- D major
- B♭ major
- G major
- A major
- Which key has this signature?
- A♭ major
- D♭ major
- E♭ major
- F major
- How many sharps does A major have?
- How many flats does E♭ major have?
- Which key has one flat?
- F major
- B♭ major
- G major
- C major
- How many major key signatures are there in all?
- With three sharps, which notes are sharp?
- F, C, G
- F, G, A
- C, D, E
- B, E, A
- Which key signature has all seven flats?
- C♭ major
- G♭ major
- F major
- C♯ major
- Does a sharp in the key signature on the top line (F) affect an F in a lower octave?
- Yes, every F in every octave
- No, only that line
- Only in the first bar
- Only if written again
- Clef, key signature, time signature.
- Sharps F C G D A E B; flats B E A D G C F.
- Last sharp + half step = tonic; second-to-last flat = tonic.
- C has none, F has B♭; 15 major key signatures in all.
Sources for this course (5)
- Open Music Theory 2e (Viva Pressbooks; ideas only, no sentences copied): "Major Scales, Scale Degrees, and Key Signatures" (W-W-H-W-W-W-H, scale named for first note incl. accidental, scale-degree numbers with carets, do re mi fa sol la ti, tonic/supertonic/mediant/subdominant/dominant/submediant/leading tone and how the names were derived, clef-key-time order, order of sharps F C G D A E B and flats B E A D G C F, last sharp a half step below the tonic, second-to-last flat is the tonic, C and F memorised, C♭ seven flats and C♯ seven sharps, circle of fifths with enharmonic keys at 5, 6 and 7 o'clock; viva.pressbooks.pub/openmusictheory/chapter/major-scales/) and "Minor Scales, Scale Degrees, and Key Signatures" (natural W-H-W-W-H-W-W, harmonic W-H-W-W-H-3H-H, melodic up W-H-W-W-W-W-H and down = natural, lowered 3 6 7 / 3 6 / 3, me le te, subtonic, parallel and relative, relative minor three half steps below, D♭ major and B♭ minor not A♯ minor, three flavours of the same key, first and last notes and the Louise Reichardt song in F minor; viva.pressbooks.pub/openmusictheory/chapter/minor-scales/)
- musictheory.net lessons 21-24 used as a cross-check only. Wikipedia "Circle of fifths" (Diletskii Grammatika 1677, Heinichen Musicalischer Circul 1711 and 1728, relative minor placed beside its major; en.wikipedia.org/wiki/Circle_of_fifths) and C. R. Jensen, "A Theoretical Work of Late Seventeenth-Century Muscovy: Nikolai Diletskii's Grammatika and the Earliest Circle of Fifths", JAMS 45/2 (1992)
- abstract (surviving variants Smolensk 1677, Moscow 1679 and 1681; doi.org/10.2307/831450)
- Wikipedia "The Well-Tempered Clavier" (Book 1 autograph dated 1722, 24 keys, C major then C minor then up by half steps; en.wikipedia.org/wiki/The_Well-Tempered_Clavier)
- Wikipedia "Solfège" and "Guido of Arezzo" (ut re mi fa sol la from Ut queant laxis, 11th century, ut became do in 17th-century Italy, si added later, ti from Sarah Glover in the 19th century, fixed do in Romance-language countries; en.wikipedia.org/wiki/Solf%C3%A8ge).
Checked: 2026-10-17