Lesson 9 of 27

Key Signatures

By the end of this lesson

Recognize major keys from their sharp or flat signatures.

See it take shape · Interactive story

One sharp at a time

Line the major keys up by how many sharps or flats they need, and the sharps and flats fall into a fixed order. Then collect them after the clef, one at a time, each on its own line or space.

Step 1 of 11
C0G1♯
G major needs one accidental: F♯. C major needs none. Tap a key below to change it.

Keys

A key is named after its scale

A piece that uses the G major scale is in G major: the key takes its name from the scale’s starting note. Every major scale follows the same T–T–S–T–T–T–S pattern, but not every key needs the same accidentals.

Same pattern, different accidentals: G major needs F♯.

Use the arrow keys while a story control is focused.

Read the story as text
  1. A key is named after its scale

    A piece that uses the G major scale is in G major: the key takes its name from the scale’s starting note. Every major scale follows the same T–T–S–T–T–T–S pattern, but not every key needs the same accidentals.

  2. Line up the sharp keys

    Sort the major scales that use sharps from fewest to most: G has one, D has two, and so on up to C♯ with seven. Tap a key to see its scale.

  3. Each key is a 5th above the last

    Each new key sits a perfect 5th above the last. Count five letter names up from C (C, D, E, F, G) and you reach the next key, G.

  4. Keep going and you come back round

    Keep stepping up a 5th and you eventually return to where you started. That is why musicians draw the keys as a circle of fifths.

  5. The sharps always come in the same order

    Each key keeps the sharps of the one before and adds one more, so two sharps are always F♯ and C♯, and three add G♯. Read the new sharps along the line: F C G D A E B.

  6. The flats are the same order, backwards

    Flat keys follow the circle backwards, from F to C♭, adding one flat each time. The flats appear in the exact reverse order of the sharps: B E A D G C F.

  7. Write them once, after the clef

    Instead of writing an accidental in front of every note, collect the scale’s sharps or flats and write them once after the clef, at the start of every line. That group is the key signature: it tells you every sharp or flat to play.

  8. Each sharp has its own place

    The sharps are written in order, each on its own line or space. In the treble clef F♯ starts on the top line and the rest zig-zag down and up: C♯, G♯, D♯, A♯, E♯, B♯.

  9. Bass clef: the same shape, one space lower

    In the bass clef the sharps keep the same order and the same zig-zag. The whole pattern moves down one space: F♯ goes from the top line to the fourth line.

  10. The flats have their places too

    The flats start with B♭ on the middle line of the treble staff, then go up to E♭ and down to A♭, swinging back and forth. In the bass clef the pattern also sits one space lower.

  11. Write the key signature

    Write each key signature one sign at a time, in order. Move the marker to the line or space where the next sharp or flat belongs, then write it.

Key Signatures

You can already write major scales with sharps and flats. When a piece uses one major scale, it is in that key, and the scale's sharps or flats can be written once at the start of every line instead of in front of every note.

From scales to keys

A key takes its name from the starting note of its scale: a piece built from the G major scale is in G major. Every major scale follows the same T–T–S–T–T–T–S pattern, but not every key needs the same accidentals. G major needs one sharp, F♯, to keep that pattern.

G major written with accidentals: the F needs a sharp to make the semitone (S) between the 7th and 8th notes.

Sort the major scales that use sharps from fewest to most, and the keys fall into a fixed order:

KeySharpsWhich sharps
C major0none
G major1F♯
D major2F♯, C♯
A major3F♯, C♯, G♯
E major4F♯, C♯, G♯, D♯
B major5F♯, C♯, G♯, D♯, A♯
F♯ major6F♯, C♯, G♯, D♯, A♯, E♯
C♯ major7F♯, C♯, G♯, D♯, A♯, E♯, B♯

The order of sharps

Look down the last column of the table: each key keeps the sharps of the key before it and adds one more. So two sharps are always F♯ and C♯, three sharps add G♯, and so on. Read the new sharps in turn and you have the order of sharps.

Order of sharps

  1. FFather
  2. CCharles
  3. GGoes
  4. DDown
  5. AAnd
  6. EEnds
  7. BBattles
The seven sharps in order, each on the line or space it takes in a key signature.

The order of flats

Flat keys follow the circle backwards: F major has one flat, B♭ major two, and so on to C♭ major with seven. The flats appear in the exact reverse order of the sharps.

