Start free

Key signatures and the circle of fifths

The sharps or flats right after the clef form the key signature: they apply to the whole piece and tell you what key it's in. With two rules and the circle of fifths, you can name any key in seconds.

4 min readUpdated November 18, 2026

Sharp, flat and natural

  • A sharp (♯) raises a note by a half step: F♯ is the black key just to the right of F.
  • A flat (♭) lowers a note by a half step: B♭ is the black key just to the left of B.
  • A natural (♮) cancels a sharp or flat and brings the note back to normal.

Written in front of a note, these signs are accidentals and last until the end of that measure. Written at the start of every staff, right after the clef, they form the key signature and apply to the whole piece, in every octave.

The order of sharps

Sharps always enter the key signature in the same order: F, C, G, D, A, E, B. A key signature with two sharps has F♯ and C♯; with three, F♯, C♯ and G♯; and so on.

♯♯♯♯♯♯♯
The seven sharps, in the order they appear: F, C, G, D, A, E, B.

Each new sharp is a fifth above the one before (F → C → G…). That same chain of fifths is what gives the circle of fifths its name.

The order of flats

Flats go in the opposite order: B, E, A, D, G, C, F.

♭♭♭♭♭♭♭
The seven flats, in the order they appear: B, E, A, D, G, C, F.
TipYou only need to memorize one order: the flats are the sharps backward. The usual saying for sharps is "Father Charles Goes Down And Ends Battle". Read it backward for flats: "Battle Ends And Down Goes Charles' Father", or just think BEAD + GCF.

How to find the key

For major keys, two rules cover almost everything:

  • With sharps: take the last sharp in the key signature and go up a half step. Last sharp C♯ → the key is D major. Last sharp G♯ → A major.
  • With flats: the key is the second-to-last flat. Flats B♭, E♭ and A♭ → E♭ major. The exception is F major, which has only one flat (B♭) and just needs to be memorized.
  • No sharps or flats: C major (or A minor).
♯♯♯A major
Three sharps (F♯, C♯, G♯): the last one is G♯, and a half step up is A, so the key is A major.

Relative minor keys

Each key signature works for two keys: a major key and its relative minor, which uses exactly the same notes. The relative minor is a minor third below (three half steps) the major key: C major → A minor; G major → E minor; F major → D minor.

To tell whether a piece is in the major or the minor key, look at the last note (almost always the tonic) and the accidentals: in harmonic minor, the 7th degree is raised (G♯ in A minor, for example).

The circle of fifths

The circle of fifths puts it all in one picture. Going clockwise from C, each key is a fifth above the one before and adds one sharp. Going counterclockwise, each key is a fifth below and adds one flat. The inner circle shows the relative minor keys.

CAm0GEm1♯DBm2♯AF♯m3♯EC♯m4♯BG♯m5♯F♯/G♭D♯m/E♭m6♯/6♭D♭B♭m5♭A♭Fm4♭E♭Cm3♭B♭Gm2♭FDm1♭
Outside, the major keys; inside, the relative minors; on the edge, how many sharps (♯) or flats (♭) are in the key signature.

It's useful for much more than memorizing key signatures: keys that sit next to each other on the circle are closely related and the easiest to modulate between, and neighboring chords make strong progressions (such as the V–I cadence, from the dominant to the tonic).

Cheat sheet: key signatures

CAm0GEm1♯DBm2♯AF♯m3♯EC♯m4♯BG♯m5♯F♯/G♭D♯m/E♭m6♯/6♭D♭B♭m5♭A♭Fm4♭E♭Cm3♭B♭Gm2♭FDm1♭
Circle of fifths.
AccidentalsMajorRelative minorAccidentalsMajorRelative minor
0CA
1♯GE1♭FD
2♯DB2♭B♭G
3♯AF♯3♭E♭C
4♯EC♯4♭A♭F
5♯BG♯5♭D♭B♭
6♯F♯D♯6♭G♭E♭
7♯C♯A♯7♭C♭A♭

Sharps: F, C, G, D, A, E, B (Father Charles Goes Down And Ends Battle). Flats: B, E, A, D, G, C, F.