Key signatures

The sharps or flats after the clef are the key signature. They apply to every note with that letter, in every octave, for the whole piece, unless the music says otherwise.

What it does

A key signature of one sharp on the F line means every F in the piece is played as F♯, not just the Fs on that line. A key signature saves writing the same sharp or flat hundreds of times. Forgetting it is one of the most common reading mistakes.

𝄞♯
One sharp: G major (or E minor). Every F is F♯.

The order of sharps: F C G D A E B

Sharps always appear in the same order: F♯ C♯ G♯ D♯ A♯ E♯ B♯. A common memory aid is Father Charles Goes Down And Ends Battle. Two sharps are always F♯ and C♯; three are F♯, C♯ and G♯.

𝄞♯♯♯♯
Four sharps: E major (or C♯ minor)

The order of flats: B E A D G C F

Flats are the same list backwards: B♭ E♭ A♭ D♭ G♭ C♭ F♭, or Battle Ends And Down Goes Charles's Father. The first four flats spell BEAD.

𝄞♭♭♭
Three flats: E♭ major (or C minor)

How to tell the key

Every key signature at a glance

How many sharps or flats, and which major and minor key they mean:

Key signatureMajor keyMinor keyNotes affected
NoneC majorA minorNone
1 sharpG majorE minorF♯
2 sharpsD majorB minorF♯ C♯
3 sharpsA majorF♯ minorF♯ C♯ G♯
4 sharpsE majorC♯ minorF♯ C♯ G♯ D♯
5 sharpsB majorG♯ minorF♯ C♯ G♯ D♯ A♯
6 sharpsF♯ majorD♯ minorF♯ C♯ G♯ D♯ A♯ E♯
7 sharpsC♯ majorA♯ minorAll seven
1 flatF majorD minorB♭
2 flatsB♭ majorG minorB♭ E♭
3 flatsE♭ majorC minorB♭ E♭ A♭
4 flatsA♭ majorF minorB♭ E♭ A♭ D♭
5 flatsD♭ majorB♭ minorB♭ E♭ A♭ D♭ G♭
6 flatsG♭ majorE♭ minorB♭ E♭ A♭ D♭ G♭ C♭
7 flatsC♭ majorA♭ minorAll seven
𝄞♭♭
Two flats: B♭ major (or G minor). Every B and E is flat.

Accidentals

A sharp, flat or natural written right next to a note is an accidental. It overrides the key signature for that note until the end of the bar. A natural sign (♮) cancels a sharp or flat. In the next bar, the key signature applies again.

Questions

What key has one flat?

F major, or its relative minor, D minor. The flat is B♭.

What key has two flats?

B♭ major, or G minor. The flats are B♭ and E♭.

What key has one sharp?

G major, or E minor. The sharp is F♯.

What key has two sharps?

D major, or B minor. The sharps are F♯ and C♯.

What is the order of sharps?

F, C, G, D, A, E, B.

What is the order of flats?

B, E, A, D, G, C, F, the order of sharps reversed.

How do you find the key from a key signature?

With sharps, go a half step above the last sharp. With flats, the second-to-last flat names the key; one flat is F major.

How long does an accidental last?

Until the end of the bar it appears in.

Keep going