Order of flats

  1. BBattles
  2. EEnd
  3. AAnd
  4. DDown
  5. GGoes
  6. CCharles’
  7. FFather
KeyFlatsWhich flats
F major1B♭
B♭ major2B♭, E♭
E♭ major3B♭, E♭, A♭
A♭ major4B♭, E♭, A♭, D♭
D♭ major5B♭, E♭, A♭, D♭, G♭
G♭ major6B♭, E♭, A♭, D♭, G♭, C♭
C♭ major7B♭, E♭, A♭, D♭, G♭, C♭, F♭

Writing the key signature

Instead of writing the accidentals in front of each note, composers collect them and write them once at the beginning of the music, after the clef. That group of sharps or flats is the key signature. It tells you every sharp or flat to play, for that letter in every octave, and every line of music in the key starts with it.

Before

E major with accidentals

Four accidentals, written on the notes that need them.

After

E major with a key signature

The same four sharps, written once after the clef. The F, C, G and D are still played sharp.

Where each sharp sits

Each sharp has its own place on the staff, and it never changes. In the treble clef, F♯ starts on the top line and the rest zig-zag down and up. In the bass clef the pattern is the same shape, one space lower.

Treble clef

Sharps start on the top line

F♯ C♯ G♯ D♯ A♯ E♯ B♯: the full signature of C♯ major.

Bass clef

Same zig-zag, one space lower

F♯ moves from the top line to the fourth line, and every other sharp moves down with it.
SharpTreble clefBass clef
F♯top linefourth line
C♯third spacesecond space
G♯space above the stafftop space
D♯fourth linemiddle line
A♯second spacefirst space
E♯top spacethird space
B♯middle linesecond line

Where each flat sits

The flats have fixed places too. In the treble clef, B♭ starts on the middle line, then E♭ goes up to the top space and A♭ down to the second space, swinging back and forth. In the bass clef the pattern again sits one space lower.

Treble clef

Flats start on the middle line

B♭ E♭ A♭ D♭ G♭ C♭ F♭, spread out so you can see each one's place.

Bass clef

Same swing, one space lower

B♭ moves from the middle line to the second line; F♭ ends in the space below the staff.
FlatTreble clefBass clef
B♭middle linesecond line
E♭top spacethird space
A♭second spacefirst space
D♭fourth linemiddle line
G♭second linebottom line
C♭third spacesecond space
F♭first spacespace below the staff

Write it yourself

Practise the way the textbook does: first copy the full orders of sharps and flats in both clefs, then write key signatures from one sign up to seven.

  1. Draw the clef

    The clef decides where every sign goes, so it always comes first.
  2. Count the signs

    Use the tables to find how many sharps or flats the key has.
  3. Write them in order

    Sharps F C G D A E B, flats B E A D G C F. Stop when you have enough.
  4. Place each one exactly

    Each sign sits on its own line or space, centred on it, the same in every key.
  5. Check the shape

    Sharps and flats zig-zag; if two neighbours sit far apart or out of line, one is in the wrong octave.
  6. Repeat on every line

    Every line of music in the key starts with the same signature.

Mastery Checkpoint

  1. Say the order of sharps and the order of flats, forwards and backwards.
  2. Name how many sharps G, D, A, E, B, F♯ and C♯ major have, and how many flats F, B♭, E♭, A♭, D♭, G♭ and C♭ major have.
  3. Write all seven sharps and all seven flats in the treble clef and in the bass clef, each on its own line or space.
  4. Explain why E major can be written with four accidentals or with a four-sharp key signature, and why the music sounds the same.

In the next lesson, you will learn two quick methods for naming the key of any signature, and for working back from a key to its signature.

Lesson practice sheet

Print and practice at the piano.

PDF
Download answer key

Put it into practice

Try this before you move on

  1. Write the order of sharps: F–C–G–D–A–E–B. Write the reverse order for flats: B–E–A–D–G–C–F.
  2. For a sharp signature, go one semitone above the final sharp to find the major tonic.
  3. For two or more flats, use the second-last flat as the major tonic. Remember the exceptions: F major has one flat; C major has none.

Knowledge check

How much clicked?

Three questions, instant explanations. Repeat whenever you need a refresher.

1. Which major key has one sharp, F-sharp?
2. Which major key has B-flat and E-flat in its signature?
3. Which key signature belongs to F major?

Ready for the next step?

When you’ve watched the lesson and tried the practice, mark it complete to save your place.